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 001/249] 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 6127ab43..451539e4 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 a4e86aa2..15f6dfce 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 de76d677..2a8f1b9e 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 aa735c97..a62ccbd3 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 b5f3d61a..9c80483e 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 06d474b9..cc03657d 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 02cf31a0..1ac746df 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 6d4a3d4e..8ace0395 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 280e3de9..4d3e426f 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 267abb61..2ddad98c 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 39aab6dd..d403d6b0 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 41243f27..1a1ba75b 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 2b6fc57c..82f021e5 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 3675e366..109cc356 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 002/249] 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 451539e4..83653c09 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 15f6dfce..db7dbcc2 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 2a8f1b9e..8cd5c29a 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 297ac0a2..fce94876 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 a62ccbd3..444937ba 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 9c80483e..fc7b1635 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 544df889..9664075f 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 cc03657d..506c2ed9 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 1ac746df..55230128 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 8ace0395..00b32ed9 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 3597ede6..9249f386 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 bd4f6161..65694e23 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 2ddad98c..e63ca97f 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 d403d6b0..0748793a 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 1a1ba75b..5eaa0938 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 82f021e5..595b7111 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 109cc356..8a177519 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 003/249] 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 83653c09..8dfea494 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 db7dbcc2..c5669599 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 8cd5c29a..31309544 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 fce94876..20d12215 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 444937ba..aa735c97 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 fc7b1635..2ced6cb5 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 9664075f..544df889 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 506c2ed9..5b3b61a4 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 55230128..e0865538 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 00b32ed9..838665c1 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 4d3e426f..280e3de9 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 e63ca97f..47140978 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 0748793a..3156eb93 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 5eaa0938..2fd49d81 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 595b7111..3f21ba61 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 8a177519..4ee42dd5 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 004/249] 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 8dfea494..8b97f93d 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 c5669599..0c12a4fe 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 31309544..370ff897 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 20d12215..47693a2c 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 2ced6cb5..9c80483e 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 5b3b61a4..640a7fe2 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 e0865538..3fd0e53a 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 838665c1..862256c4 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 9249f386..3597ede6 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 280e3de9..0f3980c1 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 65694e23..bd4f6161 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 47140978..1a3cd058 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 3156eb93..f5d577e6 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 2fd49d81..d0845c45 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 3f21ba61..bf9dff46 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 4ee42dd5..94a75020 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 005/249] 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 8b97f93d..e403fe03 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 f704b20c..88b2b589 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 cc9894ea..d918af4e 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 6d3ddf1a..01bb12a7 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 8b95a306..00000000 --- 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 0c12a4fe..f82e99b4 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 370ff897..8c83f1ad 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 47693a2c..aecad2bb 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 aa735c97..7549791e 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 9c80483e..fc7b1635 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 640a7fe2..97b2e5fa 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 3fd0e53a..055f9d16 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 862256c4..78984ca6 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 3bba8196..75dab9ad 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 0f3980c1..b2158856 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 1a3cd058..aeadae25 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 f5d577e6..161714d3 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 d0845c45..2c138f48 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 bf9dff46..7e4bcd88 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 94a75020..6405507a 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 006/249] 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 e403fe03..1ab2730e 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 f82e99b4..339d49e0 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 8c83f1ad..406ca503 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 aecad2bb..61a914aa 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 7549791e..444937ba 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 fc7b1635..2ced6cb5 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 97b2e5fa..4310884e 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 055f9d16..ac58a526 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 78984ca6..28500b38 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 b2158856..4fb0fa41 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 bd4f6161..65694e23 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 aeadae25..6de4b378 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 161714d3..0f831476 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 2c138f48..a9fdc070 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 7e4bcd88..1daee19b 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 6405507a..4a19107f 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 007/249] 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 1ab2730e..0cc982eb 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 339d49e0..182beed3 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 406ca503..84a4b6d9 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 61a914aa..4b5f2461 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 2ced6cb5..fc7b1635 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 544df889..9664075f 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 4310884e..7ababa94 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 ac58a526..e97c67e9 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 28500b38..97c684ae 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 4fb0fa41..280e3de9 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 6de4b378..ad8720c3 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 0f831476..3c3c1530 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 a9fdc070..94567c0f 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 1daee19b..ef968420 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 4a19107f..5400a332 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 008/249] 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 0cc982eb..74e305f0 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 182beed3..dabb97ef 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 84a4b6d9..3f828857 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 4b5f2461..beb3d11b 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 444937ba..a62ccbd3 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 fc7b1635..2ced6cb5 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 9664075f..544df889 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 7ababa94..b593ca99 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 e97c67e9..ca2c75e8 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 97c684ae..e7d190d2 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 3597ede6..9249f386 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 280e3de9..4d3e426f 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 65694e23..bd4f6161 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 ad8720c3..444492a0 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 3c3c1530..7a267785 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 94567c0f..46875dc6 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 ef968420..5e823466 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 5400a332..eaf5952d 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 009/249] 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 74e305f0..f02fa897 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 dabb97ef..b484c8f7 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 beb3d11b..dc2aa474 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 a62ccbd3..aa735c97 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 b593ca99..b65d2efe 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 ca2c75e8..1863bb8a 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 e7d190d2..000c8537 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 9249f386..3597ede6 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 4d3e426f..4fb0fa41 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 bd4f6161..65694e23 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 444492a0..df243bd8 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 7a267785..491064df 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 46875dc6..cbccb1e6 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 5e823466..c220d92a 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 eaf5952d..e65bd203 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 010/249] 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 f02fa897..de968c88 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 b484c8f7..7506a921 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 3f828857..b6ea397b 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 dc2aa474..c1a63acc 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 aa735c97..a62ccbd3 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 2ced6cb5..fc7b1635 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 544df889..9664075f 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 b65d2efe..506c2ed9 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 1863bb8a..723dc6fb 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 000c8537..a8d7e5ac 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 4fb0fa41..280e3de9 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 65694e23..bd4f6161 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 df243bd8..a5e5016c 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 491064df..772ba27e 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 cbccb1e6..0a446235 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 c220d92a..5028cdfc 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 e65bd203..fbf2cf21 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 011/249] 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 de968c88..62663e5a 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 7506a921..0c142c81 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 b6ea397b..51503503 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 c1a63acc..13b0c13b 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 a62ccbd3..444937ba 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 506c2ed9..905e48ed 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 723dc6fb..29806e4c 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 a8d7e5ac..89f55f53 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 280e3de9..4d3e426f 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 bd4f6161..65694e23 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 a5e5016c..d4e4b1c9 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 772ba27e..e05120ca 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 0a446235..45817f5d 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 5028cdfc..9d9ae1a3 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 fbf2cf21..41eb5215 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 012/249] 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 62663e5a..d04999b0 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 0c142c81..f9b244c6 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 51503503..9170c9fd 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 13b0c13b..f66b90ab 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 444937ba..7549791e 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 fc7b1635..2ced6cb5 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 9664075f..544df889 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 905e48ed..63ac1922 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 29806e4c..7db58d64 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 89f55f53..6b312e45 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 d4e4b1c9..8ef7a4ea 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 e05120ca..1cd47b3d 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 45817f5d..a778b4e0 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 9d9ae1a3..6ae37eaa 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 41eb5215..c2c3b778 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 013/249] 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 d04999b0..3e2f5425 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 f9b244c6..6996a9ac 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 9170c9fd..82b7bbbd 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 f66b90ab..beb3d11b 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 7549791e..444937ba 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 544df889..9664075f 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 63ac1922..2ea0e88a 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 7db58d64..71b1c630 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 6b312e45..81bee3ba 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 4d3e426f..aaff3bff 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 bd4f6161..65694e23 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 8ef7a4ea..d0bef00b 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 1cd47b3d..d8828712 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 a778b4e0..5966af9a 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 6ae37eaa..c5c0c33c 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 c2c3b778..ac712095 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 014/249] 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 3e2f5425..57535973 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 6996a9ac..7506a921 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 82b7bbbd..440e3903 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 444937ba..aa735c97 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 2ced6cb5..9c80483e 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 9664075f..544df889 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 2ea0e88a..0d2e97ea 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 71b1c630..858c6412 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 81bee3ba..3c155720 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 65694e23..bd4f6161 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 d0bef00b..6cd3530d 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 d8828712..9b6393b2 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 5966af9a..a177582c 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 c5c0c33c..f236ae58 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 ac712095..b3c9bd16 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 015/249] 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 57535973..7c8bcbcf 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 440e3903..e8dbfc34 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 beb3d11b..4268a903 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 aa735c97..a62ccbd3 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 9c80483e..2ced6cb5 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 0d2e97ea..029ec61f 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 858c6412..92eea1a1 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 3c155720..1346c61b 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 3597ede6..9249f386 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 aaff3bff..bea1ef2e 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 bd4f6161..65694e23 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 6cd3530d..d31d18dc 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 9b6393b2..49f1095d 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 a177582c..0f27834e 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 f236ae58..0a5216d2 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 b3c9bd16..b70cf23c 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 016/249] 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 7c8bcbcf..af709734 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 7506a921..2cde6e49 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 e8dbfc34..395b8f46 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 4268a903..91b8aee7 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 a62ccbd3..7549791e 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 2ced6cb5..fc7b1635 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 544df889..9664075f 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 029ec61f..67b43dc5 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 92eea1a1..90edac71 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 1346c61b..475f09b8 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 bea1ef2e..280e3de9 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 65694e23..bd4f6161 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 d31d18dc..584bbd2b 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 49f1095d..a02fd685 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 0f27834e..3f3627b5 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 0a5216d2..7b9ee45a 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 b70cf23c..cbc4ac0a 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 017/249] 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 af709734..7b5b2f24 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 2cde6e49..1807ff00 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 395b8f46..28a6029b 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 91b8aee7..4785a9cf 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 7549791e..aa735c97 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 fc7b1635..9c80483e 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 67b43dc5..7dce1bd9 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 90edac71..5e31d2e0 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 475f09b8..f0fcbcb5 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 9249f386..3597ede6 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 280e3de9..4d3e426f 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 bd4f6161..65694e23 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 584bbd2b..ac05f5e7 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 a02fd685..4f217396 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 3f3627b5..eebe6c5e 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 7b9ee45a..f55ce4be 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 cbc4ac0a..aa2643f1 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 018/249] 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 7b5b2f24..78dfd388 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 1807ff00..ce398661 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 28a6029b..1f461b06 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 4785a9cf..25fa36ae 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 aa735c97..444937ba 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 9c80483e..b5f3d61a 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 9664075f..544df889 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 7dce1bd9..5e2f590a 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 5e31d2e0..0e4a4bd2 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 f0fcbcb5..a87060fe 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 3597ede6..9249f386 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 4d3e426f..aaff3bff 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 ac05f5e7..10f983d7 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 4f217396..ef1f2d1e 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 eebe6c5e..e07fe148 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 f55ce4be..7b3ab269 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 aa2643f1..6e07d716 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 019/249] 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 78dfd388..add21bf4 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 ce398661..6efc6a83 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 1f461b06..1832aee9 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 25fa36ae..909ead5d 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 444937ba..aa735c97 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 b5f3d61a..2ced6cb5 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 5e2f590a..fb4be002 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 0e4a4bd2..15dbf748 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 a87060fe..503f19be 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 aaff3bff..280e3de9 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 10f983d7..3a10199e 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 ef1f2d1e..722569bf 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 e07fe148..0b0fabc5 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 7b3ab269..92905ef7 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 6e07d716..9c19169e 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 020/249] 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 add21bf4..1940ec08 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 7c10116c..9fc63575 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 fb5f0e62..ac84157a 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 6efc6a83..f49aae5f 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 1832aee9..15dbe2ac 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 909ead5d..6431515e 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 aa735c97..7549791e 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 2ced6cb5..fc7b1635 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 544df889..9664075f 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 fb4be002..679540ea 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 15dbf748..55f8b175 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 503f19be..5fe2abb7 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 280e3de9..4d3e426f 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 65694e23..bd4f6161 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 5a5ea6f9..d6a8f41e 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 3a10199e..aaa43f85 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 722569bf..10edfa1f 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 0b0fabc5..3899d686 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 92905ef7..bab6a75a 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 9c19169e..0695bd79 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 021/249] 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 1940ec08..c13af489 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 f49aae5f..1ef5bbf4 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 15dbe2ac..261d1023 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 6431515e..7b514bd3 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 7549791e..a62ccbd3 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 9664075f..544df889 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 679540ea..1050b62d 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 55f8b175..0c13ae2f 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 5fe2abb7..b9630c2c 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 4d3e426f..4fb0fa41 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 bd4f6161..65694e23 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 aaa43f85..7be1abf8 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 10edfa1f..ba7f8620 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 3899d686..f01493ae 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 bab6a75a..35b37d26 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 0695bd79..fb8645e8 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 022/249] 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 c13af489..920904a9 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 1ef5bbf4..1b405953 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 261d1023..032d651c 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 7b514bd3..4e4b7acc 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 a62ccbd3..7549791e 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 fc7b1635..2ced6cb5 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 544df889..9664075f 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 1050b62d..775daa01 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 0c13ae2f..cb4f0cfb 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 b9630c2c..8b9b0999 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 9249f386..3597ede6 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 4fb0fa41..0f3980c1 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 7be1abf8..14c307cb 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 ba7f8620..b4efdad4 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 f01493ae..c804f627 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 35b37d26..1928aef4 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 fb8645e8..a8576780 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 023/249] 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 920904a9..e4e8ffa8 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 88b2b589..b589a1e2 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 f326e94e..b5f709f2 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 87e91afe..1335bbc4 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 00000000..1e8190f3 --- /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 1b405953..5f7c8b8d 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 032d651c..729a944d 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 2602218c..a3fa3044 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 4e4b7acc..58959cc7 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 2ced6cb5..9c80483e 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 775daa01..122983ae 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 cb4f0cfb..04c760b7 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 8b9b0999..d38181d5 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 3597ede6..9249f386 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 0f3980c1..4d3e426f 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 65694e23..bd4f6161 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 14c307cb..cda15769 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 b4efdad4..5d17d97b 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 c804f627..48e0acae 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 1928aef4..6f08206c 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 a8576780..b4ffd230 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 024/249] 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 e4e8ffa8..e8458a5b 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 5f7c8b8d..2cde6e49 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 729a944d..fc0fe65e 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 58959cc7..4e187026 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 7549791e..a62ccbd3 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 9664075f..544df889 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 04c760b7..7506d9b8 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 d38181d5..5831d6e0 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 4d3e426f..bea1ef2e 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 bd4f6161..65694e23 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 cda15769..a894e050 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 5d17d97b..fd9a7bb8 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 48e0acae..f5cce6f6 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 6f08206c..5b6cc122 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 b4ffd230..de696ce8 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 025/249] 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 e8458a5b..252a0b61 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 2cde6e49..6be6170b 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 fc0fe65e..261d1023 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 4e187026..7ad41cbd 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 a62ccbd3..7549791e 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 9c80483e..b5f3d61a 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 122983ae..506c2ed9 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 7506d9b8..71b1c630 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 5831d6e0..71e6aaa1 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 bea1ef2e..280e3de9 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 a894e050..5477fd5e 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 fd9a7bb8..120e30c9 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 f5cce6f6..6f43cee9 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 5b6cc122..3f40227d 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 de696ce8..233c1004 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 026/249] 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 252a0b61..e3aaaadd 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 6be6170b..65a10227 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 261d1023..b2844776 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 7ad41cbd..c1a63acc 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 7549791e..444937ba 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 b5f3d61a..2ced6cb5 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 544df889..9664075f 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 506c2ed9..76229116 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 71b1c630..2edb301a 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 71e6aaa1..8cab50c0 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 280e3de9..aaff3bff 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 5477fd5e..5975c5a9 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 120e30c9..c7e56a91 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 6f43cee9..7cbafc75 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 3f40227d..dda48d68 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 233c1004..5f12341a 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 027/249] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e3aaaadd..9dc41654 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 028/249] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9dc41654..e3aaaadd 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 029/249] 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 e3aaaadd..113d8fa7 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 65a10227..b484c8f7 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 b2844776..9f9b1937 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 c1a63acc..981ab650 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 2ced6cb5..fc7b1635 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 76229116..1a9b0948 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 2edb301a..859e5cd4 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 8cab50c0..8f1ab556 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 9249f386..3597ede6 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 aaff3bff..1a80b275 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 5975c5a9..dd88c604 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 c7e56a91..c075f4a1 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 7cbafc75..1464e96a 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 dda48d68..025203bd 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 5f12341a..14b61781 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 030/249] 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 113d8fa7..273003d5 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 b484c8f7..49240792 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 9f9b1937..032d651c 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 981ab650..6728f778 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 444937ba..aa735c97 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 1a9b0948..63047383 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 859e5cd4..a77cde5d 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 8f1ab556..df45daed 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 1a80b275..0f3980c1 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 65694e23..bd4f6161 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 dd88c604..15e451ea 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 c075f4a1..adcd0463 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 1464e96a..188d3f80 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 025203bd..30f99737 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 14b61781..e1911f69 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 031/249] 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 273003d5..4ed12a07 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 49240792..87f70a91 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 032d651c..e3f73447 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 6728f778..7334b8b8 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 fc7b1635..9c80483e 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 9664075f..544df889 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 63047383..57974b57 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 a77cde5d..71b1c630 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 df45daed..af2e347a 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 0f3980c1..280e3de9 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 15e451ea..175ba1e4 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 adcd0463..4d99402e 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 188d3f80..ed5e67fe 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 30f99737..debad594 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 e1911f69..01f8b2af 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 032/249] 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 4ed12a07..e444cca6 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 87f70a91..15f6dfce 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 e3f73447..1c915568 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 7334b8b8..0d7fdb9b 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 aa735c97..444937ba 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 9c80483e..2ced6cb5 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 57974b57..afeabc39 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 71b1c630..0b8f88f0 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 af2e347a..1cbe25c0 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 280e3de9..b2158856 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 bd4f6161..65694e23 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 175ba1e4..40cf3d17 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 4d99402e..380b0861 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 ed5e67fe..684739f6 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 debad594..83c028ea 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 01f8b2af..0bca0cb1 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 033/249] 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 e444cca6..48d3a1c9 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 15f6dfce..10cfa2e6 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 1c915568..3f828857 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 0d7fdb9b..fc6b6607 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 afeabc39..7dce1bd9 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 0b8f88f0..72043d28 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 1cbe25c0..7650dfe7 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 65694e23..bd4f6161 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 40cf3d17..20df4fe1 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 380b0861..622b123d 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 684739f6..c4ec6b27 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 83c028ea..4f1993c6 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 0bca0cb1..25703a48 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 034/249] 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 48d3a1c9..dcf3b555 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 10cfa2e6..26284d72 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 3f828857..7e10c878 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 fc6b6607..8c14c542 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 444937ba..7549791e 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 7dce1bd9..a1fbfdeb 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 72043d28..9afae3a5 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 7650dfe7..9ea3a97d 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 622b123d..e96b3adb 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 c4ec6b27..65b8b621 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 4f1993c6..93ad700f 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 25703a48..d802f34a 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 035/249] 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 dcf3b555..a074d121 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 76ca5269..a721c5ba 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 bcfde627..d9cc2ebb 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 26284d72..c1c7f058 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 7e10c878..95da3c2e 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 8c14c542..56d6dacf 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 7549791e..444937ba 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 2ced6cb5..b5f3d61a 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 a1fbfdeb..8dc3f98b 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 9afae3a5..80ac8179 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 9ea3a97d..509584dd 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 e4995407..bf568347 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 e96b3adb..5fdd249b 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 65b8b621..75c28049 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 93ad700f..1de2531d 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 d802f34a..1100e46a 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 036/249] 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 a074d121..eb3560bd 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 c1c7f058..1425657c 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 95da3c2e..7e10c878 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 56d6dacf..cea7d5d2 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 b5f3d61a..fc7b1635 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 544df889..9664075f 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 8dc3f98b..29041a5e 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 80ac8179..02cf31a0 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 509584dd..9568823d 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 9249f386..3597ede6 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 b2158856..4d3e426f 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 bf568347..c2fed8c8 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 5fdd249b..9e150bf4 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 75c28049..60b372a2 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 1de2531d..e8a2d28c 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 1100e46a..00ccd82c 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 037/249] 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 eb3560bd..1ab5398d 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 1425657c..7506a921 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 7e10c878..62b1f9ff 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 cea7d5d2..dd90dfa6 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 444937ba..a62ccbd3 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 fc7b1635..9c80483e 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 29041a5e..41551672 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 02cf31a0..b456ddec 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 9568823d..5a42c39c 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 bd4f6161..65694e23 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 c2fed8c8..144bf119 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 9e150bf4..7bacbc0f 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 60b372a2..629bbf50 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 e8a2d28c..0b0ae12d 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 00ccd82c..2aac27bb 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 038/249] 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 1ab5398d..4f56253f 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 7506a921..3ec2b4d5 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 62b1f9ff..24f1d8f3 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 dd90dfa6..810c0258 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 41551672..bf6be746 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 b456ddec..7cdb96cf 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 5a42c39c..3e4e7ff3 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 65694e23..bd4f6161 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 144bf119..7da82f6e 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 7bacbc0f..c7a5479a 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 629bbf50..7be14888 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 0b0ae12d..03cac21f 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 2aac27bb..f1ec2e55 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 039/249] 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 4f56253f..a60308bc 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 3ec2b4d5..c1c7f058 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 24f1d8f3..c1bc3094 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 810c0258..4ec1f66a 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 a62ccbd3..7549791e 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 bf6be746..63ac1922 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 7cdb96cf..2edd641e 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 3e4e7ff3..caa683b5 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 3597ede6..9249f386 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 b2158856..413a2df6 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 7da82f6e..2c383221 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 c7a5479a..c0564e85 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 7be14888..c4f45e4b 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 03cac21f..4213b99e 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 f1ec2e55..5aee5c10 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 040/249] 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 a60308bc..1b10c3a2 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 375f214b..5788f208 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 ca28e0e2..0cafb95e 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 c1c7f058..10cfa2e6 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 c1bc3094..2a8f1b9e 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 4ec1f66a..e1ef0f76 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 9c80483e..fc7b1635 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 63ac1922..dc9a9f13 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 2edd641e..d5eacef7 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 caa683b5..b2f2bd30 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 9249f386..3597ede6 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 413a2df6..4d3e426f 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 2c383221..67eae6b0 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 c0564e85..a0f5ef60 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 c4f45e4b..aa1a19e5 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 4213b99e..b3661fd4 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 5aee5c10..12f2d796 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 041/249] 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 1b10c3a2..99bc67bc 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 9fc63575..d3301aeb 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 ac84157a..dde8295a 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 b6681b19..206fd9ea 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 865adf2f..4148792e 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 6eadd6af..33eed376 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 7863cc78..93a1e972 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 fc416c17..018c9516 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 10cfa2e6..7506a921 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 2a8f1b9e..cd43c0b0 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 e1ef0f76..e1c73723 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 fc7b1635..9c80483e 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 dc9a9f13..63047383 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 d5eacef7..0b8f88f0 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 b2f2bd30..a2698d1a 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 4d3e426f..1a80b275 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 d6a8f41e..29c028aa 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 67eae6b0..08eda06d 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 a0f5ef60..56454a51 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 aa1a19e5..afc68563 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 b3661fd4..badf259b 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 12f2d796..34037463 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 042/249] 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 99bc67bc..fc6efd61 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 7506a921..182beed3 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 cd43c0b0..d7796c4a 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 e1c73723..c8a1277d 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 7549791e..aa735c97 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 9c80483e..b5f3d61a 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 9664075f..544df889 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 63047383..f904686f 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 a2698d1a..1e5680ed 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 08eda06d..1311fdaa 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 56454a51..94cbbda3 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 afc68563..60e9ee4f 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 badf259b..b2b554cc 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 34037463..9da1c5e9 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 043/249] 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 fc6efd61..ae9cb11e 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 182beed3..4fa7cf63 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 d7796c4a..270d890f 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 c8a1277d..9923a2c3 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 aa735c97..444937ba 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 b5f3d61a..2ced6cb5 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 f904686f..122983ae 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 0b8f88f0..e0865538 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 1e5680ed..eb719054 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 3597ede6..9249f386 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 1a80b275..583d8ad4 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 1311fdaa..da7aaa79 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 94cbbda3..5c4ce843 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 60e9ee4f..a3f38544 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 b2b554cc..59c08dab 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 9da1c5e9..be5e0ad4 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 044/249] 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 ae9cb11e..4e60eca4 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 4fd6cdfc..21e7cffd 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 75f22c84..46d57c1c 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 5788f208..0c022392 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 5e15ebb3..32f06094 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 0cafb95e..ed433edf 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 4fa7cf63..b48c5fe9 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 270d890f..aa05a923 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 9923a2c3..0d70ffc7 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 2ced6cb5..b5f3d61a 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 544df889..9664075f 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 122983ae..44e9daf5 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 e0865538..66a8a949 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 eb719054..77758d32 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 da7aaa79..07538f0b 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 5c4ce843..b423ad40 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 a3f38544..ac47089e 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 59c08dab..eb5d11c6 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 be5e0ad4..0c47f8e2 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 045/249] 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 4e60eca4..5930ed91 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 b48c5fe9..7b209908 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 aa05a923..370ff897 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 0d70ffc7..f59fb349 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 444937ba..7549791e 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 b5f3d61a..9c80483e 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 44e9daf5..886b273c 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 66a8a949..320a26e8 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 77758d32..30a3b3ad 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 9249f386..3597ede6 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 583d8ad4..4fb0fa41 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 bd4f6161..65694e23 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 07538f0b..7b910640 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 b423ad40..d2e305c7 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 ac47089e..bebd9a5c 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 eb5d11c6..7b6617e5 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 0c47f8e2..f6daf2ac 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 046/249] 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 5930ed91..c0182bd6 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 7b209908..4820aa12 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 370ff897..c1bc3094 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 f59fb349..f374e50d 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 7549791e..aa735c97 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 9664075f..544df889 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 886b273c..122983ae 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 320a26e8..dc66d574 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 30a3b3ad..30446e06 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 4fb0fa41..583d8ad4 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 7b910640..4a57e526 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 d2e305c7..79b8175f 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 bebd9a5c..61d272c4 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 7b6617e5..fb3c4014 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 f6daf2ac..50c3b33c 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 047/249] 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 c0182bd6..7ad8da57 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 4820aa12..7506a921 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 c1bc3094..cd24aaca 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 aa735c97..a62ccbd3 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 122983ae..cf15eaad 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 dc66d574..761219e8 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 30446e06..b5af6151 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 583d8ad4..b2158856 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 65694e23..bd4f6161 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 4a57e526..dfb6323d 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 79b8175f..09e171fa 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 61d272c4..b057b661 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 fb3c4014..913cbd53 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 50c3b33c..3ddfe6a6 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 2d4e1d9147ca5247b796c0100fb2bb05c4618f46 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 14 Jun 2026 00:12:30 +0000 Subject: [PATCH 048/249] 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 | 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, 268 insertions(+), 268 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7ad8da57..957fd850 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-bdf0ec6c222e345e512af7c9c9ddc55c0fa72d3860a8c8be3e747667c8c31a81.yml -openapi_spec_hash: af3728e576ac859886d59cc48d3a513d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-11891f5358d3244391c3e9b1797f402e242962ed931ae6dbeac9265d1d057ae5.yml +openapi_spec_hash: 58a5a24c26bf2ee28f4a654a0c8a4ea7 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 7506a921..a912567f 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="unde", 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="unde", 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="unde", 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="unde", 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="unde", 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="unde", 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="unde", 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="unde", 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="unde", 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="unde", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index cd24aaca..4ad8280e 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="temporibus", + list_id="culpa", 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="temporibus", + list_id="culpa", 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="temporibus", + list_id="culpa", 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="temporibus", + list_id="culpa", 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="temporibus", + list_id="culpa", 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="temporibus", + list_id="culpa", 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="temporibus", + list_id="culpa", 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="temporibus", + list_id="culpa", 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="temporibus", + list_id="culpa", 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="temporibus", + list_id="culpa", 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="temporibus", + list_id="culpa", 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="temporibus", + list_id="culpa", 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="temporibus", + list_id="culpa", 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="temporibus", + list_id="culpa", 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="temporibus", + list_id="culpa", 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="temporibus", + list_id="culpa", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index f374e50d..d6900946 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="et", + post_id="itaque", 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="et", + post_id="itaque", 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="et", + post_id="itaque", 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="et", + post_id="itaque", 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="et", + post_id="itaque", 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="et", + post_id="itaque", 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="et", + post_id="itaque", 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="et", + post_id="itaque", 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="et", + post_id="itaque", 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="et", + post_id="itaque", 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="et", + post_id="itaque", 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="et", + post_id="itaque", 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="et", + post_id="itaque", 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="et", + post_id="itaque", 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="et", + post_id="itaque", 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="et", + post_id="itaque", 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="et", + post_id="itaque", 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="et", + post_id="itaque", 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="et", + post_id="itaque", 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="et", + post_id="itaque", 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 a62ccbd3..aa735c97 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 9c80483e..2ced6cb5 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 cf15eaad..08b0ea47 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="quos", + path_story_id="qui", 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="quos", + path_story_id="qui", 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="quos", + path_story_id="qui", 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="quos", + path_story_id="qui", 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="quos", + story_id="qui", 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="quos", + story_id="qui", 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="quos", + story_id="qui", 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="quos", + story_id="qui", 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="quos", + path_story_id="qui", 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="quos", + path_story_id="qui", 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="quos", + path_story_id="qui", 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="quos", + path_story_id="qui", 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="quos", + story_id="qui", 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="quos", + story_id="qui", 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="quos", + story_id="qui", 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="quos", + story_id="qui", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 761219e8..ed112259 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( - "perspiciatis", + "ad", ) 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( - "perspiciatis", + "ad", ) 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( - "perspiciatis", + "ad", ) 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( - "perspiciatis", + "ad", ) 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( - "perspiciatis", + "ad", ) 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( - "perspiciatis", + "ad", ) 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 b5af6151..7d167047 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="cum", - auth_type="mobile_app", - cookies="quam", + auth_id="ducimus", + auth_type="email_password", + cookies="non", custom_proxy={ "host": "proxy.example.com", - "password": "E!4Iu({s$6X7S", + "password": "yGIZt0-z", "port": 8080, "username": "qui", }, - email="mccullough.ursula@example.org", + email="frederique.streich@example.org", force_connect=False, - name="quia", - password="13?1QAe", - proxy_country="us", - user_agent="nam", - xbc="et", + name="qui", + password='9"u?)jR|yb[CzOfx/G', + proxy_country="uk", + user_agent="ad", + xbc="ullam", ) 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="cum", - auth_type="mobile_app", - cookies="quam", + auth_id="ducimus", + auth_type="email_password", + cookies="non", custom_proxy={ "host": "proxy.example.com", - "password": "E!4Iu({s$6X7S", + "password": "yGIZt0-z", "port": 8080, "username": "qui", }, - email="mccullough.ursula@example.org", + email="frederique.streich@example.org", force_connect=False, - name="quia", - password="13?1QAe", - proxy_country="us", - user_agent="nam", - xbc="et", + name="qui", + password='9"u?)jR|yb[CzOfx/G', + proxy_country="uk", + user_agent="ad", + xbc="ullam", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index b2158856..583d8ad4 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="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="purchases", + type="all", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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 dfb6323d..72fb90f8 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": ["vdourbabcorxulddydttmbr"]}, + filter={"tags": ["lawhsevqwyimtpxkcagwqpiy"]}, 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="culpa", + smart_link_id="quam", ) 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="culpa", + smart_link_id="quam", 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="culpa", + smart_link_id="quam", ) 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="culpa", + smart_link_id="quam", ) 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="nemo", + smart_link_id="labore", ) 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="nemo", + smart_link_id="labore", 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="nemo", + smart_link_id="labore", ) 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="nemo", + smart_link_id="labore", ) 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="ab", + smart_link_id="illum", ) 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="ab", + smart_link_id="illum", 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="ab", + smart_link_id="illum", ) 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="ab", + smart_link_id="illum", ) 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="nobis", + smart_link_id="ut", ) 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="nobis", + smart_link_id="ut", 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="nobis", + smart_link_id="ut", ) 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="nobis", + smart_link_id="ut", ) 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="praesentium", + smart_link_id="commodi", ) 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="praesentium", + smart_link_id="commodi", 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="praesentium", + smart_link_id="commodi", ) 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="praesentium", + smart_link_id="commodi", ) 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="quo", + smart_link_id="voluptas", ) 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="quo", + smart_link_id="voluptas", 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="quo", + smart_link_id="voluptas", ) 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="quo", + smart_link_id="voluptas", ) 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": ["vdourbabcorxulddydttmbr"]}, + filter={"tags": ["lawhsevqwyimtpxkcagwqpiy"]}, 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="culpa", + smart_link_id="quam", ) 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="culpa", + smart_link_id="quam", 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="culpa", + smart_link_id="quam", ) 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="culpa", + smart_link_id="quam", ) 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="nemo", + smart_link_id="labore", ) 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="nemo", + smart_link_id="labore", 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="nemo", + smart_link_id="labore", ) 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="nemo", + smart_link_id="labore", ) 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="ab", + smart_link_id="illum", ) 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="ab", + smart_link_id="illum", 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="ab", + smart_link_id="illum", ) 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="ab", + smart_link_id="illum", ) 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="nobis", + smart_link_id="ut", ) 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="nobis", + smart_link_id="ut", 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="nobis", + smart_link_id="ut", ) 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="nobis", + smart_link_id="ut", ) 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="praesentium", + smart_link_id="commodi", ) 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="praesentium", + smart_link_id="commodi", 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="praesentium", + smart_link_id="commodi", ) 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="praesentium", + smart_link_id="commodi", ) 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="quo", + smart_link_id="voluptas", ) 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="quo", + smart_link_id="voluptas", 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="quo", + smart_link_id="voluptas", ) 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="quo", + 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 09e171fa..3f062abd 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": "ry", - "tags": ["cjemwamcbtyr"], + "search": "ui", + "tags": ["jdcsf"], }, 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": "njigsjwdljnxqrcj", - "tags": ["vbhnpixelrgucwsizwpddy"], + "search": "qqvwcxtaqau", + "tags": ["dklvxtjixlnqierqkkrtxv"], }, 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": "iexiqorn", - "tags": ["gxzdfmlureiljunfswc"], + "include_smart_links": True, + "search": "jjdgnt", + "tags": ["vzes"], }, 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": "x", - "tags": ["nkxovprx"], + "search": "litvgomlmzgcogmzxofmirx", + "tags": ["k"], }, 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": "ry", - "tags": ["cjemwamcbtyr"], + "search": "ui", + "tags": ["jdcsf"], }, 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": "njigsjwdljnxqrcj", - "tags": ["vbhnpixelrgucwsizwpddy"], + "search": "qqvwcxtaqau", + "tags": ["dklvxtjixlnqierqkkrtxv"], }, 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": "iexiqorn", - "tags": ["gxzdfmlureiljunfswc"], + "include_smart_links": True, + "search": "jjdgnt", + "tags": ["vzes"], }, 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": "x", - "tags": ["nkxovprx"], + "search": "litvgomlmzgcogmzxofmirx", + "tags": ["k"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index b057b661..22e01dc0 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="rerum", + tracking_link_id="dolores", 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="rerum", + tracking_link_id="dolores", 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="rerum", + tracking_link_id="dolores", 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="rerum", + tracking_link_id="dolores", 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="rerum", + tracking_link_id="dolores", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="rerum", + tracking_link_id="dolores", 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="rerum", + tracking_link_id="dolores", 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="rerum", + tracking_link_id="dolores", 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="rerum", + tracking_link_id="dolores", 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="rerum", + tracking_link_id="dolores", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 913cbd53..2ff7206f 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="adipisci", + trial_link_id="a", 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="adipisci", + trial_link_id="a", 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="adipisci", + trial_link_id="a", 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="adipisci", + trial_link_id="a", 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="adipisci", + trial_link_id="a", 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="adipisci", + trial_link_id="a", 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="adipisci", + trial_link_id="a", 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="adipisci", + trial_link_id="a", 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="iusto", + 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="iusto", + 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="iusto", + 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="iusto", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="ut", + trial_link_id="quia", 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="ut", + trial_link_id="quia", 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="ut", + trial_link_id="quia", 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="ut", + trial_link_id="quia", 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="ut", + trial_link_id="quia", 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="adipisci", + trial_link_id="a", 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="adipisci", + trial_link_id="a", 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="adipisci", + trial_link_id="a", 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="adipisci", + trial_link_id="a", 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="adipisci", + trial_link_id="a", 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="adipisci", + trial_link_id="a", 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="adipisci", + trial_link_id="a", 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="adipisci", + trial_link_id="a", 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="iusto", + 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="iusto", + 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="iusto", + 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="iusto", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="ut", + trial_link_id="quia", 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="ut", + trial_link_id="quia", 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="ut", + trial_link_id="quia", 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="ut", + trial_link_id="quia", 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="ut", + trial_link_id="quia", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 3ddfe6a6..6eb68f23 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="vpdeabzxzht", + name="scqwrdpszjlubxijb", ) 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="vpdeabzxzht", + name="scqwrdpszjlubxijb", ) 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="vpdeabzxzht", + name="scqwrdpszjlubxijb", ) 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="vpdeabzxzht", + name="scqwrdpszjlubxijb", ) @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="vpdeabzxzht", + name="scqwrdpszjlubxijb", ) 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="vpdeabzxzht", + name="scqwrdpszjlubxijb", ) 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="vpdeabzxzht", + name="scqwrdpszjlubxijb", ) 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="vpdeabzxzht", + name="scqwrdpszjlubxijb", ) @pytest.mark.skip(reason="Mock server tests are disabled") From d42b2211fc03d932c9ca8e94ac562f42f706e4b9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 14 Jun 2026 02:12:30 +0000 Subject: [PATCH 049/249] 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_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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, 264 insertions(+), 264 deletions(-) diff --git a/.stats.yml b/.stats.yml index 957fd850..5daaca59 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-11891f5358d3244391c3e9b1797f402e242962ed931ae6dbeac9265d1d057ae5.yml -openapi_spec_hash: 58a5a24c26bf2ee28f4a654a0c8a4ea7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-dc4af76400591eade1cc1740973c24d9069d50b7d16619ec8cf6a633cf240888.yml +openapi_spec_hash: 935a3c6ddcb27902f5d0919b243f2c08 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index a912567f..18b1c67f 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="unde", + message_id="laboriosam", 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="unde", + message_id="laboriosam", 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="unde", + message_id="laboriosam", 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="unde", + message_id="laboriosam", 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="unde", + message_id="laboriosam", 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="unde", + message_id="laboriosam", 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="unde", + message_id="laboriosam", 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="unde", + message_id="laboriosam", 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="unde", + message_id="laboriosam", 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="unde", + message_id="laboriosam", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 4ad8280e..c1bc3094 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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 d6900946..1e3a045e 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="itaque", + post_id="inventore", 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="itaque", + post_id="inventore", 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="itaque", + post_id="inventore", 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="itaque", + post_id="inventore", 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="itaque", + post_id="inventore", 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="itaque", + post_id="inventore", 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="itaque", + post_id="inventore", 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="itaque", + post_id="inventore", 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="itaque", + post_id="inventore", 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="itaque", + post_id="inventore", 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="itaque", + post_id="inventore", 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="itaque", + post_id="inventore", 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="itaque", + post_id="inventore", 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="itaque", + post_id="inventore", 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="itaque", + post_id="inventore", 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="itaque", + post_id="inventore", 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="itaque", + post_id="inventore", 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="itaque", + post_id="inventore", 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="itaque", + post_id="inventore", 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="itaque", + post_id="inventore", 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 2ced6cb5..fc7b1635 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 9664075f..544df889 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 08b0ea47..506c2ed9 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + story_id="et", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index ed112259..320a26e8 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( - "ad", + "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( - "ad", + "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( - "ad", + "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( - "ad", + "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( - "ad", + "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( - "ad", + "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 7d167047..99c8cf1f 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="ducimus", - auth_type="email_password", - cookies="non", + auth_id="laudantium", + auth_type="mobile_app", + cookies="repellat", custom_proxy={ "host": "proxy.example.com", - "password": "yGIZt0-z", + "password": "XQ*jN;<*M,3", "port": 8080, - "username": "qui", + "username": "nisi", }, - email="frederique.streich@example.org", + email="stroman.ayana@example.org", force_connect=False, - name="qui", - password='9"u?)jR|yb[CzOfx/G', + name="animi", + password=",.(oCkj3", proxy_country="uk", - user_agent="ad", - xbc="ullam", + user_agent="rerum", + 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="ducimus", - auth_type="email_password", - cookies="non", + auth_id="laudantium", + auth_type="mobile_app", + cookies="repellat", custom_proxy={ "host": "proxy.example.com", - "password": "yGIZt0-z", + "password": "XQ*jN;<*M,3", "port": 8080, - "username": "qui", + "username": "nisi", }, - email="frederique.streich@example.org", + email="stroman.ayana@example.org", force_connect=False, - name="qui", - password='9"u?)jR|yb[CzOfx/G', + name="animi", + password=",.(oCkj3", proxy_country="uk", - user_agent="ad", - xbc="ullam", + user_agent="rerum", + 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 3597ede6..9249f386 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 583d8ad4..bea1ef2e 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="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="all", + 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 65694e23..bd4f6161 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 72fb90f8..6321d5b2 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": ["lawhsevqwyimtpxkcagwqpiy"]}, + filter={"tags": ["pdrbisgiu"]}, 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="quam", + smart_link_id="est", ) 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="quam", + smart_link_id="est", 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="quam", + smart_link_id="est", ) 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="quam", + smart_link_id="est", ) 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="labore", + smart_link_id="facilis", ) 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="labore", + smart_link_id="facilis", 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="labore", + smart_link_id="facilis", ) 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="labore", + smart_link_id="facilis", ) 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="illum", + smart_link_id="excepturi", ) 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="illum", + smart_link_id="excepturi", 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="illum", + smart_link_id="excepturi", ) 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="illum", + smart_link_id="excepturi", ) 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="ut", + smart_link_id="velit", ) 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="ut", + smart_link_id="velit", 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="ut", + smart_link_id="velit", ) 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="ut", + smart_link_id="velit", ) 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="commodi", + smart_link_id="impedit", ) 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="commodi", + smart_link_id="impedit", 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="commodi", + smart_link_id="impedit", ) 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="commodi", + smart_link_id="impedit", ) 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="voluptas", + smart_link_id="aut", ) 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="voluptas", + smart_link_id="aut", 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="voluptas", + smart_link_id="aut", ) 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="voluptas", + smart_link_id="aut", ) 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": ["lawhsevqwyimtpxkcagwqpiy"]}, + filter={"tags": ["pdrbisgiu"]}, 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="quam", + smart_link_id="est", ) 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="quam", + smart_link_id="est", 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="quam", + smart_link_id="est", ) 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="quam", + smart_link_id="est", ) 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="labore", + smart_link_id="facilis", ) 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="labore", + smart_link_id="facilis", 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="labore", + smart_link_id="facilis", ) 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="labore", + smart_link_id="facilis", ) 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="illum", + smart_link_id="excepturi", ) 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="illum", + smart_link_id="excepturi", 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="illum", + smart_link_id="excepturi", ) 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="illum", + smart_link_id="excepturi", ) 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="ut", + smart_link_id="velit", ) 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="ut", + smart_link_id="velit", 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="ut", + smart_link_id="velit", ) 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="ut", + smart_link_id="velit", ) 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="commodi", + smart_link_id="impedit", ) 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="commodi", + smart_link_id="impedit", 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="commodi", + smart_link_id="impedit", ) 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="commodi", + smart_link_id="impedit", ) 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="voluptas", + smart_link_id="aut", ) 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="voluptas", + smart_link_id="aut", 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="voluptas", + smart_link_id="aut", ) 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="voluptas", + 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 3f062abd..abdd53cf 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": "ui", - "tags": ["jdcsf"], + "search": "hjmlukoilsudqdk", + "tags": ["euesdkcdslvjwquwdqoxiejj"], }, 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": "qqvwcxtaqau", - "tags": ["dklvxtjixlnqierqkkrtxv"], + "search": "favgoguwsmgxlarpdueuh", + "tags": ["wpmzqbpmynutzvqlfn"], }, 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": "jjdgnt", - "tags": ["vzes"], + "include_smart_links": False, + "search": "pzycixvxvdepssatwvapbvq", + "tags": ["ayeuo"], }, 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": "litvgomlmzgcogmzxofmirx", - "tags": ["k"], + "include_smart_links": True, + "search": "brfohsmvpuyrexloijlu", + "tags": ["gesiqzfwgptyzvmcnu"], }, 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": "ui", - "tags": ["jdcsf"], + "search": "hjmlukoilsudqdk", + "tags": ["euesdkcdslvjwquwdqoxiejj"], }, 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": "qqvwcxtaqau", - "tags": ["dklvxtjixlnqierqkkrtxv"], + "search": "favgoguwsmgxlarpdueuh", + "tags": ["wpmzqbpmynutzvqlfn"], }, 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": "jjdgnt", - "tags": ["vzes"], + "include_smart_links": False, + "search": "pzycixvxvdepssatwvapbvq", + "tags": ["ayeuo"], }, 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": "litvgomlmzgcogmzxofmirx", - "tags": ["k"], + "include_smart_links": True, + "search": "brfohsmvpuyrexloijlu", + "tags": ["gesiqzfwgptyzvmcnu"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 22e01dc0..4ab66a07 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="dolores", + tracking_link_id="nemo", 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="dolores", + tracking_link_id="nemo", 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="dolores", + tracking_link_id="nemo", 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="dolores", + tracking_link_id="nemo", 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="dolores", + tracking_link_id="nemo", 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="qui", + tracking_link_id="quo", 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="qui", + tracking_link_id="quo", 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="qui", + tracking_link_id="quo", 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="qui", + tracking_link_id="quo", 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="qui", + tracking_link_id="quo", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="dolores", + tracking_link_id="nemo", 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="dolores", + tracking_link_id="nemo", 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="dolores", + tracking_link_id="nemo", 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="dolores", + tracking_link_id="nemo", 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="dolores", + tracking_link_id="nemo", 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="qui", + tracking_link_id="quo", 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="qui", + tracking_link_id="quo", 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="qui", + tracking_link_id="quo", 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="qui", + tracking_link_id="quo", 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="qui", + tracking_link_id="quo", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 2ff7206f..99ceafaa 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="qui", + trial_link_id="quis", 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="quis", 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="quis", 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="quis", 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="soluta", 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="soluta", 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="soluta", 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="soluta", 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="soluta", 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + trial_link_id="quo", 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="qui", + trial_link_id="quis", 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="quis", 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="quis", 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="quis", 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="soluta", 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="soluta", 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="soluta", 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="soluta", 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="soluta", 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + trial_link_id="quo", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 6eb68f23..7c4ca497 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="scqwrdpszjlubxijb", + name="hnf", ) 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="scqwrdpszjlubxijb", + name="hnf", ) 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="scqwrdpszjlubxijb", + name="hnf", ) 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="scqwrdpszjlubxijb", + name="hnf", ) @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="scqwrdpszjlubxijb", + name="hnf", ) 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="scqwrdpszjlubxijb", + name="hnf", ) 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="scqwrdpszjlubxijb", + name="hnf", ) 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="scqwrdpszjlubxijb", + name="hnf", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 1fed67f63373d363e1bacb35db41929479c5d09f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 14 Jun 2026 15:12:35 +0000 Subject: [PATCH 050/249] 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_profiles.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 +-- 16 files changed, 266 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5daaca59..6423fd49 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-dc4af76400591eade1cc1740973c24d9069d50b7d16619ec8cf6a633cf240888.yml -openapi_spec_hash: 935a3c6ddcb27902f5d0919b243f2c08 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2e785cbc06d9d1c87eed6cd9454f7810800127056430d27750adfe70d066da51.yml +openapi_spec_hash: 059bbd7be3e61566b2b574513cfc7657 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 18b1c67f..396ec78b 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="laboriosam", + message_id="facilis", 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="laboriosam", + message_id="facilis", 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="laboriosam", + message_id="facilis", 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="laboriosam", + message_id="facilis", 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="laboriosam", + message_id="facilis", 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="laboriosam", + message_id="facilis", 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="laboriosam", + message_id="facilis", 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="laboriosam", + message_id="facilis", 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="laboriosam", + message_id="facilis", 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="laboriosam", + message_id="facilis", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index c1bc3094..fb5327ec 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 1e3a045e..f374e50d 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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 aa735c97..a62ccbd3 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 fc7b1635..2ced6cb5 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 506c2ed9..775daa01 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="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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + story_id="nulla", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 320a26e8..d5eacef7 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", + "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( - "dolores", + "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( - "dolores", + "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( - "dolores", + "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( - "dolores", + "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( - "dolores", + "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 99c8cf1f..83d204a7 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="laudantium", - auth_type="mobile_app", - cookies="repellat", + auth_id="aspernatur", + auth_type="email_password", + cookies="nihil", custom_proxy={ "host": "proxy.example.com", - "password": "XQ*jN;<*M,3", + "password": "%yZtRP+s3 None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="laudantium", - auth_type="mobile_app", - cookies="repellat", + auth_id="aspernatur", + auth_type="email_password", + cookies="nihil", custom_proxy={ "host": "proxy.example.com", - "password": "XQ*jN;<*M,3", + "password": "%yZtRP+s3 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 bd4f6161..65694e23 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 6321d5b2..9da39e6e 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": ["pdrbisgiu"]}, + filter={"tags": ["fyhkmbtqyiqotrdgeavmjg"]}, 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="est", + smart_link_id="et", ) 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="est", + smart_link_id="et", 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="est", + smart_link_id="et", ) 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="est", + smart_link_id="et", ) 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="facilis", + smart_link_id="distinctio", ) 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="facilis", + smart_link_id="distinctio", 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="facilis", + smart_link_id="distinctio", ) 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="facilis", + smart_link_id="distinctio", ) 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="excepturi", + smart_link_id="enim", ) 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="excepturi", + smart_link_id="enim", 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="excepturi", + smart_link_id="enim", ) 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="excepturi", + smart_link_id="enim", ) 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="velit", + smart_link_id="sunt", ) 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="velit", + smart_link_id="sunt", 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="velit", + smart_link_id="sunt", ) 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="velit", + smart_link_id="sunt", ) 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="impedit", + smart_link_id="delectus", ) 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="impedit", + smart_link_id="delectus", 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="impedit", + smart_link_id="delectus", ) 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="impedit", + smart_link_id="delectus", ) 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="aut", + smart_link_id="eaque", ) 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="aut", + smart_link_id="eaque", 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="aut", + smart_link_id="eaque", ) 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="aut", + smart_link_id="eaque", ) 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": ["pdrbisgiu"]}, + filter={"tags": ["fyhkmbtqyiqotrdgeavmjg"]}, 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="est", + smart_link_id="et", ) 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="est", + smart_link_id="et", 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="est", + smart_link_id="et", ) 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="est", + smart_link_id="et", ) 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="facilis", + smart_link_id="distinctio", ) 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="facilis", + smart_link_id="distinctio", 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="facilis", + smart_link_id="distinctio", ) 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="facilis", + smart_link_id="distinctio", ) 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="excepturi", + smart_link_id="enim", ) 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="excepturi", + smart_link_id="enim", 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="excepturi", + smart_link_id="enim", ) 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="excepturi", + smart_link_id="enim", ) 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="velit", + smart_link_id="sunt", ) 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="velit", + smart_link_id="sunt", 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="velit", + smart_link_id="sunt", ) 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="velit", + smart_link_id="sunt", ) 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="impedit", + smart_link_id="delectus", ) 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="impedit", + smart_link_id="delectus", 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="impedit", + smart_link_id="delectus", ) 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="impedit", + smart_link_id="delectus", ) 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="aut", + smart_link_id="eaque", ) 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="aut", + smart_link_id="eaque", 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="aut", + smart_link_id="eaque", ) 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="aut", + smart_link_id="eaque", ) 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 abdd53cf..0becd5fe 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": "hjmlukoilsudqdk", - "tags": ["euesdkcdslvjwquwdqoxiejj"], + "search": "xxqrtlswgnosvgdjzlpqgbwoy", + "tags": ["v"], }, 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": "favgoguwsmgxlarpdueuh", - "tags": ["wpmzqbpmynutzvqlfn"], + "search": "ezbruukbcd", + "tags": ["tknvxvr"], }, 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": "pzycixvxvdepssatwvapbvq", - "tags": ["ayeuo"], + "search": "hqdqpftbcpbaymzqftzbwy", + "tags": ["sbyvhwfzvnktjwpimh"], }, 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": "brfohsmvpuyrexloijlu", - "tags": ["gesiqzfwgptyzvmcnu"], + "search": "psxaxnnticerqa", + "tags": ["zrxgwcngzjow"], }, 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": "hjmlukoilsudqdk", - "tags": ["euesdkcdslvjwquwdqoxiejj"], + "search": "xxqrtlswgnosvgdjzlpqgbwoy", + "tags": ["v"], }, 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": "favgoguwsmgxlarpdueuh", - "tags": ["wpmzqbpmynutzvqlfn"], + "search": "ezbruukbcd", + "tags": ["tknvxvr"], }, 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": "pzycixvxvdepssatwvapbvq", - "tags": ["ayeuo"], + "search": "hqdqpftbcpbaymzqftzbwy", + "tags": ["sbyvhwfzvnktjwpimh"], }, 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": "brfohsmvpuyrexloijlu", - "tags": ["gesiqzfwgptyzvmcnu"], + "search": "psxaxnnticerqa", + "tags": ["zrxgwcngzjow"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 4ab66a07..09ef5a8c 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="doloribus", + tracking_link_id="dolor", 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="doloribus", + tracking_link_id="dolor", 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="doloribus", + tracking_link_id="dolor", 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="doloribus", + tracking_link_id="dolor", 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="doloribus", + tracking_link_id="dolor", 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="doloribus", + tracking_link_id="dolor", 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="doloribus", + tracking_link_id="dolor", 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="doloribus", + tracking_link_id="dolor", 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="quo", + tracking_link_id="fuga", 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="quo", + tracking_link_id="fuga", 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="quo", + tracking_link_id="fuga", 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="quo", + tracking_link_id="fuga", 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="quo", + tracking_link_id="fuga", 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="doloribus", + tracking_link_id="dolor", 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="doloribus", + tracking_link_id="dolor", 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="doloribus", + tracking_link_id="dolor", 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="doloribus", + tracking_link_id="dolor", 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="doloribus", + tracking_link_id="dolor", 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="doloribus", + tracking_link_id="dolor", 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="doloribus", + tracking_link_id="dolor", 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="doloribus", + tracking_link_id="dolor", 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="quo", + tracking_link_id="fuga", 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="quo", + tracking_link_id="fuga", 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="quo", + tracking_link_id="fuga", 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="quo", + tracking_link_id="fuga", 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="quo", + tracking_link_id="fuga", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 99ceafaa..43ca2e06 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="laudantium", 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="laudantium", 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="laudantium", 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="laudantium", 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="laudantium", 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="laudantium", 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="laudantium", 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="laudantium", 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="quis", + trial_link_id="optio", 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="quis", + trial_link_id="optio", 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="quis", + trial_link_id="optio", 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="quis", + trial_link_id="optio", 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="soluta", + trial_link_id="quia", 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="soluta", + trial_link_id="quia", 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="soluta", + trial_link_id="quia", 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="soluta", + trial_link_id="quia", 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="soluta", + trial_link_id="quia", 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="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="quo", + 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="quo", + 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="quo", + 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="quo", + 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="et", + trial_link_id="laudantium", 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="laudantium", 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="laudantium", 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="laudantium", 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="laudantium", 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="laudantium", 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="laudantium", 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="laudantium", 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="quis", + trial_link_id="optio", 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="quis", + trial_link_id="optio", 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="quis", + trial_link_id="optio", 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="quis", + trial_link_id="optio", 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="soluta", + trial_link_id="quia", 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="soluta", + trial_link_id="quia", 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="soluta", + trial_link_id="quia", 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="soluta", + trial_link_id="quia", 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="soluta", + trial_link_id="quia", 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="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="quo", + 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="quo", + 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="quo", + 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="quo", + trial_link_id="aut", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 7c4ca497..24e39e1c 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="hnf", + name="gvzasxdqyajx", ) 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="hnf", + name="gvzasxdqyajx", ) 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="hnf", + name="gvzasxdqyajx", ) 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="hnf", + name="gvzasxdqyajx", ) @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="hnf", + name="gvzasxdqyajx", ) 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="hnf", + name="gvzasxdqyajx", ) 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="hnf", + name="gvzasxdqyajx", ) 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="hnf", + name="gvzasxdqyajx", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 5bfca356b7868b864ef49dc0aa4f77fe6ae73aa3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 14 Jun 2026 16:12:35 +0000 Subject: [PATCH 051/249] 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 | 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 +-- 18 files changed, 272 insertions(+), 272 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6423fd49..085ef93d 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-2e785cbc06d9d1c87eed6cd9454f7810800127056430d27750adfe70d066da51.yml -openapi_spec_hash: 059bbd7be3e61566b2b574513cfc7657 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-74609107d9bbe47ca001712873c4449f6657c5539e4e83c398f672b7d4439749.yml +openapi_spec_hash: 0ced1a38864fe0442a4089920de41e5f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 396ec78b..15f6dfce 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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 fb5327ec..cd43c0b0 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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 f374e50d..f66b90ab 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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 a62ccbd3..444937ba 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 2ced6cb5..9c80483e 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 544df889..9664075f 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 775daa01..46294895 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index d5eacef7..7506d9b8 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", + "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( - "ipsam", + "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( - "ipsam", + "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( - "ipsam", + "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( - "ipsam", + "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( - "ipsam", + "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 83d204a7..6a1e17b3 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="aspernatur", - auth_type="email_password", - cookies="nihil", + auth_id="debitis", + auth_type="raw_data", + cookies="ut", custom_proxy={ "host": "proxy.example.com", - "password": "%yZtRP+s3 None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="aspernatur", - auth_type="email_password", - cookies="nihil", + auth_id="debitis", + auth_type="raw_data", + cookies="ut", custom_proxy={ "host": "proxy.example.com", - "password": "%yZtRP+s3 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 bea1ef2e..413a2df6 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="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="tags", + type="likes", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e23..bd4f6161 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 9da39e6e..9d2ff632 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": ["fyhkmbtqyiqotrdgeavmjg"]}, + filter={"tags": ["lyxqcmnxobiryxfen"]}, 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="et", + smart_link_id="praesentium", ) 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="et", + smart_link_id="praesentium", 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="et", + smart_link_id="praesentium", ) 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="et", + smart_link_id="praesentium", ) 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="distinctio", + smart_link_id="quidem", ) 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="distinctio", + smart_link_id="quidem", 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="distinctio", + smart_link_id="quidem", ) 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="distinctio", + smart_link_id="quidem", ) 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="enim", + smart_link_id="et", ) 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="enim", + smart_link_id="et", 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="enim", + smart_link_id="et", ) 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="enim", + smart_link_id="et", ) 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="sunt", + smart_link_id="assumenda", ) 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="sunt", + smart_link_id="assumenda", 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="sunt", + smart_link_id="assumenda", ) 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="sunt", + smart_link_id="assumenda", ) 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="delectus", + smart_link_id="autem", ) 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="delectus", + smart_link_id="autem", 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="delectus", + smart_link_id="autem", ) 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="delectus", + smart_link_id="autem", ) 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="eaque", + smart_link_id="ullam", ) 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="eaque", + smart_link_id="ullam", 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="eaque", + smart_link_id="ullam", ) 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="eaque", + smart_link_id="ullam", ) 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": ["fyhkmbtqyiqotrdgeavmjg"]}, + filter={"tags": ["lyxqcmnxobiryxfen"]}, 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="et", + smart_link_id="praesentium", ) 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="et", + smart_link_id="praesentium", 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="et", + smart_link_id="praesentium", ) 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="et", + smart_link_id="praesentium", ) 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="distinctio", + smart_link_id="quidem", ) 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="distinctio", + smart_link_id="quidem", 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="distinctio", + smart_link_id="quidem", ) 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="distinctio", + smart_link_id="quidem", ) 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="enim", + smart_link_id="et", ) 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="enim", + smart_link_id="et", 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="enim", + smart_link_id="et", ) 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="enim", + smart_link_id="et", ) 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="sunt", + smart_link_id="assumenda", ) 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="sunt", + smart_link_id="assumenda", 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="sunt", + smart_link_id="assumenda", ) 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="sunt", + smart_link_id="assumenda", ) 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="delectus", + smart_link_id="autem", ) 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="delectus", + smart_link_id="autem", 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="delectus", + smart_link_id="autem", ) 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="delectus", + smart_link_id="autem", ) 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="eaque", + smart_link_id="ullam", ) 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="eaque", + smart_link_id="ullam", 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="eaque", + smart_link_id="ullam", ) 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="eaque", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index 0becd5fe..0f1936b3 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": "xxqrtlswgnosvgdjzlpqgbwoy", - "tags": ["v"], + "search": "wmpjnvsokrtmm", + "tags": ["db"], }, 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": "ezbruukbcd", - "tags": ["tknvxvr"], + "search": "qjvowkkefosyvpazi", + "tags": ["ysa"], }, 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": "hqdqpftbcpbaymzqftzbwy", - "tags": ["sbyvhwfzvnktjwpimh"], + "search": "lzamwfuhxgsqjmaarx", + "tags": ["xnxlnbqdcuqpdbwkf"], }, 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": "psxaxnnticerqa", - "tags": ["zrxgwcngzjow"], + "search": "tfcfixxskknngoiy", + "tags": ["sdvhdjxxzhevudlaginokmjpe"], }, 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": "xxqrtlswgnosvgdjzlpqgbwoy", - "tags": ["v"], + "search": "wmpjnvsokrtmm", + "tags": ["db"], }, 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": "ezbruukbcd", - "tags": ["tknvxvr"], + "search": "qjvowkkefosyvpazi", + "tags": ["ysa"], }, 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": "hqdqpftbcpbaymzqftzbwy", - "tags": ["sbyvhwfzvnktjwpimh"], + "search": "lzamwfuhxgsqjmaarx", + "tags": ["xnxlnbqdcuqpdbwkf"], }, 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": "psxaxnnticerqa", - "tags": ["zrxgwcngzjow"], + "search": "tfcfixxskknngoiy", + "tags": ["sdvhdjxxzhevudlaginokmjpe"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 09ef5a8c..046df7e1 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="dolor", + tracking_link_id="dignissimos", 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="dolor", + tracking_link_id="dignissimos", 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="dolor", + tracking_link_id="dignissimos", 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="dolor", + tracking_link_id="dignissimos", 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="dolor", + tracking_link_id="dignissimos", 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="dolor", + tracking_link_id="dignissimos", 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="dolor", + tracking_link_id="dignissimos", 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="dolor", + tracking_link_id="dignissimos", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="fuga", + tracking_link_id="nesciunt", 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="fuga", + tracking_link_id="nesciunt", 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="fuga", + tracking_link_id="nesciunt", 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="fuga", + tracking_link_id="nesciunt", 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="fuga", + tracking_link_id="nesciunt", 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="dolor", + tracking_link_id="dignissimos", 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="dolor", + tracking_link_id="dignissimos", 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="dolor", + tracking_link_id="dignissimos", 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="dolor", + tracking_link_id="dignissimos", 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="dolor", + tracking_link_id="dignissimos", 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="dolor", + tracking_link_id="dignissimos", 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="dolor", + tracking_link_id="dignissimos", 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="dolor", + tracking_link_id="dignissimos", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="fuga", + tracking_link_id="nesciunt", 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="fuga", + tracking_link_id="nesciunt", 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="fuga", + tracking_link_id="nesciunt", 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="fuga", + tracking_link_id="nesciunt", 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="fuga", + tracking_link_id="nesciunt", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 43ca2e06..9ec695e0 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="laudantium", + trial_link_id="exercitationem", 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="laudantium", + trial_link_id="exercitationem", 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="laudantium", + trial_link_id="exercitationem", 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="laudantium", + trial_link_id="exercitationem", 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="laudantium", + trial_link_id="exercitationem", 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="laudantium", + trial_link_id="exercitationem", 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="laudantium", + trial_link_id="exercitationem", 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="laudantium", + trial_link_id="exercitationem", 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="optio", + trial_link_id="deleniti", 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="optio", + trial_link_id="deleniti", 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="optio", + trial_link_id="deleniti", 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="optio", + trial_link_id="deleniti", 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="quia", + trial_link_id="nisi", 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="quia", + trial_link_id="nisi", 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="quia", + trial_link_id="nisi", 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="quia", + trial_link_id="nisi", 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="quia", + trial_link_id="nisi", 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="ipsam", 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="ipsam", 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="ipsam", 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="ipsam", 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="ipsam", 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="laudantium", + trial_link_id="exercitationem", 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="laudantium", + trial_link_id="exercitationem", 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="laudantium", + trial_link_id="exercitationem", 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="laudantium", + trial_link_id="exercitationem", 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="laudantium", + trial_link_id="exercitationem", 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="laudantium", + trial_link_id="exercitationem", 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="laudantium", + trial_link_id="exercitationem", 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="laudantium", + trial_link_id="exercitationem", 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="optio", + trial_link_id="deleniti", 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="optio", + trial_link_id="deleniti", 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="optio", + trial_link_id="deleniti", 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="optio", + trial_link_id="deleniti", 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="quia", + trial_link_id="nisi", 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="quia", + trial_link_id="nisi", 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="quia", + trial_link_id="nisi", 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="quia", + trial_link_id="nisi", 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="quia", + trial_link_id="nisi", 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="ipsam", 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="ipsam", 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="ipsam", 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="ipsam", 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="ipsam", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 24e39e1c..880a0653 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="gvzasxdqyajx", + name="xoefjwuukvndqnoilzrytz", ) 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="gvzasxdqyajx", + name="xoefjwuukvndqnoilzrytz", ) 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="gvzasxdqyajx", + name="xoefjwuukvndqnoilzrytz", ) 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="gvzasxdqyajx", + name="xoefjwuukvndqnoilzrytz", ) @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="gvzasxdqyajx", + name="xoefjwuukvndqnoilzrytz", ) 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="gvzasxdqyajx", + name="xoefjwuukvndqnoilzrytz", ) 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="gvzasxdqyajx", + name="xoefjwuukvndqnoilzrytz", ) 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="gvzasxdqyajx", + name="xoefjwuukvndqnoilzrytz", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 71220c909703a5f8da6eee5713682ebaf53df63e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 14 Jun 2026 19:12:35 +0000 Subject: [PATCH 052/249] 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 | 48 ++++----- 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 | 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(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index 085ef93d..26bd6329 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-74609107d9bbe47ca001712873c4449f6657c5539e4e83c398f672b7d4439749.yml -openapi_spec_hash: 0ced1a38864fe0442a4089920de41e5f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-364a23106dadf67821b6acf8a8abe8062295c58f5fc2b7520ba782d74b8ee65e.yml +openapi_spec_hash: 47d6274198f1bb53d3e30b19ad2812d0 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 15f6dfce..4a6cc0a1 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="velit", 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="velit", 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="velit", 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="velit", 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="velit", 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="velit", 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="velit", 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="velit", 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="velit", 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="velit", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index cd43c0b0..3f828857 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="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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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 f66b90ab..a53b5338 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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 444937ba..a62ccbd3 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075f..544df889 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 46294895..09c67db6 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="sed", + path_story_id="consequatur", 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="sed", + path_story_id="consequatur", 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="sed", + path_story_id="consequatur", 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="sed", + path_story_id="consequatur", 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="sed", + story_id="consequatur", 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="sed", + story_id="consequatur", 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="sed", + story_id="consequatur", 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="sed", + story_id="consequatur", 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="sed", + path_story_id="consequatur", 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="sed", + path_story_id="consequatur", 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="sed", + path_story_id="consequatur", 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="sed", + path_story_id="consequatur", 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="sed", + story_id="consequatur", 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="sed", + story_id="consequatur", 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="sed", + story_id="consequatur", 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="sed", + story_id="consequatur", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 7506d9b8..70fff1b3 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", + "repudiandae", ) 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", + "repudiandae", ) 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", + "repudiandae", ) 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", + "repudiandae", ) 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", + "repudiandae", ) 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", + "repudiandae", ) 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 6a1e17b3..3176952b 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="debitis", - auth_type="raw_data", - cookies="ut", + auth_id="dolore", + auth_type="email_password", + cookies="soluta", custom_proxy={ "host": "proxy.example.com", - "password": "X\\WZaQOf`eZj-", + "password": "v937U]FPK", "port": 8080, - "username": "ut", + "username": "et", }, - email="ned.muller@example.org", - force_connect=False, - name="rem", - password=">>0 None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="debitis", - auth_type="raw_data", - cookies="ut", + auth_id="dolore", + auth_type="email_password", + cookies="soluta", custom_proxy={ "host": "proxy.example.com", - "password": "X\\WZaQOf`eZj-", + "password": "v937U]FPK", "port": 8080, - "username": "ut", + "username": "et", }, - email="ned.muller@example.org", - force_connect=False, - name="rem", - password=">>0 None: from_id=123, limit=10, skip_users="all", - type="likes", + 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="likes", + type="all", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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 9d2ff632..5e068e38 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": ["lyxqcmnxobiryxfen"]}, + filter={"tags": ["qsiixogtqjqbsgojsrmu"]}, 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="praesentium", + smart_link_id="sint", ) 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="praesentium", + smart_link_id="sint", 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="praesentium", + smart_link_id="sint", ) 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="praesentium", + smart_link_id="sint", ) 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="quidem", + smart_link_id="occaecati", ) 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="quidem", + smart_link_id="occaecati", 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="quidem", + smart_link_id="occaecati", ) 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="quidem", + smart_link_id="occaecati", ) 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="et", + smart_link_id="sapiente", ) 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="et", + smart_link_id="sapiente", 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="et", + smart_link_id="sapiente", ) 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="et", + smart_link_id="sapiente", ) 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="assumenda", + smart_link_id="rerum", ) 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="assumenda", + smart_link_id="rerum", 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="assumenda", + smart_link_id="rerum", ) 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="assumenda", + smart_link_id="rerum", ) 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="autem", + smart_link_id="tenetur", ) 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="autem", + smart_link_id="tenetur", 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="autem", + smart_link_id="tenetur", ) 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="autem", + smart_link_id="tenetur", ) 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="ullam", + smart_link_id="vel", ) 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="ullam", + smart_link_id="vel", 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="ullam", + smart_link_id="vel", ) 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="ullam", + smart_link_id="vel", ) 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": ["lyxqcmnxobiryxfen"]}, + filter={"tags": ["qsiixogtqjqbsgojsrmu"]}, 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="praesentium", + smart_link_id="sint", ) 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="praesentium", + smart_link_id="sint", 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="praesentium", + smart_link_id="sint", ) 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="praesentium", + smart_link_id="sint", ) 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="quidem", + smart_link_id="occaecati", ) 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="quidem", + smart_link_id="occaecati", 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="quidem", + smart_link_id="occaecati", ) 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="quidem", + smart_link_id="occaecati", ) 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="et", + smart_link_id="sapiente", ) 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="et", + smart_link_id="sapiente", 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="et", + smart_link_id="sapiente", ) 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="et", + smart_link_id="sapiente", ) 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="assumenda", + smart_link_id="rerum", ) 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="assumenda", + smart_link_id="rerum", 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="assumenda", + smart_link_id="rerum", ) 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="assumenda", + smart_link_id="rerum", ) 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="autem", + smart_link_id="tenetur", ) 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="autem", + smart_link_id="tenetur", 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="autem", + smart_link_id="tenetur", ) 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="autem", + smart_link_id="tenetur", ) 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="ullam", + smart_link_id="vel", ) 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="ullam", + smart_link_id="vel", 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="ullam", + smart_link_id="vel", ) 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="ullam", + 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 0f1936b3..ce59dac0 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": "wmpjnvsokrtmm", - "tags": ["db"], + "search": "euwwukorhwovaqva", + "tags": ["gfyo"], }, 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": "qjvowkkefosyvpazi", - "tags": ["ysa"], + "search": "a", + "tags": ["qnbcwlflb"], }, 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": "lzamwfuhxgsqjmaarx", - "tags": ["xnxlnbqdcuqpdbwkf"], + "include_smart_links": True, + "search": "ebeeg", + "tags": ["tyrcjugqhatbsfgebuzif"], }, 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": "tfcfixxskknngoiy", - "tags": ["sdvhdjxxzhevudlaginokmjpe"], + "include_smart_links": False, + "search": "szhacuydhngnvhmxt", + "tags": ["ffvphyitjjnwmjop"], }, 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": "wmpjnvsokrtmm", - "tags": ["db"], + "search": "euwwukorhwovaqva", + "tags": ["gfyo"], }, 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": "qjvowkkefosyvpazi", - "tags": ["ysa"], + "search": "a", + "tags": ["qnbcwlflb"], }, 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": "lzamwfuhxgsqjmaarx", - "tags": ["xnxlnbqdcuqpdbwkf"], + "include_smart_links": True, + "search": "ebeeg", + "tags": ["tyrcjugqhatbsfgebuzif"], }, 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": "tfcfixxskknngoiy", - "tags": ["sdvhdjxxzhevudlaginokmjpe"], + "include_smart_links": False, + "search": "szhacuydhngnvhmxt", + "tags": ["ffvphyitjjnwmjop"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 046df7e1..50961874 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="dignissimos", + tracking_link_id="at", 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="dignissimos", + tracking_link_id="at", 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="dignissimos", + tracking_link_id="at", 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="dignissimos", + tracking_link_id="at", 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="dignissimos", + tracking_link_id="at", 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="dignissimos", + tracking_link_id="at", 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="dignissimos", + tracking_link_id="at", 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="dignissimos", + tracking_link_id="at", 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="optio", + tracking_link_id="repudiandae", 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="optio", + tracking_link_id="repudiandae", 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="optio", + tracking_link_id="repudiandae", 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="optio", + tracking_link_id="repudiandae", 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="optio", + tracking_link_id="repudiandae", 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="dignissimos", + tracking_link_id="at", 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="dignissimos", + tracking_link_id="at", 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="dignissimos", + tracking_link_id="at", 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="dignissimos", + tracking_link_id="at", 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="dignissimos", + tracking_link_id="at", 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="dignissimos", + tracking_link_id="at", 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="dignissimos", + tracking_link_id="at", 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="dignissimos", + tracking_link_id="at", 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="optio", + tracking_link_id="repudiandae", 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="optio", + tracking_link_id="repudiandae", 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="optio", + tracking_link_id="repudiandae", 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="optio", + tracking_link_id="repudiandae", 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="optio", + tracking_link_id="repudiandae", 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + tracking_link_id="molestias", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 9ec695e0..47edbeb6 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="exercitationem", + trial_link_id="officia", 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="exercitationem", + trial_link_id="officia", 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="exercitationem", + trial_link_id="officia", 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="exercitationem", + trial_link_id="officia", 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="exercitationem", + trial_link_id="officia", 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="exercitationem", + trial_link_id="officia", 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="exercitationem", + trial_link_id="officia", 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="exercitationem", + trial_link_id="officia", 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="deleniti", + trial_link_id="esse", 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="deleniti", + trial_link_id="esse", 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="deleniti", + trial_link_id="esse", 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="deleniti", + trial_link_id="esse", 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="nisi", + 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="nisi", + 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="nisi", + 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="nisi", + 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="nisi", + 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="ipsam", + trial_link_id="similique", 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="ipsam", + trial_link_id="similique", 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="ipsam", + trial_link_id="similique", 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="ipsam", + trial_link_id="similique", 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="ipsam", + trial_link_id="similique", 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="exercitationem", + trial_link_id="officia", 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="exercitationem", + trial_link_id="officia", 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="exercitationem", + trial_link_id="officia", 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="exercitationem", + trial_link_id="officia", 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="exercitationem", + trial_link_id="officia", 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="exercitationem", + trial_link_id="officia", 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="exercitationem", + trial_link_id="officia", 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="exercitationem", + trial_link_id="officia", 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="deleniti", + trial_link_id="esse", 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="deleniti", + trial_link_id="esse", 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="deleniti", + trial_link_id="esse", 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="deleniti", + trial_link_id="esse", 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="nisi", + 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="nisi", + 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="nisi", + 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="nisi", + 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="nisi", + 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="ipsam", + trial_link_id="similique", 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="ipsam", + trial_link_id="similique", 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="ipsam", + trial_link_id="similique", 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="ipsam", + trial_link_id="similique", 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="ipsam", + trial_link_id="similique", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 880a0653..1295500c 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="xoefjwuukvndqnoilzrytz", + name="sgoxqyiqgqehak", ) 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="xoefjwuukvndqnoilzrytz", + name="sgoxqyiqgqehak", ) 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="xoefjwuukvndqnoilzrytz", + name="sgoxqyiqgqehak", ) 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="xoefjwuukvndqnoilzrytz", + name="sgoxqyiqgqehak", ) @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="xoefjwuukvndqnoilzrytz", + name="sgoxqyiqgqehak", ) 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="xoefjwuukvndqnoilzrytz", + name="sgoxqyiqgqehak", ) 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="xoefjwuukvndqnoilzrytz", + name="sgoxqyiqgqehak", ) 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="xoefjwuukvndqnoilzrytz", + name="sgoxqyiqgqehak", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 0b39e3184b3f54a930e11724881f5ca4b89b7405 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 02:12:34 +0000 Subject: [PATCH 053/249] 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 | 56 +++++----- tests/api_resources/test_user_lists.py | 16 +-- 17 files changed, 254 insertions(+), 254 deletions(-) diff --git a/.stats.yml b/.stats.yml index 26bd6329..3b83ff88 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-364a23106dadf67821b6acf8a8abe8062295c58f5fc2b7520ba782d74b8ee65e.yml -openapi_spec_hash: 47d6274198f1bb53d3e30b19ad2812d0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-da33ae98e5bcc526235f1ebcdf334a63c9f874195e6f4c89a8ebc13c2b686bd4.yml +openapi_spec_hash: 250d19d239bfbb6c908131c18e33d8cd config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 4a6cc0a1..330a2740 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="velit", + message_id="ea", 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="velit", + message_id="ea", 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="velit", + message_id="ea", 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="velit", + message_id="ea", 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="velit", + message_id="ea", 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="velit", + message_id="ea", 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="velit", + message_id="ea", 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="velit", + message_id="ea", 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="velit", + message_id="ea", 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="velit", + message_id="ea", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 3f828857..71784680 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index a53b5338..f29a343f 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="harum", + post_id="vel", 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="harum", + post_id="vel", 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="harum", + post_id="vel", 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="harum", + post_id="vel", 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="harum", + post_id="vel", 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="harum", + post_id="vel", 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="harum", + post_id="vel", 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="harum", + post_id="vel", 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="harum", + post_id="vel", 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="harum", + post_id="vel", 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="harum", + post_id="vel", 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="harum", + post_id="vel", 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="harum", + post_id="vel", 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="harum", + post_id="vel", 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="harum", + post_id="vel", 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="harum", + post_id="vel", 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="harum", + post_id="vel", 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="harum", + post_id="vel", 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="harum", + post_id="vel", 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="harum", + post_id="vel", 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 a62ccbd3..7549791e 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 9c80483e..fc7b1635 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 09c67db6..ffcd9662 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="consequatur", + path_story_id="assumenda", 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="consequatur", + path_story_id="assumenda", 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="consequatur", + path_story_id="assumenda", 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="consequatur", + path_story_id="assumenda", 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="consequatur", + story_id="assumenda", 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="consequatur", + story_id="assumenda", 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="consequatur", + story_id="assumenda", 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="consequatur", + story_id="assumenda", 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="consequatur", + path_story_id="assumenda", 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="consequatur", + path_story_id="assumenda", 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="consequatur", + path_story_id="assumenda", 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="consequatur", + path_story_id="assumenda", 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="consequatur", + story_id="assumenda", 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="consequatur", + story_id="assumenda", 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="consequatur", + story_id="assumenda", 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="consequatur", + story_id="assumenda", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 70fff1b3..cb4f0cfb 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( - "repudiandae", + "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( - "repudiandae", + "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( - "repudiandae", + "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( - "repudiandae", + "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( - "repudiandae", + "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( - "repudiandae", + "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 3176952b..c5ffc8b6 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="dolore", - auth_type="email_password", - cookies="soluta", + auth_id="ut", + auth_type="raw_data", + cookies="quis", custom_proxy={ "host": "proxy.example.com", - "password": "v937U]FPK", + "password": "q|_}$Qz", "port": 8080, - "username": "et", + "username": "odit", }, - email="qlakin@example.com", - force_connect=True, - name="aut", - password="L)+E]x", + email="lonie02@example.net", + force_connect=False, + name="quia", + password=")kaQB>&qj^[", proxy_country="uk", - user_agent="beatae", - xbc="hic", + user_agent="earum", + xbc="dolor", ) 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="dolore", - auth_type="email_password", - cookies="soluta", + auth_id="ut", + auth_type="raw_data", + cookies="quis", custom_proxy={ "host": "proxy.example.com", - "password": "v937U]FPK", + "password": "q|_}$Qz", "port": 8080, - "username": "et", + "username": "odit", }, - email="qlakin@example.com", - force_connect=True, - name="aut", - password="L)+E]x", + email="lonie02@example.net", + force_connect=False, + name="quia", + password=")kaQB>&qj^[", proxy_country="uk", - user_agent="beatae", - xbc="hic", + user_agent="earum", + xbc="dolor", ) 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 9249f386..3597ede6 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 583d8ad4..bea1ef2e 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="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="all", + 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 65694e23..bd4f6161 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 5e068e38..89a091e7 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": ["qsiixogtqjqbsgojsrmu"]}, + filter={"tags": ["oz"]}, 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="sint", + smart_link_id="repudiandae", ) 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="sint", + smart_link_id="repudiandae", 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="sint", + smart_link_id="repudiandae", ) 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="sint", + smart_link_id="repudiandae", ) 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="occaecati", + smart_link_id="et", ) 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="occaecati", + smart_link_id="et", 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="occaecati", + smart_link_id="et", ) 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="occaecati", + smart_link_id="et", ) 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="sapiente", + smart_link_id="in", ) 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="sapiente", + smart_link_id="in", 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="sapiente", + smart_link_id="in", ) 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="sapiente", + smart_link_id="in", ) 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="rerum", + smart_link_id="suscipit", ) 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="rerum", + smart_link_id="suscipit", 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="rerum", + smart_link_id="suscipit", ) 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="rerum", + smart_link_id="suscipit", ) 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="corrupti", ) 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="corrupti", 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="corrupti", ) 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="corrupti", ) 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="vel", + smart_link_id="repellendus", ) 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="vel", + smart_link_id="repellendus", 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="vel", + smart_link_id="repellendus", ) 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="vel", + smart_link_id="repellendus", ) 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": ["qsiixogtqjqbsgojsrmu"]}, + filter={"tags": ["oz"]}, 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="sint", + smart_link_id="repudiandae", ) 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="sint", + smart_link_id="repudiandae", 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="sint", + smart_link_id="repudiandae", ) 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="sint", + smart_link_id="repudiandae", ) 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="occaecati", + smart_link_id="et", ) 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="occaecati", + smart_link_id="et", 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="occaecati", + smart_link_id="et", ) 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="occaecati", + smart_link_id="et", ) 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="sapiente", + smart_link_id="in", ) 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="sapiente", + smart_link_id="in", 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="sapiente", + smart_link_id="in", ) 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="sapiente", + smart_link_id="in", ) 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="rerum", + smart_link_id="suscipit", ) 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="rerum", + smart_link_id="suscipit", 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="rerum", + smart_link_id="suscipit", ) 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="rerum", + smart_link_id="suscipit", ) 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="corrupti", ) 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="corrupti", 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="corrupti", ) 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="corrupti", ) 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="vel", + smart_link_id="repellendus", ) 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="vel", + smart_link_id="repellendus", 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="vel", + smart_link_id="repellendus", ) 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="vel", + smart_link_id="repellendus", ) 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 ce59dac0..8fa66965 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": "euwwukorhwovaqva", - "tags": ["gfyo"], + "search": "qdqkngicrdxlastebmwrvz", + "tags": ["yrp"], }, 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": "a", - "tags": ["qnbcwlflb"], + "search": "xybgivrdqmxqdorwtcso", + "tags": ["zjkajkrdwdejzf"], }, 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": "ebeeg", - "tags": ["tyrcjugqhatbsfgebuzif"], + "include_smart_links": False, + "search": "zjkz", + "tags": ["xjwjlwvbqhsl"], }, 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": "szhacuydhngnvhmxt", - "tags": ["ffvphyitjjnwmjop"], + "search": "uxoqidqzjbbdndjs", + "tags": ["tlxxjnajyxnkarbxvzesx"], }, 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": "euwwukorhwovaqva", - "tags": ["gfyo"], + "search": "qdqkngicrdxlastebmwrvz", + "tags": ["yrp"], }, 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": "a", - "tags": ["qnbcwlflb"], + "search": "xybgivrdqmxqdorwtcso", + "tags": ["zjkajkrdwdejzf"], }, 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": "ebeeg", - "tags": ["tyrcjugqhatbsfgebuzif"], + "include_smart_links": False, + "search": "zjkz", + "tags": ["xjwjlwvbqhsl"], }, 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": "szhacuydhngnvhmxt", - "tags": ["ffvphyitjjnwmjop"], + "search": "uxoqidqzjbbdndjs", + "tags": ["tlxxjnajyxnkarbxvzesx"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 50961874..3435c8c9 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="at", + 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="at", + 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="at", + 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="at", + 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="at", + 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="at", + 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="at", + 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="at", + 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="repudiandae", + tracking_link_id="dolorem", 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="repudiandae", + tracking_link_id="dolorem", 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="repudiandae", + tracking_link_id="dolorem", 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="repudiandae", + tracking_link_id="dolorem", 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="repudiandae", + tracking_link_id="dolorem", 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="saepe", 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="saepe", 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="saepe", 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="saepe", 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="saepe", 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="at", + 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="at", + 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="at", + 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="at", + 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="at", + 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="at", + 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="at", + 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="at", + 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="repudiandae", + tracking_link_id="dolorem", 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="repudiandae", + tracking_link_id="dolorem", 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="repudiandae", + tracking_link_id="dolorem", 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="repudiandae", + tracking_link_id="dolorem", 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="repudiandae", + tracking_link_id="dolorem", 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="saepe", 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="saepe", 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="saepe", 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="saepe", 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="saepe", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 47edbeb6..c279dc69 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="esse", + 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="esse", + 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="esse", + 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="esse", + 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="quae", + 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="quae", + 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="quae", + 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="quae", + 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="quae", + 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="similique", + trial_link_id="non", 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="similique", + trial_link_id="non", 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="similique", + trial_link_id="non", 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="similique", + trial_link_id="non", 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="similique", + 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="esse", + 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="esse", + 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="esse", + 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="esse", + 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="quae", + 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="quae", + 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="quae", + 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="quae", + 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="quae", + 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="similique", + trial_link_id="non", 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="similique", + trial_link_id="non", 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="similique", + trial_link_id="non", 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="similique", + trial_link_id="non", 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="similique", + trial_link_id="non", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 1295500c..963577ac 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="sgoxqyiqgqehak", + name="yjkjvfzjxodob", ) 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="sgoxqyiqgqehak", + name="yjkjvfzjxodob", ) 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="sgoxqyiqgqehak", + name="yjkjvfzjxodob", ) 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="sgoxqyiqgqehak", + name="yjkjvfzjxodob", ) @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="sgoxqyiqgqehak", + name="yjkjvfzjxodob", ) 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="sgoxqyiqgqehak", + name="yjkjvfzjxodob", ) 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="sgoxqyiqgqehak", + name="yjkjvfzjxodob", ) 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="sgoxqyiqgqehak", + name="yjkjvfzjxodob", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 8f04ca304dcd6a9c87a8e754147bf94f3f74e145 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 03:12:32 +0000 Subject: [PATCH 054/249] 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_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 +-- 15 files changed, 264 insertions(+), 264 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3b83ff88..4139d218 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-da33ae98e5bcc526235f1ebcdf334a63c9f874195e6f4c89a8ebc13c2b686bd4.yml -openapi_spec_hash: 250d19d239bfbb6c908131c18e33d8cd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8b5fdc0939aabdb8948aba920990db4255e7c50a1b38b7246df7f2739f4f8d77.yml +openapi_spec_hash: 591e244acffc27181a13a569298c1f53 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 330a2740..a0734891 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="ea", + message_id="consequatur", 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="ea", + message_id="consequatur", 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="ea", + message_id="consequatur", 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="ea", + message_id="consequatur", 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="ea", + message_id="consequatur", 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="ea", + message_id="consequatur", 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="ea", + message_id="consequatur", 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="ea", + message_id="consequatur", 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="ea", + message_id="consequatur", 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="ea", + message_id="consequatur", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 71784680..eab16a1b 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="nostrum", + list_id="voluptatem", 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="nostrum", + list_id="voluptatem", 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="nostrum", + list_id="voluptatem", 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="nostrum", + list_id="voluptatem", 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="nostrum", + list_id="voluptatem", 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="nostrum", + list_id="voluptatem", 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="nostrum", + list_id="voluptatem", 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="nostrum", + list_id="voluptatem", 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="nostrum", + list_id="voluptatem", 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="nostrum", + list_id="voluptatem", 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="nostrum", + list_id="voluptatem", 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="nostrum", + list_id="voluptatem", 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="nostrum", + list_id="voluptatem", 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="nostrum", + list_id="voluptatem", 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="nostrum", + list_id="voluptatem", 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="nostrum", + list_id="voluptatem", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index f29a343f..c1a63acc 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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 7549791e..aa735c97 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 fc7b1635..2ced6cb5 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 ffcd9662..76229116 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + story_id="ut", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index cb4f0cfb..7506d9b8 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", + "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( - "quia", + "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( - "quia", + "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( - "quia", + "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( - "quia", + "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( - "quia", + "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 c5ffc8b6..29a52012 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_id="dolorum", auth_type="raw_data", - cookies="quis", + cookies="at", custom_proxy={ "host": "proxy.example.com", - "password": "q|_}$Qz", + "password": 'kQa")ly-4y', "port": 8080, - "username": "odit", + "username": "nam", }, - email="lonie02@example.net", - force_connect=False, - name="quia", - password=")kaQB>&qj^[", + email="orn.yvette@example.net", + force_connect=True, + name="eius", + password="a&:t=8tFYho$;u.2", proxy_country="uk", - user_agent="earum", - xbc="dolor", + user_agent="nostrum", + 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="ut", + auth_id="dolorum", auth_type="raw_data", - cookies="quis", + cookies="at", custom_proxy={ "host": "proxy.example.com", - "password": "q|_}$Qz", + "password": 'kQa")ly-4y', "port": 8080, - "username": "odit", + "username": "nam", }, - email="lonie02@example.net", - force_connect=False, - name="quia", - password=")kaQB>&qj^[", + email="orn.yvette@example.net", + force_connect=True, + name="eius", + password="a&:t=8tFYho$;u.2", proxy_country="uk", - user_agent="earum", - xbc="dolor", + user_agent="nostrum", + xbc="non", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index bea1ef2e..4d3e426f 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="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="tags", + 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 89a091e7..b1622f62 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": ["oz"]}, + filter={"tags": ["hmdxyokoztzxdi"]}, 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="repudiandae", + smart_link_id="et", ) 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="repudiandae", + smart_link_id="et", 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="repudiandae", + smart_link_id="et", ) 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="repudiandae", + smart_link_id="et", ) 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="et", + smart_link_id="consequatur", ) 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="et", + smart_link_id="consequatur", 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="et", + smart_link_id="consequatur", ) 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="et", + smart_link_id="consequatur", ) 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="in", + smart_link_id="quasi", ) 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="in", + smart_link_id="quasi", 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="in", + smart_link_id="quasi", ) 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="in", + smart_link_id="quasi", ) 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="suscipit", + smart_link_id="ducimus", ) 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="suscipit", + smart_link_id="ducimus", 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="suscipit", + smart_link_id="ducimus", ) 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="suscipit", + smart_link_id="ducimus", ) 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="corrupti", + 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="corrupti", + 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="corrupti", + 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="corrupti", + 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="repellendus", + smart_link_id="quidem", ) 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="repellendus", + smart_link_id="quidem", 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="repellendus", + smart_link_id="quidem", ) 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="repellendus", + smart_link_id="quidem", ) 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": ["oz"]}, + filter={"tags": ["hmdxyokoztzxdi"]}, 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="repudiandae", + smart_link_id="et", ) 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="repudiandae", + smart_link_id="et", 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="repudiandae", + smart_link_id="et", ) 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="repudiandae", + smart_link_id="et", ) 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="et", + smart_link_id="consequatur", ) 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="et", + smart_link_id="consequatur", 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="et", + smart_link_id="consequatur", ) 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="et", + smart_link_id="consequatur", ) 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="in", + smart_link_id="quasi", ) 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="in", + smart_link_id="quasi", 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="in", + smart_link_id="quasi", ) 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="in", + smart_link_id="quasi", ) 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="suscipit", + smart_link_id="ducimus", ) 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="suscipit", + smart_link_id="ducimus", 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="suscipit", + smart_link_id="ducimus", ) 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="suscipit", + smart_link_id="ducimus", ) 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="corrupti", + 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="corrupti", + 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="corrupti", + 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="corrupti", + 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="repellendus", + smart_link_id="quidem", ) 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="repellendus", + smart_link_id="quidem", 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="repellendus", + smart_link_id="quidem", ) 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="repellendus", + smart_link_id="quidem", ) 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 8fa66965..88d3650f 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": "qdqkngicrdxlastebmwrvz", - "tags": ["yrp"], + "search": "vdvrydwozfcnjncqirit", + "tags": ["hotgijkvtcwwqhucl"], }, 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": "xybgivrdqmxqdorwtcso", - "tags": ["zjkajkrdwdejzf"], + "search": "qbayfsfxmuceevhvvuvxrirc", + "tags": ["goprahflbosrjrt"], }, 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": "zjkz", - "tags": ["xjwjlwvbqhsl"], + "include_smart_links": True, + "search": "petshdzztomtjilsfraok", + "tags": ["anwrcukgjmptdnhe"], }, 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": "uxoqidqzjbbdndjs", - "tags": ["tlxxjnajyxnkarbxvzesx"], + "search": "pa", + "tags": ["rmcqgymdzvocoinlk"], }, 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": "qdqkngicrdxlastebmwrvz", - "tags": ["yrp"], + "search": "vdvrydwozfcnjncqirit", + "tags": ["hotgijkvtcwwqhucl"], }, 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": "xybgivrdqmxqdorwtcso", - "tags": ["zjkajkrdwdejzf"], + "search": "qbayfsfxmuceevhvvuvxrirc", + "tags": ["goprahflbosrjrt"], }, 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": "zjkz", - "tags": ["xjwjlwvbqhsl"], + "include_smart_links": True, + "search": "petshdzztomtjilsfraok", + "tags": ["anwrcukgjmptdnhe"], }, 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": "uxoqidqzjbbdndjs", - "tags": ["tlxxjnajyxnkarbxvzesx"], + "search": "pa", + "tags": ["rmcqgymdzvocoinlk"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 3435c8c9..5c9f6618 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="dolorem", + tracking_link_id="placeat", 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="dolorem", + tracking_link_id="placeat", 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="dolorem", + tracking_link_id="placeat", 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="dolorem", + tracking_link_id="placeat", 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="dolorem", + tracking_link_id="placeat", 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="saepe", + tracking_link_id="natus", 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="saepe", + tracking_link_id="natus", 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="saepe", + tracking_link_id="natus", 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="saepe", + tracking_link_id="natus", 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="saepe", + tracking_link_id="natus", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="dolorem", + tracking_link_id="placeat", 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="dolorem", + tracking_link_id="placeat", 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="dolorem", + tracking_link_id="placeat", 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="dolorem", + tracking_link_id="placeat", 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="dolorem", + tracking_link_id="placeat", 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="saepe", + tracking_link_id="natus", 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="saepe", + tracking_link_id="natus", 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="saepe", + tracking_link_id="natus", 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="saepe", + tracking_link_id="natus", 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="saepe", + tracking_link_id="natus", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index c279dc69..aa2e3b8d 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="officia", + trial_link_id="inventore", 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="officia", + trial_link_id="inventore", 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="officia", + trial_link_id="inventore", 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="officia", + trial_link_id="inventore", 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="officia", + trial_link_id="inventore", 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="officia", + trial_link_id="inventore", 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="officia", + trial_link_id="inventore", 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="officia", + trial_link_id="inventore", 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="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="est", + 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="est", + 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="est", + 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="quam", + trial_link_id="natus", 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="natus", 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="natus", 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="natus", 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="natus", 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="non", + trial_link_id="quis", 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="non", + trial_link_id="quis", 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="non", + trial_link_id="quis", 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="non", + trial_link_id="quis", 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="non", + trial_link_id="quis", 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="officia", + trial_link_id="inventore", 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="officia", + trial_link_id="inventore", 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="officia", + trial_link_id="inventore", 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="officia", + trial_link_id="inventore", 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="officia", + trial_link_id="inventore", 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="officia", + trial_link_id="inventore", 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="officia", + trial_link_id="inventore", 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="officia", + trial_link_id="inventore", 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="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="est", + 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="est", + 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="est", + 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="quam", + trial_link_id="natus", 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="natus", 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="natus", 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="natus", 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="natus", 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="non", + trial_link_id="quis", 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="non", + trial_link_id="quis", 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="non", + trial_link_id="quis", 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="non", + trial_link_id="quis", 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="non", + trial_link_id="quis", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 963577ac..f55d0201 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="yjkjvfzjxodob", + name="sxkyuoqfspwq", ) 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="yjkjvfzjxodob", + name="sxkyuoqfspwq", ) 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="yjkjvfzjxodob", + name="sxkyuoqfspwq", ) 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="yjkjvfzjxodob", + name="sxkyuoqfspwq", ) @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="yjkjvfzjxodob", + name="sxkyuoqfspwq", ) 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="yjkjvfzjxodob", + name="sxkyuoqfspwq", ) 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="yjkjvfzjxodob", + name="sxkyuoqfspwq", ) 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="yjkjvfzjxodob", + name="sxkyuoqfspwq", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 304511738133992687cbe662a050ef7601886cb3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 14:12:32 +0000 Subject: [PATCH 055/249] 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_profiles.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 +-- 18 files changed, 268 insertions(+), 268 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4139d218..cb037ceb 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-8b5fdc0939aabdb8948aba920990db4255e7c50a1b38b7246df7f2739f4f8d77.yml -openapi_spec_hash: 591e244acffc27181a13a569298c1f53 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-263cac3e045d4befba748e9a0a69a6fedb3a5c5bc544b1264a5c67bb421bd2d6.yml +openapi_spec_hash: be3d9e1e44ef8e34ae6147f0c4cf970e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index a0734891..8d6e8123 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="consequatur", + message_id="magnam", 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="consequatur", + message_id="magnam", 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="consequatur", + message_id="magnam", 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="consequatur", + message_id="magnam", 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="consequatur", + message_id="magnam", 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="consequatur", + message_id="magnam", 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="consequatur", + message_id="magnam", 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="consequatur", + message_id="magnam", 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="consequatur", + message_id="magnam", 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="consequatur", + message_id="magnam", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index eab16a1b..776cbd57 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="voluptatem", + list_id="enim", 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="voluptatem", + list_id="enim", 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="voluptatem", + list_id="enim", 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="voluptatem", + list_id="enim", 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="voluptatem", + list_id="enim", 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="voluptatem", + list_id="enim", 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="voluptatem", + list_id="enim", 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="voluptatem", + list_id="enim", 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="voluptatem", + list_id="enim", 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="voluptatem", + list_id="enim", 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="voluptatem", + list_id="enim", 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="voluptatem", + list_id="enim", 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="voluptatem", + list_id="enim", 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="voluptatem", + list_id="enim", 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="voluptatem", + list_id="enim", 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="voluptatem", + list_id="enim", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index c1a63acc..08349377 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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 aa735c97..444937ba 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 2ced6cb5..9c80483e 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 544df889..9664075f 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 76229116..4230ef38 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="culpa", 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="culpa", 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="culpa", 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="culpa", 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="culpa", 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="culpa", 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="culpa", 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="culpa", 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="culpa", 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="culpa", 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="culpa", 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="culpa", 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="culpa", 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="culpa", 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="culpa", 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="culpa", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 7506d9b8..1eb7ecf9 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", + "voluptate", ) 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", + "voluptate", ) 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", + "voluptate", ) 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", + "voluptate", ) 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", + "voluptate", ) 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", + "voluptate", ) 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 29a52012..3f404dbc 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="dolorum", + auth_id="autem", auth_type="raw_data", - cookies="at", + cookies="in", custom_proxy={ "host": "proxy.example.com", - "password": 'kQa")ly-4y', + "password": "GFt6s.!G0", "port": 8080, - "username": "nam", + "username": "provident", }, - email="orn.yvette@example.net", - force_connect=True, - name="eius", - password="a&:t=8tFYho$;u.2", + email="mann.tamara@example.net", + force_connect=False, + name="nihil", + password="0!cN`/'2fE]&[K", proxy_country="uk", - user_agent="nostrum", - xbc="non", + user_agent="asperiores", + 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="dolorum", + auth_id="autem", auth_type="raw_data", - cookies="at", + cookies="in", custom_proxy={ "host": "proxy.example.com", - "password": 'kQa")ly-4y', + "password": "GFt6s.!G0", "port": 8080, - "username": "nam", + "username": "provident", }, - email="orn.yvette@example.net", - force_connect=True, - name="eius", - password="a&:t=8tFYho$;u.2", + email="mann.tamara@example.net", + force_connect=False, + name="nihil", + password="0!cN`/'2fE]&[K", proxy_country="uk", - user_agent="nostrum", - xbc="non", + user_agent="asperiores", + 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 3597ede6..9249f386 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 4d3e426f..bea1ef2e 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 bd4f6161..65694e23 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 b1622f62..ac8cca79 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": ["hmdxyokoztzxdi"]}, + filter={"tags": ["opgvgl"]}, 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="et", + smart_link_id="dolores", ) 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="et", + smart_link_id="dolores", 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="et", + smart_link_id="dolores", ) 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="et", + smart_link_id="dolores", ) 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="consequatur", + smart_link_id="qui", ) 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="consequatur", + smart_link_id="qui", 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="consequatur", + smart_link_id="qui", ) 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="consequatur", + smart_link_id="qui", ) 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="quasi", + smart_link_id="qui", ) 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="quasi", + smart_link_id="qui", 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="quasi", + smart_link_id="qui", ) 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="quasi", + smart_link_id="qui", ) 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="ducimus", + smart_link_id="quibusdam", ) 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="ducimus", + smart_link_id="quibusdam", 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="ducimus", + smart_link_id="quibusdam", ) 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="ducimus", + smart_link_id="quibusdam", ) 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="laborum", ) 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="laborum", 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="laborum", ) 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="laborum", ) 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="quidem", + smart_link_id="consectetur", ) 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="quidem", + smart_link_id="consectetur", 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="quidem", + smart_link_id="consectetur", ) 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="quidem", + smart_link_id="consectetur", ) 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": ["hmdxyokoztzxdi"]}, + filter={"tags": ["opgvgl"]}, 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="et", + smart_link_id="dolores", ) 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="et", + smart_link_id="dolores", 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="et", + smart_link_id="dolores", ) 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="et", + smart_link_id="dolores", ) 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="consequatur", + smart_link_id="qui", ) 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="consequatur", + smart_link_id="qui", 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="consequatur", + smart_link_id="qui", ) 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="consequatur", + smart_link_id="qui", ) 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="quasi", + smart_link_id="qui", ) 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="quasi", + smart_link_id="qui", 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="quasi", + smart_link_id="qui", ) 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="quasi", + smart_link_id="qui", ) 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="ducimus", + smart_link_id="quibusdam", ) 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="ducimus", + smart_link_id="quibusdam", 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="ducimus", + smart_link_id="quibusdam", ) 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="ducimus", + smart_link_id="quibusdam", ) 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="laborum", ) 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="laborum", 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="laborum", ) 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="laborum", ) 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="quidem", + smart_link_id="consectetur", ) 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="quidem", + smart_link_id="consectetur", 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="quidem", + smart_link_id="consectetur", ) 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="quidem", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index 88d3650f..6c5732e6 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": "vdvrydwozfcnjncqirit", - "tags": ["hotgijkvtcwwqhucl"], + "search": "mmmropkqp", + "tags": ["fsfpecppblkfjaqxygweqcgw"], }, 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": "qbayfsfxmuceevhvvuvxrirc", - "tags": ["goprahflbosrjrt"], + "search": "stazscocjokc", + "tags": ["frurmpvebche"], }, 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": "petshdzztomtjilsfraok", - "tags": ["anwrcukgjmptdnhe"], + "search": "zbztowhsnbflmkeepjuvm", + "tags": ["wspznaptbmdzgmnz"], }, 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": "pa", - "tags": ["rmcqgymdzvocoinlk"], + "search": "zgddltgmtfwxjy", + "tags": ["anwnfynnyrdjmllv"], }, 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": "vdvrydwozfcnjncqirit", - "tags": ["hotgijkvtcwwqhucl"], + "search": "mmmropkqp", + "tags": ["fsfpecppblkfjaqxygweqcgw"], }, 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": "qbayfsfxmuceevhvvuvxrirc", - "tags": ["goprahflbosrjrt"], + "search": "stazscocjokc", + "tags": ["frurmpvebche"], }, 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": "petshdzztomtjilsfraok", - "tags": ["anwrcukgjmptdnhe"], + "search": "zbztowhsnbflmkeepjuvm", + "tags": ["wspznaptbmdzgmnz"], }, 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": "pa", - "tags": ["rmcqgymdzvocoinlk"], + "search": "zgddltgmtfwxjy", + "tags": ["anwnfynnyrdjmllv"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 5c9f6618..0a48f8c7 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="repudiandae", + tracking_link_id="suscipit", 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="repudiandae", + tracking_link_id="suscipit", 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="repudiandae", + tracking_link_id="suscipit", 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="repudiandae", + tracking_link_id="suscipit", 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="repudiandae", + tracking_link_id="suscipit", 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="repudiandae", + tracking_link_id="suscipit", 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="repudiandae", + tracking_link_id="suscipit", 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="repudiandae", + tracking_link_id="suscipit", 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="placeat", + tracking_link_id="iste", 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="placeat", + tracking_link_id="iste", 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="placeat", + tracking_link_id="iste", 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="placeat", + tracking_link_id="iste", 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="placeat", + tracking_link_id="iste", 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="repudiandae", + tracking_link_id="suscipit", 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="repudiandae", + tracking_link_id="suscipit", 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="repudiandae", + tracking_link_id="suscipit", 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="repudiandae", + tracking_link_id="suscipit", 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="repudiandae", + tracking_link_id="suscipit", 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="repudiandae", + tracking_link_id="suscipit", 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="repudiandae", + tracking_link_id="suscipit", 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="repudiandae", + tracking_link_id="suscipit", 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="placeat", + tracking_link_id="iste", 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="placeat", + tracking_link_id="iste", 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="placeat", + tracking_link_id="iste", 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="placeat", + tracking_link_id="iste", 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="placeat", + tracking_link_id="iste", 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + tracking_link_id="placeat", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index aa2e3b8d..b007b76e 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="inventore", + trial_link_id="id", 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="inventore", + trial_link_id="id", 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="inventore", + trial_link_id="id", 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="inventore", + trial_link_id="id", 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="inventore", + trial_link_id="id", 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="inventore", + trial_link_id="id", 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="inventore", + trial_link_id="id", 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="inventore", + trial_link_id="id", 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="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="ea", + 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="ea", + 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="ea", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="quis", + trial_link_id="placeat", 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="quis", + trial_link_id="placeat", 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="quis", + trial_link_id="placeat", 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="quis", + trial_link_id="placeat", 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="quis", + trial_link_id="placeat", 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="inventore", + trial_link_id="id", 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="inventore", + trial_link_id="id", 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="inventore", + trial_link_id="id", 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="inventore", + trial_link_id="id", 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="inventore", + trial_link_id="id", 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="inventore", + trial_link_id="id", 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="inventore", + trial_link_id="id", 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="inventore", + trial_link_id="id", 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="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="ea", + 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="ea", + 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="ea", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="quis", + trial_link_id="placeat", 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="quis", + trial_link_id="placeat", 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="quis", + trial_link_id="placeat", 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="quis", + trial_link_id="placeat", 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="quis", + trial_link_id="placeat", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index f55d0201..ca21ed64 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="sxkyuoqfspwq", + name="x", ) 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="sxkyuoqfspwq", + name="x", ) 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="sxkyuoqfspwq", + name="x", ) 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="sxkyuoqfspwq", + name="x", ) @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="sxkyuoqfspwq", + name="x", ) 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="sxkyuoqfspwq", + name="x", ) 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="sxkyuoqfspwq", + name="x", ) 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="sxkyuoqfspwq", + name="x", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 661fcbb83e78132732f94a2fa03ba0d946b7a924 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 16:12:37 +0000 Subject: [PATCH 056/249] 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_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 84 +++++++++--------- 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 cb037ceb..c9fc6007 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-263cac3e045d4befba748e9a0a69a6fedb3a5c5bc544b1264a5c67bb421bd2d6.yml -openapi_spec_hash: be3d9e1e44ef8e34ae6147f0c4cf970e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f6e36c82e08f5fad5bb9f5d6916e883732f66f2944110437a2b3202ccd8b48db.yml +openapi_spec_hash: 795fb6f49f43da3bfba49f26a2285d23 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 8d6e8123..21bc07aa 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="magnam", + message_id="deserunt", 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="magnam", + message_id="deserunt", 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="magnam", + message_id="deserunt", 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="magnam", + message_id="deserunt", 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="magnam", + message_id="deserunt", 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="magnam", + message_id="deserunt", 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="magnam", + message_id="deserunt", 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="magnam", + message_id="deserunt", 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="magnam", + message_id="deserunt", 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="magnam", + message_id="deserunt", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 776cbd57..75012dab 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="enim", + list_id="esse", 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="enim", + list_id="esse", 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="enim", + list_id="esse", 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="enim", + list_id="esse", 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="enim", + list_id="esse", 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="enim", + list_id="esse", 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="enim", + list_id="esse", 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="enim", + list_id="esse", 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="enim", + list_id="esse", 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="enim", + list_id="esse", 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="enim", + list_id="esse", 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="enim", + list_id="esse", 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="enim", + list_id="esse", 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="enim", + list_id="esse", 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="enim", + list_id="esse", 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="enim", + list_id="esse", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 08349377..8912b788 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="optio", + post_id="repellat", 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="optio", + post_id="repellat", 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="optio", + post_id="repellat", 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="optio", + post_id="repellat", 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="optio", + post_id="repellat", 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="optio", + post_id="repellat", 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="optio", + post_id="repellat", 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="optio", + post_id="repellat", 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="optio", + post_id="repellat", 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="optio", + post_id="repellat", 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="optio", + post_id="repellat", 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="optio", + post_id="repellat", 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="optio", + post_id="repellat", 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="optio", + post_id="repellat", 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="optio", + post_id="repellat", 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="optio", + post_id="repellat", 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="optio", + post_id="repellat", 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="optio", + post_id="repellat", 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="optio", + post_id="repellat", 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="optio", + post_id="repellat", 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 444937ba..a62ccbd3 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 9c80483e..fc7b1635 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 4230ef38..517ccd47 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="culpa", + path_story_id="vel", 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="culpa", + path_story_id="vel", 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="culpa", + path_story_id="vel", 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="culpa", + path_story_id="vel", 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="culpa", + story_id="vel", 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="culpa", + story_id="vel", 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="culpa", + story_id="vel", 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="culpa", + story_id="vel", 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="culpa", + path_story_id="vel", 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="culpa", + path_story_id="vel", 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="culpa", + path_story_id="vel", 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="culpa", + path_story_id="vel", 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="culpa", + story_id="vel", 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="culpa", + story_id="vel", 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="culpa", + story_id="vel", 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="culpa", + story_id="vel", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 1eb7ecf9..eea65f39 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( - "voluptate", + "inventore", ) 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( - "voluptate", + "inventore", ) 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( - "voluptate", + "inventore", ) 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( - "voluptate", + "inventore", ) 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( - "voluptate", + "inventore", ) 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( - "voluptate", + "inventore", ) 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 3f404dbc..2912d6eb 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="autem", + auth_id="sed", auth_type="raw_data", - cookies="in", + cookies="asperiores", custom_proxy={ "host": "proxy.example.com", - "password": "GFt6s.!G0", + "password": "^_;b'4a)", "port": 8080, - "username": "provident", + "username": "sit", }, - email="mann.tamara@example.net", - force_connect=False, - name="nihil", - password="0!cN`/'2fE]&[K", - proxy_country="uk", - user_agent="asperiores", - xbc="consequuntur", + email="stoltenberg.candida@example.net", + force_connect=True, + name="sint", + password="6\\5i5,./Q$G6?Z", + proxy_country="us", + user_agent="cum", + xbc="odit", ) 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="autem", + auth_id="sed", auth_type="raw_data", - cookies="in", + cookies="asperiores", custom_proxy={ "host": "proxy.example.com", - "password": "GFt6s.!G0", + "password": "^_;b'4a)", "port": 8080, - "username": "provident", + "username": "sit", }, - email="mann.tamara@example.net", - force_connect=False, - name="nihil", - password="0!cN`/'2fE]&[K", - proxy_country="uk", - user_agent="asperiores", - xbc="consequuntur", + email="stoltenberg.candida@example.net", + force_connect=True, + name="sint", + password="6\\5i5,./Q$G6?Z", + proxy_country="us", + user_agent="cum", + xbc="odit", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index bea1ef2e..583d8ad4 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="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="tags", + type="all", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e23..bd4f6161 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 ac8cca79..3e969473 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": ["opgvgl"]}, + filter={"tags": ["kxfqggtktemrxekosin"]}, 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="dolores", + smart_link_id="id", ) 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="dolores", + smart_link_id="id", 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="dolores", + smart_link_id="id", ) 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="dolores", + smart_link_id="id", ) 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="qui", + smart_link_id="sequi", ) 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="qui", + smart_link_id="sequi", 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="qui", + smart_link_id="sequi", ) 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="qui", + smart_link_id="sequi", ) 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="quibusdam", + smart_link_id="eveniet", ) 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="quibusdam", + smart_link_id="eveniet", 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="quibusdam", + smart_link_id="eveniet", ) 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="quibusdam", + smart_link_id="eveniet", ) 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="laborum", + smart_link_id="est", ) 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="laborum", + smart_link_id="est", 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="laborum", + smart_link_id="est", ) 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="laborum", + smart_link_id="est", ) 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="consectetur", + smart_link_id="velit", ) 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="consectetur", + smart_link_id="velit", 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="consectetur", + smart_link_id="velit", ) 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="consectetur", + smart_link_id="velit", ) 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": ["opgvgl"]}, + filter={"tags": ["kxfqggtktemrxekosin"]}, 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="dolores", + smart_link_id="id", ) 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="dolores", + smart_link_id="id", 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="dolores", + smart_link_id="id", ) 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="dolores", + smart_link_id="id", ) 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="qui", + smart_link_id="sequi", ) 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="qui", + smart_link_id="sequi", 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="qui", + smart_link_id="sequi", ) 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="qui", + smart_link_id="sequi", ) 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="quibusdam", + smart_link_id="eveniet", ) 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="quibusdam", + smart_link_id="eveniet", 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="quibusdam", + smart_link_id="eveniet", ) 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="quibusdam", + smart_link_id="eveniet", ) 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="laborum", + smart_link_id="est", ) 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="laborum", + smart_link_id="est", 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="laborum", + smart_link_id="est", ) 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="laborum", + smart_link_id="est", ) 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="consectetur", + smart_link_id="velit", ) 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="consectetur", + smart_link_id="velit", 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="consectetur", + smart_link_id="velit", ) 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="consectetur", + smart_link_id="velit", ) 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 6c5732e6..d415d98c 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": "mmmropkqp", - "tags": ["fsfpecppblkfjaqxygweqcgw"], + "search": "zwtbzmtki", + "tags": ["e"], }, 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": "stazscocjokc", - "tags": ["frurmpvebche"], + "search": "tybkmvcpsnm", + "tags": ["mhifkwshyj"], }, 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": "zbztowhsnbflmkeepjuvm", - "tags": ["wspznaptbmdzgmnz"], + "include_smart_links": False, + "search": "zhxyckypbytvunxhnkvxks", + "tags": ["flndzdonxidw"], }, 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": "zgddltgmtfwxjy", - "tags": ["anwnfynnyrdjmllv"], + "search": "tvizuwdbkyxjjouwfnhwb", + "tags": ["btawczskwsunyhnlmxqxuthes"], }, 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": "mmmropkqp", - "tags": ["fsfpecppblkfjaqxygweqcgw"], + "search": "zwtbzmtki", + "tags": ["e"], }, 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": "stazscocjokc", - "tags": ["frurmpvebche"], + "search": "tybkmvcpsnm", + "tags": ["mhifkwshyj"], }, 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": "zbztowhsnbflmkeepjuvm", - "tags": ["wspznaptbmdzgmnz"], + "include_smart_links": False, + "search": "zhxyckypbytvunxhnkvxks", + "tags": ["flndzdonxidw"], }, 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": "zgddltgmtfwxjy", - "tags": ["anwnfynnyrdjmllv"], + "search": "tvizuwdbkyxjjouwfnhwb", + "tags": ["btawczskwsunyhnlmxqxuthes"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 0a48f8c7..dec2b3d9 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="suscipit", + tracking_link_id="incidunt", 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="suscipit", + tracking_link_id="incidunt", 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="suscipit", + tracking_link_id="incidunt", 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="suscipit", + tracking_link_id="incidunt", 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="suscipit", + tracking_link_id="incidunt", 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="suscipit", + tracking_link_id="incidunt", 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="suscipit", + tracking_link_id="incidunt", 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="suscipit", + tracking_link_id="incidunt", 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="iste", + tracking_link_id="quo", 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="iste", + tracking_link_id="quo", 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="iste", + tracking_link_id="quo", 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="iste", + tracking_link_id="quo", 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="iste", + tracking_link_id="quo", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="suscipit", + tracking_link_id="incidunt", 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="suscipit", + tracking_link_id="incidunt", 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="suscipit", + tracking_link_id="incidunt", 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="suscipit", + tracking_link_id="incidunt", 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="suscipit", + tracking_link_id="incidunt", 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="suscipit", + tracking_link_id="incidunt", 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="suscipit", + tracking_link_id="incidunt", 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="suscipit", + tracking_link_id="incidunt", 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="iste", + tracking_link_id="quo", 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="iste", + tracking_link_id="quo", 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="iste", + tracking_link_id="quo", 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="iste", + tracking_link_id="quo", 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="iste", + tracking_link_id="quo", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="dolores", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index b007b76e..97634704 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="id", + trial_link_id="qui", 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="id", + trial_link_id="qui", 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="id", + trial_link_id="qui", 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="id", + trial_link_id="qui", 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="id", + trial_link_id="qui", 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="id", + trial_link_id="qui", 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="id", + trial_link_id="qui", 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="id", + trial_link_id="qui", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="minus", + trial_link_id="nesciunt", 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="minus", + trial_link_id="nesciunt", 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="minus", + trial_link_id="nesciunt", 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="minus", + trial_link_id="nesciunt", 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="minus", + trial_link_id="nesciunt", 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="placeat", + trial_link_id="rerum", 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="placeat", + trial_link_id="rerum", 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="placeat", + trial_link_id="rerum", 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="placeat", + trial_link_id="rerum", 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="placeat", + trial_link_id="rerum", 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="id", + trial_link_id="qui", 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="id", + trial_link_id="qui", 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="id", + trial_link_id="qui", 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="id", + trial_link_id="qui", 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="id", + trial_link_id="qui", 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="id", + trial_link_id="qui", 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="id", + trial_link_id="qui", 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="id", + trial_link_id="qui", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="minus", + trial_link_id="nesciunt", 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="minus", + trial_link_id="nesciunt", 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="minus", + trial_link_id="nesciunt", 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="minus", + trial_link_id="nesciunt", 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="minus", + trial_link_id="nesciunt", 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="placeat", + trial_link_id="rerum", 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="placeat", + trial_link_id="rerum", 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="placeat", + trial_link_id="rerum", 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="placeat", + trial_link_id="rerum", 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="placeat", + trial_link_id="rerum", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index ca21ed64..b59a60b2 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="x", + name="rnyfqwprhezulkobwbstmgk", ) 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="x", + name="rnyfqwprhezulkobwbstmgk", ) 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="x", + name="rnyfqwprhezulkobwbstmgk", ) 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="x", + name="rnyfqwprhezulkobwbstmgk", ) @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="x", + name="rnyfqwprhezulkobwbstmgk", ) 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="x", + name="rnyfqwprhezulkobwbstmgk", ) 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="x", + name="rnyfqwprhezulkobwbstmgk", ) 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="x", + name="rnyfqwprhezulkobwbstmgk", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 39eabdf3aa114aefab93cd6d62bb3c55e573d5f7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 17:12:33 +0000 Subject: [PATCH 057/249] 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 c9fc6007..5ac1876c 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-f6e36c82e08f5fad5bb9f5d6916e883732f66f2944110437a2b3202ccd8b48db.yml -openapi_spec_hash: 795fb6f49f43da3bfba49f26a2285d23 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-af197df44b689a21ccf5f008777f13c589a7dfb01a642e62015947db05495407.yml +openapi_spec_hash: b895823b686aaa881c95d960872c97f2 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 21bc07aa..10cfa2e6 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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 75012dab..957fb953 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="esse", + list_id="excepturi", 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="esse", + list_id="excepturi", 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="esse", + list_id="excepturi", 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="esse", + list_id="excepturi", 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="esse", + list_id="excepturi", 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="esse", + list_id="excepturi", 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="esse", + list_id="excepturi", 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="esse", + list_id="excepturi", 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="esse", + list_id="excepturi", 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="esse", + list_id="excepturi", 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="esse", + list_id="excepturi", 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="esse", + list_id="excepturi", 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="esse", + list_id="excepturi", 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="esse", + list_id="excepturi", 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="esse", + list_id="excepturi", 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="esse", + list_id="excepturi", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 8912b788..41098e44 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="repellat", + post_id="iusto", 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="repellat", + post_id="iusto", 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="repellat", + post_id="iusto", 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="repellat", + post_id="iusto", 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="repellat", + post_id="iusto", 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="repellat", + post_id="iusto", 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="repellat", + post_id="iusto", 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="repellat", + post_id="iusto", 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="repellat", + post_id="iusto", 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="repellat", + post_id="iusto", 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="repellat", + post_id="iusto", 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="repellat", + post_id="iusto", 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="repellat", + post_id="iusto", 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="repellat", + post_id="iusto", 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="repellat", + post_id="iusto", 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="repellat", + post_id="iusto", 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="repellat", + post_id="iusto", 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="repellat", + post_id="iusto", 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="repellat", + post_id="iusto", 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="repellat", + post_id="iusto", 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 a62ccbd3..444937ba 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 fc7b1635..b5f3d61a 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=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=6, + 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=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_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=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=6, + 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=6, + 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=6, + 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=6, + period=24, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 517ccd47..886b273c 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + story_id="est", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index eea65f39..761219e8 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( - "inventore", + "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( - "inventore", + "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( - "inventore", + "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( - "inventore", + "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( - "inventore", + "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( - "inventore", + "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 2912d6eb..04e0ad70 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="raw_data", - cookies="asperiores", + auth_id="optio", + auth_type="email_password", + cookies="fugiat", custom_proxy={ "host": "proxy.example.com", - "password": "^_;b'4a)", + "password": "Xk';DA", "port": 8080, - "username": "sit", + "username": "dolorum", }, - email="stoltenberg.candida@example.net", - force_connect=True, - name="sint", - password="6\\5i5,./Q$G6?Z", + email="murray.kaden@example.org", + force_connect=False, + name="esse", + password='R7S"60G3>bo{cg]otp>)', proxy_country="us", - user_agent="cum", - xbc="odit", + user_agent="ipsam", + 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="sed", - auth_type="raw_data", - cookies="asperiores", + auth_id="optio", + auth_type="email_password", + cookies="fugiat", custom_proxy={ "host": "proxy.example.com", - "password": "^_;b'4a)", + "password": "Xk';DA", "port": 8080, - "username": "sit", + "username": "dolorum", }, - email="stoltenberg.candida@example.net", - force_connect=True, - name="sint", - password="6\\5i5,./Q$G6?Z", + email="murray.kaden@example.org", + force_connect=False, + name="esse", + password='R7S"60G3>bo{cg]otp>)', proxy_country="us", - user_agent="cum", - xbc="odit", + user_agent="ipsam", + xbc="ut", ) 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 9249f386..3597ede6 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 583d8ad4..4fb0fa41 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 bd4f6161..65694e23 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 3e969473..db036a38 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": ["kxfqggtktemrxekosin"]}, + filter={"tags": ["yiqsfktdygatfqg"]}, 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="id", + smart_link_id="et", ) 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="id", + smart_link_id="et", 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="id", + smart_link_id="et", ) 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="id", + smart_link_id="et", ) 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="sequi", + smart_link_id="unde", ) 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="sequi", + smart_link_id="unde", 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="sequi", + smart_link_id="unde", ) 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="sequi", + smart_link_id="unde", ) 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="qui", + smart_link_id="itaque", ) 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="qui", + smart_link_id="itaque", 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="qui", + smart_link_id="itaque", ) 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="qui", + smart_link_id="itaque", ) 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="eveniet", + smart_link_id="quibusdam", ) 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="eveniet", + smart_link_id="quibusdam", 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="eveniet", + smart_link_id="quibusdam", ) 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="eveniet", + smart_link_id="quibusdam", ) 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="est", + smart_link_id="nostrum", ) 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="est", + smart_link_id="nostrum", 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="est", + smart_link_id="nostrum", ) 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="est", + smart_link_id="nostrum", ) 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="velit", + smart_link_id="consequatur", ) 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="velit", + smart_link_id="consequatur", 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="velit", + smart_link_id="consequatur", ) 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="velit", + smart_link_id="consequatur", ) 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": ["kxfqggtktemrxekosin"]}, + filter={"tags": ["yiqsfktdygatfqg"]}, 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="id", + smart_link_id="et", ) 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="id", + smart_link_id="et", 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="id", + smart_link_id="et", ) 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="id", + smart_link_id="et", ) 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="sequi", + smart_link_id="unde", ) 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="sequi", + smart_link_id="unde", 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="sequi", + smart_link_id="unde", ) 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="sequi", + smart_link_id="unde", ) 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="qui", + smart_link_id="itaque", ) 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="qui", + smart_link_id="itaque", 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="qui", + smart_link_id="itaque", ) 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="qui", + smart_link_id="itaque", ) 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="eveniet", + smart_link_id="quibusdam", ) 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="eveniet", + smart_link_id="quibusdam", 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="eveniet", + smart_link_id="quibusdam", ) 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="eveniet", + smart_link_id="quibusdam", ) 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="est", + smart_link_id="nostrum", ) 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="est", + smart_link_id="nostrum", 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="est", + smart_link_id="nostrum", ) 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="est", + smart_link_id="nostrum", ) 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="velit", + smart_link_id="consequatur", ) 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="velit", + smart_link_id="consequatur", 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="velit", + smart_link_id="consequatur", ) 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="velit", + 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 d415d98c..b5dda3d0 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": "zwtbzmtki", - "tags": ["e"], + "search": "wemwnhsplieawitpuwqio", + "tags": ["shvenrzfgh"], }, 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": "tybkmvcpsnm", - "tags": ["mhifkwshyj"], + "search": "hpqnrfxthkbh", + "tags": ["qv"], }, 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": "zhxyckypbytvunxhnkvxks", - "tags": ["flndzdonxidw"], + "search": "vsaphzzimyucwldsdaugrdxk", + "tags": ["xtsaehfjjxtlwxiltubkwfuau"], }, 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": "tvizuwdbkyxjjouwfnhwb", - "tags": ["btawczskwsunyhnlmxqxuthes"], + "include_smart_links": True, + "search": "q", + "tags": ["sbvvciklfvrsvyyav"], }, 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": "zwtbzmtki", - "tags": ["e"], + "search": "wemwnhsplieawitpuwqio", + "tags": ["shvenrzfgh"], }, 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": "tybkmvcpsnm", - "tags": ["mhifkwshyj"], + "search": "hpqnrfxthkbh", + "tags": ["qv"], }, 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": "zhxyckypbytvunxhnkvxks", - "tags": ["flndzdonxidw"], + "search": "vsaphzzimyucwldsdaugrdxk", + "tags": ["xtsaehfjjxtlwxiltubkwfuau"], }, 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": "tvizuwdbkyxjjouwfnhwb", - "tags": ["btawczskwsunyhnlmxqxuthes"], + "include_smart_links": True, + "search": "q", + "tags": ["sbvvciklfvrsvyyav"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index dec2b3d9..16f957ca 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="quo", + tracking_link_id="doloremque", 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="quo", + tracking_link_id="doloremque", 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="quo", + tracking_link_id="doloremque", 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="quo", + tracking_link_id="doloremque", 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="quo", + tracking_link_id="doloremque", 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="dolores", + tracking_link_id="eveniet", 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="dolores", + tracking_link_id="eveniet", 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="dolores", + tracking_link_id="eveniet", 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="dolores", + tracking_link_id="eveniet", 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="dolores", + tracking_link_id="eveniet", 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="quo", + tracking_link_id="doloremque", 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="quo", + tracking_link_id="doloremque", 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="quo", + tracking_link_id="doloremque", 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="quo", + tracking_link_id="doloremque", 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="quo", + tracking_link_id="doloremque", 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="dolores", + tracking_link_id="eveniet", 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="dolores", + tracking_link_id="eveniet", 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="dolores", + tracking_link_id="eveniet", 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="dolores", + tracking_link_id="eveniet", 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="dolores", + tracking_link_id="eveniet", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 97634704..afb9d4b0 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="qui", + trial_link_id="exercitationem", 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="qui", + trial_link_id="exercitationem", 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="qui", + trial_link_id="exercitationem", 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="qui", + trial_link_id="exercitationem", 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="qui", + trial_link_id="exercitationem", 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="qui", + trial_link_id="exercitationem", 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="qui", + trial_link_id="exercitationem", 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="qui", + trial_link_id="exercitationem", 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="doloribus", + trial_link_id="atque", 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="doloribus", + trial_link_id="atque", 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="doloribus", + trial_link_id="atque", 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="doloribus", + trial_link_id="atque", 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="nesciunt", + trial_link_id="dolore", 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="nesciunt", + trial_link_id="dolore", 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="nesciunt", + trial_link_id="dolore", 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="nesciunt", + trial_link_id="dolore", 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="nesciunt", + trial_link_id="dolore", 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="rerum", + trial_link_id="blanditiis", 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="rerum", + trial_link_id="blanditiis", 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="rerum", + trial_link_id="blanditiis", 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="rerum", + trial_link_id="blanditiis", 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="rerum", + trial_link_id="blanditiis", 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="qui", + trial_link_id="exercitationem", 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="qui", + trial_link_id="exercitationem", 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="qui", + trial_link_id="exercitationem", 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="qui", + trial_link_id="exercitationem", 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="qui", + trial_link_id="exercitationem", 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="qui", + trial_link_id="exercitationem", 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="qui", + trial_link_id="exercitationem", 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="qui", + trial_link_id="exercitationem", 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="doloribus", + trial_link_id="atque", 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="doloribus", + trial_link_id="atque", 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="doloribus", + trial_link_id="atque", 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="doloribus", + trial_link_id="atque", 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="nesciunt", + trial_link_id="dolore", 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="nesciunt", + trial_link_id="dolore", 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="nesciunt", + trial_link_id="dolore", 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="nesciunt", + trial_link_id="dolore", 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="nesciunt", + trial_link_id="dolore", 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="rerum", + trial_link_id="blanditiis", 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="rerum", + trial_link_id="blanditiis", 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="rerum", + trial_link_id="blanditiis", 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="rerum", + trial_link_id="blanditiis", 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="rerum", + trial_link_id="blanditiis", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index b59a60b2..7ee2c790 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="rnyfqwprhezulkobwbstmgk", + name="podfrfaciiirs", ) 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="rnyfqwprhezulkobwbstmgk", + name="podfrfaciiirs", ) 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="rnyfqwprhezulkobwbstmgk", + name="podfrfaciiirs", ) 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="rnyfqwprhezulkobwbstmgk", + name="podfrfaciiirs", ) @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="rnyfqwprhezulkobwbstmgk", + name="podfrfaciiirs", ) 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="rnyfqwprhezulkobwbstmgk", + name="podfrfaciiirs", ) 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="rnyfqwprhezulkobwbstmgk", + name="podfrfaciiirs", ) 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="rnyfqwprhezulkobwbstmgk", + name="podfrfaciiirs", ) @pytest.mark.skip(reason="Mock server tests are disabled") From d19b34eb66ef42f568b9d93e1bd3a75a2e2e841c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 19:12:37 +0000 Subject: [PATCH 058/249] 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_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 84 +++++++++--------- 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, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5ac1876c..f9bdd4fb 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-af197df44b689a21ccf5f008777f13c589a7dfb01a642e62015947db05495407.yml -openapi_spec_hash: b895823b686aaa881c95d960872c97f2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-07eceb58ed5394ac333eca8dee0ccb964bdacafc7910ea4db581cdf02a39937a.yml +openapi_spec_hash: ff9f0de601fbc019970527a1a1c8c0b0 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 10cfa2e6..7506a921 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 957fb953..f9d459e6 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="excepturi", + list_id="expedita", 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="excepturi", + list_id="expedita", 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="excepturi", + list_id="expedita", 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="excepturi", + list_id="expedita", 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="excepturi", + list_id="expedita", 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="excepturi", + list_id="expedita", 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="excepturi", + list_id="expedita", 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="excepturi", + list_id="expedita", 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="excepturi", + list_id="expedita", 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="excepturi", + list_id="expedita", 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="excepturi", + list_id="expedita", 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="excepturi", + list_id="expedita", 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="excepturi", + list_id="expedita", 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="excepturi", + list_id="expedita", 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="excepturi", + list_id="expedita", 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="excepturi", + list_id="expedita", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 41098e44..d6900946 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="iusto", + post_id="itaque", 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="iusto", + post_id="itaque", 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="iusto", + post_id="itaque", 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="iusto", + post_id="itaque", 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="iusto", + post_id="itaque", 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="iusto", + post_id="itaque", 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="iusto", + post_id="itaque", 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="iusto", + post_id="itaque", 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="iusto", + post_id="itaque", 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="iusto", + post_id="itaque", 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="iusto", + post_id="itaque", 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="iusto", + post_id="itaque", 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="iusto", + post_id="itaque", 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="iusto", + post_id="itaque", 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="iusto", + post_id="itaque", 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="iusto", + post_id="itaque", 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="iusto", + post_id="itaque", 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="iusto", + post_id="itaque", 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="iusto", + post_id="itaque", 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="iusto", + post_id="itaque", 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 444937ba..aa735c97 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 b5f3d61a..fc7b1635 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 9664075f..544df889 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 886b273c..08b0ea47 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 761219e8..da8d8d7b 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( - "perspiciatis", + "repellat", ) 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( - "perspiciatis", + "repellat", ) 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( - "perspiciatis", + "repellat", ) 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( - "perspiciatis", + "repellat", ) 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( - "perspiciatis", + "repellat", ) 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( - "perspiciatis", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 04e0ad70..4ab6e194 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="optio", - auth_type="email_password", - cookies="fugiat", + auth_id="alias", + auth_type="mobile_app", + cookies="iusto", custom_proxy={ "host": "proxy.example.com", - "password": "Xk';DA", + "password": ">|UNF]'AqQm@", "port": 8080, - "username": "dolorum", + "username": "libero", }, - email="murray.kaden@example.org", + email="mac.rogahn@example.net", force_connect=False, - name="esse", - password='R7S"60G3>bo{cg]otp>)', + name="quae", + password="FNAyb|+4xmPUUxk8%K", proxy_country="us", - user_agent="ipsam", - xbc="ut", + user_agent="incidunt", + 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="optio", - auth_type="email_password", - cookies="fugiat", + auth_id="alias", + auth_type="mobile_app", + cookies="iusto", custom_proxy={ "host": "proxy.example.com", - "password": "Xk';DA", + "password": ">|UNF]'AqQm@", "port": 8080, - "username": "dolorum", + "username": "libero", }, - email="murray.kaden@example.org", + email="mac.rogahn@example.net", force_connect=False, - name="esse", - password='R7S"60G3>bo{cg]otp>)', + name="quae", + password="FNAyb|+4xmPUUxk8%K", proxy_country="us", - user_agent="ipsam", - xbc="ut", + user_agent="incidunt", + 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 3597ede6..9249f386 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 4fb0fa41..1a80b275 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="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="subscriptions", + type="onlyfans", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e23..bd4f6161 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 db036a38..0245f025 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": ["yiqsfktdygatfqg"]}, + filter={"tags": ["ogreivuvxofkgxzpcorumba"]}, 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="et", + smart_link_id="enim", ) 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="et", + smart_link_id="enim", 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="et", + smart_link_id="enim", ) 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="et", + smart_link_id="enim", ) 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="iure", ) 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="iure", 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="iure", ) 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="iure", ) 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="itaque", + smart_link_id="ducimus", ) 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="itaque", + smart_link_id="ducimus", 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="itaque", + smart_link_id="ducimus", ) 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="itaque", + smart_link_id="ducimus", ) 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="nostrum", + smart_link_id="debitis", ) 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="nostrum", + smart_link_id="debitis", 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="nostrum", + smart_link_id="debitis", ) 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="nostrum", + smart_link_id="debitis", ) 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="consequatur", + smart_link_id="perspiciatis", ) 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="consequatur", + smart_link_id="perspiciatis", 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="consequatur", + smart_link_id="perspiciatis", ) 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="consequatur", + smart_link_id="perspiciatis", ) 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": ["yiqsfktdygatfqg"]}, + filter={"tags": ["ogreivuvxofkgxzpcorumba"]}, 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="et", + smart_link_id="enim", ) 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="et", + smart_link_id="enim", 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="et", + smart_link_id="enim", ) 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="et", + smart_link_id="enim", ) 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="iure", ) 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="iure", 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="iure", ) 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="iure", ) 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="itaque", + smart_link_id="ducimus", ) 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="itaque", + smart_link_id="ducimus", 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="itaque", + smart_link_id="ducimus", ) 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="itaque", + smart_link_id="ducimus", ) 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="nostrum", + smart_link_id="debitis", ) 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="nostrum", + smart_link_id="debitis", 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="nostrum", + smart_link_id="debitis", ) 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="nostrum", + smart_link_id="debitis", ) 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="consequatur", + smart_link_id="perspiciatis", ) 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="consequatur", + smart_link_id="perspiciatis", 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="consequatur", + smart_link_id="perspiciatis", ) 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="consequatur", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index b5dda3d0..5f6ffbc6 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": "wemwnhsplieawitpuwqio", - "tags": ["shvenrzfgh"], + "search": "uciw", + "tags": ["fgnggexqxxsjyanjutubx"], }, 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": "hpqnrfxthkbh", - "tags": ["qv"], + "search": "oud", + "tags": ["itiethtzcoths"], }, 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": "vsaphzzimyucwldsdaugrdxk", - "tags": ["xtsaehfjjxtlwxiltubkwfuau"], + "search": "ykzqofkqcihmopvhxmzner", + "tags": ["nxasfne"], }, 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": "q", - "tags": ["sbvvciklfvrsvyyav"], + "include_smart_links": False, + "search": "hxekaccpxb", + "tags": ["pdyxhazudduoullfhm"], }, 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": "wemwnhsplieawitpuwqio", - "tags": ["shvenrzfgh"], + "search": "uciw", + "tags": ["fgnggexqxxsjyanjutubx"], }, 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": "hpqnrfxthkbh", - "tags": ["qv"], + "search": "oud", + "tags": ["itiethtzcoths"], }, 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": "vsaphzzimyucwldsdaugrdxk", - "tags": ["xtsaehfjjxtlwxiltubkwfuau"], + "search": "ykzqofkqcihmopvhxmzner", + "tags": ["nxasfne"], }, 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": "q", - "tags": ["sbvvciklfvrsvyyav"], + "include_smart_links": False, + "search": "hxekaccpxb", + "tags": ["pdyxhazudduoullfhm"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 16f957ca..a6497144 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="eaque", 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="eaque", 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="eaque", 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="eaque", 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="eaque", 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="eaque", 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="eaque", 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="eaque", 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="doloremque", + tracking_link_id="quam", 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="doloremque", + tracking_link_id="quam", 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="doloremque", + tracking_link_id="quam", 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="doloremque", + tracking_link_id="quam", 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="doloremque", + tracking_link_id="quam", 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="eveniet", + tracking_link_id="culpa", 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="eveniet", + tracking_link_id="culpa", 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="eveniet", + tracking_link_id="culpa", 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="eveniet", + tracking_link_id="culpa", 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="eveniet", + tracking_link_id="culpa", 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="eaque", 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="eaque", 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="eaque", 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="eaque", 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="eaque", 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="eaque", 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="eaque", 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="eaque", 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="doloremque", + tracking_link_id="quam", 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="doloremque", + tracking_link_id="quam", 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="doloremque", + tracking_link_id="quam", 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="doloremque", + tracking_link_id="quam", 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="doloremque", + tracking_link_id="quam", 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="eveniet", + tracking_link_id="culpa", 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="eveniet", + tracking_link_id="culpa", 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="eveniet", + tracking_link_id="culpa", 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="eveniet", + tracking_link_id="culpa", 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="eveniet", + tracking_link_id="culpa", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index afb9d4b0..cf582e57 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="exercitationem", + trial_link_id="qui", 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="exercitationem", + trial_link_id="qui", 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="exercitationem", + trial_link_id="qui", 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="exercitationem", + trial_link_id="qui", 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="exercitationem", + trial_link_id="qui", 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="exercitationem", + trial_link_id="qui", 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="exercitationem", + trial_link_id="qui", 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="exercitationem", + trial_link_id="qui", 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="atque", + trial_link_id="in", 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="atque", + trial_link_id="in", 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="atque", + trial_link_id="in", 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="atque", + trial_link_id="in", 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="dolore", + trial_link_id="labore", 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="dolore", + trial_link_id="labore", 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="dolore", + trial_link_id="labore", 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="dolore", + trial_link_id="labore", 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="dolore", + trial_link_id="labore", 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="blanditiis", + 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="blanditiis", + 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="blanditiis", + 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="blanditiis", + 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="blanditiis", + 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="exercitationem", + trial_link_id="qui", 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="exercitationem", + trial_link_id="qui", 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="exercitationem", + trial_link_id="qui", 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="exercitationem", + trial_link_id="qui", 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="exercitationem", + trial_link_id="qui", 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="exercitationem", + trial_link_id="qui", 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="exercitationem", + trial_link_id="qui", 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="exercitationem", + trial_link_id="qui", 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="atque", + trial_link_id="in", 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="atque", + trial_link_id="in", 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="atque", + trial_link_id="in", 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="atque", + trial_link_id="in", 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="dolore", + trial_link_id="labore", 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="dolore", + trial_link_id="labore", 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="dolore", + trial_link_id="labore", 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="dolore", + trial_link_id="labore", 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="dolore", + trial_link_id="labore", 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="blanditiis", + 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="blanditiis", + 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="blanditiis", + 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="blanditiis", + 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="blanditiis", + trial_link_id="facere", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 7ee2c790..7af9c9ef 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="podfrfaciiirs", + name="iilvllxz", ) 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="podfrfaciiirs", + name="iilvllxz", ) 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="podfrfaciiirs", + name="iilvllxz", ) 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="podfrfaciiirs", + name="iilvllxz", ) @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="podfrfaciiirs", + name="iilvllxz", ) 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="podfrfaciiirs", + name="iilvllxz", ) 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="podfrfaciiirs", + name="iilvllxz", ) 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="podfrfaciiirs", + name="iilvllxz", ) @pytest.mark.skip(reason="Mock server tests are disabled") From b9bc8ef90c9c5cfbd5b81add12e94e78786b46b0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 21:12:32 +0000 Subject: [PATCH 059/249] 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_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 84 +++++++++--------- 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 ++-- 18 files changed, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index f9bdd4fb..b5ab9331 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-07eceb58ed5394ac333eca8dee0ccb964bdacafc7910ea4db581cdf02a39937a.yml -openapi_spec_hash: ff9f0de601fbc019970527a1a1c8c0b0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-60a31ab3f816257e17d983f69c76c823828284b70137e0ad9df8caa9c0a93572.yml +openapi_spec_hash: fd257565847fd80972c07d59aa4b57a3 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 7506a921..77938613 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="quisquam", 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="quisquam", 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="quisquam", 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="quisquam", 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="quisquam", 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="quisquam", 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="quisquam", 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="quisquam", 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="quisquam", 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="quisquam", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index f9d459e6..921871bc 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="expedita", + list_id="eum", 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="expedita", + list_id="eum", 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="expedita", + list_id="eum", 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="expedita", + list_id="eum", 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="expedita", + list_id="eum", 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="expedita", + list_id="eum", 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="expedita", + list_id="eum", 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="expedita", + list_id="eum", 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="expedita", + list_id="eum", 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="expedita", + list_id="eum", 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="expedita", + list_id="eum", 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="expedita", + list_id="eum", 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="expedita", + list_id="eum", 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="expedita", + list_id="eum", 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="expedita", + list_id="eum", 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="expedita", + list_id="eum", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index d6900946..051518ab 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="itaque", + post_id="sed", 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="itaque", + post_id="sed", 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="itaque", + post_id="sed", 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="itaque", + post_id="sed", 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="itaque", + post_id="sed", 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="itaque", + post_id="sed", 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="itaque", + post_id="sed", 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="itaque", + post_id="sed", 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="itaque", + post_id="sed", 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="itaque", + post_id="sed", 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="itaque", + post_id="sed", 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="itaque", + post_id="sed", 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="itaque", + post_id="sed", 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="itaque", + post_id="sed", 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="itaque", + post_id="sed", 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="itaque", + post_id="sed", 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="itaque", + post_id="sed", 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="itaque", + post_id="sed", 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="itaque", + post_id="sed", 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="itaque", + post_id="sed", 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 aa735c97..444937ba 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 fc7b1635..2ced6cb5 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 544df889..9664075f 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 08b0ea47..2f6fa650 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="qui", + path_story_id="voluptas", 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="qui", + path_story_id="voluptas", 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="qui", + path_story_id="voluptas", 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="qui", + path_story_id="voluptas", 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="qui", + story_id="voluptas", 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="qui", + story_id="voluptas", 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="qui", + story_id="voluptas", 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="qui", + story_id="voluptas", 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="qui", + path_story_id="voluptas", 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="qui", + path_story_id="voluptas", 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="qui", + path_story_id="voluptas", 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="qui", + path_story_id="voluptas", 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="qui", + story_id="voluptas", 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="qui", + story_id="voluptas", 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="qui", + story_id="voluptas", 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="qui", + story_id="voluptas", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index da8d8d7b..02cf31a0 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( - "repellat", + "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( - "repellat", + "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( - "repellat", + "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( - "repellat", + "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( - "repellat", + "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( - "repellat", + "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 4ab6e194..a861b282 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="alias", - auth_type="mobile_app", - cookies="iusto", + auth_id="sit", + auth_type="email_password", + cookies="tempore", custom_proxy={ "host": "proxy.example.com", - "password": ">|UNF]'AqQm@", + "password": "a0ij$whdKlhj#iKFL1", "port": 8080, - "username": "libero", + "username": "nam", }, - email="mac.rogahn@example.net", + email="leland.streich@example.org", force_connect=False, - name="quae", - password="FNAyb|+4xmPUUxk8%K", - proxy_country="us", - user_agent="incidunt", - xbc="omnis", + name="repellat", + password="0jBb4rR#&ikX!", + proxy_country="uk", + user_agent="eum", + 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="alias", - auth_type="mobile_app", - cookies="iusto", + auth_id="sit", + auth_type="email_password", + cookies="tempore", custom_proxy={ "host": "proxy.example.com", - "password": ">|UNF]'AqQm@", + "password": "a0ij$whdKlhj#iKFL1", "port": 8080, - "username": "libero", + "username": "nam", }, - email="mac.rogahn@example.net", + email="leland.streich@example.org", force_connect=False, - name="quae", - password="FNAyb|+4xmPUUxk8%K", - proxy_country="us", - user_agent="incidunt", - xbc="omnis", + name="repellat", + password="0jBb4rR#&ikX!", + proxy_country="uk", + user_agent="eum", + xbc="et", ) 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 9249f386..3597ede6 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 1a80b275..b2158856 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="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="onlyfans", + 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 bd4f6161..65694e23 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 0245f025..8f7f0f05 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": ["ogreivuvxofkgxzpcorumba"]}, + filter={"tags": ["hbduwtvlyov"]}, 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="enim", + smart_link_id="ducimus", ) 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="enim", + smart_link_id="ducimus", 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="enim", + smart_link_id="ducimus", ) 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="enim", + smart_link_id="ducimus", ) 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="iure", + smart_link_id="rerum", ) 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="iure", + smart_link_id="rerum", 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="iure", + smart_link_id="rerum", ) 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="iure", + smart_link_id="rerum", ) 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="ducimus", + smart_link_id="quibusdam", ) 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="ducimus", + smart_link_id="quibusdam", 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="ducimus", + smart_link_id="quibusdam", ) 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="ducimus", + smart_link_id="quibusdam", ) 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="debitis", + smart_link_id="in", ) 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="debitis", + smart_link_id="in", 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="debitis", + smart_link_id="in", ) 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="debitis", + smart_link_id="in", ) 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="perspiciatis", + smart_link_id="itaque", ) 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="perspiciatis", + smart_link_id="itaque", 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="perspiciatis", + smart_link_id="itaque", ) 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="perspiciatis", + smart_link_id="itaque", ) 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": ["ogreivuvxofkgxzpcorumba"]}, + filter={"tags": ["hbduwtvlyov"]}, 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="enim", + smart_link_id="ducimus", ) 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="enim", + smart_link_id="ducimus", 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="enim", + smart_link_id="ducimus", ) 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="enim", + smart_link_id="ducimus", ) 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="iure", + smart_link_id="rerum", ) 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="iure", + smart_link_id="rerum", 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="iure", + smart_link_id="rerum", ) 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="iure", + smart_link_id="rerum", ) 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="ducimus", + smart_link_id="quibusdam", ) 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="ducimus", + smart_link_id="quibusdam", 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="ducimus", + smart_link_id="quibusdam", ) 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="ducimus", + smart_link_id="quibusdam", ) 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="debitis", + smart_link_id="in", ) 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="debitis", + smart_link_id="in", 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="debitis", + smart_link_id="in", ) 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="debitis", + smart_link_id="in", ) 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="perspiciatis", + smart_link_id="itaque", ) 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="perspiciatis", + smart_link_id="itaque", 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="perspiciatis", + smart_link_id="itaque", ) 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="perspiciatis", + smart_link_id="itaque", ) 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 5f6ffbc6..ea0ca79b 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": "uciw", - "tags": ["fgnggexqxxsjyanjutubx"], + "search": "xrywizbibmckkkimtolf", + "tags": ["vntmidvdbotqypslbshhdkaun"], }, 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": "oud", - "tags": ["itiethtzcoths"], + "search": "cdzjzmgbmuqcdsktlh", + "tags": ["bmhzlqixytdiffqvhz"], }, 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": "ykzqofkqcihmopvhxmzner", - "tags": ["nxasfne"], + "search": "ofjhuhehjkmhs", + "tags": ["oyygknwbrzqhdyeauun"], }, 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": "hxekaccpxb", - "tags": ["pdyxhazudduoullfhm"], + "search": "snnfxjqc", + "tags": ["wpnd"], }, 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": "uciw", - "tags": ["fgnggexqxxsjyanjutubx"], + "search": "xrywizbibmckkkimtolf", + "tags": ["vntmidvdbotqypslbshhdkaun"], }, 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": "oud", - "tags": ["itiethtzcoths"], + "search": "cdzjzmgbmuqcdsktlh", + "tags": ["bmhzlqixytdiffqvhz"], }, 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": "ykzqofkqcihmopvhxmzner", - "tags": ["nxasfne"], + "search": "ofjhuhehjkmhs", + "tags": ["oyygknwbrzqhdyeauun"], }, 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": "hxekaccpxb", - "tags": ["pdyxhazudduoullfhm"], + "search": "snnfxjqc", + "tags": ["wpnd"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index a6497144..7a3825d4 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="eaque", + tracking_link_id="eligendi", 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="eaque", + tracking_link_id="eligendi", 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="eaque", + tracking_link_id="eligendi", 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="eaque", + tracking_link_id="eligendi", 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="eaque", + tracking_link_id="eligendi", 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="eaque", + tracking_link_id="eligendi", 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="eaque", + tracking_link_id="eligendi", 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="eaque", + tracking_link_id="eligendi", 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="culpa", + tracking_link_id="esse", 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="culpa", + tracking_link_id="esse", 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="culpa", + tracking_link_id="esse", 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="culpa", + tracking_link_id="esse", 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="culpa", + tracking_link_id="esse", 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="eaque", + tracking_link_id="eligendi", 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="eaque", + tracking_link_id="eligendi", 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="eaque", + tracking_link_id="eligendi", 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="eaque", + tracking_link_id="eligendi", 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="eaque", + tracking_link_id="eligendi", 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="eaque", + tracking_link_id="eligendi", 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="eaque", + tracking_link_id="eligendi", 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="eaque", + tracking_link_id="eligendi", 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="culpa", + tracking_link_id="esse", 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="culpa", + tracking_link_id="esse", 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="culpa", + tracking_link_id="esse", 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="culpa", + tracking_link_id="esse", 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="culpa", + tracking_link_id="esse", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index cf582e57..ee82afbc 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="qui", + trial_link_id="officiis", 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="qui", + trial_link_id="officiis", 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="qui", + trial_link_id="officiis", 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="qui", + trial_link_id="officiis", 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="qui", + trial_link_id="officiis", 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="qui", + trial_link_id="officiis", 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="qui", + trial_link_id="officiis", 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="qui", + trial_link_id="officiis", 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="in", + trial_link_id="sit", 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="in", + trial_link_id="sit", 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="in", + trial_link_id="sit", 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="in", + trial_link_id="sit", 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="labore", + trial_link_id="eos", 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="labore", + trial_link_id="eos", 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="labore", + trial_link_id="eos", 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="labore", + trial_link_id="eos", 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="labore", + trial_link_id="eos", 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="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="facere", + 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="facere", + 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="facere", + 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="facere", + 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="qui", + trial_link_id="officiis", 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="qui", + trial_link_id="officiis", 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="qui", + trial_link_id="officiis", 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="qui", + trial_link_id="officiis", 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="qui", + trial_link_id="officiis", 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="qui", + trial_link_id="officiis", 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="qui", + trial_link_id="officiis", 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="qui", + trial_link_id="officiis", 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="in", + trial_link_id="sit", 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="in", + trial_link_id="sit", 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="in", + trial_link_id="sit", 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="in", + trial_link_id="sit", 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="labore", + trial_link_id="eos", 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="labore", + trial_link_id="eos", 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="labore", + trial_link_id="eos", 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="labore", + trial_link_id="eos", 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="labore", + trial_link_id="eos", 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="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="facere", + 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="facere", + 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="facere", + 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="facere", + trial_link_id="laboriosam", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 7af9c9ef..1e078801 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="iilvllxz", + name="sjectxxfaiwh", ) 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="iilvllxz", + name="sjectxxfaiwh", ) 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="iilvllxz", + name="sjectxxfaiwh", ) 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="iilvllxz", + name="sjectxxfaiwh", ) @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="iilvllxz", + name="sjectxxfaiwh", ) 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="iilvllxz", + name="sjectxxfaiwh", ) 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="iilvllxz", + name="sjectxxfaiwh", ) 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="iilvllxz", + name="sjectxxfaiwh", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 22e362138fea30764aff89a049bc5ab8acd163d9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 01:12:34 +0000 Subject: [PATCH 060/249] 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 | 36 +++---- tests/api_resources/test_notifications.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 +-- 16 files changed, 264 insertions(+), 264 deletions(-) diff --git a/.stats.yml b/.stats.yml index b5ab9331..b540622c 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-60a31ab3f816257e17d983f69c76c823828284b70137e0ad9df8caa9c0a93572.yml -openapi_spec_hash: fd257565847fd80972c07d59aa4b57a3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d8c33d527a4ed6bb056751fd0f2df9ca0a19118af13567f32ee83b56eaa9d9a4.yml +openapi_spec_hash: 0369d6acfb69033e5bde55268ef05098 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 77938613..1e7a1b77 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="quisquam", + message_id="reprehenderit", 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="quisquam", + message_id="reprehenderit", 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="quisquam", + message_id="reprehenderit", 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="quisquam", + message_id="reprehenderit", 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="quisquam", + message_id="reprehenderit", 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="quisquam", + message_id="reprehenderit", 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="quisquam", + message_id="reprehenderit", 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="quisquam", + message_id="reprehenderit", 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="quisquam", + message_id="reprehenderit", 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="quisquam", + message_id="reprehenderit", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 921871bc..5b554598 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="eum", + list_id="ab", 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="eum", + list_id="ab", 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="eum", + list_id="ab", 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="eum", + list_id="ab", 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="eum", + list_id="ab", 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="eum", + list_id="ab", 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="eum", + list_id="ab", 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="eum", + list_id="ab", 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="eum", + list_id="ab", 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="eum", + list_id="ab", 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="eum", + list_id="ab", 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="eum", + list_id="ab", 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="eum", + list_id="ab", 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="eum", + list_id="ab", 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="eum", + list_id="ab", 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="eum", + list_id="ab", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 051518ab..c16bd37c 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="sed", + post_id="in", 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="sed", + post_id="in", 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="sed", + post_id="in", 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="sed", + post_id="in", 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="sed", + post_id="in", 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="sed", + post_id="in", 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="sed", + post_id="in", 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="sed", + post_id="in", 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="sed", + post_id="in", 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="sed", + post_id="in", 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="sed", + post_id="in", 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="sed", + post_id="in", 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="sed", + post_id="in", 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="sed", + post_id="in", 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="sed", + post_id="in", 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="sed", + post_id="in", 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="sed", + post_id="in", 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="sed", + post_id="in", 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="sed", + post_id="in", 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="sed", + post_id="in", 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 444937ba..a62ccbd3 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 2ced6cb5..b5f3d61a 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 9664075f..544df889 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 2f6fa650..dae31054 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="voluptas", + path_story_id="maxime", 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="voluptas", + path_story_id="maxime", 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="voluptas", + path_story_id="maxime", 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="voluptas", + path_story_id="maxime", 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="voluptas", + story_id="maxime", 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="voluptas", + story_id="maxime", 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="voluptas", + story_id="maxime", 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="voluptas", + story_id="maxime", 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="voluptas", + path_story_id="maxime", 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="voluptas", + path_story_id="maxime", 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="voluptas", + path_story_id="maxime", 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="voluptas", + path_story_id="maxime", 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="voluptas", + story_id="maxime", 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="voluptas", + story_id="maxime", 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="voluptas", + story_id="maxime", 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="voluptas", + story_id="maxime", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 02cf31a0..7cdb96cf 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", + "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( - "sed", + "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( - "sed", + "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( - "sed", + "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( - "sed", + "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( - "sed", + "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 a861b282..cec21a7c 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="sit", + auth_id="tenetur", auth_type="email_password", - cookies="tempore", + cookies="odit", custom_proxy={ "host": "proxy.example.com", - "password": "a0ij$whdKlhj#iKFL1", + "password": "vom)[<1XDw3C7#", "port": 8080, - "username": "nam", + "username": "voluptates", }, - email="leland.streich@example.org", - force_connect=False, + email="judson85@example.com", + force_connect=True, name="repellat", - password="0jBb4rR#&ikX!", + password='0"uhsTc[U.tM', proxy_country="uk", - user_agent="eum", - xbc="et", + user_agent="et", + xbc="voluptas", ) 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="sit", + auth_id="tenetur", auth_type="email_password", - cookies="tempore", + cookies="odit", custom_proxy={ "host": "proxy.example.com", - "password": "a0ij$whdKlhj#iKFL1", + "password": "vom)[<1XDw3C7#", "port": 8080, - "username": "nam", + "username": "voluptates", }, - email="leland.streich@example.org", - force_connect=False, + email="judson85@example.com", + force_connect=True, name="repellat", - password="0jBb4rR#&ikX!", + password='0"uhsTc[U.tM', proxy_country="uk", - user_agent="eum", - xbc="et", + user_agent="et", + xbc="voluptas", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index b2158856..4d3e426f 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 8f7f0f05..28b74c5e 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": ["hbduwtvlyov"]}, + filter={"tags": ["z"]}, 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="ducimus", + smart_link_id="accusantium", ) 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="ducimus", + smart_link_id="accusantium", 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="ducimus", + smart_link_id="accusantium", ) 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="ducimus", + smart_link_id="accusantium", ) 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="rerum", + smart_link_id="eum", ) 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="rerum", + smart_link_id="eum", 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="rerum", + smart_link_id="eum", ) 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="rerum", + smart_link_id="eum", ) 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="quibusdam", + smart_link_id="doloribus", ) 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="quibusdam", + smart_link_id="doloribus", 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="quibusdam", + smart_link_id="doloribus", ) 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="quibusdam", + smart_link_id="doloribus", ) 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="quibusdam", + smart_link_id="repudiandae", ) 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="quibusdam", + smart_link_id="repudiandae", 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="quibusdam", + smart_link_id="repudiandae", ) 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="quibusdam", + smart_link_id="repudiandae", ) 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="in", + smart_link_id="facere", ) 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="in", + smart_link_id="facere", 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="in", + smart_link_id="facere", ) 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="in", + smart_link_id="facere", ) 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="itaque", + smart_link_id="et", ) 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="itaque", + smart_link_id="et", 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="itaque", + smart_link_id="et", ) 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="itaque", + smart_link_id="et", ) 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": ["hbduwtvlyov"]}, + filter={"tags": ["z"]}, 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="ducimus", + smart_link_id="accusantium", ) 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="ducimus", + smart_link_id="accusantium", 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="ducimus", + smart_link_id="accusantium", ) 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="ducimus", + smart_link_id="accusantium", ) 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="rerum", + smart_link_id="eum", ) 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="rerum", + smart_link_id="eum", 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="rerum", + smart_link_id="eum", ) 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="rerum", + smart_link_id="eum", ) 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="quibusdam", + smart_link_id="doloribus", ) 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="quibusdam", + smart_link_id="doloribus", 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="quibusdam", + smart_link_id="doloribus", ) 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="quibusdam", + smart_link_id="doloribus", ) 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="quibusdam", + smart_link_id="repudiandae", ) 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="quibusdam", + smart_link_id="repudiandae", 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="quibusdam", + smart_link_id="repudiandae", ) 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="quibusdam", + smart_link_id="repudiandae", ) 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="in", + smart_link_id="facere", ) 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="in", + smart_link_id="facere", 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="in", + smart_link_id="facere", ) 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="in", + smart_link_id="facere", ) 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="itaque", + smart_link_id="et", ) 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="itaque", + smart_link_id="et", 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="itaque", + smart_link_id="et", ) 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="itaque", + 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 ea0ca79b..51b08855 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": "xrywizbibmckkkimtolf", - "tags": ["vntmidvdbotqypslbshhdkaun"], + "search": "jdjnly", + "tags": ["nddxerpaaxijcltahbspef"], }, 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": "cdzjzmgbmuqcdsktlh", - "tags": ["bmhzlqixytdiffqvhz"], + "search": "htqqwxprolzekmsr", + "tags": ["hzr"], }, 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": "ofjhuhehjkmhs", - "tags": ["oyygknwbrzqhdyeauun"], + "include_smart_links": True, + "search": "xctudmltjiyqyk", + "tags": ["rdjs"], }, 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": "snnfxjqc", - "tags": ["wpnd"], + "search": "selgwmewgk", + "tags": ["arklrfwdug"], }, 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": "xrywizbibmckkkimtolf", - "tags": ["vntmidvdbotqypslbshhdkaun"], + "search": "jdjnly", + "tags": ["nddxerpaaxijcltahbspef"], }, 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": "cdzjzmgbmuqcdsktlh", - "tags": ["bmhzlqixytdiffqvhz"], + "search": "htqqwxprolzekmsr", + "tags": ["hzr"], }, 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": "ofjhuhehjkmhs", - "tags": ["oyygknwbrzqhdyeauun"], + "include_smart_links": True, + "search": "xctudmltjiyqyk", + "tags": ["rdjs"], }, 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": "snnfxjqc", - "tags": ["wpnd"], + "search": "selgwmewgk", + "tags": ["arklrfwdug"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 7a3825d4..ee4e0850 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="eligendi", + tracking_link_id="ipsam", 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="eligendi", + tracking_link_id="ipsam", 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="eligendi", + tracking_link_id="ipsam", 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="eligendi", + tracking_link_id="ipsam", 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="eligendi", + tracking_link_id="ipsam", 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="eligendi", + tracking_link_id="ipsam", 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="eligendi", + tracking_link_id="ipsam", 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="eligendi", + tracking_link_id="ipsam", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="esse", + tracking_link_id="laborum", 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="esse", + tracking_link_id="laborum", 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="esse", + tracking_link_id="laborum", 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="esse", + tracking_link_id="laborum", 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="esse", + tracking_link_id="laborum", 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="eligendi", + tracking_link_id="ipsam", 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="eligendi", + tracking_link_id="ipsam", 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="eligendi", + tracking_link_id="ipsam", 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="eligendi", + tracking_link_id="ipsam", 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="eligendi", + tracking_link_id="ipsam", 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="eligendi", + tracking_link_id="ipsam", 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="eligendi", + tracking_link_id="ipsam", 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="eligendi", + tracking_link_id="ipsam", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="esse", + tracking_link_id="laborum", 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="esse", + tracking_link_id="laborum", 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="esse", + tracking_link_id="laborum", 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="esse", + tracking_link_id="laborum", 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="esse", + tracking_link_id="laborum", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index ee82afbc..f3b8ef15 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="officiis", + trial_link_id="aliquid", 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="officiis", + trial_link_id="aliquid", 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="officiis", + trial_link_id="aliquid", 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="officiis", + trial_link_id="aliquid", 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="officiis", + trial_link_id="aliquid", 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="officiis", + trial_link_id="aliquid", 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="officiis", + trial_link_id="aliquid", 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="officiis", + trial_link_id="aliquid", 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="sit", + trial_link_id="voluptatum", 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="sit", + trial_link_id="voluptatum", 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="sit", + trial_link_id="voluptatum", 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="sit", + trial_link_id="voluptatum", 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="laboriosam", + trial_link_id="non", 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="non", 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="non", 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="non", 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="non", 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="officiis", + trial_link_id="aliquid", 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="officiis", + trial_link_id="aliquid", 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="officiis", + trial_link_id="aliquid", 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="officiis", + trial_link_id="aliquid", 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="officiis", + trial_link_id="aliquid", 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="officiis", + trial_link_id="aliquid", 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="officiis", + trial_link_id="aliquid", 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="officiis", + trial_link_id="aliquid", 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="sit", + trial_link_id="voluptatum", 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="sit", + trial_link_id="voluptatum", 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="sit", + trial_link_id="voluptatum", 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="sit", + trial_link_id="voluptatum", 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="laboriosam", + trial_link_id="non", 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="non", 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="non", 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="non", 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="non", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 1e078801..c1acbac4 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="sjectxxfaiwh", + name="qqeqmcudcpfbulvuhdpxndrsi", ) 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="sjectxxfaiwh", + name="qqeqmcudcpfbulvuhdpxndrsi", ) 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="sjectxxfaiwh", + name="qqeqmcudcpfbulvuhdpxndrsi", ) 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="sjectxxfaiwh", + name="qqeqmcudcpfbulvuhdpxndrsi", ) @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="sjectxxfaiwh", + name="qqeqmcudcpfbulvuhdpxndrsi", ) 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="sjectxxfaiwh", + name="qqeqmcudcpfbulvuhdpxndrsi", ) 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="sjectxxfaiwh", + name="qqeqmcudcpfbulvuhdpxndrsi", ) 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="sjectxxfaiwh", + name="qqeqmcudcpfbulvuhdpxndrsi", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 4a0e815fe74f83e0fad633e6fc1033ec0afbcc2a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 02:12:36 +0000 Subject: [PATCH 061/249] 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_client_sessions.py | 4 +- tests/api_resources/test_notifications.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 +-- 16 files changed, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index b540622c..8bb21ded 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-d8c33d527a4ed6bb056751fd0f2df9ca0a19118af13567f32ee83b56eaa9d9a4.yml -openapi_spec_hash: 0369d6acfb69033e5bde55268ef05098 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e04323f1c37f9f4b63c999831a20a29492e6e9ecf589cddfd83d125f74035d46.yml +openapi_spec_hash: a37921ea226788dcc5b0cac6ded82fea config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 1e7a1b77..7b209908 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="reprehenderit", + 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="reprehenderit", + 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="reprehenderit", + 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="reprehenderit", + 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="reprehenderit", + 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="reprehenderit", + 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="reprehenderit", + 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="reprehenderit", + 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="reprehenderit", + 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="reprehenderit", + 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 5b554598..4b2a72d0 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="ab", + list_id="inventore", 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="ab", + list_id="inventore", 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="ab", + list_id="inventore", 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="ab", + list_id="inventore", 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="ab", + list_id="inventore", 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="ab", + list_id="inventore", 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="ab", + list_id="inventore", 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="ab", + list_id="inventore", 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="ab", + list_id="inventore", 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="ab", + list_id="inventore", 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="ab", + list_id="inventore", 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="ab", + list_id="inventore", 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="ab", + list_id="inventore", 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="ab", + list_id="inventore", 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="ab", + list_id="inventore", 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="ab", + list_id="inventore", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index c16bd37c..6fc50957 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="in", + post_id="quae", 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="in", + post_id="quae", 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="in", + post_id="quae", 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="in", + post_id="quae", 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="in", + post_id="quae", 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="in", + post_id="quae", 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="in", + post_id="quae", 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="in", + post_id="quae", 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="in", + post_id="quae", 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="in", + post_id="quae", 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="in", + post_id="quae", 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="in", + post_id="quae", 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="in", + post_id="quae", 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="in", + post_id="quae", 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="in", + post_id="quae", 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="in", + post_id="quae", 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="in", + post_id="quae", 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="in", + post_id="quae", 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="in", + post_id="quae", 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="in", + post_id="quae", 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 b5f3d61a..fc7b1635 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 544df889..9664075f 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 dae31054..44d71784 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="maxime", + path_story_id="ab", 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="maxime", + path_story_id="ab", 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="maxime", + path_story_id="ab", 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="maxime", + path_story_id="ab", 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="maxime", + story_id="ab", 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="maxime", + story_id="ab", 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="maxime", + story_id="ab", 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="maxime", + story_id="ab", 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="maxime", + path_story_id="ab", 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="maxime", + path_story_id="ab", 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="maxime", + path_story_id="ab", 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="maxime", + path_story_id="ab", 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="maxime", + story_id="ab", 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="maxime", + story_id="ab", 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="maxime", + story_id="ab", 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="maxime", + story_id="ab", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 7cdb96cf..8af11c2a 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", + "quasi", ) 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", + "quasi", ) 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", + "quasi", ) 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", + "quasi", ) 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", + "quasi", ) 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", + "quasi", ) 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 cec21a7c..6abf455c 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="tenetur", - auth_type="email_password", - cookies="odit", + auth_id="a", + auth_type="raw_data", + cookies="inventore", custom_proxy={ "host": "proxy.example.com", - "password": "vom)[<1XDw3C7#", + "password": "0C7W9lO", "port": 8080, - "username": "voluptates", + "username": "omnis", }, - email="judson85@example.com", + email="cschuppe@example.net", force_connect=True, - name="repellat", - password='0"uhsTc[U.tM', - proxy_country="uk", - user_agent="et", - xbc="voluptas", + name="sed", + password="@B>X=G~HNe None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="tenetur", - auth_type="email_password", - cookies="odit", + auth_id="a", + auth_type="raw_data", + cookies="inventore", custom_proxy={ "host": "proxy.example.com", - "password": "vom)[<1XDw3C7#", + "password": "0C7W9lO", "port": 8080, - "username": "voluptates", + "username": "omnis", }, - email="judson85@example.com", + email="cschuppe@example.net", force_connect=True, - name="repellat", - password='0"uhsTc[U.tM', - proxy_country="uk", - user_agent="et", - xbc="voluptas", + name="sed", + password="@B>X=G~HNe 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 4d3e426f..bea1ef2e 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_smart_links.py b/tests/api_resources/test_smart_links.py index 28b74c5e..93633e46 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": ["z"]}, + filter={"tags": ["axmrczqixtvszwrzsbzvkzmki"]}, 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="accusantium", + smart_link_id="sit", ) 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="accusantium", + smart_link_id="sit", 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="accusantium", + smart_link_id="sit", ) 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="accusantium", + smart_link_id="sit", ) 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="eum", + smart_link_id="optio", ) 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="eum", + smart_link_id="optio", 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="eum", + smart_link_id="optio", ) 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="eum", + smart_link_id="optio", ) 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="doloribus", + smart_link_id="dolorum", ) 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="doloribus", + smart_link_id="dolorum", 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="doloribus", + smart_link_id="dolorum", ) 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="doloribus", + smart_link_id="dolorum", ) 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="repudiandae", + smart_link_id="debitis", ) 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="repudiandae", + smart_link_id="debitis", 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="repudiandae", + smart_link_id="debitis", ) 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="repudiandae", + smart_link_id="debitis", ) 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="facere", + smart_link_id="porro", ) 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="facere", + smart_link_id="porro", 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="facere", + smart_link_id="porro", ) 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="facere", + smart_link_id="porro", ) 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="et", + smart_link_id="quia", ) 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="et", + smart_link_id="quia", 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="et", + smart_link_id="quia", ) 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="et", + smart_link_id="quia", ) 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": ["z"]}, + filter={"tags": ["axmrczqixtvszwrzsbzvkzmki"]}, 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="accusantium", + smart_link_id="sit", ) 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="accusantium", + smart_link_id="sit", 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="accusantium", + smart_link_id="sit", ) 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="accusantium", + smart_link_id="sit", ) 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="eum", + smart_link_id="optio", ) 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="eum", + smart_link_id="optio", 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="eum", + smart_link_id="optio", ) 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="eum", + smart_link_id="optio", ) 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="doloribus", + smart_link_id="dolorum", ) 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="doloribus", + smart_link_id="dolorum", 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="doloribus", + smart_link_id="dolorum", ) 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="doloribus", + smart_link_id="dolorum", ) 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="repudiandae", + smart_link_id="debitis", ) 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="repudiandae", + smart_link_id="debitis", 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="repudiandae", + smart_link_id="debitis", ) 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="repudiandae", + smart_link_id="debitis", ) 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="facere", + smart_link_id="porro", ) 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="facere", + smart_link_id="porro", 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="facere", + smart_link_id="porro", ) 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="facere", + smart_link_id="porro", ) 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="et", + smart_link_id="quia", ) 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="et", + smart_link_id="quia", 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="et", + smart_link_id="quia", ) 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="et", + 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 51b08855..6775bc08 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": "jdjnly", - "tags": ["nddxerpaaxijcltahbspef"], + "search": "fyouylyvxsrkwlif", + "tags": ["amxdytimdamuzn"], }, 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": "htqqwxprolzekmsr", - "tags": ["hzr"], + "search": "yfhdcvbtqctmjvdjgna", + "tags": ["oqehayezyudlbtjmpzhvwtai"], }, 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": "xctudmltjiyqyk", - "tags": ["rdjs"], + "search": "jg", + "tags": ["zjqltrgluesaavrbfni"], }, 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": "selgwmewgk", - "tags": ["arklrfwdug"], + "include_smart_links": True, + "search": "funkkwkkkfkwjy", + "tags": ["bsuigqrokbbkxagxqztdi"], }, 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": "jdjnly", - "tags": ["nddxerpaaxijcltahbspef"], + "search": "fyouylyvxsrkwlif", + "tags": ["amxdytimdamuzn"], }, 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": "htqqwxprolzekmsr", - "tags": ["hzr"], + "search": "yfhdcvbtqctmjvdjgna", + "tags": ["oqehayezyudlbtjmpzhvwtai"], }, 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": "xctudmltjiyqyk", - "tags": ["rdjs"], + "search": "jg", + "tags": ["zjqltrgluesaavrbfni"], }, 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": "selgwmewgk", - "tags": ["arklrfwdug"], + "include_smart_links": True, + "search": "funkkwkkkfkwjy", + "tags": ["bsuigqrokbbkxagxqztdi"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index ee4e0850..0c1e8d8b 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="ipsam", + tracking_link_id="fuga", 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="ipsam", + tracking_link_id="fuga", 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="ipsam", + tracking_link_id="fuga", 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="ipsam", + tracking_link_id="fuga", 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="ipsam", + tracking_link_id="fuga", 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="ipsam", + tracking_link_id="fuga", 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="ipsam", + tracking_link_id="fuga", 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="ipsam", + tracking_link_id="fuga", 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="aliquid", + tracking_link_id="ea", 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="aliquid", + tracking_link_id="ea", 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="aliquid", + tracking_link_id="ea", 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="aliquid", + tracking_link_id="ea", 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="aliquid", + tracking_link_id="ea", 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="laborum", + tracking_link_id="deleniti", 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="laborum", + tracking_link_id="deleniti", 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="laborum", + tracking_link_id="deleniti", 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="laborum", + tracking_link_id="deleniti", 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="laborum", + tracking_link_id="deleniti", 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="ipsam", + tracking_link_id="fuga", 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="ipsam", + tracking_link_id="fuga", 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="ipsam", + tracking_link_id="fuga", 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="ipsam", + tracking_link_id="fuga", 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="ipsam", + tracking_link_id="fuga", 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="ipsam", + tracking_link_id="fuga", 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="ipsam", + tracking_link_id="fuga", 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="ipsam", + tracking_link_id="fuga", 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="aliquid", + tracking_link_id="ea", 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="aliquid", + tracking_link_id="ea", 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="aliquid", + tracking_link_id="ea", 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="aliquid", + tracking_link_id="ea", 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="aliquid", + tracking_link_id="ea", 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="laborum", + tracking_link_id="deleniti", 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="laborum", + tracking_link_id="deleniti", 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="laborum", + tracking_link_id="deleniti", 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="laborum", + tracking_link_id="deleniti", 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="laborum", + tracking_link_id="deleniti", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index f3b8ef15..28386dc3 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="aliquid", + trial_link_id="qui", 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="aliquid", + trial_link_id="qui", 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="aliquid", + trial_link_id="qui", 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="aliquid", + trial_link_id="qui", 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="aliquid", + trial_link_id="qui", 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="aliquid", + trial_link_id="qui", 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="aliquid", + trial_link_id="qui", 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="aliquid", + trial_link_id="qui", 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="voluptatum", + trial_link_id="eos", 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="voluptatum", + trial_link_id="eos", 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="voluptatum", + trial_link_id="eos", 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="voluptatum", + trial_link_id="eos", 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="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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="non", + trial_link_id="distinctio", 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="non", + trial_link_id="distinctio", 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="non", + trial_link_id="distinctio", 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="non", + trial_link_id="distinctio", 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="non", + trial_link_id="distinctio", 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="aliquid", + trial_link_id="qui", 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="aliquid", + trial_link_id="qui", 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="aliquid", + trial_link_id="qui", 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="aliquid", + trial_link_id="qui", 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="aliquid", + trial_link_id="qui", 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="aliquid", + trial_link_id="qui", 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="aliquid", + trial_link_id="qui", 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="aliquid", + trial_link_id="qui", 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="voluptatum", + trial_link_id="eos", 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="voluptatum", + trial_link_id="eos", 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="voluptatum", + trial_link_id="eos", 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="voluptatum", + trial_link_id="eos", 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="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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="non", + trial_link_id="distinctio", 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="non", + trial_link_id="distinctio", 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="non", + trial_link_id="distinctio", 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="non", + trial_link_id="distinctio", 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="non", + trial_link_id="distinctio", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index c1acbac4..c5630be4 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="qqeqmcudcpfbulvuhdpxndrsi", + name="hhciaophrjknjdzbk", ) 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="qqeqmcudcpfbulvuhdpxndrsi", + name="hhciaophrjknjdzbk", ) 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="qqeqmcudcpfbulvuhdpxndrsi", + name="hhciaophrjknjdzbk", ) 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="qqeqmcudcpfbulvuhdpxndrsi", + name="hhciaophrjknjdzbk", ) @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="qqeqmcudcpfbulvuhdpxndrsi", + name="hhciaophrjknjdzbk", ) 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="qqeqmcudcpfbulvuhdpxndrsi", + name="hhciaophrjknjdzbk", ) 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="qqeqmcudcpfbulvuhdpxndrsi", + name="hhciaophrjknjdzbk", ) 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="qqeqmcudcpfbulvuhdpxndrsi", + name="hhciaophrjknjdzbk", ) @pytest.mark.skip(reason="Mock server tests are disabled") From c3e0de4a6dd1170cd75d77838f07fb395005b452 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 15:12:37 +0000 Subject: [PATCH 062/249] 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 | 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 +-- 16 files changed, 266 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8bb21ded..f665bcab 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-e04323f1c37f9f4b63c999831a20a29492e6e9ecf589cddfd83d125f74035d46.yml -openapi_spec_hash: a37921ea226788dcc5b0cac6ded82fea +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b3fd6f411e4f3f885f124efd7caacf561a121d2997a4066d2799c36f51d6525c.yml +openapi_spec_hash: 33bf90f03286f640335dd06e36b907a5 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 7b209908..26284d72 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="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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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 4b2a72d0..e31c7cef 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="inventore", + list_id="itaque", 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="inventore", + list_id="itaque", 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="inventore", + list_id="itaque", 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="inventore", + list_id="itaque", 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="inventore", + list_id="itaque", 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="inventore", + list_id="itaque", 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="inventore", + list_id="itaque", 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="inventore", + list_id="itaque", 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="inventore", + list_id="itaque", 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="inventore", + list_id="itaque", 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="inventore", + list_id="itaque", 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="inventore", + list_id="itaque", 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="inventore", + list_id="itaque", 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="inventore", + list_id="itaque", 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="inventore", + list_id="itaque", 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="inventore", + list_id="itaque", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 6fc50957..e9fd02bf 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="quae", + post_id="quos", 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="quae", + post_id="quos", 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="quae", + post_id="quos", 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="quae", + post_id="quos", 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="quae", + post_id="quos", 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="quae", + post_id="quos", 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="quae", + post_id="quos", 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="quae", + post_id="quos", 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="quae", + post_id="quos", 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="quae", + post_id="quos", 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="quae", + post_id="quos", 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="quae", + post_id="quos", 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="quae", + post_id="quos", 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="quae", + post_id="quos", 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="quae", + post_id="quos", 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="quae", + post_id="quos", 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="quae", + post_id="quos", 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="quae", + post_id="quos", 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="quae", + post_id="quos", 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="quae", + post_id="quos", 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 a62ccbd3..7549791e 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 fc7b1635..b5f3d61a 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=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=6, + 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=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_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=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=6, + 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=6, + 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=6, + 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=6, + period=24, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 44d71784..506c2ed9 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="ab", + 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="ab", + 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="ab", + 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="ab", + 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="ab", + 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="ab", + 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="ab", + 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="ab", + 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="ab", + 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="ab", + 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="ab", + 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="ab", + 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="ab", + 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="ab", + 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="ab", + 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="ab", + story_id="et", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 8af11c2a..e12e80ca 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( - "quasi", + "non", ) 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( - "quasi", + "non", ) 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( - "quasi", + "non", ) 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( - "quasi", + "non", ) 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( - "quasi", + "non", ) 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( - "quasi", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 6abf455c..00fc9626 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="a", - auth_type="raw_data", - cookies="inventore", + auth_id="temporibus", + auth_type="mobile_app", + cookies="sint", custom_proxy={ "host": "proxy.example.com", - "password": "0C7W9lO", + "password": "6nz'KG4~9igw", "port": 8080, - "username": "omnis", + "username": "voluptate", }, - email="cschuppe@example.net", + email="wayne62@example.net", force_connect=True, - name="sed", - password="@B>X=G~HNe None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="a", - auth_type="raw_data", - cookies="inventore", + auth_id="temporibus", + auth_type="mobile_app", + cookies="sint", custom_proxy={ "host": "proxy.example.com", - "password": "0C7W9lO", + "password": "6nz'KG4~9igw", "port": 8080, - "username": "omnis", + "username": "voluptate", }, - email="cschuppe@example.net", + email="wayne62@example.net", force_connect=True, - name="sed", - password="@B>X=G~HNe None: from_id=123, limit=10, skip_users="all", - type="tags", + 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="tags", + 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 65694e23..bd4f6161 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 93633e46..47aff9a2 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": ["axmrczqixtvszwrzsbzvkzmki"]}, + filter={"tags": ["rbiqikvsrsmgzborawz"]}, 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="sit", + smart_link_id="eveniet", ) 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="sit", + smart_link_id="eveniet", 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="sit", + smart_link_id="eveniet", ) 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="sit", + smart_link_id="eveniet", ) 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="optio", + smart_link_id="sit", ) 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="optio", + smart_link_id="sit", 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="optio", + smart_link_id="sit", ) 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="optio", + smart_link_id="sit", ) 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="dolorum", + smart_link_id="natus", ) 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="dolorum", + smart_link_id="natus", 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="dolorum", + smart_link_id="natus", ) 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="dolorum", + smart_link_id="natus", ) 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="debitis", + smart_link_id="reprehenderit", ) 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="debitis", + smart_link_id="reprehenderit", 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="debitis", + smart_link_id="reprehenderit", ) 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="debitis", + smart_link_id="reprehenderit", ) 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="porro", + smart_link_id="voluptatem", ) 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="porro", + smart_link_id="voluptatem", 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="porro", + smart_link_id="voluptatem", ) 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="porro", + smart_link_id="voluptatem", ) 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="quia", + smart_link_id="sed", ) 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="quia", + smart_link_id="sed", 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="quia", + smart_link_id="sed", ) 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="quia", + smart_link_id="sed", ) 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": ["axmrczqixtvszwrzsbzvkzmki"]}, + filter={"tags": ["rbiqikvsrsmgzborawz"]}, 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="sit", + smart_link_id="eveniet", ) 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="sit", + smart_link_id="eveniet", 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="sit", + smart_link_id="eveniet", ) 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="sit", + smart_link_id="eveniet", ) 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="optio", + smart_link_id="sit", ) 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="optio", + smart_link_id="sit", 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="optio", + smart_link_id="sit", ) 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="optio", + smart_link_id="sit", ) 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="dolorum", + smart_link_id="natus", ) 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="dolorum", + smart_link_id="natus", 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="dolorum", + smart_link_id="natus", ) 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="dolorum", + smart_link_id="natus", ) 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="debitis", + smart_link_id="reprehenderit", ) 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="debitis", + smart_link_id="reprehenderit", 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="debitis", + smart_link_id="reprehenderit", ) 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="debitis", + smart_link_id="reprehenderit", ) 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="porro", + smart_link_id="voluptatem", ) 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="porro", + smart_link_id="voluptatem", 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="porro", + smart_link_id="voluptatem", ) 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="porro", + smart_link_id="voluptatem", ) 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="quia", + smart_link_id="sed", ) 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="quia", + smart_link_id="sed", 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="quia", + smart_link_id="sed", ) 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="quia", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index 6775bc08..419fc30e 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": "fyouylyvxsrkwlif", - "tags": ["amxdytimdamuzn"], + "search": "ppahbkqgh", + "tags": ["jpa"], }, 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": "yfhdcvbtqctmjvdjgna", - "tags": ["oqehayezyudlbtjmpzhvwtai"], + "search": "rolzf", + "tags": ["ilycaikjlmcrsqnjbvwxts"], }, 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": "jg", - "tags": ["zjqltrgluesaavrbfni"], + "include_smart_links": False, + "search": "ekflqkjnsfvd", + "tags": ["ekvhbzlxjdnvdamnnx"], }, 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": "funkkwkkkfkwjy", - "tags": ["bsuigqrokbbkxagxqztdi"], + "search": "upfbbzko", + "tags": ["qsje"], }, 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": "fyouylyvxsrkwlif", - "tags": ["amxdytimdamuzn"], + "search": "ppahbkqgh", + "tags": ["jpa"], }, 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": "yfhdcvbtqctmjvdjgna", - "tags": ["oqehayezyudlbtjmpzhvwtai"], + "search": "rolzf", + "tags": ["ilycaikjlmcrsqnjbvwxts"], }, 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": "jg", - "tags": ["zjqltrgluesaavrbfni"], + "include_smart_links": False, + "search": "ekflqkjnsfvd", + "tags": ["ekvhbzlxjdnvdamnnx"], }, 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": "funkkwkkkfkwjy", - "tags": ["bsuigqrokbbkxagxqztdi"], + "search": "upfbbzko", + "tags": ["qsje"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 0c1e8d8b..16358c69 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="fuga", + 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="fuga", + 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="fuga", + 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="fuga", + 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="fuga", + 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="fuga", + 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="fuga", + 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="fuga", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="deleniti", + tracking_link_id="aut", 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="deleniti", + tracking_link_id="aut", 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="deleniti", + tracking_link_id="aut", 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="deleniti", + tracking_link_id="aut", 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="deleniti", + tracking_link_id="aut", 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="fuga", + 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="fuga", + 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="fuga", + 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="fuga", + 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="fuga", + 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="fuga", + 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="fuga", + 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="fuga", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="deleniti", + tracking_link_id="aut", 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="deleniti", + tracking_link_id="aut", 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="deleniti", + tracking_link_id="aut", 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="deleniti", + tracking_link_id="aut", 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="deleniti", + tracking_link_id="aut", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 28386dc3..038c899d 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="qui", + trial_link_id="enim", 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="qui", + trial_link_id="enim", 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="qui", + trial_link_id="enim", 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="qui", + trial_link_id="enim", 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="qui", + trial_link_id="enim", 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="qui", + trial_link_id="enim", 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="qui", + trial_link_id="enim", 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="qui", + trial_link_id="enim", 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="eos", + trial_link_id="cum", 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="eos", + trial_link_id="cum", 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="eos", + trial_link_id="cum", 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="eos", + trial_link_id="cum", 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="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="laboriosam", + 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="laboriosam", + 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="laboriosam", + 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="laboriosam", + 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="distinctio", + trial_link_id="nemo", 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="distinctio", + trial_link_id="nemo", 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="distinctio", + trial_link_id="nemo", 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="distinctio", + trial_link_id="nemo", 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="distinctio", + trial_link_id="nemo", 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="qui", + trial_link_id="enim", 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="qui", + trial_link_id="enim", 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="qui", + trial_link_id="enim", 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="qui", + trial_link_id="enim", 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="qui", + trial_link_id="enim", 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="qui", + trial_link_id="enim", 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="qui", + trial_link_id="enim", 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="qui", + trial_link_id="enim", 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="eos", + trial_link_id="cum", 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="eos", + trial_link_id="cum", 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="eos", + trial_link_id="cum", 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="eos", + trial_link_id="cum", 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="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="laboriosam", + 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="laboriosam", + 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="laboriosam", + 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="laboriosam", + 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="distinctio", + trial_link_id="nemo", 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="distinctio", + trial_link_id="nemo", 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="distinctio", + trial_link_id="nemo", 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="distinctio", + trial_link_id="nemo", 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="distinctio", + trial_link_id="nemo", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index c5630be4..4ab1b3a7 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="hhciaophrjknjdzbk", + name="f", ) 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="hhciaophrjknjdzbk", + name="f", ) 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="hhciaophrjknjdzbk", + name="f", ) 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="hhciaophrjknjdzbk", + name="f", ) @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="hhciaophrjknjdzbk", + name="f", ) 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="hhciaophrjknjdzbk", + name="f", ) 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="hhciaophrjknjdzbk", + name="f", ) 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="hhciaophrjknjdzbk", + name="f", ) @pytest.mark.skip(reason="Mock server tests are disabled") From e79bbd972288c882a5cbafbf30a99f8b38d77ab6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 18:12:36 +0000 Subject: [PATCH 063/249] 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_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 +-- 16 files changed, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index f665bcab..c6fec53d 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-b3fd6f411e4f3f885f124efd7caacf561a121d2997a4066d2799c36f51d6525c.yml -openapi_spec_hash: 33bf90f03286f640335dd06e36b907a5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-569e512554419f9520769f2d037582cc61213045556a79c9c2fb75f5fe0968e6.yml +openapi_spec_hash: 40fc4027b8a5f9228d5891e1daafddf7 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 26284d72..44d327db 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="iusto", 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="iusto", 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="iusto", 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="iusto", 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="iusto", 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="iusto", 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="iusto", 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="iusto", 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="iusto", 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="iusto", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index e31c7cef..db1d92ef 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="itaque", + list_id="nesciunt", 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="itaque", + list_id="nesciunt", 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="itaque", + list_id="nesciunt", 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="itaque", + list_id="nesciunt", 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="itaque", + list_id="nesciunt", 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="itaque", + list_id="nesciunt", 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="itaque", + list_id="nesciunt", 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="itaque", + list_id="nesciunt", 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="itaque", + list_id="nesciunt", 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="itaque", + list_id="nesciunt", 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="itaque", + list_id="nesciunt", 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="itaque", + list_id="nesciunt", 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="itaque", + list_id="nesciunt", 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="itaque", + list_id="nesciunt", 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="itaque", + list_id="nesciunt", 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="itaque", + list_id="nesciunt", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index e9fd02bf..efb0fc7f 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="quos", + post_id="iste", 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="quos", + post_id="iste", 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="quos", + post_id="iste", 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="quos", + post_id="iste", 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="quos", + post_id="iste", 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="quos", + post_id="iste", 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="quos", + post_id="iste", 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="quos", + post_id="iste", 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="quos", + post_id="iste", 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="quos", + post_id="iste", 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="quos", + post_id="iste", 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="quos", + post_id="iste", 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="quos", + post_id="iste", 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="quos", + post_id="iste", 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="quos", + post_id="iste", 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="quos", + post_id="iste", 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="quos", + post_id="iste", 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="quos", + post_id="iste", 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="quos", + post_id="iste", 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="quos", + post_id="iste", 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 b5f3d61a..9c80483e 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075f..544df889 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 506c2ed9..e1fd8753 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index e12e80ca..f3f8c714 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( - "non", + "veritatis", ) 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( - "non", + "veritatis", ) 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( - "non", + "veritatis", ) 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( - "non", + "veritatis", ) 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( - "non", + "veritatis", ) 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( - "non", + "veritatis", ) 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 00fc9626..804d55ba 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="temporibus", - auth_type="mobile_app", - cookies="sint", + auth_id="consequatur", + auth_type="email_password", + cookies="ratione", custom_proxy={ "host": "proxy.example.com", - "password": "6nz'KG4~9igw", + "password": "8*tRBEk{EVj{~f!", "port": 8080, - "username": "voluptate", + "username": "incidunt", }, - email="wayne62@example.net", - force_connect=True, - name="impedit", - password="^Sz`#vcm]V", + email="faye.lynch@example.org", + force_connect=False, + name="incidunt", + password="Ze^Q@2-", proxy_country="us", - user_agent="possimus", - xbc="laudantium", + user_agent="quisquam", + xbc="voluptatem", ) 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="temporibus", - auth_type="mobile_app", - cookies="sint", + auth_id="consequatur", + auth_type="email_password", + cookies="ratione", custom_proxy={ "host": "proxy.example.com", - "password": "6nz'KG4~9igw", + "password": "8*tRBEk{EVj{~f!", "port": 8080, - "username": "voluptate", + "username": "incidunt", }, - email="wayne62@example.net", - force_connect=True, - name="impedit", - password="^Sz`#vcm]V", + email="faye.lynch@example.org", + force_connect=False, + name="incidunt", + password="Ze^Q@2-", proxy_country="us", - user_agent="possimus", - xbc="laudantium", + user_agent="quisquam", + xbc="voluptatem", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 0f3980c1..4d3e426f 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 bd4f6161..65694e23 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 47aff9a2..99038438 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": ["rbiqikvsrsmgzborawz"]}, + filter={"tags": ["phvquwdbberbhomvkawzbno"]}, 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="eveniet", + smart_link_id="enim", ) 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="eveniet", + smart_link_id="enim", 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="eveniet", + smart_link_id="enim", ) 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="eveniet", + smart_link_id="enim", ) 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="sit", + smart_link_id="aperiam", ) 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="sit", + smart_link_id="aperiam", 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="sit", + smart_link_id="aperiam", ) 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="sit", + smart_link_id="aperiam", ) 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="natus", + smart_link_id="iste", ) 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="natus", + smart_link_id="iste", 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="natus", + smart_link_id="iste", ) 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="natus", + smart_link_id="iste", ) 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="reprehenderit", + smart_link_id="quos", ) 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="reprehenderit", + smart_link_id="quos", 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="reprehenderit", + smart_link_id="quos", ) 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="reprehenderit", + smart_link_id="quos", ) 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="voluptatem", + smart_link_id="est", ) 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="voluptatem", + smart_link_id="est", 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="voluptatem", + smart_link_id="est", ) 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="voluptatem", + smart_link_id="est", ) 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="sed", + smart_link_id="necessitatibus", ) 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="sed", + smart_link_id="necessitatibus", 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="sed", + smart_link_id="necessitatibus", ) 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="sed", + smart_link_id="necessitatibus", ) 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": ["rbiqikvsrsmgzborawz"]}, + filter={"tags": ["phvquwdbberbhomvkawzbno"]}, 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="eveniet", + smart_link_id="enim", ) 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="eveniet", + smart_link_id="enim", 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="eveniet", + smart_link_id="enim", ) 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="eveniet", + smart_link_id="enim", ) 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="sit", + smart_link_id="aperiam", ) 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="sit", + smart_link_id="aperiam", 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="sit", + smart_link_id="aperiam", ) 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="sit", + smart_link_id="aperiam", ) 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="natus", + smart_link_id="iste", ) 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="natus", + smart_link_id="iste", 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="natus", + smart_link_id="iste", ) 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="natus", + smart_link_id="iste", ) 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="reprehenderit", + smart_link_id="quos", ) 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="reprehenderit", + smart_link_id="quos", 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="reprehenderit", + smart_link_id="quos", ) 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="reprehenderit", + smart_link_id="quos", ) 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="voluptatem", + smart_link_id="est", ) 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="voluptatem", + smart_link_id="est", 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="voluptatem", + smart_link_id="est", ) 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="voluptatem", + smart_link_id="est", ) 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="sed", + smart_link_id="necessitatibus", ) 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="sed", + smart_link_id="necessitatibus", 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="sed", + smart_link_id="necessitatibus", ) 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="sed", + smart_link_id="necessitatibus", ) 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 419fc30e..631ef76b 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": "ppahbkqgh", - "tags": ["jpa"], + "search": "cdacy", + "tags": ["nkfzlkgow"], }, 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": "rolzf", - "tags": ["ilycaikjlmcrsqnjbvwxts"], + "search": "urlrvqoqsnwsyvmkek", + "tags": ["oydofneiskv"], }, 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": "ekflqkjnsfvd", - "tags": ["ekvhbzlxjdnvdamnnx"], + "search": "srjwyshnttyrn", + "tags": ["hswlvtybpflqjbmz"], }, 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": "upfbbzko", - "tags": ["qsje"], + "include_smart_links": False, + "search": "fs", + "tags": ["tuu"], }, 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": "ppahbkqgh", - "tags": ["jpa"], + "search": "cdacy", + "tags": ["nkfzlkgow"], }, 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": "rolzf", - "tags": ["ilycaikjlmcrsqnjbvwxts"], + "search": "urlrvqoqsnwsyvmkek", + "tags": ["oydofneiskv"], }, 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": "ekflqkjnsfvd", - "tags": ["ekvhbzlxjdnvdamnnx"], + "search": "srjwyshnttyrn", + "tags": ["hswlvtybpflqjbmz"], }, 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": "upfbbzko", - "tags": ["qsje"], + "include_smart_links": False, + "search": "fs", + "tags": ["tuu"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 16358c69..b683575b 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="est", 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="est", 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="est", 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="est", 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="est", 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="est", 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="est", 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="est", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="aut", + tracking_link_id="corrupti", 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="aut", + tracking_link_id="corrupti", 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="aut", + tracking_link_id="corrupti", 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="aut", + tracking_link_id="corrupti", 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="aut", + tracking_link_id="corrupti", 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="est", 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="est", 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="est", 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="est", 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="est", 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="est", 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="est", 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="est", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="aut", + tracking_link_id="corrupti", 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="aut", + tracking_link_id="corrupti", 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="aut", + tracking_link_id="corrupti", 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="aut", + tracking_link_id="corrupti", 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="aut", + tracking_link_id="corrupti", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 038c899d..c3b5b6b0 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="enim", + trial_link_id="quo", 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="enim", + trial_link_id="quo", 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="enim", + trial_link_id="quo", 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="enim", + trial_link_id="quo", 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="enim", + trial_link_id="quo", 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="enim", + trial_link_id="quo", 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="enim", + trial_link_id="quo", 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="enim", + trial_link_id="quo", 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="cum", + trial_link_id="laborum", 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="cum", + trial_link_id="laborum", 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="cum", + trial_link_id="laborum", 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="cum", + trial_link_id="laborum", 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="quas", 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="quas", 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="quas", 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="quas", 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="quas", 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="enim", + trial_link_id="quo", 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="enim", + trial_link_id="quo", 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="enim", + trial_link_id="quo", 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="enim", + trial_link_id="quo", 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="enim", + trial_link_id="quo", 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="enim", + trial_link_id="quo", 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="enim", + trial_link_id="quo", 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="enim", + 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="cum", + trial_link_id="laborum", 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="cum", + trial_link_id="laborum", 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="cum", + trial_link_id="laborum", 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="cum", + trial_link_id="laborum", 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="quas", 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="quas", 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="quas", 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="quas", 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="quas", 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + trial_link_id="et", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 4ab1b3a7..9071526d 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="f", + name="piwnvjnz", ) 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="f", + name="piwnvjnz", ) 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="f", + name="piwnvjnz", ) 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="f", + name="piwnvjnz", ) @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="f", + name="piwnvjnz", ) 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="f", + name="piwnvjnz", ) 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="f", + name="piwnvjnz", ) 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="f", + name="piwnvjnz", ) @pytest.mark.skip(reason="Mock server tests are disabled") From cc58005c7034682c16182a57dddd4810849773a1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 19:12:37 +0000 Subject: [PATCH 064/249] 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_client_sessions.py | 4 +- tests/api_resources/test_notifications.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 +-- 16 files changed, 264 insertions(+), 264 deletions(-) diff --git a/.stats.yml b/.stats.yml index c6fec53d..2488d92c 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-569e512554419f9520769f2d037582cc61213045556a79c9c2fb75f5fe0968e6.yml -openapi_spec_hash: 40fc4027b8a5f9228d5891e1daafddf7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a8b4a89615c2d4024622d6bde7d1a3f177025e5df49bfed60c50ba0465647c01.yml +openapi_spec_hash: 1d15562f53aed866aea86adaa0e24c3c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 44d327db..b22b93e5 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="iusto", + message_id="illum", 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="iusto", + message_id="illum", 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="iusto", + message_id="illum", 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="iusto", + message_id="illum", 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="iusto", + message_id="illum", 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="iusto", + message_id="illum", 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="iusto", + message_id="illum", 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="iusto", + message_id="illum", 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="iusto", + message_id="illum", 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="iusto", + message_id="illum", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index db1d92ef..370ff897 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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 efb0fc7f..6f979536 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="iste", + post_id="id", 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="iste", + post_id="id", 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="iste", + post_id="id", 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="iste", + post_id="id", 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="iste", + post_id="id", 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="iste", + post_id="id", 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="iste", + post_id="id", 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="iste", + post_id="id", 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="iste", + post_id="id", 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="iste", + post_id="id", 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="iste", + post_id="id", 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="iste", + post_id="id", 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="iste", + post_id="id", 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="iste", + post_id="id", 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="iste", + post_id="id", 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="iste", + post_id="id", 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="iste", + post_id="id", 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="iste", + post_id="id", 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="iste", + post_id="id", 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="iste", + post_id="id", 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 9c80483e..2ced6cb5 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 e1fd8753..95bf6c81 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="aut", + path_story_id="omnis", 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="aut", + path_story_id="omnis", 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="aut", + path_story_id="omnis", 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="aut", + path_story_id="omnis", 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="aut", + story_id="omnis", 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="aut", + story_id="omnis", 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="aut", + story_id="omnis", 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="aut", + story_id="omnis", 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="aut", + path_story_id="omnis", 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="aut", + path_story_id="omnis", 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="aut", + path_story_id="omnis", 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="aut", + path_story_id="omnis", 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="aut", + story_id="omnis", 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="aut", + story_id="omnis", 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="aut", + story_id="omnis", 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="aut", + story_id="omnis", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index f3f8c714..7506d9b8 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( - "veritatis", + "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( - "veritatis", + "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( - "veritatis", + "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( - "veritatis", + "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( - "veritatis", + "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( - "veritatis", + "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 804d55ba..e948a36c 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="consequatur", - auth_type="email_password", - cookies="ratione", + auth_id="inventore", + auth_type="mobile_app", + cookies="dolorem", custom_proxy={ "host": "proxy.example.com", - "password": "8*tRBEk{EVj{~f!", + "password": "'[cnS]~r", "port": 8080, - "username": "incidunt", + "username": "et", }, - email="faye.lynch@example.org", - force_connect=False, - name="incidunt", - password="Ze^Q@2-", - proxy_country="us", - user_agent="quisquam", - xbc="voluptatem", + email="stehr.harmony@example.com", + force_connect=True, + name="quibusdam", + password="WsZL$vuxO", + proxy_country="uk", + user_agent="laborum", + xbc="reiciendis", ) 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="consequatur", - auth_type="email_password", - cookies="ratione", + auth_id="inventore", + auth_type="mobile_app", + cookies="dolorem", custom_proxy={ "host": "proxy.example.com", - "password": "8*tRBEk{EVj{~f!", + "password": "'[cnS]~r", "port": 8080, - "username": "incidunt", + "username": "et", }, - email="faye.lynch@example.org", - force_connect=False, - name="incidunt", - password="Ze^Q@2-", - proxy_country="us", - user_agent="quisquam", - xbc="voluptatem", + email="stehr.harmony@example.com", + force_connect=True, + name="quibusdam", + password="WsZL$vuxO", + proxy_country="uk", + user_agent="laborum", + xbc="reiciendis", ) 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 9249f386..3597ede6 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 4d3e426f..aaff3bff 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 99038438..f05426d3 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": ["phvquwdbberbhomvkawzbno"]}, + filter={"tags": ["whpvoffpnxqegnfro"]}, 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="enim", + smart_link_id="eaque", ) 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="enim", + smart_link_id="eaque", 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="enim", + smart_link_id="eaque", ) 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="enim", + smart_link_id="eaque", ) 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="aperiam", + smart_link_id="omnis", ) 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="aperiam", + smart_link_id="omnis", 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="aperiam", + smart_link_id="omnis", ) 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="aperiam", + smart_link_id="omnis", ) 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="iste", + smart_link_id="nihil", ) 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="iste", + smart_link_id="nihil", 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="iste", + smart_link_id="nihil", ) 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="iste", + smart_link_id="nihil", ) 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="quos", + smart_link_id="suscipit", ) 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="quos", + smart_link_id="suscipit", 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="quos", + smart_link_id="suscipit", ) 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="quos", + smart_link_id="suscipit", ) 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="est", + smart_link_id="minima", ) 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="est", + smart_link_id="minima", 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="est", + smart_link_id="minima", ) 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="est", + smart_link_id="minima", ) 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="necessitatibus", + smart_link_id="aspernatur", ) 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="necessitatibus", + smart_link_id="aspernatur", 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="necessitatibus", + smart_link_id="aspernatur", ) 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="necessitatibus", + smart_link_id="aspernatur", ) 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": ["phvquwdbberbhomvkawzbno"]}, + filter={"tags": ["whpvoffpnxqegnfro"]}, 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="enim", + smart_link_id="eaque", ) 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="enim", + smart_link_id="eaque", 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="enim", + smart_link_id="eaque", ) 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="enim", + smart_link_id="eaque", ) 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="aperiam", + smart_link_id="omnis", ) 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="aperiam", + smart_link_id="omnis", 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="aperiam", + smart_link_id="omnis", ) 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="aperiam", + smart_link_id="omnis", ) 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="iste", + smart_link_id="nihil", ) 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="iste", + smart_link_id="nihil", 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="iste", + smart_link_id="nihil", ) 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="iste", + smart_link_id="nihil", ) 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="quos", + smart_link_id="suscipit", ) 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="quos", + smart_link_id="suscipit", 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="quos", + smart_link_id="suscipit", ) 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="quos", + smart_link_id="suscipit", ) 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="est", + smart_link_id="minima", ) 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="est", + smart_link_id="minima", 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="est", + smart_link_id="minima", ) 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="est", + smart_link_id="minima", ) 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="necessitatibus", + smart_link_id="aspernatur", ) 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="necessitatibus", + smart_link_id="aspernatur", 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="necessitatibus", + smart_link_id="aspernatur", ) 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="necessitatibus", + smart_link_id="aspernatur", ) 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 631ef76b..5a19daec 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": "cdacy", - "tags": ["nkfzlkgow"], + "search": "ebgytbhjzsybsqltubqqpk", + "tags": ["bjsphbo"], }, 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": "urlrvqoqsnwsyvmkek", - "tags": ["oydofneiskv"], + "search": "hzjhtwnxcnovsi", + "tags": ["tjnhqbhlwmdkmoodyqwwsalen"], }, 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": "srjwyshnttyrn", - "tags": ["hswlvtybpflqjbmz"], + "include_smart_links": True, + "search": "pdhfeudswlvkdydhwuvhwfulv", + "tags": ["sopagjevccfmv"], }, 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": "fs", - "tags": ["tuu"], + "search": "d", + "tags": ["vxutyiodpbqaewc"], }, 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": "cdacy", - "tags": ["nkfzlkgow"], + "search": "ebgytbhjzsybsqltubqqpk", + "tags": ["bjsphbo"], }, 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": "urlrvqoqsnwsyvmkek", - "tags": ["oydofneiskv"], + "search": "hzjhtwnxcnovsi", + "tags": ["tjnhqbhlwmdkmoodyqwwsalen"], }, 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": "srjwyshnttyrn", - "tags": ["hswlvtybpflqjbmz"], + "include_smart_links": True, + "search": "pdhfeudswlvkdydhwuvhwfulv", + "tags": ["sopagjevccfmv"], }, 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": "fs", - "tags": ["tuu"], + "search": "d", + "tags": ["vxutyiodpbqaewc"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index b683575b..ec559bf0 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="est", + tracking_link_id="aut", 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="est", + tracking_link_id="aut", 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="est", + tracking_link_id="aut", 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="est", + tracking_link_id="aut", 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="est", + tracking_link_id="aut", 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="est", + tracking_link_id="aut", 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="est", + tracking_link_id="aut", 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="est", + tracking_link_id="aut", 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="reiciendis", + 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="reiciendis", + 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="reiciendis", + 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="reiciendis", + 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="reiciendis", + 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="corrupti", + tracking_link_id="quos", 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="corrupti", + tracking_link_id="quos", 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="corrupti", + tracking_link_id="quos", 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="corrupti", + tracking_link_id="quos", 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="corrupti", + tracking_link_id="quos", 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="est", + tracking_link_id="aut", 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="est", + tracking_link_id="aut", 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="est", + tracking_link_id="aut", 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="est", + tracking_link_id="aut", 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="est", + tracking_link_id="aut", 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="est", + tracking_link_id="aut", 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="est", + tracking_link_id="aut", 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="est", + tracking_link_id="aut", 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="reiciendis", + 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="reiciendis", + 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="reiciendis", + 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="reiciendis", + 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="reiciendis", + 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="corrupti", + tracking_link_id="quos", 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="corrupti", + tracking_link_id="quos", 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="corrupti", + tracking_link_id="quos", 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="corrupti", + tracking_link_id="quos", 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="corrupti", + tracking_link_id="quos", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index c3b5b6b0..873c6b84 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="quo", + trial_link_id="corporis", 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="quo", + trial_link_id="corporis", 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="quo", + trial_link_id="corporis", 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="quo", + trial_link_id="corporis", 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="quo", + trial_link_id="corporis", 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="quo", + trial_link_id="corporis", 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="quo", + trial_link_id="corporis", 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="quo", + trial_link_id="corporis", 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="laborum", + 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="laborum", + 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="laborum", + 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="laborum", + 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="quas", + trial_link_id="odio", 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="quas", + trial_link_id="odio", 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="quas", + trial_link_id="odio", 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="quas", + trial_link_id="odio", 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="quas", + trial_link_id="odio", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="quo", + trial_link_id="corporis", 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="quo", + trial_link_id="corporis", 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="quo", + trial_link_id="corporis", 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="quo", + trial_link_id="corporis", 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="quo", + trial_link_id="corporis", 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="quo", + trial_link_id="corporis", 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="quo", + trial_link_id="corporis", 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="quo", + trial_link_id="corporis", 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="laborum", + 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="laborum", + 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="laborum", + 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="laborum", + 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="quas", + trial_link_id="odio", 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="quas", + trial_link_id="odio", 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="quas", + trial_link_id="odio", 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="quas", + trial_link_id="odio", 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="quas", + trial_link_id="odio", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 9071526d..973a5b7d 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="piwnvjnz", + name="nwhw", ) 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="piwnvjnz", + name="nwhw", ) 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="piwnvjnz", + name="nwhw", ) 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="piwnvjnz", + name="nwhw", ) @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="piwnvjnz", + name="nwhw", ) 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="piwnvjnz", + name="nwhw", ) 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="piwnvjnz", + name="nwhw", ) 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="piwnvjnz", + name="nwhw", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 8094519c54d9931fb860e6b8c7ae002d9ff1317c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 22:12:36 +0000 Subject: [PATCH 065/249] 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 | 40 +++---- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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 2488d92c..178f3ba2 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-a8b4a89615c2d4024622d6bde7d1a3f177025e5df49bfed60c50ba0465647c01.yml -openapi_spec_hash: 1d15562f53aed866aea86adaa0e24c3c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ccd70f4c3f998c337a1838bbae26248928e6a83553de2a42822d59d9719d787b.yml +openapi_spec_hash: 23a53f5349b4af49e5f882235b886142 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index b22b93e5..becd6666 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="illum", + message_id="dolorum", 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="illum", + message_id="dolorum", 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="illum", + message_id="dolorum", 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="illum", + message_id="dolorum", 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="illum", + message_id="dolorum", 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="illum", + message_id="dolorum", 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="illum", + message_id="dolorum", 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="illum", + message_id="dolorum", 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="illum", + message_id="dolorum", 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="illum", + message_id="dolorum", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 370ff897..6cda517c 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", 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="harum", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 6f979536..68fb3ae6 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="id", + post_id="totam", 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="id", + post_id="totam", 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="id", + post_id="totam", 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="id", + post_id="totam", 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="id", + post_id="totam", 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="id", + post_id="totam", 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="id", + post_id="totam", 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="id", + post_id="totam", 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="id", + post_id="totam", 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="id", + post_id="totam", 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="id", + post_id="totam", 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="id", + post_id="totam", 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="id", + post_id="totam", 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="id", + post_id="totam", 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="id", + post_id="totam", 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="id", + post_id="totam", 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="id", + post_id="totam", 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="id", + post_id="totam", 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="id", + post_id="totam", 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="id", + post_id="totam", 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 2ced6cb5..9c80483e 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 95bf6c81..d6b66103 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="omnis", + path_story_id="ducimus", 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="omnis", + path_story_id="ducimus", 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="omnis", + path_story_id="ducimus", 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="omnis", + path_story_id="ducimus", 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="omnis", + story_id="ducimus", 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="omnis", + story_id="ducimus", 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="omnis", + story_id="ducimus", 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="omnis", + story_id="ducimus", 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="omnis", + path_story_id="ducimus", 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="omnis", + path_story_id="ducimus", 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="omnis", + path_story_id="ducimus", 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="omnis", + path_story_id="ducimus", 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="omnis", + story_id="ducimus", 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="omnis", + story_id="ducimus", 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="omnis", + story_id="ducimus", 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="omnis", + story_id="ducimus", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 7506d9b8..a5dc9a19 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", + "saepe", ) 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", + "saepe", ) 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", + "saepe", ) 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", + "saepe", ) 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", + "saepe", ) 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", + "saepe", ) 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 e948a36c..c00cd0ca 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="inventore", + auth_id="voluptatibus", auth_type="mobile_app", - cookies="dolorem", + cookies="aliquid", custom_proxy={ "host": "proxy.example.com", - "password": "'[cnS]~r", + "password": 'LD8,"nAX&t', "port": 8080, - "username": "et", + "username": "magnam", }, - email="stehr.harmony@example.com", + email="xziemann@example.org", force_connect=True, - name="quibusdam", - password="WsZL$vuxO", - proxy_country="uk", - user_agent="laborum", - xbc="reiciendis", + name="consequatur", + password='3y<~%Pwjmir%!@pvZ|"', + proxy_country="us", + user_agent="consequatur", + xbc="enim", ) 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="inventore", + auth_id="voluptatibus", auth_type="mobile_app", - cookies="dolorem", + cookies="aliquid", custom_proxy={ "host": "proxy.example.com", - "password": "'[cnS]~r", + "password": 'LD8,"nAX&t', "port": 8080, - "username": "et", + "username": "magnam", }, - email="stehr.harmony@example.com", + email="xziemann@example.org", force_connect=True, - name="quibusdam", - password="WsZL$vuxO", - proxy_country="uk", - user_agent="laborum", - xbc="reiciendis", + name="consequatur", + password='3y<~%Pwjmir%!@pvZ|"', + proxy_country="us", + user_agent="consequatur", + xbc="enim", ) 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 f05426d3..8cf8be04 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": ["whpvoffpnxqegnfro"]}, + filter={"tags": ["cpvidjjh"]}, 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="eaque", + smart_link_id="qui", ) 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="eaque", + smart_link_id="qui", 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="eaque", + smart_link_id="qui", ) 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="eaque", + smart_link_id="qui", ) 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="omnis", + smart_link_id="ipsa", ) 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="omnis", + smart_link_id="ipsa", 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="omnis", + smart_link_id="ipsa", ) 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="omnis", + smart_link_id="ipsa", ) 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="nihil", + smart_link_id="qui", ) 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="nihil", + smart_link_id="qui", 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="nihil", + smart_link_id="qui", ) 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="nihil", + smart_link_id="qui", ) 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="suscipit", + smart_link_id="nesciunt", ) 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="suscipit", + smart_link_id="nesciunt", 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="suscipit", + smart_link_id="nesciunt", ) 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="suscipit", + smart_link_id="nesciunt", ) 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="minima", + smart_link_id="voluptatem", ) 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="minima", + smart_link_id="voluptatem", 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="minima", + smart_link_id="voluptatem", ) 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="minima", + smart_link_id="voluptatem", ) 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="aspernatur", + smart_link_id="aut", ) 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="aspernatur", + smart_link_id="aut", 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="aspernatur", + smart_link_id="aut", ) 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="aspernatur", + smart_link_id="aut", ) 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": ["whpvoffpnxqegnfro"]}, + filter={"tags": ["cpvidjjh"]}, 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="eaque", + smart_link_id="qui", ) 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="eaque", + smart_link_id="qui", 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="eaque", + smart_link_id="qui", ) 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="eaque", + smart_link_id="qui", ) 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="omnis", + smart_link_id="ipsa", ) 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="omnis", + smart_link_id="ipsa", 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="omnis", + smart_link_id="ipsa", ) 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="omnis", + smart_link_id="ipsa", ) 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="nihil", + smart_link_id="qui", ) 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="nihil", + smart_link_id="qui", 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="nihil", + smart_link_id="qui", ) 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="nihil", + smart_link_id="qui", ) 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="suscipit", + smart_link_id="nesciunt", ) 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="suscipit", + smart_link_id="nesciunt", 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="suscipit", + smart_link_id="nesciunt", ) 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="suscipit", + smart_link_id="nesciunt", ) 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="minima", + smart_link_id="voluptatem", ) 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="minima", + smart_link_id="voluptatem", 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="minima", + smart_link_id="voluptatem", ) 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="minima", + smart_link_id="voluptatem", ) 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="aspernatur", + smart_link_id="aut", ) 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="aspernatur", + smart_link_id="aut", 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="aspernatur", + smart_link_id="aut", ) 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="aspernatur", + 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 5a19daec..df5b7db5 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": "ebgytbhjzsybsqltubqqpk", - "tags": ["bjsphbo"], + "search": "ayerenjia", + "tags": ["puxtgtbppkoybwbkm"], }, 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": "hzjhtwnxcnovsi", - "tags": ["tjnhqbhlwmdkmoodyqwwsalen"], + "search": "cwwocjiibcrrnn", + "tags": ["camaqxcwn"], }, 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": "pdhfeudswlvkdydhwuvhwfulv", - "tags": ["sopagjevccfmv"], + "include_smart_links": False, + "search": "vhwxahrctnmxrqjx", + "tags": ["xip"], }, 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": "d", - "tags": ["vxutyiodpbqaewc"], + "include_smart_links": True, + "search": "ysuwiutlieyoeuxkzxxpyxf", + "tags": ["kbbzcuzsmpirzhteqes"], }, 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": "ebgytbhjzsybsqltubqqpk", - "tags": ["bjsphbo"], + "search": "ayerenjia", + "tags": ["puxtgtbppkoybwbkm"], }, 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": "hzjhtwnxcnovsi", - "tags": ["tjnhqbhlwmdkmoodyqwwsalen"], + "search": "cwwocjiibcrrnn", + "tags": ["camaqxcwn"], }, 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": "pdhfeudswlvkdydhwuvhwfulv", - "tags": ["sopagjevccfmv"], + "include_smart_links": False, + "search": "vhwxahrctnmxrqjx", + "tags": ["xip"], }, 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": "d", - "tags": ["vxutyiodpbqaewc"], + "include_smart_links": True, + "search": "ysuwiutlieyoeuxkzxxpyxf", + "tags": ["kbbzcuzsmpirzhteqes"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index ec559bf0..c71a164b 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="aut", + tracking_link_id="nesciunt", 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="aut", + tracking_link_id="nesciunt", 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="aut", + tracking_link_id="nesciunt", 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="aut", + tracking_link_id="nesciunt", 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="aut", + tracking_link_id="nesciunt", 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="aut", + tracking_link_id="nesciunt", 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="aut", + tracking_link_id="nesciunt", 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="aut", + tracking_link_id="nesciunt", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="quos", + tracking_link_id="repellat", 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="quos", + tracking_link_id="repellat", 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="quos", + tracking_link_id="repellat", 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="quos", + tracking_link_id="repellat", 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="quos", + tracking_link_id="repellat", 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="aut", + tracking_link_id="nesciunt", 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="aut", + tracking_link_id="nesciunt", 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="aut", + tracking_link_id="nesciunt", 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="aut", + tracking_link_id="nesciunt", 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="aut", + tracking_link_id="nesciunt", 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="aut", + tracking_link_id="nesciunt", 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="aut", + tracking_link_id="nesciunt", 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="aut", + tracking_link_id="nesciunt", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="quos", + tracking_link_id="repellat", 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="quos", + tracking_link_id="repellat", 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="quos", + tracking_link_id="repellat", 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="quos", + tracking_link_id="repellat", 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="quos", + tracking_link_id="repellat", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 873c6b84..ef183168 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="corporis", + trial_link_id="facilis", 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="corporis", + trial_link_id="facilis", 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="corporis", + trial_link_id="facilis", 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="corporis", + trial_link_id="facilis", 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="corporis", + trial_link_id="facilis", 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="corporis", + trial_link_id="facilis", 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="corporis", + trial_link_id="facilis", 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="corporis", + trial_link_id="facilis", 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="iusto", + 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="iusto", + 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="iusto", + 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="iusto", + 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="odio", + 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="odio", + 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="odio", + 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="odio", + 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="odio", + 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="sed", + trial_link_id="animi", 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="sed", + trial_link_id="animi", 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="sed", + trial_link_id="animi", 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="sed", + trial_link_id="animi", 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="sed", + trial_link_id="animi", 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="corporis", + trial_link_id="facilis", 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="corporis", + trial_link_id="facilis", 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="corporis", + trial_link_id="facilis", 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="corporis", + trial_link_id="facilis", 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="corporis", + trial_link_id="facilis", 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="corporis", + trial_link_id="facilis", 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="corporis", + trial_link_id="facilis", 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="corporis", + trial_link_id="facilis", 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="iusto", + 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="iusto", + 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="iusto", + 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="iusto", + 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="odio", + 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="odio", + 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="odio", + 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="odio", + 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="odio", + 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="sed", + trial_link_id="animi", 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="sed", + trial_link_id="animi", 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="sed", + trial_link_id="animi", 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="sed", + trial_link_id="animi", 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="sed", + trial_link_id="animi", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 973a5b7d..7f30f969 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="nwhw", + name="nmecijgyyql", ) 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="nwhw", + name="nmecijgyyql", ) 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="nwhw", + name="nmecijgyyql", ) 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="nwhw", + name="nmecijgyyql", ) @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="nwhw", + name="nmecijgyyql", ) 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="nwhw", + name="nmecijgyyql", ) 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="nwhw", + name="nmecijgyyql", ) 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="nwhw", + name="nmecijgyyql", ) @pytest.mark.skip(reason="Mock server tests are disabled") From c0e6856931fd11a311e8f23773d2d92f011239ff Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 17 Jun 2026 16:12:37 +0000 Subject: [PATCH 066/249] 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_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 +-- 16 files changed, 268 insertions(+), 268 deletions(-) diff --git a/.stats.yml b/.stats.yml index 178f3ba2..5cb98e7f 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-ccd70f4c3f998c337a1838bbae26248928e6a83553de2a42822d59d9719d787b.yml -openapi_spec_hash: 23a53f5349b4af49e5f882235b886142 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7912c719a0b0a1baa8fa755329074f71a0590b3656dd32b85e7278044faa27df.yml +openapi_spec_hash: 118d0f0f2396283957913bffbf3057aa config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index becd6666..53892a4a 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="dolorum", + message_id="nemo", 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="dolorum", + message_id="nemo", 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="dolorum", + message_id="nemo", 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="dolorum", + message_id="nemo", 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="dolorum", + message_id="nemo", 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="dolorum", + message_id="nemo", 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="dolorum", + message_id="nemo", 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="dolorum", + message_id="nemo", 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="dolorum", + message_id="nemo", 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="dolorum", + message_id="nemo", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 6cda517c..977841df 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="harum", + list_id="omnis", 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="harum", + list_id="omnis", 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="harum", + list_id="omnis", 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="harum", + list_id="omnis", 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="harum", + list_id="omnis", 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="harum", + list_id="omnis", 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="harum", + list_id="omnis", 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="harum", + list_id="omnis", 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="harum", + list_id="omnis", 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="harum", + list_id="omnis", 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="harum", + list_id="omnis", 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="harum", + list_id="omnis", 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="harum", + list_id="omnis", 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="harum", + list_id="omnis", 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="harum", + list_id="omnis", 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="harum", + list_id="omnis", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 68fb3ae6..f374e50d 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="totam", + 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="totam", + 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="totam", + 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="totam", + 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="totam", + 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="totam", + 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="totam", + 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="totam", + 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="totam", + 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="totam", + 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="totam", + 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="totam", + 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="totam", + 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="totam", + 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="totam", + 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="totam", + 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="totam", + 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="totam", + 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="totam", + 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="totam", + 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 7549791e..444937ba 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 9c80483e..fc7b1635 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 d6b66103..ddd9b439 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="ducimus", + path_story_id="eos", 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="ducimus", + path_story_id="eos", 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="ducimus", + path_story_id="eos", 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="ducimus", + path_story_id="eos", 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="ducimus", + story_id="eos", 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="ducimus", + story_id="eos", 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="ducimus", + story_id="eos", 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="ducimus", + story_id="eos", 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="ducimus", + path_story_id="eos", 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="ducimus", + path_story_id="eos", 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="ducimus", + path_story_id="eos", 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="ducimus", + path_story_id="eos", 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="ducimus", + story_id="eos", 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="ducimus", + story_id="eos", 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="ducimus", + story_id="eos", 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="ducimus", + story_id="eos", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index a5dc9a19..0448a159 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( - "saepe", + "accusamus", ) 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( - "saepe", + "accusamus", ) 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( - "saepe", + "accusamus", ) 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( - "saepe", + "accusamus", ) 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( - "saepe", + "accusamus", ) 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( - "saepe", + "accusamus", ) 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 c00cd0ca..33a990a4 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="voluptatibus", + auth_id="illum", auth_type="mobile_app", - cookies="aliquid", + cookies="sit", custom_proxy={ "host": "proxy.example.com", - "password": 'LD8,"nAX&t', + "password": "qQ})OJ~10", "port": 8080, - "username": "magnam", + "username": "et", }, - email="xziemann@example.org", - force_connect=True, - name="consequatur", - password='3y<~%Pwjmir%!@pvZ|"', - proxy_country="us", - user_agent="consequatur", - xbc="enim", + email="maverick.wyman@example.com", + force_connect=False, + name="et", + password='V6E-7NCd_p"J&I', + proxy_country="uk", + user_agent="praesentium", + 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="voluptatibus", + auth_id="illum", auth_type="mobile_app", - cookies="aliquid", + cookies="sit", custom_proxy={ "host": "proxy.example.com", - "password": 'LD8,"nAX&t', + "password": "qQ})OJ~10", "port": 8080, - "username": "magnam", + "username": "et", }, - email="xziemann@example.org", - force_connect=True, - name="consequatur", - password='3y<~%Pwjmir%!@pvZ|"', - proxy_country="us", - user_agent="consequatur", - xbc="enim", + email="maverick.wyman@example.com", + force_connect=False, + name="et", + password='V6E-7NCd_p"J&I', + proxy_country="uk", + user_agent="praesentium", + 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 3597ede6..9249f386 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 aaff3bff..0f3980c1 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="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="promotions", + 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 8cf8be04..a1d41347 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": ["cpvidjjh"]}, + filter={"tags": ["bxcydejqizkewcfhp"]}, 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="qui", + smart_link_id="quas", ) 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="qui", + smart_link_id="quas", 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="qui", + smart_link_id="quas", ) 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="qui", + smart_link_id="quas", ) 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="ipsa", + smart_link_id="beatae", ) 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="ipsa", + smart_link_id="beatae", 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="ipsa", + smart_link_id="beatae", ) 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="ipsa", + smart_link_id="beatae", ) 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="qui", + smart_link_id="porro", ) 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="qui", + smart_link_id="porro", 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="qui", + smart_link_id="porro", ) 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="qui", + smart_link_id="porro", ) 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="nesciunt", + smart_link_id="beatae", ) 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="nesciunt", + smart_link_id="beatae", 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="nesciunt", + smart_link_id="beatae", ) 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="nesciunt", + smart_link_id="beatae", ) 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="voluptatem", + smart_link_id="enim", ) 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="voluptatem", + smart_link_id="enim", 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="voluptatem", + smart_link_id="enim", ) 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="voluptatem", + smart_link_id="enim", ) 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="aut", + smart_link_id="autem", ) 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="aut", + smart_link_id="autem", 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="aut", + smart_link_id="autem", ) 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="aut", + smart_link_id="autem", ) 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": ["cpvidjjh"]}, + filter={"tags": ["bxcydejqizkewcfhp"]}, 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="qui", + smart_link_id="quas", ) 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="qui", + smart_link_id="quas", 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="qui", + smart_link_id="quas", ) 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="qui", + smart_link_id="quas", ) 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="ipsa", + smart_link_id="beatae", ) 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="ipsa", + smart_link_id="beatae", 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="ipsa", + smart_link_id="beatae", ) 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="ipsa", + smart_link_id="beatae", ) 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="qui", + smart_link_id="porro", ) 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="qui", + smart_link_id="porro", 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="qui", + smart_link_id="porro", ) 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="qui", + smart_link_id="porro", ) 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="nesciunt", + smart_link_id="beatae", ) 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="nesciunt", + smart_link_id="beatae", 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="nesciunt", + smart_link_id="beatae", ) 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="nesciunt", + smart_link_id="beatae", ) 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="voluptatem", + smart_link_id="enim", ) 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="voluptatem", + smart_link_id="enim", 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="voluptatem", + smart_link_id="enim", ) 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="voluptatem", + smart_link_id="enim", ) 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="aut", + smart_link_id="autem", ) 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="aut", + smart_link_id="autem", 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="aut", + smart_link_id="autem", ) 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="aut", + smart_link_id="autem", ) 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 df5b7db5..173ec020 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": "ayerenjia", - "tags": ["puxtgtbppkoybwbkm"], + "search": "hvherctxzkh", + "tags": ["swwmkvhsjbgpuizyrkshamlu"], }, 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": "cwwocjiibcrrnn", - "tags": ["camaqxcwn"], + "search": "zspzjhvh", + "tags": ["lvrsvwnqfslgevmaivhrqpvu"], }, 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": "vhwxahrctnmxrqjx", - "tags": ["xip"], + "include_smart_links": True, + "search": "momdnhnynuqnt", + "tags": ["vfzpcgewviimv"], }, 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": "ysuwiutlieyoeuxkzxxpyxf", - "tags": ["kbbzcuzsmpirzhteqes"], + "search": "bwrzgpwfndfvleezdpkvxqgqn", + "tags": ["wourumekerjqhylgwxgnqwn"], }, 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": "ayerenjia", - "tags": ["puxtgtbppkoybwbkm"], + "search": "hvherctxzkh", + "tags": ["swwmkvhsjbgpuizyrkshamlu"], }, 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": "cwwocjiibcrrnn", - "tags": ["camaqxcwn"], + "search": "zspzjhvh", + "tags": ["lvrsvwnqfslgevmaivhrqpvu"], }, 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": "vhwxahrctnmxrqjx", - "tags": ["xip"], + "include_smart_links": True, + "search": "momdnhnynuqnt", + "tags": ["vfzpcgewviimv"], }, 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": "ysuwiutlieyoeuxkzxxpyxf", - "tags": ["kbbzcuzsmpirzhteqes"], + "search": "bwrzgpwfndfvleezdpkvxqgqn", + "tags": ["wourumekerjqhylgwxgnqwn"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index c71a164b..2990adce 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="fugit", + tracking_link_id="ipsum", 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="fugit", + tracking_link_id="ipsum", 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="fugit", + tracking_link_id="ipsum", 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="fugit", + tracking_link_id="ipsum", 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="fugit", + tracking_link_id="ipsum", 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="repellat", + tracking_link_id="nostrum", 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="repellat", + tracking_link_id="nostrum", 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="repellat", + tracking_link_id="nostrum", 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="repellat", + tracking_link_id="nostrum", 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="repellat", + tracking_link_id="nostrum", 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="fugit", + tracking_link_id="ipsum", 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="fugit", + tracking_link_id="ipsum", 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="fugit", + tracking_link_id="ipsum", 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="fugit", + tracking_link_id="ipsum", 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="fugit", + tracking_link_id="ipsum", 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="repellat", + tracking_link_id="nostrum", 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="repellat", + tracking_link_id="nostrum", 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="repellat", + tracking_link_id="nostrum", 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="repellat", + tracking_link_id="nostrum", 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="repellat", + tracking_link_id="nostrum", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index ef183168..7cdaa63a 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="et", + 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="et", + 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="et", + 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="et", + 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="laboriosam", + trial_link_id="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="animi", + 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="animi", + 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="animi", + 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="animi", + 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="animi", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="et", + 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="et", + 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="et", + 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="et", + 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="laboriosam", + trial_link_id="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="animi", + 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="animi", + 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="animi", + 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="animi", + 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="animi", + trial_link_id="dolorem", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 7f30f969..43e94767 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="nmecijgyyql", + name="oembzyfjpgadwxeelekmwjrmy", ) 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="nmecijgyyql", + name="oembzyfjpgadwxeelekmwjrmy", ) 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="nmecijgyyql", + name="oembzyfjpgadwxeelekmwjrmy", ) 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="nmecijgyyql", + name="oembzyfjpgadwxeelekmwjrmy", ) @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="nmecijgyyql", + name="oembzyfjpgadwxeelekmwjrmy", ) 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="nmecijgyyql", + name="oembzyfjpgadwxeelekmwjrmy", ) 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="nmecijgyyql", + name="oembzyfjpgadwxeelekmwjrmy", ) 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="nmecijgyyql", + name="oembzyfjpgadwxeelekmwjrmy", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 5e54e4dcab360a81947e39d3a917851859db8235 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 17 Jun 2026 17:12:38 +0000 Subject: [PATCH 067/249] feat(api): api update --- .stats.yml | 6 +- api.md | 12 - src/onlyfansapi/_client.py | 38 ---- src/onlyfansapi/resources/__init__.py | 14 -- src/onlyfansapi/resources/messages.py | 211 ------------------ src/onlyfansapi/types/__init__.py | 2 - .../types/message_attach_tags_params.py | 22 -- .../types/message_attach_tags_response.py | 51 ----- .../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_messages.py | 152 ------------- 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 +- 24 files changed, 261 insertions(+), 763 deletions(-) delete mode 100644 src/onlyfansapi/resources/messages.py delete mode 100644 src/onlyfansapi/types/message_attach_tags_params.py delete mode 100644 src/onlyfansapi/types/message_attach_tags_response.py delete mode 100644 tests/api_resources/test_messages.py diff --git a/.stats.yml b/.stats.yml index 5cb98e7f..793df376 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-7912c719a0b0a1baa8fa755329074f71a0590b3656dd32b85e7278044faa27df.yml -openapi_spec_hash: 118d0f0f2396283957913bffbf3057aa +configured_endpoints: 265 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9c336e3e172973bccca6d3a512807040e2e8f4c26daa3f2238e1ab9883e0472a.yml +openapi_spec_hash: 8828ab31a133fadb496a5bcc1af6c9dc config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/api.md b/api.md index b589a1e2..39147900 100644 --- a/api.md +++ b/api.md @@ -233,18 +233,6 @@ Methods: - client.chats.mark_all_as_read.all(account) -> MarkAllAsReadAllResponse -# Messages - -Types: - -```python -from onlyfansapi.types import MessageAttachTagsResponse -``` - -Methods: - -- client.messages.attach_tags(message_id, \*, account, \*\*params) -> MessageAttachTagsResponse - # ClientSessions Types: diff --git a/src/onlyfansapi/_client.py b/src/onlyfansapi/_client.py index 21e7cffd..6b250680 100644 --- a/src/onlyfansapi/_client.py +++ b/src/onlyfansapi/_client.py @@ -53,7 +53,6 @@ payouts, stories, accounts, - messages, profiles, settings, webhooks, @@ -90,7 +89,6 @@ from .resources.bundles import BundlesResource, AsyncBundlesResource from .resources.payouts import PayoutsResource, AsyncPayoutsResource from .resources.accounts import AccountsResource, AsyncAccountsResource - from .resources.messages import MessagesResource, AsyncMessagesResource from .resources.profiles import ProfilesResource, AsyncProfilesResource from .resources.webhooks import WebhooksResource, AsyncWebhooksResource from .resources.fans.fans import FansResource, AsyncFansResource @@ -251,12 +249,6 @@ def chats(self) -> ChatsResource: return ChatsResource(self) - @cached_property - def messages(self) -> MessagesResource: - from .resources.messages import MessagesResource - - return MessagesResource(self) - @cached_property def client_sessions(self) -> ClientSessionsResource: from .resources.client_sessions import ClientSessionsResource @@ -719,12 +711,6 @@ def chats(self) -> AsyncChatsResource: return AsyncChatsResource(self) - @cached_property - def messages(self) -> AsyncMessagesResource: - from .resources.messages import AsyncMessagesResource - - return AsyncMessagesResource(self) - @cached_property def client_sessions(self) -> AsyncClientSessionsResource: from .resources.client_sessions import AsyncClientSessionsResource @@ -1129,12 +1115,6 @@ def chats(self) -> chats.ChatsResourceWithRawResponse: return ChatsResourceWithRawResponse(self._client.chats) - @cached_property - def messages(self) -> messages.MessagesResourceWithRawResponse: - from .resources.messages import MessagesResourceWithRawResponse - - return MessagesResourceWithRawResponse(self._client.messages) - @cached_property def client_sessions(self) -> client_sessions.ClientSessionsResourceWithRawResponse: from .resources.client_sessions import ClientSessionsResourceWithRawResponse @@ -1422,12 +1402,6 @@ def chats(self) -> chats.AsyncChatsResourceWithRawResponse: return AsyncChatsResourceWithRawResponse(self._client.chats) - @cached_property - def messages(self) -> messages.AsyncMessagesResourceWithRawResponse: - from .resources.messages import AsyncMessagesResourceWithRawResponse - - return AsyncMessagesResourceWithRawResponse(self._client.messages) - @cached_property def client_sessions(self) -> client_sessions.AsyncClientSessionsResourceWithRawResponse: from .resources.client_sessions import AsyncClientSessionsResourceWithRawResponse @@ -1715,12 +1689,6 @@ def chats(self) -> chats.ChatsResourceWithStreamingResponse: return ChatsResourceWithStreamingResponse(self._client.chats) - @cached_property - def messages(self) -> messages.MessagesResourceWithStreamingResponse: - from .resources.messages import MessagesResourceWithStreamingResponse - - return MessagesResourceWithStreamingResponse(self._client.messages) - @cached_property def client_sessions(self) -> client_sessions.ClientSessionsResourceWithStreamingResponse: from .resources.client_sessions import ClientSessionsResourceWithStreamingResponse @@ -2008,12 +1976,6 @@ def chats(self) -> chats.AsyncChatsResourceWithStreamingResponse: return AsyncChatsResourceWithStreamingResponse(self._client.chats) - @cached_property - def messages(self) -> messages.AsyncMessagesResourceWithStreamingResponse: - from .resources.messages import AsyncMessagesResourceWithStreamingResponse - - return AsyncMessagesResourceWithStreamingResponse(self._client.messages) - @cached_property def client_sessions(self) -> client_sessions.AsyncClientSessionsResourceWithStreamingResponse: from .resources.client_sessions import AsyncClientSessionsResourceWithStreamingResponse diff --git a/src/onlyfansapi/resources/__init__.py b/src/onlyfansapi/resources/__init__.py index 00eec24d..60042b7d 100644 --- a/src/onlyfansapi/resources/__init__.py +++ b/src/onlyfansapi/resources/__init__.py @@ -128,14 +128,6 @@ AccountsResourceWithStreamingResponse, AsyncAccountsResourceWithStreamingResponse, ) -from .messages import ( - MessagesResource, - AsyncMessagesResource, - MessagesResourceWithRawResponse, - AsyncMessagesResourceWithRawResponse, - MessagesResourceWithStreamingResponse, - AsyncMessagesResourceWithStreamingResponse, -) from .profiles import ( ProfilesResource, AsyncProfilesResource, @@ -388,12 +380,6 @@ "AsyncChatsResourceWithRawResponse", "ChatsResourceWithStreamingResponse", "AsyncChatsResourceWithStreamingResponse", - "MessagesResource", - "AsyncMessagesResource", - "MessagesResourceWithRawResponse", - "AsyncMessagesResourceWithRawResponse", - "MessagesResourceWithStreamingResponse", - "AsyncMessagesResourceWithStreamingResponse", "ClientSessionsResource", "AsyncClientSessionsResource", "ClientSessionsResourceWithRawResponse", diff --git a/src/onlyfansapi/resources/messages.py b/src/onlyfansapi/resources/messages.py deleted file mode 100644 index 414fe8d4..00000000 --- a/src/onlyfansapi/resources/messages.py +++ /dev/null @@ -1,211 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -import httpx - -from ..types import message_attach_tags_params -from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given -from .._utils import path_template, maybe_transform, async_maybe_transform -from .._compat import cached_property -from .._resource import SyncAPIResource, AsyncAPIResource -from .._response import ( - to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_raw_response_wrapper, - async_to_streamed_response_wrapper, -) -from .._base_client import make_request_options -from ..types.message_attach_tags_response import MessageAttachTagsResponse - -__all__ = ["MessagesResource", "AsyncMessagesResource"] - - -class MessagesResource(SyncAPIResource): - @cached_property - def with_raw_response(self) -> MessagesResourceWithRawResponse: - """ - This property can be used as a prefix for any HTTP method call to return - the raw response object instead of the parsed content. - - For more information, see https://www.github.com/onlyfansapi/onlyfansapi-python#accessing-raw-response-data-eg-headers - """ - return MessagesResourceWithRawResponse(self) - - @cached_property - def with_streaming_response(self) -> MessagesResourceWithStreamingResponse: - """ - An alternative to `.with_raw_response` that doesn't eagerly read the response body. - - For more information, see https://www.github.com/onlyfansapi/onlyfansapi-python#with_streaming_response - """ - return MessagesResourceWithStreamingResponse(self) - - def attach_tags( - self, - message_id: str, - *, - account: str, - rf_guest: str | Omit = omit, - rf_partner: str | Omit = omit, - rf_tag: 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, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> MessageAttachTagsResponse: - """Attach Tags (Release Forms) to a message that has already been sent. - - Please - note, that this is a "sync" operation - for example, if you provide empty - `rfTag` it will remove all existing tags already attached to the message. - - Args: - rf_guest: Array of OnlyFans Release Form Guest IDs to tag in your message - - rf_partner: Array of OnlyFans Release Form Partners IDs to tag in your message - - rf_tag: Array of OnlyFans Creator User IDs to tag in your message - - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not account: - raise ValueError(f"Expected a non-empty value for `account` but received {account!r}") - if not message_id: - raise ValueError(f"Expected a non-empty value for `message_id` but received {message_id!r}") - return self._post( - path_template("/api/{account}/messages/{message_id}/attach-tags", account=account, message_id=message_id), - body=maybe_transform( - { - "rf_guest": rf_guest, - "rf_partner": rf_partner, - "rf_tag": rf_tag, - }, - message_attach_tags_params.MessageAttachTagsParams, - ), - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout - ), - cast_to=MessageAttachTagsResponse, - ) - - -class AsyncMessagesResource(AsyncAPIResource): - @cached_property - def with_raw_response(self) -> AsyncMessagesResourceWithRawResponse: - """ - This property can be used as a prefix for any HTTP method call to return - the raw response object instead of the parsed content. - - For more information, see https://www.github.com/onlyfansapi/onlyfansapi-python#accessing-raw-response-data-eg-headers - """ - return AsyncMessagesResourceWithRawResponse(self) - - @cached_property - def with_streaming_response(self) -> AsyncMessagesResourceWithStreamingResponse: - """ - An alternative to `.with_raw_response` that doesn't eagerly read the response body. - - For more information, see https://www.github.com/onlyfansapi/onlyfansapi-python#with_streaming_response - """ - return AsyncMessagesResourceWithStreamingResponse(self) - - async def attach_tags( - self, - message_id: str, - *, - account: str, - rf_guest: str | Omit = omit, - rf_partner: str | Omit = omit, - rf_tag: 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, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> MessageAttachTagsResponse: - """Attach Tags (Release Forms) to a message that has already been sent. - - Please - note, that this is a "sync" operation - for example, if you provide empty - `rfTag` it will remove all existing tags already attached to the message. - - Args: - rf_guest: Array of OnlyFans Release Form Guest IDs to tag in your message - - rf_partner: Array of OnlyFans Release Form Partners IDs to tag in your message - - rf_tag: Array of OnlyFans Creator User IDs to tag in your message - - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not account: - raise ValueError(f"Expected a non-empty value for `account` but received {account!r}") - if not message_id: - raise ValueError(f"Expected a non-empty value for `message_id` but received {message_id!r}") - return await self._post( - path_template("/api/{account}/messages/{message_id}/attach-tags", account=account, message_id=message_id), - body=await async_maybe_transform( - { - "rf_guest": rf_guest, - "rf_partner": rf_partner, - "rf_tag": rf_tag, - }, - message_attach_tags_params.MessageAttachTagsParams, - ), - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout - ), - cast_to=MessageAttachTagsResponse, - ) - - -class MessagesResourceWithRawResponse: - def __init__(self, messages: MessagesResource) -> None: - self._messages = messages - - self.attach_tags = to_raw_response_wrapper( - messages.attach_tags, - ) - - -class AsyncMessagesResourceWithRawResponse: - def __init__(self, messages: AsyncMessagesResource) -> None: - self._messages = messages - - self.attach_tags = async_to_raw_response_wrapper( - messages.attach_tags, - ) - - -class MessagesResourceWithStreamingResponse: - def __init__(self, messages: MessagesResource) -> None: - self._messages = messages - - self.attach_tags = to_streamed_response_wrapper( - messages.attach_tags, - ) - - -class AsyncMessagesResourceWithStreamingResponse: - def __init__(self, messages: AsyncMessagesResource) -> None: - self._messages = messages - - self.attach_tags = async_to_streamed_response_wrapper( - messages.attach_tags, - ) diff --git a/src/onlyfansapi/types/__init__.py b/src/onlyfansapi/types/__init__.py index 01bb12a7..8370c488 100644 --- a/src/onlyfansapi/types/__init__.py +++ b/src/onlyfansapi/types/__init__.py @@ -114,7 +114,6 @@ from .fan_set_custom_name_params import FanSetCustomNameParams as FanSetCustomNameParams from .giphy_list_trending_params import GiphyListTrendingParams as GiphyListTrendingParams from .mass_messaging_send_params import MassMessagingSendParams as MassMessagingSendParams -from .message_attach_tags_params import MessageAttachTagsParams as MessageAttachTagsParams from .notification_list_response import NotificationListResponse as NotificationListResponse from .smart_link_create_response import SmartLinkCreateResponse as SmartLinkCreateResponse from .smart_link_delete_response import SmartLinkDeleteResponse as SmartLinkDeleteResponse @@ -142,7 +141,6 @@ from .mass_messaging_list_response import MassMessagingListResponse as MassMessagingListResponse from .mass_messaging_send_response import MassMessagingSendResponse as MassMessagingSendResponse from .mass_messaging_update_params import MassMessagingUpdateParams as MassMessagingUpdateParams -from .message_attach_tags_response import MessageAttachTagsResponse as MessageAttachTagsResponse from .smart_link_retrieve_response import SmartLinkRetrieveResponse as SmartLinkRetrieveResponse from .trial_link_retrieve_response import TrialLinkRetrieveResponse as TrialLinkRetrieveResponse from .webhook_list_events_response import WebhookListEventsResponse as WebhookListEventsResponse diff --git a/src/onlyfansapi/types/message_attach_tags_params.py b/src/onlyfansapi/types/message_attach_tags_params.py deleted file mode 100644 index 3857488d..00000000 --- a/src/onlyfansapi/types/message_attach_tags_params.py +++ /dev/null @@ -1,22 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import Required, Annotated, TypedDict - -from .._utils import PropertyInfo - -__all__ = ["MessageAttachTagsParams"] - - -class MessageAttachTagsParams(TypedDict, total=False): - account: Required[str] - - rf_guest: Annotated[str, PropertyInfo(alias="rfGuest")] - """Array of OnlyFans Release Form Guest IDs to tag in your message""" - - rf_partner: Annotated[str, PropertyInfo(alias="rfPartner")] - """Array of OnlyFans Release Form Partners IDs to tag in your message""" - - rf_tag: Annotated[str, PropertyInfo(alias="rfTag")] - """Array of OnlyFans Creator User IDs to tag in your message""" diff --git a/src/onlyfansapi/types/message_attach_tags_response.py b/src/onlyfansapi/types/message_attach_tags_response.py deleted file mode 100644 index 21d7fe86..00000000 --- a/src/onlyfansapi/types/message_attach_tags_response.py +++ /dev/null @@ -1,51 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional - -from pydantic import Field as FieldInfo - -from .._models import BaseModel - -__all__ = ["MessageAttachTagsResponse", "_Meta", "_Meta_Cache", "_Meta_Credits", "_Meta_RateLimits", "Data"] - - -class _Meta_Cache(BaseModel): - is_cached: Optional[bool] = None - - note: Optional[str] = None - - -class _Meta_Credits(BaseModel): - balance: Optional[int] = None - - note: Optional[str] = None - - used: Optional[int] = None - - -class _Meta_RateLimits(BaseModel): - limit_day: Optional[int] = None - - limit_minute: Optional[int] = None - - remaining_day: Optional[int] = None - - remaining_minute: Optional[int] = None - - -class _Meta(BaseModel): - api_cache: Optional[_Meta_Cache] = FieldInfo(alias="_cache", default=None) - - api_credits: Optional[_Meta_Credits] = FieldInfo(alias="_credits", default=None) - - api_rate_limits: Optional[_Meta_RateLimits] = FieldInfo(alias="_rate_limits", default=None) - - -class Data(BaseModel): - success: Optional[bool] = None - - -class MessageAttachTagsResponse(BaseModel): - api_meta: Optional[_Meta] = FieldInfo(alias="_meta", default=None) - - data: Optional[Data] = None diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 53892a4a..c1c7f058 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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 977841df..8e7d6def 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="omnis", + list_id="cupiditate", 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="omnis", + list_id="cupiditate", 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="omnis", + list_id="cupiditate", 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="omnis", + list_id="cupiditate", 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="omnis", + list_id="cupiditate", 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="omnis", + list_id="cupiditate", 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="omnis", + list_id="cupiditate", 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="omnis", + list_id="cupiditate", 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="omnis", + list_id="cupiditate", 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="omnis", + list_id="cupiditate", 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="omnis", + list_id="cupiditate", 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="omnis", + list_id="cupiditate", 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="omnis", + list_id="cupiditate", 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="omnis", + list_id="cupiditate", 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="omnis", + list_id="cupiditate", 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="omnis", + list_id="cupiditate", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index f374e50d..6a9091fa 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="et", + post_id="nemo", 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="et", + post_id="nemo", 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="et", + post_id="nemo", 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="et", + post_id="nemo", 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="et", + post_id="nemo", 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="et", + post_id="nemo", 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="et", + post_id="nemo", 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="et", + post_id="nemo", 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="et", + post_id="nemo", 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="et", + post_id="nemo", 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="et", + post_id="nemo", 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="et", + post_id="nemo", 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="et", + post_id="nemo", 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="et", + post_id="nemo", 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="et", + post_id="nemo", 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="et", + post_id="nemo", 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="et", + post_id="nemo", 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="et", + post_id="nemo", 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="et", + post_id="nemo", 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="et", + post_id="nemo", 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 fc7b1635..b5f3d61a 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=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=6, + 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=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_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=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=6, + 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=6, + 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=6, + 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=6, + period=24, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075f..544df889 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 ddd9b439..e1fd8753 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="eos", + path_story_id="aut", 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="eos", + path_story_id="aut", 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="eos", + path_story_id="aut", 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="eos", + path_story_id="aut", 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="eos", + story_id="aut", 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="eos", + story_id="aut", 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="eos", + story_id="aut", 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="eos", + story_id="aut", 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="eos", + path_story_id="aut", 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="eos", + path_story_id="aut", 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="eos", + path_story_id="aut", 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="eos", + path_story_id="aut", 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="eos", + story_id="aut", 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="eos", + story_id="aut", 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="eos", + story_id="aut", 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="eos", + story_id="aut", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 0448a159..86e468bd 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( - "accusamus", + "magnam", ) 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( - "accusamus", + "magnam", ) 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( - "accusamus", + "magnam", ) 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( - "accusamus", + "magnam", ) 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( - "accusamus", + "magnam", ) 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( - "accusamus", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 33a990a4..46018350 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="illum", + auth_id="commodi", auth_type="mobile_app", - cookies="sit", + cookies="sunt", custom_proxy={ "host": "proxy.example.com", - "password": "qQ})OJ~10", + "password": "Ct3dI&oY%Y_", "port": 8080, - "username": "et", + "username": "necessitatibus", }, - email="maverick.wyman@example.com", + email="feeney.lavon@example.org", force_connect=False, - name="et", - password='V6E-7NCd_p"J&I', - proxy_country="uk", - user_agent="praesentium", - xbc="vel", + name="asperiores", + password='[Yd[`."`', + proxy_country="us", + user_agent="voluptas", + xbc="dolore", ) 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="illum", + auth_id="commodi", auth_type="mobile_app", - cookies="sit", + cookies="sunt", custom_proxy={ "host": "proxy.example.com", - "password": "qQ})OJ~10", + "password": "Ct3dI&oY%Y_", "port": 8080, - "username": "et", + "username": "necessitatibus", }, - email="maverick.wyman@example.com", + email="feeney.lavon@example.org", force_connect=False, - name="et", - password='V6E-7NCd_p"J&I', - proxy_country="uk", - user_agent="praesentium", - xbc="vel", + name="asperiores", + password='[Yd[`."`', + proxy_country="us", + user_agent="voluptas", + xbc="dolore", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_messages.py b/tests/api_resources/test_messages.py deleted file mode 100644 index 206c5ef3..00000000 --- a/tests/api_resources/test_messages.py +++ /dev/null @@ -1,152 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -import os -from typing import Any, cast - -import pytest - -from onlyfansapi import OnlyFansAPI, AsyncOnlyFansAPI -from tests.utils import assert_matches_type -from onlyfansapi.types import MessageAttachTagsResponse - -base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") - - -class TestMessages: - parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_attach_tags(self, client: OnlyFansAPI) -> None: - message = client.messages.attach_tags( - message_id="123456789", - account="acct_XXXXXXXXXXXXXXX", - ) - assert_matches_type(MessageAttachTagsResponse, message, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_attach_tags_with_all_params(self, client: OnlyFansAPI) -> None: - message = client.messages.attach_tags( - message_id="123456789", - account="acct_XXXXXXXXXXXXXXX", - rf_guest="rfGuest", - rf_partner="rfPartner", - rf_tag="rfTag", - ) - assert_matches_type(MessageAttachTagsResponse, message, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_raw_response_attach_tags(self, client: OnlyFansAPI) -> None: - response = client.messages.with_raw_response.attach_tags( - message_id="123456789", - account="acct_XXXXXXXXXXXXXXX", - ) - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - message = response.parse() - assert_matches_type(MessageAttachTagsResponse, message, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_streaming_response_attach_tags(self, client: OnlyFansAPI) -> None: - with client.messages.with_streaming_response.attach_tags( - message_id="123456789", - account="acct_XXXXXXXXXXXXXXX", - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - message = response.parse() - assert_matches_type(MessageAttachTagsResponse, message, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_path_params_attach_tags(self, client: OnlyFansAPI) -> None: - with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): - client.messages.with_raw_response.attach_tags( - message_id="123456789", - account="", - ) - - with pytest.raises(ValueError, match=r"Expected a non-empty value for `message_id` but received ''"): - client.messages.with_raw_response.attach_tags( - message_id="", - account="acct_XXXXXXXXXXXXXXX", - ) - - -class TestAsyncMessages: - parametrize = pytest.mark.parametrize( - "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] - ) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_attach_tags(self, async_client: AsyncOnlyFansAPI) -> None: - message = await async_client.messages.attach_tags( - message_id="123456789", - account="acct_XXXXXXXXXXXXXXX", - ) - assert_matches_type(MessageAttachTagsResponse, message, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_attach_tags_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: - message = await async_client.messages.attach_tags( - message_id="123456789", - account="acct_XXXXXXXXXXXXXXX", - rf_guest="rfGuest", - rf_partner="rfPartner", - rf_tag="rfTag", - ) - assert_matches_type(MessageAttachTagsResponse, message, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_raw_response_attach_tags(self, async_client: AsyncOnlyFansAPI) -> None: - response = await async_client.messages.with_raw_response.attach_tags( - message_id="123456789", - account="acct_XXXXXXXXXXXXXXX", - ) - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - message = await response.parse() - assert_matches_type(MessageAttachTagsResponse, message, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_streaming_response_attach_tags(self, async_client: AsyncOnlyFansAPI) -> None: - async with async_client.messages.with_streaming_response.attach_tags( - message_id="123456789", - account="acct_XXXXXXXXXXXXXXX", - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - message = await response.parse() - assert_matches_type(MessageAttachTagsResponse, message, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_path_params_attach_tags(self, async_client: AsyncOnlyFansAPI) -> None: - with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): - await async_client.messages.with_raw_response.attach_tags( - message_id="123456789", - account="", - ) - - with pytest.raises(ValueError, match=r"Expected a non-empty value for `message_id` but received ''"): - await async_client.messages.with_raw_response.attach_tags( - message_id="", - account="acct_XXXXXXXXXXXXXXX", - ) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 0f3980c1..b2158856 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_profiles.py b/tests/api_resources/test_profiles.py index 65694e23..bd4f6161 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 a1d41347..1fe32f41 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": ["bxcydejqizkewcfhp"]}, + filter={"tags": ["ew"]}, 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="quas", + smart_link_id="eos", ) 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="quas", + smart_link_id="eos", 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="quas", + smart_link_id="eos", ) 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="quas", + smart_link_id="eos", ) 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="beatae", + smart_link_id="maiores", ) 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="beatae", + smart_link_id="maiores", 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="beatae", + smart_link_id="maiores", ) 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="beatae", + smart_link_id="maiores", ) 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="porro", + smart_link_id="aut", ) 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="porro", + smart_link_id="aut", 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="porro", + smart_link_id="aut", ) 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="porro", + smart_link_id="aut", ) 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="beatae", + smart_link_id="itaque", ) 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="beatae", + smart_link_id="itaque", 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="beatae", + smart_link_id="itaque", ) 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="beatae", + smart_link_id="itaque", ) 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="enim", + smart_link_id="delectus", ) 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="enim", + smart_link_id="delectus", 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="enim", + smart_link_id="delectus", ) 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="enim", + smart_link_id="delectus", ) 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="autem", + smart_link_id="animi", ) 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="autem", + smart_link_id="animi", 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="autem", + smart_link_id="animi", ) 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="autem", + smart_link_id="animi", ) 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": ["bxcydejqizkewcfhp"]}, + filter={"tags": ["ew"]}, 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="quas", + smart_link_id="eos", ) 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="quas", + smart_link_id="eos", 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="quas", + smart_link_id="eos", ) 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="quas", + smart_link_id="eos", ) 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="beatae", + smart_link_id="maiores", ) 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="beatae", + smart_link_id="maiores", 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="beatae", + smart_link_id="maiores", ) 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="beatae", + smart_link_id="maiores", ) 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="porro", + smart_link_id="aut", ) 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="porro", + smart_link_id="aut", 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="porro", + smart_link_id="aut", ) 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="porro", + smart_link_id="aut", ) 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="beatae", + smart_link_id="itaque", ) 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="beatae", + smart_link_id="itaque", 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="beatae", + smart_link_id="itaque", ) 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="beatae", + smart_link_id="itaque", ) 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="enim", + smart_link_id="delectus", ) 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="enim", + smart_link_id="delectus", 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="enim", + smart_link_id="delectus", ) 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="enim", + smart_link_id="delectus", ) 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="autem", + smart_link_id="animi", ) 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="autem", + smart_link_id="animi", 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="autem", + smart_link_id="animi", ) 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="autem", + smart_link_id="animi", ) 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 173ec020..aa5d0d85 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": "hvherctxzkh", - "tags": ["swwmkvhsjbgpuizyrkshamlu"], + "search": "awnsseotiuk", + "tags": ["jsdopahhoktvntyngzvgiqkn"], }, 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": "zspzjhvh", - "tags": ["lvrsvwnqfslgevmaivhrqpvu"], + "search": "bykyxeederrsfgbdqhhk", + "tags": ["dpzlbuctrz"], }, 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": "momdnhnynuqnt", - "tags": ["vfzpcgewviimv"], + "search": "utwbekfzizcdsm", + "tags": ["qrcdrwzhowzjpmtndojlqvk"], }, 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": "bwrzgpwfndfvleezdpkvxqgqn", - "tags": ["wourumekerjqhylgwxgnqwn"], + "include_smart_links": False, + "search": "vrucghnpmirtfzbdffep", + "tags": ["r"], }, 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": "hvherctxzkh", - "tags": ["swwmkvhsjbgpuizyrkshamlu"], + "search": "awnsseotiuk", + "tags": ["jsdopahhoktvntyngzvgiqkn"], }, 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": "zspzjhvh", - "tags": ["lvrsvwnqfslgevmaivhrqpvu"], + "search": "bykyxeederrsfgbdqhhk", + "tags": ["dpzlbuctrz"], }, 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": "momdnhnynuqnt", - "tags": ["vfzpcgewviimv"], + "search": "utwbekfzizcdsm", + "tags": ["qrcdrwzhowzjpmtndojlqvk"], }, 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": "bwrzgpwfndfvleezdpkvxqgqn", - "tags": ["wourumekerjqhylgwxgnqwn"], + "include_smart_links": False, + "search": "vrucghnpmirtfzbdffep", + "tags": ["r"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 2990adce..c6aa5588 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="provident", 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="provident", 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="provident", 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="provident", 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="provident", 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="provident", 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="provident", 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="provident", 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="ipsum", + tracking_link_id="aut", 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="ipsum", + tracking_link_id="aut", 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="ipsum", + tracking_link_id="aut", 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="ipsum", + tracking_link_id="aut", 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="ipsum", + tracking_link_id="aut", 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="nostrum", + tracking_link_id="eaque", 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="nostrum", + tracking_link_id="eaque", 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="nostrum", + tracking_link_id="eaque", 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="nostrum", + tracking_link_id="eaque", 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="nostrum", + tracking_link_id="eaque", 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="provident", 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="provident", 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="provident", 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="provident", 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="provident", 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="provident", 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="provident", 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="provident", 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="ipsum", + tracking_link_id="aut", 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="ipsum", + tracking_link_id="aut", 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="ipsum", + tracking_link_id="aut", 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="ipsum", + tracking_link_id="aut", 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="ipsum", + tracking_link_id="aut", 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="nostrum", + tracking_link_id="eaque", 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="nostrum", + tracking_link_id="eaque", 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="nostrum", + tracking_link_id="eaque", 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="nostrum", + tracking_link_id="eaque", 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="nostrum", + tracking_link_id="eaque", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 7cdaa63a..181a2f3d 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="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="id", + 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="id", + 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="id", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="ut", + trial_link_id="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="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="id", + 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="id", + 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="id", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + trial_link_id="accusantium", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 43e94767..e308bb40 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="oembzyfjpgadwxeelekmwjrmy", + name="otjzqrapzyixbwirkxbspk", ) 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="oembzyfjpgadwxeelekmwjrmy", + name="otjzqrapzyixbwirkxbspk", ) 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="oembzyfjpgadwxeelekmwjrmy", + name="otjzqrapzyixbwirkxbspk", ) 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="oembzyfjpgadwxeelekmwjrmy", + name="otjzqrapzyixbwirkxbspk", ) @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="oembzyfjpgadwxeelekmwjrmy", + name="otjzqrapzyixbwirkxbspk", ) 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="oembzyfjpgadwxeelekmwjrmy", + name="otjzqrapzyixbwirkxbspk", ) 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="oembzyfjpgadwxeelekmwjrmy", + name="otjzqrapzyixbwirkxbspk", ) 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="oembzyfjpgadwxeelekmwjrmy", + name="otjzqrapzyixbwirkxbspk", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 98cccb29301a35d2fa083b533b772d834fe0326d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 17 Jun 2026 18:12:36 +0000 Subject: [PATCH 068/249] 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_notifications.py | 4 +- tests/api_resources/test_profiles.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 +-- 16 files changed, 266 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index 793df376..c2f6bb95 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9c336e3e172973bccca6d3a512807040e2e8f4c26daa3f2238e1ab9883e0472a.yml -openapi_spec_hash: 8828ab31a133fadb496a5bcc1af6c9dc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-de8aa535e63789de8ad141e804a0319ba9927eab1c28ebf4d28637edb7e4ff1c.yml +openapi_spec_hash: bf553646975aa11a289972d266dfa1cf config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index c1c7f058..2f795f42 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 8e7d6def..440e3903 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + list_id="voluptas", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 6a9091fa..87cd85ee 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="nemo", + post_id="sapiente", 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="nemo", + post_id="sapiente", 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="nemo", + post_id="sapiente", 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="nemo", + post_id="sapiente", 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="nemo", + post_id="sapiente", 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="nemo", + post_id="sapiente", 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="nemo", + post_id="sapiente", 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="nemo", + post_id="sapiente", 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="nemo", + post_id="sapiente", 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="nemo", + post_id="sapiente", 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="nemo", + post_id="sapiente", 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="nemo", + post_id="sapiente", 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="nemo", + post_id="sapiente", 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="nemo", + post_id="sapiente", 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="nemo", + post_id="sapiente", 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="nemo", + post_id="sapiente", 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="nemo", + post_id="sapiente", 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="nemo", + post_id="sapiente", 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="nemo", + post_id="sapiente", 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="nemo", + post_id="sapiente", 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 444937ba..a62ccbd3 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 b5f3d61a..2ced6cb5 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 e1fd8753..70bbf43b 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="aut", + path_story_id="quam", 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="aut", + path_story_id="quam", 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="aut", + path_story_id="quam", 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="aut", + path_story_id="quam", 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="aut", + story_id="quam", 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="aut", + story_id="quam", 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="aut", + story_id="quam", 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="aut", + story_id="quam", 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="aut", + path_story_id="quam", 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="aut", + path_story_id="quam", 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="aut", + path_story_id="quam", 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="aut", + path_story_id="quam", 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="aut", + story_id="quam", 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="aut", + story_id="quam", 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="aut", + story_id="quam", 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="aut", + story_id="quam", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 86e468bd..79c81116 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( - "magnam", + "alias", ) 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( - "magnam", + "alias", ) 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( - "magnam", + "alias", ) 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( - "magnam", + "alias", ) 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( - "magnam", + "alias", ) 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( - "magnam", + "alias", ) 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 46018350..4edf3947 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="commodi", - auth_type="mobile_app", - cookies="sunt", + auth_id="id", + auth_type="raw_data", + cookies="corrupti", custom_proxy={ "host": "proxy.example.com", - "password": "Ct3dI&oY%Y_", + "password": "Td>|07y>)9RR?T$8", "port": 8080, - "username": "necessitatibus", + "username": "ea", }, - email="feeney.lavon@example.org", - force_connect=False, - name="asperiores", - password='[Yd[`."`', + email="mitchell.viola@example.org", + force_connect=True, + name="amet", + password="{Vv@~%O.|", proxy_country="us", - user_agent="voluptas", - xbc="dolore", + user_agent="iusto", + xbc="dolorum", ) 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="commodi", - auth_type="mobile_app", - cookies="sunt", + auth_id="id", + auth_type="raw_data", + cookies="corrupti", custom_proxy={ "host": "proxy.example.com", - "password": "Ct3dI&oY%Y_", + "password": "Td>|07y>)9RR?T$8", "port": 8080, - "username": "necessitatibus", + "username": "ea", }, - email="feeney.lavon@example.org", - force_connect=False, - name="asperiores", - password='[Yd[`."`', + email="mitchell.viola@example.org", + force_connect=True, + name="amet", + password="{Vv@~%O.|", proxy_country="us", - user_agent="voluptas", - xbc="dolore", + user_agent="iusto", + xbc="dolorum", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index b2158856..0f3980c1 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="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="purchases", + 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 bd4f6161..65694e23 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 1fe32f41..29ccdff3 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": ["ew"]}, + filter={"tags": ["odgueodiyj"]}, 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="eos", + smart_link_id="dolorem", ) 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="eos", + smart_link_id="dolorem", 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="eos", + smart_link_id="dolorem", ) 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="eos", + smart_link_id="dolorem", ) 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="maiores", + smart_link_id="et", ) 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="maiores", + smart_link_id="et", 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="maiores", + smart_link_id="et", ) 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="maiores", + smart_link_id="et", ) 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="aut", + smart_link_id="molestias", ) 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="aut", + smart_link_id="molestias", 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="aut", + smart_link_id="molestias", ) 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="aut", + smart_link_id="molestias", ) 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="itaque", + smart_link_id="vitae", ) 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="itaque", + smart_link_id="vitae", 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="itaque", + smart_link_id="vitae", ) 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="itaque", + smart_link_id="vitae", ) 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="delectus", + smart_link_id="et", ) 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="delectus", + smart_link_id="et", 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="delectus", + smart_link_id="et", ) 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="delectus", + smart_link_id="et", ) 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="animi", + smart_link_id="sunt", ) 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="animi", + smart_link_id="sunt", 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="animi", + smart_link_id="sunt", ) 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="animi", + smart_link_id="sunt", ) 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": ["ew"]}, + filter={"tags": ["odgueodiyj"]}, 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="eos", + smart_link_id="dolorem", ) 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="eos", + smart_link_id="dolorem", 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="eos", + smart_link_id="dolorem", ) 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="eos", + smart_link_id="dolorem", ) 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="maiores", + smart_link_id="et", ) 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="maiores", + smart_link_id="et", 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="maiores", + smart_link_id="et", ) 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="maiores", + smart_link_id="et", ) 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="aut", + smart_link_id="molestias", ) 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="aut", + smart_link_id="molestias", 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="aut", + smart_link_id="molestias", ) 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="aut", + smart_link_id="molestias", ) 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="itaque", + smart_link_id="vitae", ) 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="itaque", + smart_link_id="vitae", 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="itaque", + smart_link_id="vitae", ) 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="itaque", + smart_link_id="vitae", ) 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="delectus", + smart_link_id="et", ) 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="delectus", + smart_link_id="et", 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="delectus", + smart_link_id="et", ) 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="delectus", + smart_link_id="et", ) 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="animi", + smart_link_id="sunt", ) 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="animi", + smart_link_id="sunt", 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="animi", + smart_link_id="sunt", ) 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="animi", + smart_link_id="sunt", ) 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 aa5d0d85..062d49bc 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": "awnsseotiuk", - "tags": ["jsdopahhoktvntyngzvgiqkn"], + "search": "pirejwmsjk", + "tags": ["sqejpnxdpswd"], }, 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": "bykyxeederrsfgbdqhhk", - "tags": ["dpzlbuctrz"], + "search": "sgyggnuwumoz", + "tags": ["gcxfwhzestws"], }, 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": "utwbekfzizcdsm", - "tags": ["qrcdrwzhowzjpmtndojlqvk"], + "search": "pblczwqiglnizoqbh", + "tags": ["ry"], }, 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": "vrucghnpmirtfzbdffep", - "tags": ["r"], + "search": "va", + "tags": ["ardpijwtdlbyl"], }, 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": "awnsseotiuk", - "tags": ["jsdopahhoktvntyngzvgiqkn"], + "search": "pirejwmsjk", + "tags": ["sqejpnxdpswd"], }, 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": "bykyxeederrsfgbdqhhk", - "tags": ["dpzlbuctrz"], + "search": "sgyggnuwumoz", + "tags": ["gcxfwhzestws"], }, 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": "utwbekfzizcdsm", - "tags": ["qrcdrwzhowzjpmtndojlqvk"], + "search": "pblczwqiglnizoqbh", + "tags": ["ry"], }, 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": "vrucghnpmirtfzbdffep", - "tags": ["r"], + "search": "va", + "tags": ["ardpijwtdlbyl"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index c6aa5588..6754635c 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="provident", + 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="provident", + 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="provident", + 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="provident", + 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="provident", + 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="provident", + 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="provident", + 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="provident", + 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="aut", + tracking_link_id="autem", 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="aut", + tracking_link_id="autem", 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="aut", + tracking_link_id="autem", 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="aut", + tracking_link_id="autem", 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="aut", + tracking_link_id="autem", 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="eaque", + 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="eaque", + 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="eaque", + 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="eaque", + 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="eaque", + 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="provident", + 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="provident", + 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="provident", + 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="provident", + 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="provident", + 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="provident", + 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="provident", + 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="provident", + 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="aut", + tracking_link_id="autem", 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="aut", + tracking_link_id="autem", 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="aut", + tracking_link_id="autem", 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="aut", + tracking_link_id="autem", 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="aut", + tracking_link_id="autem", 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="eaque", + 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="eaque", + 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="eaque", + 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="eaque", + 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="eaque", + tracking_link_id="facilis", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 181a2f3d..83b30708 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="aliquid", + trial_link_id="recusandae", 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="aliquid", + trial_link_id="recusandae", 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="aliquid", + trial_link_id="recusandae", 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="aliquid", + trial_link_id="recusandae", 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="aliquid", + trial_link_id="recusandae", 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="aliquid", + trial_link_id="recusandae", 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="aliquid", + trial_link_id="recusandae", 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="aliquid", + trial_link_id="recusandae", 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="officiis", 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="officiis", 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="officiis", 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="officiis", 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="assumenda", 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="assumenda", 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="assumenda", 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="assumenda", 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="assumenda", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", 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="aliquid", + trial_link_id="recusandae", 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="aliquid", + trial_link_id="recusandae", 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="aliquid", + trial_link_id="recusandae", 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="aliquid", + trial_link_id="recusandae", 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="aliquid", + trial_link_id="recusandae", 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="aliquid", + trial_link_id="recusandae", 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="aliquid", + trial_link_id="recusandae", 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="aliquid", + trial_link_id="recusandae", 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="officiis", 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="officiis", 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="officiis", 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="officiis", 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="assumenda", 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="assumenda", 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="assumenda", 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="assumenda", 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="assumenda", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index e308bb40..44af245d 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="otjzqrapzyixbwirkxbspk", + name="fg", ) 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="otjzqrapzyixbwirkxbspk", + name="fg", ) 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="otjzqrapzyixbwirkxbspk", + name="fg", ) 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="otjzqrapzyixbwirkxbspk", + name="fg", ) @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="otjzqrapzyixbwirkxbspk", + name="fg", ) 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="otjzqrapzyixbwirkxbspk", + name="fg", ) 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="otjzqrapzyixbwirkxbspk", + name="fg", ) 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="otjzqrapzyixbwirkxbspk", + name="fg", ) @pytest.mark.skip(reason="Mock server tests are disabled") From ab9742585886846cff053430684a5881ec1540bc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 02:01:04 +0000 Subject: [PATCH 069/249] fix(auth): prioritize first auth header --- src/onlyfansapi/_client.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/onlyfansapi/_client.py b/src/onlyfansapi/_client.py index 6b250680..00d71ffd 100644 --- a/src/onlyfansapi/_client.py +++ b/src/onlyfansapi/_client.py @@ -497,9 +497,11 @@ def qs(self) -> Querystring: @override def _auth_headers(self, security: SecurityOptions) -> dict[str, str]: - return { - **(self._default if security.get("default", False) else {}), - } + headers: dict[str, str] = {} + if security.get("default", False): + for key, value in self._default.items(): + headers.setdefault(key, value) + return headers @property def _default(self) -> dict[str, str]: @@ -959,9 +961,11 @@ def qs(self) -> Querystring: @override def _auth_headers(self, security: SecurityOptions) -> dict[str, str]: - return { - **(self._default if security.get("default", False) else {}), - } + headers: dict[str, str] = {} + if security.get("default", False): + for key, value in self._default.items(): + headers.setdefault(key, value) + return headers @property def _default(self) -> dict[str, str]: From cd72d9b088e050776dd050a0aca1222404fd178c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 05:12:36 +0000 Subject: [PATCH 070/249] 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_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 84 +++++++++--------- 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, 264 insertions(+), 264 deletions(-) diff --git a/.stats.yml b/.stats.yml index c2f6bb95..8f7a621d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-de8aa535e63789de8ad141e804a0319ba9927eab1c28ebf4d28637edb7e4ff1c.yml -openapi_spec_hash: bf553646975aa11a289972d266dfa1cf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6248482297627a7484fa7a27c049cd2dcbc311465c243e4509b22f9fa11a8e5e.yml +openapi_spec_hash: 7e330e112b99ae68c7e1e483f8fbc557 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 2f795f42..051faacb 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="nihil", + message_id="fuga", 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="nihil", + message_id="fuga", 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="nihil", + message_id="fuga", 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="nihil", + message_id="fuga", 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="nihil", + message_id="fuga", 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="nihil", + message_id="fuga", 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="nihil", + message_id="fuga", 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="nihil", + message_id="fuga", 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="nihil", + message_id="fuga", 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="nihil", + message_id="fuga", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 440e3903..1c915568 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="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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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 87cd85ee..13b0c13b 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="sapiente", + 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="sapiente", + 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="sapiente", + 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="sapiente", + 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="sapiente", + 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="sapiente", + 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="sapiente", + 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="sapiente", + 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="sapiente", + 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="sapiente", + 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="sapiente", + 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="sapiente", + 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="sapiente", + 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="sapiente", + 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="sapiente", + 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="sapiente", + 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="sapiente", + 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="sapiente", + 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="sapiente", + 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="sapiente", + 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 a62ccbd3..444937ba 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 2ced6cb5..9c80483e 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 544df889..9664075f 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 70bbf43b..44e9daf5 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + story_id="unde", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 79c81116..5e31d2e0 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( - "alias", + "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( - "alias", + "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( - "alias", + "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( - "alias", + "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( - "alias", + "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( - "alias", + "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 4edf3947..825e2b29 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="id", - auth_type="raw_data", - cookies="corrupti", + auth_id="aliquid", + auth_type="email_password", + cookies="dolor", custom_proxy={ "host": "proxy.example.com", - "password": "Td>|07y>)9RR?T$8", + "password": "Q`B:dl2[", "port": 8080, - "username": "ea", + "username": "accusantium", }, - email="mitchell.viola@example.org", - force_connect=True, - name="amet", - password="{Vv@~%O.|", + email="qzemlak@example.com", + force_connect=False, + name="sunt", + password="F(BxSf6", proxy_country="us", - user_agent="iusto", - xbc="dolorum", + user_agent="incidunt", + xbc="esse", ) 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="id", - auth_type="raw_data", - cookies="corrupti", + auth_id="aliquid", + auth_type="email_password", + cookies="dolor", custom_proxy={ "host": "proxy.example.com", - "password": "Td>|07y>)9RR?T$8", + "password": "Q`B:dl2[", "port": 8080, - "username": "ea", + "username": "accusantium", }, - email="mitchell.viola@example.org", - force_connect=True, - name="amet", - password="{Vv@~%O.|", + email="qzemlak@example.com", + force_connect=False, + name="sunt", + password="F(BxSf6", proxy_country="us", - user_agent="iusto", - xbc="dolorum", + user_agent="incidunt", + xbc="esse", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 0f3980c1..aaff3bff 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="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="tips", + 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 65694e23..bd4f6161 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 29ccdff3..6f265c4e 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": ["odgueodiyj"]}, + filter={"tags": ["ivqlkrmigiwnfyozkfowazrp"]}, 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="dolorem", + smart_link_id="nihil", ) 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="dolorem", + smart_link_id="nihil", 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="dolorem", + smart_link_id="nihil", ) 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="dolorem", + smart_link_id="nihil", ) 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="molestias", + smart_link_id="odit", ) 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="molestias", + smart_link_id="odit", 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="molestias", + smart_link_id="odit", ) 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="molestias", + smart_link_id="odit", ) 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="vitae", + smart_link_id="doloremque", ) 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="vitae", + smart_link_id="doloremque", 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="vitae", + smart_link_id="doloremque", ) 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="vitae", + smart_link_id="doloremque", ) 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="et", + smart_link_id="labore", ) 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="et", + smart_link_id="labore", 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="et", + smart_link_id="labore", ) 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="et", + smart_link_id="labore", ) 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="sunt", + smart_link_id="porro", ) 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="sunt", + smart_link_id="porro", 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="sunt", + smart_link_id="porro", ) 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="sunt", + smart_link_id="porro", ) 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": ["odgueodiyj"]}, + filter={"tags": ["ivqlkrmigiwnfyozkfowazrp"]}, 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="dolorem", + smart_link_id="nihil", ) 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="dolorem", + smart_link_id="nihil", 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="dolorem", + smart_link_id="nihil", ) 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="dolorem", + smart_link_id="nihil", ) 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="molestias", + smart_link_id="odit", ) 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="molestias", + smart_link_id="odit", 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="molestias", + smart_link_id="odit", ) 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="molestias", + smart_link_id="odit", ) 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="vitae", + smart_link_id="doloremque", ) 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="vitae", + smart_link_id="doloremque", 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="vitae", + smart_link_id="doloremque", ) 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="vitae", + smart_link_id="doloremque", ) 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="et", + smart_link_id="labore", ) 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="et", + smart_link_id="labore", 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="et", + smart_link_id="labore", ) 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="et", + smart_link_id="labore", ) 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="sunt", + smart_link_id="porro", ) 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="sunt", + smart_link_id="porro", 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="sunt", + smart_link_id="porro", ) 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="sunt", + smart_link_id="porro", ) 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 062d49bc..7aa0a17f 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": "pirejwmsjk", - "tags": ["sqejpnxdpswd"], + "search": "fundef", + "tags": ["mvylvveiw"], }, 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": "sgyggnuwumoz", - "tags": ["gcxfwhzestws"], + "search": "csilaqmxblp", + "tags": ["bupfpeq"], }, 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": "pblczwqiglnizoqbh", - "tags": ["ry"], + "include_smart_links": False, + "search": "wbe", + "tags": ["pzbvqs"], }, 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": "va", - "tags": ["ardpijwtdlbyl"], + "include_smart_links": True, + "search": "worcxzfnkbg", + "tags": ["mxvuozlyqhdkpw"], }, 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": "pirejwmsjk", - "tags": ["sqejpnxdpswd"], + "search": "fundef", + "tags": ["mvylvveiw"], }, 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": "sgyggnuwumoz", - "tags": ["gcxfwhzestws"], + "search": "csilaqmxblp", + "tags": ["bupfpeq"], }, 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": "pblczwqiglnizoqbh", - "tags": ["ry"], + "include_smart_links": False, + "search": "wbe", + "tags": ["pzbvqs"], }, 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": "va", - "tags": ["ardpijwtdlbyl"], + "include_smart_links": True, + "search": "worcxzfnkbg", + "tags": ["mxvuozlyqhdkpw"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 6754635c..5c0231ba 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", 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="autem", + tracking_link_id="velit", 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="autem", + tracking_link_id="velit", 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="autem", + tracking_link_id="velit", 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="autem", + tracking_link_id="velit", 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="autem", + tracking_link_id="velit", 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="id", 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="id", 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="id", 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="id", 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="id", 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", 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="autem", + tracking_link_id="velit", 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="autem", + tracking_link_id="velit", 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="autem", + tracking_link_id="velit", 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="autem", + tracking_link_id="velit", 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="autem", + tracking_link_id="velit", 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="id", 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="id", 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="id", 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="id", 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="id", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 83b30708..0c5c57fe 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="recusandae", + trial_link_id="ipsum", 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="recusandae", + trial_link_id="ipsum", 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="recusandae", + trial_link_id="ipsum", 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="recusandae", + trial_link_id="ipsum", 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="recusandae", + trial_link_id="ipsum", 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="recusandae", + trial_link_id="ipsum", 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="recusandae", + trial_link_id="ipsum", 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="recusandae", + trial_link_id="ipsum", 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="officiis", + trial_link_id="magnam", 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="officiis", + trial_link_id="magnam", 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="officiis", + trial_link_id="magnam", 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="officiis", + trial_link_id="magnam", 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="assumenda", + trial_link_id="dolorum", 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="assumenda", + trial_link_id="dolorum", 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="assumenda", + trial_link_id="dolorum", 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="assumenda", + trial_link_id="dolorum", 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="assumenda", + trial_link_id="dolorum", 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="fugiat", + trial_link_id="officia", 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="fugiat", + trial_link_id="officia", 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="fugiat", + trial_link_id="officia", 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="fugiat", + trial_link_id="officia", 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="fugiat", + trial_link_id="officia", 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="recusandae", + trial_link_id="ipsum", 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="recusandae", + trial_link_id="ipsum", 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="recusandae", + trial_link_id="ipsum", 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="recusandae", + trial_link_id="ipsum", 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="recusandae", + trial_link_id="ipsum", 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="recusandae", + trial_link_id="ipsum", 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="recusandae", + trial_link_id="ipsum", 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="recusandae", + trial_link_id="ipsum", 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="officiis", + trial_link_id="magnam", 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="officiis", + trial_link_id="magnam", 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="officiis", + trial_link_id="magnam", 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="officiis", + trial_link_id="magnam", 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="assumenda", + trial_link_id="dolorum", 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="assumenda", + trial_link_id="dolorum", 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="assumenda", + trial_link_id="dolorum", 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="assumenda", + trial_link_id="dolorum", 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="assumenda", + trial_link_id="dolorum", 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="fugiat", + trial_link_id="officia", 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="fugiat", + trial_link_id="officia", 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="fugiat", + trial_link_id="officia", 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="fugiat", + trial_link_id="officia", 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="fugiat", + trial_link_id="officia", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 44af245d..f740dd1e 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="fg", + name="nxkd", ) 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="fg", + name="nxkd", ) 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="fg", + name="nxkd", ) 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="fg", + name="nxkd", ) @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="fg", + name="nxkd", ) 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="fg", + name="nxkd", ) 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="fg", + name="nxkd", ) 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="fg", + name="nxkd", ) @pytest.mark.skip(reason="Mock server tests are disabled") From c9bffa987a47eb406f6525aa2fb409e925d45c3b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 06:12:35 +0000 Subject: [PATCH 071/249] 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_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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, 268 insertions(+), 268 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8f7a621d..2c8db812 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6248482297627a7484fa7a27c049cd2dcbc311465c243e4509b22f9fa11a8e5e.yml -openapi_spec_hash: 7e330e112b99ae68c7e1e483f8fbc557 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-be5dbf6f642a36e76591e9ba9964a1c461bfcfd58cb75324ec00001c09742578.yml +openapi_spec_hash: 99d50a3cef2a53a10d8f1505133f2aae config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 051faacb..5f2477bf 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="fuga", + message_id="atque", 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="fuga", + message_id="atque", 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="fuga", + message_id="atque", 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="fuga", + message_id="atque", 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="fuga", + message_id="atque", 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="fuga", + message_id="atque", 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="fuga", + message_id="atque", 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="fuga", + message_id="atque", 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="fuga", + message_id="atque", 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="fuga", + message_id="atque", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 1c915568..422d2a14 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 13b0c13b..d809aa5d 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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 444937ba..7549791e 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 9c80483e..2ced6cb5 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 44e9daf5..a07280c4 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 5e31d2e0..e12e80ca 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", + "non", ) 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", + "non", ) 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", + "non", ) 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", + "non", ) 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", + "non", ) 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", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 825e2b29..6e685b85 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="aliquid", - auth_type="email_password", - cookies="dolor", + auth_id="nobis", + auth_type="mobile_app", + cookies="labore", custom_proxy={ "host": "proxy.example.com", - "password": "Q`B:dl2[", + "password": "&?`4BLPcaV4Uu*", "port": 8080, - "username": "accusantium", + "username": "architecto", }, - email="qzemlak@example.com", + email="sim93@example.org", force_connect=False, - name="sunt", - password="F(BxSf6", - proxy_country="us", - user_agent="incidunt", - xbc="esse", + name="numquam", + password="1{LLS+0g(.D@87o^P1W", + proxy_country="uk", + user_agent="inventore", + xbc="ipsum", ) 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="aliquid", - auth_type="email_password", - cookies="dolor", + auth_id="nobis", + auth_type="mobile_app", + cookies="labore", custom_proxy={ "host": "proxy.example.com", - "password": "Q`B:dl2[", + "password": "&?`4BLPcaV4Uu*", "port": 8080, - "username": "accusantium", + "username": "architecto", }, - email="qzemlak@example.com", + email="sim93@example.org", force_connect=False, - name="sunt", - password="F(BxSf6", - proxy_country="us", - user_agent="incidunt", - xbc="esse", + name="numquam", + password="1{LLS+0g(.D@87o^P1W", + proxy_country="uk", + user_agent="inventore", + xbc="ipsum", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index aaff3bff..b2158856 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="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="promotions", + 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 6f265c4e..54adf563 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": ["ivqlkrmigiwnfyozkfowazrp"]}, + filter={"tags": ["anslvubulexwzl"]}, 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="nihil", + smart_link_id="dicta", ) 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="nihil", + smart_link_id="dicta", 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="nihil", + smart_link_id="dicta", ) 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="nihil", + smart_link_id="dicta", ) 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="et", + smart_link_id="suscipit", ) 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="et", + smart_link_id="suscipit", 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="et", + smart_link_id="suscipit", ) 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="et", + smart_link_id="suscipit", ) 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="odit", + smart_link_id="esse", ) 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="odit", + smart_link_id="esse", 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="odit", + smart_link_id="esse", ) 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="odit", + smart_link_id="esse", ) 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="doloremque", + smart_link_id="voluptas", ) 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="doloremque", + smart_link_id="voluptas", 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="doloremque", + smart_link_id="voluptas", ) 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="doloremque", + smart_link_id="voluptas", ) 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="labore", + smart_link_id="unde", ) 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="labore", + smart_link_id="unde", 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="labore", + smart_link_id="unde", ) 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="labore", + smart_link_id="unde", ) 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="porro", + smart_link_id="neque", ) 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="porro", + smart_link_id="neque", 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="porro", + smart_link_id="neque", ) 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="porro", + smart_link_id="neque", ) 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": ["ivqlkrmigiwnfyozkfowazrp"]}, + filter={"tags": ["anslvubulexwzl"]}, 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="nihil", + smart_link_id="dicta", ) 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="nihil", + smart_link_id="dicta", 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="nihil", + smart_link_id="dicta", ) 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="nihil", + smart_link_id="dicta", ) 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="et", + smart_link_id="suscipit", ) 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="et", + smart_link_id="suscipit", 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="et", + smart_link_id="suscipit", ) 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="et", + smart_link_id="suscipit", ) 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="odit", + smart_link_id="esse", ) 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="odit", + smart_link_id="esse", 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="odit", + smart_link_id="esse", ) 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="odit", + smart_link_id="esse", ) 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="doloremque", + smart_link_id="voluptas", ) 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="doloremque", + smart_link_id="voluptas", 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="doloremque", + smart_link_id="voluptas", ) 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="doloremque", + smart_link_id="voluptas", ) 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="labore", + smart_link_id="unde", ) 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="labore", + smart_link_id="unde", 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="labore", + smart_link_id="unde", ) 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="labore", + smart_link_id="unde", ) 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="porro", + smart_link_id="neque", ) 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="porro", + smart_link_id="neque", 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="porro", + smart_link_id="neque", ) 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="porro", + smart_link_id="neque", ) 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 7aa0a17f..378e449f 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": "fundef", - "tags": ["mvylvveiw"], + "search": "yuhqcqrnobzyqxllsbwvfl", + "tags": ["sf"], }, 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": "csilaqmxblp", - "tags": ["bupfpeq"], + "search": "melxhuoynuaglpr", + "tags": ["witjgdqwbwcxdjc"], }, 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": "wbe", - "tags": ["pzbvqs"], + "include_smart_links": True, + "search": "iqwtveqzxhscbh", + "tags": ["ditvgcfwgvzs"], }, 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": "worcxzfnkbg", - "tags": ["mxvuozlyqhdkpw"], + "include_smart_links": False, + "search": "nixstdoapvnmu", + "tags": ["kuphxpobkwub"], }, 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": "fundef", - "tags": ["mvylvveiw"], + "search": "yuhqcqrnobzyqxllsbwvfl", + "tags": ["sf"], }, 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": "csilaqmxblp", - "tags": ["bupfpeq"], + "search": "melxhuoynuaglpr", + "tags": ["witjgdqwbwcxdjc"], }, 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": "wbe", - "tags": ["pzbvqs"], + "include_smart_links": True, + "search": "iqwtveqzxhscbh", + "tags": ["ditvgcfwgvzs"], }, 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": "worcxzfnkbg", - "tags": ["mxvuozlyqhdkpw"], + "include_smart_links": False, + "search": "nixstdoapvnmu", + "tags": ["kuphxpobkwub"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 5c0231ba..8b837d74 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="velit", + tracking_link_id="dolores", 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="velit", + tracking_link_id="dolores", 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="velit", + tracking_link_id="dolores", 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="velit", + tracking_link_id="dolores", 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="velit", + tracking_link_id="dolores", 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="id", + tracking_link_id="fugit", 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="id", + tracking_link_id="fugit", 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="id", + tracking_link_id="fugit", 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="id", + tracking_link_id="fugit", 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="id", + tracking_link_id="fugit", 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="velit", + tracking_link_id="dolores", 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="velit", + tracking_link_id="dolores", 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="velit", + tracking_link_id="dolores", 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="velit", + tracking_link_id="dolores", 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="velit", + tracking_link_id="dolores", 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="id", + tracking_link_id="fugit", 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="id", + tracking_link_id="fugit", 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="id", + tracking_link_id="fugit", 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="id", + tracking_link_id="fugit", 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="id", + tracking_link_id="fugit", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 0c5c57fe..7ddd0fb2 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="ipsum", + 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="ipsum", + 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="ipsum", + 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="ipsum", + 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="ipsum", + 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="ipsum", + 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="ipsum", + 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="ipsum", + 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="magnam", + trial_link_id="necessitatibus", 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="magnam", + trial_link_id="necessitatibus", 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="magnam", + trial_link_id="necessitatibus", 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="magnam", + trial_link_id="necessitatibus", 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="dolorum", + trial_link_id="voluptatem", 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="dolorum", + trial_link_id="voluptatem", 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="dolorum", + trial_link_id="voluptatem", 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="dolorum", + trial_link_id="voluptatem", 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="dolorum", + trial_link_id="voluptatem", 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="officia", + trial_link_id="voluptas", 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="officia", + trial_link_id="voluptas", 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="officia", + trial_link_id="voluptas", 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="officia", + trial_link_id="voluptas", 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="officia", + trial_link_id="voluptas", 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="ipsum", + 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="ipsum", + 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="ipsum", + 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="ipsum", + 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="ipsum", + 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="ipsum", + 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="ipsum", + 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="ipsum", + 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="magnam", + trial_link_id="necessitatibus", 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="magnam", + trial_link_id="necessitatibus", 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="magnam", + trial_link_id="necessitatibus", 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="magnam", + trial_link_id="necessitatibus", 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="dolorum", + trial_link_id="voluptatem", 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="dolorum", + trial_link_id="voluptatem", 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="dolorum", + trial_link_id="voluptatem", 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="dolorum", + trial_link_id="voluptatem", 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="dolorum", + trial_link_id="voluptatem", 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="officia", + trial_link_id="voluptas", 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="officia", + trial_link_id="voluptas", 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="officia", + trial_link_id="voluptas", 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="officia", + trial_link_id="voluptas", 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="officia", + trial_link_id="voluptas", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index f740dd1e..f00d60d6 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="nxkd", + name="rqwoliu", ) 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="nxkd", + name="rqwoliu", ) 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="nxkd", + name="rqwoliu", ) 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="nxkd", + name="rqwoliu", ) @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="nxkd", + name="rqwoliu", ) 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="nxkd", + name="rqwoliu", ) 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="nxkd", + name="rqwoliu", ) 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="nxkd", + name="rqwoliu", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 3b888d1755cb600905e1a0517077bf0429b822c6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 13:12:52 +0000 Subject: [PATCH 072/249] 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 | 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 +-- 16 files changed, 268 insertions(+), 268 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2c8db812..0848b8f8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-be5dbf6f642a36e76591e9ba9964a1c461bfcfd58cb75324ec00001c09742578.yml -openapi_spec_hash: 99d50a3cef2a53a10d8f1505133f2aae +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-08ae21057f7088b09eb4630525311d819cfd0eab65c356d46c48929e5c14ee61.yml +openapi_spec_hash: c72ef933e7bf20f7b453c28c441b8da3 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 5f2477bf..9927007c 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="atque", + message_id="soluta", 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="atque", + message_id="soluta", 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="atque", + message_id="soluta", 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="atque", + message_id="soluta", 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="atque", + message_id="soluta", 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="atque", + message_id="soluta", 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="atque", + message_id="soluta", 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="atque", + message_id="soluta", 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="atque", + message_id="soluta", 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="atque", + message_id="soluta", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 422d2a14..c1bc3094 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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 d809aa5d..4268a903 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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 7549791e..aa735c97 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 2ced6cb5..b5f3d61a 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 9664075f..544df889 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 a07280c4..9ee0e4fa 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="dignissimos", + path_story_id="deserunt", 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="dignissimos", + path_story_id="deserunt", 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="dignissimos", + path_story_id="deserunt", 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="dignissimos", + path_story_id="deserunt", 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="dignissimos", + story_id="deserunt", 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="dignissimos", + story_id="deserunt", 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="dignissimos", + story_id="deserunt", 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="dignissimos", + story_id="deserunt", 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="dignissimos", + path_story_id="deserunt", 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="dignissimos", + path_story_id="deserunt", 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="dignissimos", + path_story_id="deserunt", 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="dignissimos", + path_story_id="deserunt", 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="dignissimos", + story_id="deserunt", 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="dignissimos", + story_id="deserunt", 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="dignissimos", + story_id="deserunt", 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="dignissimos", + story_id="deserunt", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index e12e80ca..ec59c476 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( - "non", + "animi", ) 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( - "non", + "animi", ) 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( - "non", + "animi", ) 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( - "non", + "animi", ) 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( - "non", + "animi", ) 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( - "non", + "animi", ) 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 6e685b85..a1285a8c 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="mobile_app", - cookies="labore", + auth_id="consequatur", + auth_type="email_password", + cookies="ratione", custom_proxy={ "host": "proxy.example.com", - "password": "&?`4BLPcaV4Uu*", + "password": '8:GZ%8"q\\;X6y', "port": 8080, - "username": "architecto", + "username": "adipisci", }, - email="sim93@example.org", - force_connect=False, - name="numquam", - password="1{LLS+0g(.D@87o^P1W", + email="hintz.yvette@example.org", + force_connect=True, + name="error", + password="EI:hMe#!XT?Eg0>k7D6", proxy_country="uk", - user_agent="inventore", - xbc="ipsum", + user_agent="ea", + 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="nobis", - auth_type="mobile_app", - cookies="labore", + auth_id="consequatur", + auth_type="email_password", + cookies="ratione", custom_proxy={ "host": "proxy.example.com", - "password": "&?`4BLPcaV4Uu*", + "password": '8:GZ%8"q\\;X6y', "port": 8080, - "username": "architecto", + "username": "adipisci", }, - email="sim93@example.org", - force_connect=False, - name="numquam", - password="1{LLS+0g(.D@87o^P1W", + email="hintz.yvette@example.org", + force_connect=True, + name="error", + password="EI:hMe#!XT?Eg0>k7D6", proxy_country="uk", - user_agent="inventore", - xbc="ipsum", + user_agent="ea", + xbc="qui", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index b2158856..bea1ef2e 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="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="purchases", + type="tags", ) 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 54adf563..495e5c96 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": ["anslvubulexwzl"]}, + filter={"tags": ["mmcsxjwtxw"]}, 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="dicta", + smart_link_id="esse", ) 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="dicta", + smart_link_id="esse", 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="dicta", + smart_link_id="esse", ) 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="dicta", + smart_link_id="esse", ) 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="suscipit", + 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="suscipit", + 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="suscipit", + 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="suscipit", + 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="esse", + smart_link_id="fugit", ) 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="esse", + smart_link_id="fugit", 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="esse", + smart_link_id="fugit", ) 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="esse", + smart_link_id="fugit", ) 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="voluptas", + smart_link_id="omnis", ) 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="voluptas", + smart_link_id="omnis", 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="voluptas", + smart_link_id="omnis", ) 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="voluptas", + smart_link_id="omnis", ) 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="unde", + smart_link_id="temporibus", ) 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="unde", + smart_link_id="temporibus", 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="unde", + smart_link_id="temporibus", ) 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="unde", + smart_link_id="temporibus", ) 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="neque", + smart_link_id="et", ) 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="neque", + smart_link_id="et", 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="neque", + smart_link_id="et", ) 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="neque", + smart_link_id="et", ) 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": ["anslvubulexwzl"]}, + filter={"tags": ["mmcsxjwtxw"]}, 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="dicta", + smart_link_id="esse", ) 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="dicta", + smart_link_id="esse", 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="dicta", + smart_link_id="esse", ) 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="dicta", + smart_link_id="esse", ) 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="suscipit", + 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="suscipit", + 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="suscipit", + 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="suscipit", + 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="esse", + smart_link_id="fugit", ) 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="esse", + smart_link_id="fugit", 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="esse", + smart_link_id="fugit", ) 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="esse", + smart_link_id="fugit", ) 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="voluptas", + smart_link_id="omnis", ) 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="voluptas", + smart_link_id="omnis", 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="voluptas", + smart_link_id="omnis", ) 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="voluptas", + smart_link_id="omnis", ) 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="unde", + smart_link_id="temporibus", ) 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="unde", + smart_link_id="temporibus", 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="unde", + smart_link_id="temporibus", ) 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="unde", + smart_link_id="temporibus", ) 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="neque", + smart_link_id="et", ) 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="neque", + smart_link_id="et", 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="neque", + smart_link_id="et", ) 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="neque", + 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 378e449f..93a0bb9a 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": "yuhqcqrnobzyqxllsbwvfl", - "tags": ["sf"], + "search": "prvslxnjxupgutg", + "tags": ["kdrjhvvovufawtb"], }, 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": "melxhuoynuaglpr", - "tags": ["witjgdqwbwcxdjc"], + "search": "aaceqehxppmglrhvzvlg", + "tags": ["qfzmgpz"], }, 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": "iqwtveqzxhscbh", - "tags": ["ditvgcfwgvzs"], + "search": "ciycanzqryagobkhjlglsfz", + "tags": ["jiphrlecckuowsaevdb"], }, 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": "nixstdoapvnmu", - "tags": ["kuphxpobkwub"], + "include_smart_links": True, + "search": "cwn", + "tags": ["idebpndluqnaehmjuv"], }, 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": "yuhqcqrnobzyqxllsbwvfl", - "tags": ["sf"], + "search": "prvslxnjxupgutg", + "tags": ["kdrjhvvovufawtb"], }, 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": "melxhuoynuaglpr", - "tags": ["witjgdqwbwcxdjc"], + "search": "aaceqehxppmglrhvzvlg", + "tags": ["qfzmgpz"], }, 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": "iqwtveqzxhscbh", - "tags": ["ditvgcfwgvzs"], + "search": "ciycanzqryagobkhjlglsfz", + "tags": ["jiphrlecckuowsaevdb"], }, 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": "nixstdoapvnmu", - "tags": ["kuphxpobkwub"], + "include_smart_links": True, + "search": "cwn", + "tags": ["idebpndluqnaehmjuv"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 8b837d74..f168183c 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="dolores", + tracking_link_id="aut", 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="dolores", + tracking_link_id="aut", 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="dolores", + tracking_link_id="aut", 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="dolores", + tracking_link_id="aut", 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="dolores", + tracking_link_id="aut", 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="fugit", + tracking_link_id="nam", 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="fugit", + tracking_link_id="nam", 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="fugit", + tracking_link_id="nam", 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="fugit", + tracking_link_id="nam", 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="fugit", + tracking_link_id="nam", 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="dolores", + tracking_link_id="aut", 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="dolores", + tracking_link_id="aut", 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="dolores", + tracking_link_id="aut", 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="dolores", + tracking_link_id="aut", 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="dolores", + tracking_link_id="aut", 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="fugit", + tracking_link_id="nam", 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="fugit", + tracking_link_id="nam", 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="fugit", + tracking_link_id="nam", 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="fugit", + tracking_link_id="nam", 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="fugit", + tracking_link_id="nam", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 7ddd0fb2..ed40cdfd 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="minima", 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="minima", 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="minima", 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="minima", 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="minima", 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="minima", 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="minima", 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="minima", 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="necessitatibus", + trial_link_id="consectetur", 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="necessitatibus", + trial_link_id="consectetur", 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="necessitatibus", + trial_link_id="consectetur", 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="necessitatibus", + trial_link_id="consectetur", 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptas", + trial_link_id="non", 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="voluptas", + trial_link_id="non", 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="voluptas", + trial_link_id="non", 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="voluptas", + trial_link_id="non", 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="voluptas", + trial_link_id="non", 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="minima", 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="minima", 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="minima", 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="minima", 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="minima", 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="minima", 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="minima", 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="minima", 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="necessitatibus", + trial_link_id="consectetur", 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="necessitatibus", + trial_link_id="consectetur", 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="necessitatibus", + trial_link_id="consectetur", 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="necessitatibus", + trial_link_id="consectetur", 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptas", + trial_link_id="non", 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="voluptas", + trial_link_id="non", 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="voluptas", + trial_link_id="non", 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="voluptas", + trial_link_id="non", 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="voluptas", + trial_link_id="non", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index f00d60d6..170c5430 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="rqwoliu", + name="ywcohycsqqneiyrhnnmdmfnhi", ) 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="rqwoliu", + name="ywcohycsqqneiyrhnnmdmfnhi", ) 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="rqwoliu", + name="ywcohycsqqneiyrhnnmdmfnhi", ) 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="rqwoliu", + name="ywcohycsqqneiyrhnnmdmfnhi", ) @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="rqwoliu", + name="ywcohycsqqneiyrhnnmdmfnhi", ) 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="rqwoliu", + name="ywcohycsqqneiyrhnnmdmfnhi", ) 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="rqwoliu", + name="ywcohycsqqneiyrhnnmdmfnhi", ) 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="rqwoliu", + name="ywcohycsqqneiyrhnnmdmfnhi", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 85a134346cdbe797c852dea9ea87cb8fb2b6b85f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 18:12:42 +0000 Subject: [PATCH 073/249] 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 | 100 +++++++++--------- 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, 272 insertions(+), 272 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0848b8f8..d2ce6316 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-08ae21057f7088b09eb4630525311d819cfd0eab65c356d46c48929e5c14ee61.yml -openapi_spec_hash: c72ef933e7bf20f7b453c28c441b8da3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7363f33ed392201f7dad8b501a46128a80b38171819e4869d3708c56bc415853.yml +openapi_spec_hash: 4a36a8515b0ef66a8dc07c2ec533fc2b config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 9927007c..15f6dfce 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="soluta", + 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="soluta", + 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="soluta", + 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="soluta", + 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="soluta", + 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="soluta", + 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="soluta", + 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="soluta", + 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="soluta", + 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="soluta", + 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 c1bc3094..5eaa1e19 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 4268a903..f5ea01ff 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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 aa735c97..444937ba 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 b5f3d61a..fc7b1635 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 544df889..9664075f 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 9ee0e4fa..886b273c 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + story_id="est", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index ec59c476..84f3a2ee 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( - "animi", + "dolorem", ) 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( - "animi", + "dolorem", ) 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( - "animi", + "dolorem", ) 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( - "animi", + "dolorem", ) 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( - "animi", + "dolorem", ) 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( - "animi", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index a1285a8c..f156e3cd 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="consequatur", - auth_type="email_password", - cookies="ratione", + auth_id="architecto", + auth_type="raw_data", + cookies="est", custom_proxy={ "host": "proxy.example.com", - "password": '8:GZ%8"q\\;X6y', + "password": '<-6x{yk"=', "port": 8080, - "username": "adipisci", + "username": "hic", }, - email="hintz.yvette@example.org", + email="murazik.saul@example.com", force_connect=True, - name="error", - password="EI:hMe#!XT?Eg0>k7D6", - proxy_country="uk", - user_agent="ea", - xbc="qui", + name="velit", + password='q"NQqKX@uJ,#', + proxy_country="us", + user_agent="neque", + xbc="officiis", ) 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="consequatur", - auth_type="email_password", - cookies="ratione", + auth_id="architecto", + auth_type="raw_data", + cookies="est", custom_proxy={ "host": "proxy.example.com", - "password": '8:GZ%8"q\\;X6y', + "password": '<-6x{yk"=', "port": 8080, - "username": "adipisci", + "username": "hic", }, - email="hintz.yvette@example.org", + email="murazik.saul@example.com", force_connect=True, - name="error", - password="EI:hMe#!XT?Eg0>k7D6", - proxy_country="uk", - user_agent="ea", - xbc="qui", + name="velit", + password='q"NQqKX@uJ,#', + proxy_country="us", + user_agent="neque", + xbc="officiis", ) 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 9249f386..3597ede6 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 bea1ef2e..aaff3bff 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="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="tags", + 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 495e5c96..b1ab8dd2 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": ["mmcsxjwtxw"]}, + filter={"tags": ["vbphjrbpprduvbzqlkvpoqk"]}, 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="esse", + smart_link_id="molestiae", ) 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="esse", + smart_link_id="molestiae", 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="esse", + smart_link_id="molestiae", ) 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="esse", + smart_link_id="molestiae", ) 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="laudantium", ) 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="laudantium", 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="laudantium", ) 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="laudantium", ) 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="fugit", + smart_link_id="enim", ) 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="fugit", + smart_link_id="enim", 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="fugit", + smart_link_id="enim", ) 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="fugit", + smart_link_id="enim", ) 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="omnis", + smart_link_id="necessitatibus", ) 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="omnis", + smart_link_id="necessitatibus", 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="omnis", + smart_link_id="necessitatibus", ) 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="omnis", + smart_link_id="necessitatibus", ) 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="temporibus", + smart_link_id="veritatis", ) 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="temporibus", + smart_link_id="veritatis", 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="temporibus", + smart_link_id="veritatis", ) 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="temporibus", + smart_link_id="veritatis", ) 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="et", + smart_link_id="ut", ) 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="et", + smart_link_id="ut", 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="et", + smart_link_id="ut", ) 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="et", + smart_link_id="ut", ) 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": ["mmcsxjwtxw"]}, + filter={"tags": ["vbphjrbpprduvbzqlkvpoqk"]}, 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="esse", + smart_link_id="molestiae", ) 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="esse", + smart_link_id="molestiae", 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="esse", + smart_link_id="molestiae", ) 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="esse", + smart_link_id="molestiae", ) 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="laudantium", ) 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="laudantium", 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="laudantium", ) 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="laudantium", ) 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="fugit", + smart_link_id="enim", ) 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="fugit", + smart_link_id="enim", 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="fugit", + smart_link_id="enim", ) 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="fugit", + smart_link_id="enim", ) 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="omnis", + smart_link_id="necessitatibus", ) 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="omnis", + smart_link_id="necessitatibus", 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="omnis", + smart_link_id="necessitatibus", ) 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="omnis", + smart_link_id="necessitatibus", ) 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="temporibus", + smart_link_id="veritatis", ) 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="temporibus", + smart_link_id="veritatis", 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="temporibus", + smart_link_id="veritatis", ) 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="temporibus", + smart_link_id="veritatis", ) 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="et", + smart_link_id="ut", ) 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="et", + smart_link_id="ut", 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="et", + smart_link_id="ut", ) 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="et", + 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 93a0bb9a..997e310b 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": "prvslxnjxupgutg", - "tags": ["kdrjhvvovufawtb"], + "search": "qmnebjydejzngcjedmryzuxbu", + "tags": ["xrvcbldtkhrokdsomgqcqlg"], }, 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": "aaceqehxppmglrhvzvlg", - "tags": ["qfzmgpz"], + "search": "skak", + "tags": ["zxoituaxm"], }, 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": "ciycanzqryagobkhjlglsfz", - "tags": ["jiphrlecckuowsaevdb"], + "include_smart_links": False, + "search": "vndpgwpsaswfebh", + "tags": ["ingorzewwjlg"], }, 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": "cwn", - "tags": ["idebpndluqnaehmjuv"], + "include_smart_links": False, + "search": "terpdleostwsqkhzcu", + "tags": ["ahzhvvvpgljmzfe"], }, 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": "prvslxnjxupgutg", - "tags": ["kdrjhvvovufawtb"], + "search": "qmnebjydejzngcjedmryzuxbu", + "tags": ["xrvcbldtkhrokdsomgqcqlg"], }, 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": "aaceqehxppmglrhvzvlg", - "tags": ["qfzmgpz"], + "search": "skak", + "tags": ["zxoituaxm"], }, 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": "ciycanzqryagobkhjlglsfz", - "tags": ["jiphrlecckuowsaevdb"], + "include_smart_links": False, + "search": "vndpgwpsaswfebh", + "tags": ["ingorzewwjlg"], }, 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": "cwn", - "tags": ["idebpndluqnaehmjuv"], + "include_smart_links": False, + "search": "terpdleostwsqkhzcu", + "tags": ["ahzhvvvpgljmzfe"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index f168183c..265d5896 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="aut", + tracking_link_id="nobis", 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="aut", + tracking_link_id="nobis", 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="aut", + tracking_link_id="nobis", 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="aut", + tracking_link_id="nobis", 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="aut", + tracking_link_id="nobis", 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="nam", + 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="nam", + 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="nam", + 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="nam", + 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="nam", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="aut", + tracking_link_id="nobis", 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="aut", + tracking_link_id="nobis", 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="aut", + tracking_link_id="nobis", 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="aut", + tracking_link_id="nobis", 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="aut", + tracking_link_id="nobis", 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="nam", + 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="nam", + 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="nam", + 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="nam", + 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="nam", + tracking_link_id="velit", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index ed40cdfd..71ca83d6 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="consectetur", + trial_link_id="ratione", 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="consectetur", + trial_link_id="ratione", 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="consectetur", + trial_link_id="ratione", 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="consectetur", + trial_link_id="ratione", 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="eum", 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="eum", 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="eum", 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="eum", 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="eum", 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="non", + trial_link_id="numquam", 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="non", + trial_link_id="numquam", 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="non", + trial_link_id="numquam", 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="non", + trial_link_id="numquam", 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="non", + trial_link_id="numquam", 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="consectetur", + trial_link_id="ratione", 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="consectetur", + trial_link_id="ratione", 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="consectetur", + trial_link_id="ratione", 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="consectetur", + trial_link_id="ratione", 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="eum", 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="eum", 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="eum", 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="eum", 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="eum", 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="non", + trial_link_id="numquam", 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="non", + trial_link_id="numquam", 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="non", + trial_link_id="numquam", 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="non", + trial_link_id="numquam", 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="non", + trial_link_id="numquam", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 170c5430..38da9302 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="ywcohycsqqneiyrhnnmdmfnhi", + name="ooruwisntktrpzcryua", ) 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="ywcohycsqqneiyrhnnmdmfnhi", + name="ooruwisntktrpzcryua", ) 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="ywcohycsqqneiyrhnnmdmfnhi", + name="ooruwisntktrpzcryua", ) 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="ywcohycsqqneiyrhnnmdmfnhi", + name="ooruwisntktrpzcryua", ) @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="ywcohycsqqneiyrhnnmdmfnhi", + name="ooruwisntktrpzcryua", ) 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="ywcohycsqqneiyrhnnmdmfnhi", + name="ooruwisntktrpzcryua", ) 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="ywcohycsqqneiyrhnnmdmfnhi", + name="ooruwisntktrpzcryua", ) 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="ywcohycsqqneiyrhnnmdmfnhi", + name="ooruwisntktrpzcryua", ) @pytest.mark.skip(reason="Mock server tests are disabled") From cd59ef9dca60b078e1ca0b3735af93d67e3d4151 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2026 07:12:42 +0000 Subject: [PATCH 074/249] 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_notifications.py | 4 +- tests/api_resources/test_profiles.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 d2ce6316..403d37a0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7363f33ed392201f7dad8b501a46128a80b38171819e4869d3708c56bc415853.yml -openapi_spec_hash: 4a36a8515b0ef66a8dc07c2ec533fc2b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d6afd749f452a52233927ab89d781ac615a8adec4e13565e94a65a7d4305b7e0.yml +openapi_spec_hash: ae2972b7464c440e830a1cb1f39839ab config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 15f6dfce..53d85a23 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="ab", 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="ab", 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="ab", 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="ab", 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="ab", 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="ab", 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="ab", 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="ab", 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="ab", 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="ab", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 5eaa1e19..4641577f 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="sit", + list_id="rerum", 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="sit", + list_id="rerum", 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="sit", + list_id="rerum", 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="sit", + list_id="rerum", 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="sit", + list_id="rerum", 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="sit", + list_id="rerum", 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="sit", + list_id="rerum", 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="sit", + list_id="rerum", 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="sit", + list_id="rerum", 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="sit", + list_id="rerum", 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="sit", + list_id="rerum", 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="sit", + list_id="rerum", 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="sit", + list_id="rerum", 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="sit", + list_id="rerum", 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="sit", + list_id="rerum", 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="sit", + list_id="rerum", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index f5ea01ff..68fb3ae6 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="occaecati", + post_id="totam", 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="occaecati", + post_id="totam", 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="occaecati", + post_id="totam", 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="occaecati", + post_id="totam", 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="occaecati", + post_id="totam", 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="occaecati", + post_id="totam", 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="occaecati", + post_id="totam", 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="occaecati", + post_id="totam", 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="occaecati", + post_id="totam", 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="occaecati", + post_id="totam", 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="occaecati", + post_id="totam", 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="occaecati", + post_id="totam", 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="occaecati", + post_id="totam", 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="occaecati", + post_id="totam", 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="occaecati", + post_id="totam", 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="occaecati", + post_id="totam", 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="occaecati", + post_id="totam", 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="occaecati", + post_id="totam", 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="occaecati", + post_id="totam", 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="occaecati", + post_id="totam", 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 fc7b1635..2ced6cb5 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 886b273c..afeabc39 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="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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + story_id="minima", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 84f3a2ee..055f9d16 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( - "dolorem", + "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( - "dolorem", + "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( - "dolorem", + "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( - "dolorem", + "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( - "dolorem", + "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( - "dolorem", + "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 f156e3cd..0f8a29fc 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="architecto", - auth_type="raw_data", - cookies="est", + auth_id="rerum", + auth_type="email_password", + cookies="aperiam", custom_proxy={ "host": "proxy.example.com", - "password": '<-6x{yk"=', + "password": "DQ7ej)A@n\\^G2.?01", "port": 8080, - "username": "hic", + "username": "esse", }, - email="murazik.saul@example.com", + email="gus.gulgowski@example.org", force_connect=True, - name="velit", - password='q"NQqKX@uJ,#', - proxy_country="us", - user_agent="neque", - xbc="officiis", + name="et", + password="[qq*jWLi3/gE", + proxy_country="uk", + user_agent="pariatur", + 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="architecto", - auth_type="raw_data", - cookies="est", + auth_id="rerum", + auth_type="email_password", + cookies="aperiam", custom_proxy={ "host": "proxy.example.com", - "password": '<-6x{yk"=', + "password": "DQ7ej)A@n\\^G2.?01", "port": 8080, - "username": "hic", + "username": "esse", }, - email="murazik.saul@example.com", + email="gus.gulgowski@example.org", force_connect=True, - name="velit", - password='q"NQqKX@uJ,#', - proxy_country="us", - user_agent="neque", - xbc="officiis", + name="et", + password="[qq*jWLi3/gE", + proxy_country="uk", + user_agent="pariatur", + xbc="possimus", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index aaff3bff..280e3de9 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_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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 b1ab8dd2..f0e77d2d 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": ["vbphjrbpprduvbzqlkvpoqk"]}, + filter={"tags": ["extyhezgnhfkdglchnuxxdnz"]}, 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="molestiae", + smart_link_id="quis", ) 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="molestiae", + smart_link_id="quis", 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="molestiae", + smart_link_id="quis", ) 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="molestiae", + smart_link_id="quis", ) 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="laudantium", + smart_link_id="recusandae", ) 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="laudantium", + smart_link_id="recusandae", 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="laudantium", + smart_link_id="recusandae", ) 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="laudantium", + smart_link_id="recusandae", ) 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="enim", + smart_link_id="iste", ) 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="enim", + smart_link_id="iste", 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="enim", + smart_link_id="iste", ) 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="enim", + smart_link_id="iste", ) 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="necessitatibus", + smart_link_id="cumque", ) 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="necessitatibus", + smart_link_id="cumque", 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="necessitatibus", + smart_link_id="cumque", ) 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="necessitatibus", + smart_link_id="cumque", ) 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="veritatis", + smart_link_id="beatae", ) 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="veritatis", + smart_link_id="beatae", 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="veritatis", + smart_link_id="beatae", ) 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="veritatis", + smart_link_id="beatae", ) 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="ut", + smart_link_id="occaecati", ) 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="ut", + smart_link_id="occaecati", 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="ut", + smart_link_id="occaecati", ) 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="ut", + smart_link_id="occaecati", ) 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": ["vbphjrbpprduvbzqlkvpoqk"]}, + filter={"tags": ["extyhezgnhfkdglchnuxxdnz"]}, 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="molestiae", + smart_link_id="quis", ) 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="molestiae", + smart_link_id="quis", 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="molestiae", + smart_link_id="quis", ) 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="molestiae", + smart_link_id="quis", ) 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="laudantium", + smart_link_id="recusandae", ) 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="laudantium", + smart_link_id="recusandae", 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="laudantium", + smart_link_id="recusandae", ) 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="laudantium", + smart_link_id="recusandae", ) 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="enim", + smart_link_id="iste", ) 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="enim", + smart_link_id="iste", 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="enim", + smart_link_id="iste", ) 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="enim", + smart_link_id="iste", ) 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="necessitatibus", + smart_link_id="cumque", ) 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="necessitatibus", + smart_link_id="cumque", 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="necessitatibus", + smart_link_id="cumque", ) 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="necessitatibus", + smart_link_id="cumque", ) 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="veritatis", + smart_link_id="beatae", ) 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="veritatis", + smart_link_id="beatae", 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="veritatis", + smart_link_id="beatae", ) 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="veritatis", + smart_link_id="beatae", ) 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="ut", + smart_link_id="occaecati", ) 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="ut", + smart_link_id="occaecati", 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="ut", + smart_link_id="occaecati", ) 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="ut", + smart_link_id="occaecati", ) 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 997e310b..0fbdacc9 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": "qmnebjydejzngcjedmryzuxbu", - "tags": ["xrvcbldtkhrokdsomgqcqlg"], + "search": "hznvijgbmuxrnzgxqpmhs", + "tags": ["ezaawi"], }, 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": "skak", - "tags": ["zxoituaxm"], + "search": "dolvvsyrnjyls", + "tags": ["qzfnziiuaauxrkftazzvjggl"], }, 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": "vndpgwpsaswfebh", - "tags": ["ingorzewwjlg"], + "search": "ztspwupmwabnfhewrtqnlj", + "tags": ["qvwjqqotdpezmaeqnxq"], }, 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": "terpdleostwsqkhzcu", - "tags": ["ahzhvvvpgljmzfe"], + "search": "rdowohpxoqpaap", + "tags": ["c"], }, 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": "qmnebjydejzngcjedmryzuxbu", - "tags": ["xrvcbldtkhrokdsomgqcqlg"], + "search": "hznvijgbmuxrnzgxqpmhs", + "tags": ["ezaawi"], }, 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": "skak", - "tags": ["zxoituaxm"], + "search": "dolvvsyrnjyls", + "tags": ["qzfnziiuaauxrkftazzvjggl"], }, 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": "vndpgwpsaswfebh", - "tags": ["ingorzewwjlg"], + "search": "ztspwupmwabnfhewrtqnlj", + "tags": ["qvwjqqotdpezmaeqnxq"], }, 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": "terpdleostwsqkhzcu", - "tags": ["ahzhvvvpgljmzfe"], + "search": "rdowohpxoqpaap", + "tags": ["c"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 265d5896..f6de749e 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="nobis", + tracking_link_id="consequatur", 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="nobis", + tracking_link_id="consequatur", 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="nobis", + tracking_link_id="consequatur", 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="nobis", + tracking_link_id="consequatur", 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="nobis", + tracking_link_id="consequatur", 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="natus", 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="natus", 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="natus", 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="natus", 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="natus", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="nobis", + tracking_link_id="consequatur", 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="nobis", + tracking_link_id="consequatur", 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="nobis", + tracking_link_id="consequatur", 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="nobis", + tracking_link_id="consequatur", 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="nobis", + tracking_link_id="consequatur", 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="natus", 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="natus", 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="natus", 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="natus", 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="natus", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 71ca83d6..30af7857 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="eos", 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="eos", 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="eos", 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="eos", 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="eos", 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="eos", 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="eos", 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="eos", 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="ratione", + trial_link_id="dolores", 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="ratione", + trial_link_id="dolores", 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="ratione", + trial_link_id="dolores", 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="ratione", + trial_link_id="dolores", 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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="numquam", + trial_link_id="beatae", 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="numquam", + trial_link_id="beatae", 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="numquam", + trial_link_id="beatae", 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="numquam", + trial_link_id="beatae", 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="numquam", + trial_link_id="beatae", 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="eos", 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="eos", 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="eos", 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="eos", 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="eos", 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="eos", 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="eos", 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="eos", 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="ratione", + trial_link_id="dolores", 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="ratione", + trial_link_id="dolores", 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="ratione", + trial_link_id="dolores", 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="ratione", + trial_link_id="dolores", 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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="numquam", + trial_link_id="beatae", 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="numquam", + trial_link_id="beatae", 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="numquam", + trial_link_id="beatae", 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="numquam", + trial_link_id="beatae", 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="numquam", + trial_link_id="beatae", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 38da9302..53c686fc 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="ooruwisntktrpzcryua", + name="bn", ) 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="ooruwisntktrpzcryua", + name="bn", ) 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="ooruwisntktrpzcryua", + name="bn", ) 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="ooruwisntktrpzcryua", + name="bn", ) @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="ooruwisntktrpzcryua", + name="bn", ) 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="ooruwisntktrpzcryua", + name="bn", ) 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="ooruwisntktrpzcryua", + name="bn", ) 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="ooruwisntktrpzcryua", + name="bn", ) @pytest.mark.skip(reason="Mock server tests are disabled") From a5bef6249c6f41017cbdf93596d31b1d1d734d8d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2026 11:12:33 +0000 Subject: [PATCH 075/249] 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 | 40 +++---- tests/api_resources/test_client_sessions.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 +-- 13 files changed, 246 insertions(+), 246 deletions(-) diff --git a/.stats.yml b/.stats.yml index 403d37a0..85f0a6fb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d6afd749f452a52233927ab89d781ac615a8adec4e13565e94a65a7d4305b7e0.yml -openapi_spec_hash: ae2972b7464c440e830a1cb1f39839ab +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4ce4416717af0f5aea53b5c3b89ed160d6e40f1bf0cccb02364cf16bdcd4bdda.yml +openapi_spec_hash: 2c6c59f5e9d634035d9baf192c2fd4aa config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 53d85a23..c1c7f058 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="ab", + 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="ab", + 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="ab", + 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="ab", + 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="ab", + 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="ab", + 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="ab", + 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="ab", + 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="ab", + 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="ab", + 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 4641577f..1c915568 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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 68fb3ae6..f5ea01ff 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="totam", + post_id="occaecati", 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="totam", + post_id="occaecati", 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="totam", + post_id="occaecati", 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="totam", + post_id="occaecati", 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="totam", + post_id="occaecati", 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="totam", + post_id="occaecati", 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="totam", + post_id="occaecati", 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="totam", + post_id="occaecati", 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="totam", + post_id="occaecati", 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="totam", + post_id="occaecati", 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="totam", + post_id="occaecati", 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="totam", + post_id="occaecati", 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="totam", + post_id="occaecati", 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="totam", + post_id="occaecati", 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="totam", + post_id="occaecati", 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="totam", + post_id="occaecati", 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="totam", + post_id="occaecati", 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="totam", + post_id="occaecati", 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="totam", + post_id="occaecati", 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="totam", + post_id="occaecati", account="", ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index afeabc39..506c2ed9 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="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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + story_id="et", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 055f9d16..0f2d134b 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", + "exercitationem", ) 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", + "exercitationem", ) 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", + "exercitationem", ) 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", + "exercitationem", ) 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", + "exercitationem", ) 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", + "exercitationem", ) 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 0f8a29fc..d592346a 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="rerum", - auth_type="email_password", - cookies="aperiam", + auth_id="cumque", + auth_type="raw_data", + cookies="occaecati", custom_proxy={ "host": "proxy.example.com", - "password": "DQ7ej)A@n\\^G2.?01", + "password": "aQ'z2m|AA?U]qb:MK", "port": 8080, - "username": "esse", + "username": "eligendi", }, - email="gus.gulgowski@example.org", + email="barrows.joannie@example.org", force_connect=True, - name="et", - password="[qq*jWLi3/gE", + name="ducimus", + password='vs"GwjUvG_t', proxy_country="uk", - user_agent="pariatur", - xbc="possimus", + user_agent="earum", + xbc="laborum", ) 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="rerum", - auth_type="email_password", - cookies="aperiam", + auth_id="cumque", + auth_type="raw_data", + cookies="occaecati", custom_proxy={ "host": "proxy.example.com", - "password": "DQ7ej)A@n\\^G2.?01", + "password": "aQ'z2m|AA?U]qb:MK", "port": 8080, - "username": "esse", + "username": "eligendi", }, - email="gus.gulgowski@example.org", + email="barrows.joannie@example.org", force_connect=True, - name="et", - password="[qq*jWLi3/gE", + name="ducimus", + password='vs"GwjUvG_t', proxy_country="uk", - user_agent="pariatur", - xbc="possimus", + user_agent="earum", + xbc="laborum", ) 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 3597ede6..9249f386 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_smart_links.py b/tests/api_resources/test_smart_links.py index f0e77d2d..89bb6908 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": ["extyhezgnhfkdglchnuxxdnz"]}, + filter={"tags": ["xlhevpkgewecbyhlhnvk"]}, 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="quis", + smart_link_id="est", ) 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="quis", + smart_link_id="est", 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="quis", + smart_link_id="est", ) 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="quis", + smart_link_id="est", ) 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="recusandae", + smart_link_id="sunt", ) 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="recusandae", + smart_link_id="sunt", 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="recusandae", + smart_link_id="sunt", ) 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="recusandae", + smart_link_id="sunt", ) 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="iste", + smart_link_id="amet", ) 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="iste", + smart_link_id="amet", 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="iste", + smart_link_id="amet", ) 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="iste", + smart_link_id="amet", ) 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="cumque", + smart_link_id="beatae", ) 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="cumque", + smart_link_id="beatae", 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="cumque", + smart_link_id="beatae", ) 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="cumque", + smart_link_id="beatae", ) 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="beatae", + smart_link_id="voluptatem", ) 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="beatae", + smart_link_id="voluptatem", 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="beatae", + smart_link_id="voluptatem", ) 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="beatae", + smart_link_id="voluptatem", ) 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="occaecati", + smart_link_id="perferendis", ) 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="occaecati", + smart_link_id="perferendis", 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="occaecati", + smart_link_id="perferendis", ) 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="occaecati", + smart_link_id="perferendis", ) 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": ["extyhezgnhfkdglchnuxxdnz"]}, + filter={"tags": ["xlhevpkgewecbyhlhnvk"]}, 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="quis", + smart_link_id="est", ) 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="quis", + smart_link_id="est", 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="quis", + smart_link_id="est", ) 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="quis", + smart_link_id="est", ) 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="recusandae", + smart_link_id="sunt", ) 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="recusandae", + smart_link_id="sunt", 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="recusandae", + smart_link_id="sunt", ) 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="recusandae", + smart_link_id="sunt", ) 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="iste", + smart_link_id="amet", ) 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="iste", + smart_link_id="amet", 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="iste", + smart_link_id="amet", ) 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="iste", + smart_link_id="amet", ) 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="cumque", + smart_link_id="beatae", ) 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="cumque", + smart_link_id="beatae", 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="cumque", + smart_link_id="beatae", ) 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="cumque", + smart_link_id="beatae", ) 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="beatae", + smart_link_id="voluptatem", ) 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="beatae", + smart_link_id="voluptatem", 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="beatae", + smart_link_id="voluptatem", ) 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="beatae", + smart_link_id="voluptatem", ) 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="occaecati", + smart_link_id="perferendis", ) 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="occaecati", + smart_link_id="perferendis", 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="occaecati", + smart_link_id="perferendis", ) 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="occaecati", + 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 0fbdacc9..41c116ae 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": "hznvijgbmuxrnzgxqpmhs", - "tags": ["ezaawi"], + "search": "fldvrmbkkzplsj", + "tags": ["dmbaxzpwfxiaevtn"], }, 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": "dolvvsyrnjyls", - "tags": ["qzfnziiuaauxrkftazzvjggl"], + "search": "uiqyxxemxbxlzpmargdr", + "tags": ["xplosnbaaulxpcn"], }, 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": "ztspwupmwabnfhewrtqnlj", - "tags": ["qvwjqqotdpezmaeqnxq"], + "search": "rjboxitatlttrgumgayt", + "tags": ["octossofmns"], }, 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": "rdowohpxoqpaap", - "tags": ["c"], + "search": "wxiln", + "tags": ["zftreakawczhrimdydzwdauc"], }, 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": "hznvijgbmuxrnzgxqpmhs", - "tags": ["ezaawi"], + "search": "fldvrmbkkzplsj", + "tags": ["dmbaxzpwfxiaevtn"], }, 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": "dolvvsyrnjyls", - "tags": ["qzfnziiuaauxrkftazzvjggl"], + "search": "uiqyxxemxbxlzpmargdr", + "tags": ["xplosnbaaulxpcn"], }, 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": "ztspwupmwabnfhewrtqnlj", - "tags": ["qvwjqqotdpezmaeqnxq"], + "search": "rjboxitatlttrgumgayt", + "tags": ["octossofmns"], }, 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": "rdowohpxoqpaap", - "tags": ["c"], + "search": "wxiln", + "tags": ["zftreakawczhrimdydzwdauc"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index f6de749e..91d7e859 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="consequatur", + tracking_link_id="velit", 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="consequatur", + tracking_link_id="velit", 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="consequatur", + tracking_link_id="velit", 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="consequatur", + tracking_link_id="velit", 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="consequatur", + tracking_link_id="velit", 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="natus", + tracking_link_id="voluptatibus", 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="natus", + tracking_link_id="voluptatibus", 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="natus", + tracking_link_id="voluptatibus", 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="natus", + tracking_link_id="voluptatibus", 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="natus", + tracking_link_id="voluptatibus", 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="consequatur", + tracking_link_id="velit", 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="consequatur", + tracking_link_id="velit", 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="consequatur", + tracking_link_id="velit", 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="consequatur", + tracking_link_id="velit", 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="consequatur", + tracking_link_id="velit", 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="natus", + tracking_link_id="voluptatibus", 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="natus", + tracking_link_id="voluptatibus", 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="natus", + tracking_link_id="voluptatibus", 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="natus", + tracking_link_id="voluptatibus", 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="natus", + tracking_link_id="voluptatibus", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 30af7857..35e1229d 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="dolores", + trial_link_id="quibusdam", 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="dolores", + trial_link_id="quibusdam", 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="dolores", + trial_link_id="quibusdam", 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="dolores", + trial_link_id="quibusdam", 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="delectus", 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="delectus", 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="delectus", 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="delectus", 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="delectus", 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="beatae", + trial_link_id="magni", 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="beatae", + trial_link_id="magni", 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="beatae", + trial_link_id="magni", 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="beatae", + trial_link_id="magni", 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="beatae", + trial_link_id="magni", 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="dolores", + trial_link_id="quibusdam", 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="dolores", + trial_link_id="quibusdam", 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="dolores", + trial_link_id="quibusdam", 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="dolores", + trial_link_id="quibusdam", 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="delectus", 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="delectus", 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="delectus", 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="delectus", 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="delectus", 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="beatae", + trial_link_id="magni", 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="beatae", + trial_link_id="magni", 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="beatae", + trial_link_id="magni", 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="beatae", + trial_link_id="magni", 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="beatae", + trial_link_id="magni", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 53c686fc..58a6e12c 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="bn", + name="vqzlsxpnbuonreuu", ) 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="bn", + name="vqzlsxpnbuonreuu", ) 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="bn", + name="vqzlsxpnbuonreuu", ) 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="bn", + name="vqzlsxpnbuonreuu", ) @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="bn", + name="vqzlsxpnbuonreuu", ) 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="bn", + name="vqzlsxpnbuonreuu", ) 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="bn", + name="vqzlsxpnbuonreuu", ) 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="bn", + name="vqzlsxpnbuonreuu", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 05a7a761f83da67c48b5adb881fb7355fe273d90 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2026 17:12:40 +0000 Subject: [PATCH 076/249] 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 +++---- .../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 | 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 +-- 16 files changed, 256 insertions(+), 256 deletions(-) diff --git a/.stats.yml b/.stats.yml index 85f0a6fb..738aa2ee 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4ce4416717af0f5aea53b5c3b89ed160d6e40f1bf0cccb02364cf16bdcd4bdda.yml -openapi_spec_hash: 2c6c59f5e9d634035d9baf192c2fd4aa +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-51bc9675aa42197aebfbc3ba8919f85769c0817f2ed08178663d7b803da91eeb.yml +openapi_spec_hash: 1fd8bd900e5a78f17531b363d466691f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index c1c7f058..db7dbcc2 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="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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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 1c915568..05029cf5 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index f5ea01ff..0d70ffc7 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + post_id="aut", account="", ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075f..544df889 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 506c2ed9..38651b43 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="beatae", 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="beatae", 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="beatae", 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="beatae", 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="beatae", 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="beatae", 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="beatae", 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="beatae", 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="beatae", 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="beatae", 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="beatae", 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="beatae", 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="beatae", 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="beatae", 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="beatae", 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="beatae", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 0f2d134b..8ec6b903 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( - "exercitationem", + "velit", ) 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( - "exercitationem", + "velit", ) 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( - "exercitationem", + "velit", ) 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( - "exercitationem", + "velit", ) 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( - "exercitationem", + "velit", ) 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( - "exercitationem", + "velit", ) 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 d592346a..0f97cfd0 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="raw_data", - cookies="occaecati", + auth_id="rem", + auth_type="mobile_app", + cookies="consequuntur", custom_proxy={ "host": "proxy.example.com", - "password": "aQ'z2m|AA?U]qb:MK", + "password": "T\\a:pzo=Hjq_yb= 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="raw_data", - cookies="occaecati", + auth_id="rem", + auth_type="mobile_app", + cookies="consequuntur", custom_proxy={ "host": "proxy.example.com", - "password": "aQ'z2m|AA?U]qb:MK", + "password": "T\\a:pzo=Hjq_yb= 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 280e3de9..4fb0fa41 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="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="comments", + 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 65694e23..bd4f6161 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 89bb6908..5fff34d2 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": ["xlhevpkgewecbyhlhnvk"]}, + filter={"tags": ["zkdpbvszhsakqgbgdjduloq"]}, 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="est", + smart_link_id="dolor", ) 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="est", + smart_link_id="dolor", 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="est", + smart_link_id="dolor", ) 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="est", + smart_link_id="dolor", ) 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="sunt", + smart_link_id="cupiditate", ) 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="sunt", + smart_link_id="cupiditate", 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="sunt", + smart_link_id="cupiditate", ) 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="sunt", + smart_link_id="cupiditate", ) 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="amet", + smart_link_id="temporibus", ) 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="amet", + smart_link_id="temporibus", 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="amet", + smart_link_id="temporibus", ) 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="amet", + smart_link_id="temporibus", ) 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="beatae", + smart_link_id="et", ) 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="beatae", + smart_link_id="et", 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="beatae", + smart_link_id="et", ) 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="beatae", + smart_link_id="et", ) 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="voluptatem", + smart_link_id="facere", ) 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="voluptatem", + smart_link_id="facere", 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="voluptatem", + smart_link_id="facere", ) 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="voluptatem", + smart_link_id="facere", ) 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="perferendis", + smart_link_id="iusto", ) 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="perferendis", + smart_link_id="iusto", 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="perferendis", + smart_link_id="iusto", ) 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="perferendis", + smart_link_id="iusto", ) 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": ["xlhevpkgewecbyhlhnvk"]}, + filter={"tags": ["zkdpbvszhsakqgbgdjduloq"]}, 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="est", + smart_link_id="dolor", ) 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="est", + smart_link_id="dolor", 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="est", + smart_link_id="dolor", ) 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="est", + smart_link_id="dolor", ) 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="sunt", + smart_link_id="cupiditate", ) 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="sunt", + smart_link_id="cupiditate", 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="sunt", + smart_link_id="cupiditate", ) 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="sunt", + smart_link_id="cupiditate", ) 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="amet", + smart_link_id="temporibus", ) 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="amet", + smart_link_id="temporibus", 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="amet", + smart_link_id="temporibus", ) 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="amet", + smart_link_id="temporibus", ) 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="beatae", + smart_link_id="et", ) 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="beatae", + smart_link_id="et", 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="beatae", + smart_link_id="et", ) 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="beatae", + smart_link_id="et", ) 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="voluptatem", + smart_link_id="facere", ) 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="voluptatem", + smart_link_id="facere", 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="voluptatem", + smart_link_id="facere", ) 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="voluptatem", + smart_link_id="facere", ) 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="perferendis", + smart_link_id="iusto", ) 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="perferendis", + smart_link_id="iusto", 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="perferendis", + smart_link_id="iusto", ) 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="perferendis", + smart_link_id="iusto", ) 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 41c116ae..8d91769c 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": "fldvrmbkkzplsj", - "tags": ["dmbaxzpwfxiaevtn"], + "search": "npy", + "tags": ["kxldxg"], }, 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": "uiqyxxemxbxlzpmargdr", - "tags": ["xplosnbaaulxpcn"], + "search": "qnnukenyrqvpgxjydunhp", + "tags": ["nudalntdlmlwbzzrh"], }, 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": "rjboxitatlttrgumgayt", - "tags": ["octossofmns"], + "search": "j", + "tags": ["ywltdjacsh"], }, 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": "wxiln", - "tags": ["zftreakawczhrimdydzwdauc"], + "include_smart_links": True, + "search": "yhhlmhlxxbohfkteywj", + "tags": ["tdckwgghfknodzcgxylftz"], }, 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": "fldvrmbkkzplsj", - "tags": ["dmbaxzpwfxiaevtn"], + "search": "npy", + "tags": ["kxldxg"], }, 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": "uiqyxxemxbxlzpmargdr", - "tags": ["xplosnbaaulxpcn"], + "search": "qnnukenyrqvpgxjydunhp", + "tags": ["nudalntdlmlwbzzrh"], }, 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": "rjboxitatlttrgumgayt", - "tags": ["octossofmns"], + "search": "j", + "tags": ["ywltdjacsh"], }, 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": "wxiln", - "tags": ["zftreakawczhrimdydzwdauc"], + "include_smart_links": True, + "search": "yhhlmhlxxbohfkteywj", + "tags": ["tdckwgghfknodzcgxylftz"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 91d7e859..9b9bc7f0 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="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="molestiae", + 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="molestiae", + 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="molestiae", + 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="molestiae", + 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="molestiae", + 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="molestiae", + 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="molestiae", + 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="velit", + tracking_link_id="dolore", 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="velit", + tracking_link_id="dolore", 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="velit", + tracking_link_id="dolore", 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="velit", + tracking_link_id="dolore", 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="velit", + tracking_link_id="dolore", 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="voluptatibus", + tracking_link_id="voluptatem", 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="voluptatibus", + tracking_link_id="voluptatem", 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="voluptatibus", + tracking_link_id="voluptatem", 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="voluptatibus", + tracking_link_id="voluptatem", 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="voluptatibus", + tracking_link_id="voluptatem", 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="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="molestiae", + 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="molestiae", + 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="molestiae", + 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="molestiae", + 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="molestiae", + 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="molestiae", + 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="molestiae", + 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="velit", + tracking_link_id="dolore", 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="velit", + tracking_link_id="dolore", 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="velit", + tracking_link_id="dolore", 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="velit", + tracking_link_id="dolore", 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="velit", + tracking_link_id="dolore", 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="voluptatibus", + tracking_link_id="voluptatem", 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="voluptatibus", + tracking_link_id="voluptatem", 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="voluptatibus", + tracking_link_id="voluptatem", 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="voluptatibus", + tracking_link_id="voluptatem", 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="voluptatibus", + tracking_link_id="voluptatem", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 35e1229d..25d99a45 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="adipisci", + trial_link_id="ea", 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="adipisci", + trial_link_id="ea", 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="adipisci", + trial_link_id="ea", 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="adipisci", + trial_link_id="ea", 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="adipisci", + trial_link_id="ea", 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="adipisci", + trial_link_id="ea", 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="adipisci", + trial_link_id="ea", 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="adipisci", + trial_link_id="ea", 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="quibusdam", + 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="quibusdam", + 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="quibusdam", + 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="quibusdam", + 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="delectus", + trial_link_id="incidunt", 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="delectus", + trial_link_id="incidunt", 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="delectus", + trial_link_id="incidunt", 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="delectus", + trial_link_id="incidunt", 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="delectus", + trial_link_id="incidunt", 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="magni", + trial_link_id="magnam", 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="magni", + trial_link_id="magnam", 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="magni", + trial_link_id="magnam", 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="magni", + trial_link_id="magnam", 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="magni", + trial_link_id="magnam", 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="adipisci", + trial_link_id="ea", 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="adipisci", + trial_link_id="ea", 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="adipisci", + trial_link_id="ea", 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="adipisci", + trial_link_id="ea", 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="adipisci", + trial_link_id="ea", 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="adipisci", + trial_link_id="ea", 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="adipisci", + trial_link_id="ea", 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="adipisci", + trial_link_id="ea", 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="quibusdam", + 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="quibusdam", + 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="quibusdam", + 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="quibusdam", + 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="delectus", + trial_link_id="incidunt", 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="delectus", + trial_link_id="incidunt", 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="delectus", + trial_link_id="incidunt", 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="delectus", + trial_link_id="incidunt", 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="delectus", + trial_link_id="incidunt", 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="magni", + trial_link_id="magnam", 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="magni", + trial_link_id="magnam", 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="magni", + trial_link_id="magnam", 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="magni", + trial_link_id="magnam", 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="magni", + trial_link_id="magnam", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 58a6e12c..893cc644 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="vqzlsxpnbuonreuu", + name="bwnnfoano", ) 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="vqzlsxpnbuonreuu", + name="bwnnfoano", ) 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="vqzlsxpnbuonreuu", + name="bwnnfoano", ) 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="vqzlsxpnbuonreuu", + name="bwnnfoano", ) @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="vqzlsxpnbuonreuu", + name="bwnnfoano", ) 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="vqzlsxpnbuonreuu", + name="bwnnfoano", ) 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="vqzlsxpnbuonreuu", + name="bwnnfoano", ) 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="vqzlsxpnbuonreuu", + name="bwnnfoano", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 5730eb709799c6cb7602376ad4932b99d272fda8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2026 18:12:42 +0000 Subject: [PATCH 077/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/release_forms.py | 6 +- ...lease_form_list_taggable_users_response.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/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 | 100 +++++++++--------- 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(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index 738aa2ee..b368ad3e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-51bc9675aa42197aebfbc3ba8919f85769c0817f2ed08178663d7b803da91eeb.yml -openapi_spec_hash: 1fd8bd900e5a78f17531b363d466691f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3726266cd2833aa149edb440069058b093b32d3fe1079822f62e677e026bdf21.yml +openapi_spec_hash: 8a32adf2deae6904b098951bebdaf2d2 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/release_forms.py b/src/onlyfansapi/resources/release_forms.py index 42af3a5c..a927293d 100644 --- a/src/onlyfansapi/resources/release_forms.py +++ b/src/onlyfansapi/resources/release_forms.py @@ -151,7 +151,8 @@ def list_taggable_users( These are verified creators who have signed release forms to appear in your content. Use - `offset` and `limit` for pagination. + `offset` and `limit` for pagination, following `_pagination.next_page` until it + is `null`. Args: filter: Filter users by type: `all` or `pending`. @@ -321,7 +322,8 @@ async def list_taggable_users( These are verified creators who have signed release forms to appear in your content. Use - `offset` and `limit` for pagination. + `offset` and `limit` for pagination, following `_pagination.next_page` until it + is `null`. Args: filter: Filter users by type: `all` or `pending`. diff --git a/src/onlyfansapi/types/release_form_list_taggable_users_response.py b/src/onlyfansapi/types/release_form_list_taggable_users_response.py index 5317664a..0bcb18a5 100644 --- a/src/onlyfansapi/types/release_form_list_taggable_users_response.py +++ b/src/onlyfansapi/types/release_form_list_taggable_users_response.py @@ -55,6 +55,8 @@ class _Meta(BaseModel): class _Pagination(BaseModel): next_page: Optional[str] = None + notice: Optional[str] = None + class DataItemUserAvatarThumbs(BaseModel): c144: Optional[str] = None @@ -95,8 +97,6 @@ class DataItem(BaseModel): class Data(BaseModel): - has_more: Optional[bool] = FieldInfo(alias="hasMore", default=None) - items: Optional[List[DataItem]] = None diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index db7dbcc2..77e54590 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="dolores", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 05029cf5..c1bc3094 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="non", + 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="non", + 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="non", + 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="non", + 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="non", + 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="non", + 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="non", + 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="non", + 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="non", + 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="non", + 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="non", + 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="non", + 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="non", + 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="non", + 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="non", + 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="non", + 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 0d70ffc7..6f979536 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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="id", 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 2ced6cb5..fc7b1635 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 544df889..9664075f 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 38651b43..36521a4f 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="beatae", + path_story_id="veniam", 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="beatae", + path_story_id="veniam", 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="beatae", + path_story_id="veniam", 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="beatae", + path_story_id="veniam", 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="beatae", + story_id="veniam", 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="beatae", + story_id="veniam", 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="beatae", + story_id="veniam", 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="beatae", + story_id="veniam", 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="beatae", + path_story_id="veniam", 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="beatae", + path_story_id="veniam", 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="beatae", + path_story_id="veniam", 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="beatae", + path_story_id="veniam", 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="beatae", + story_id="veniam", 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="beatae", + story_id="veniam", 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="beatae", + story_id="veniam", 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="beatae", + story_id="veniam", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 8ec6b903..d2e5c48f 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( - "velit", + "iure", ) 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( - "velit", + "iure", ) 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( - "velit", + "iure", ) 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( - "velit", + "iure", ) 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( - "velit", + "iure", ) 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( - "velit", + "iure", ) 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 0f97cfd0..cf91b049 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="rem", - auth_type="mobile_app", - cookies="consequuntur", + auth_id="ex", + auth_type="email_password", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "T\\a:pzo=Hjq_yb= None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="rem", - auth_type="mobile_app", - cookies="consequuntur", + auth_id="ex", + auth_type="email_password", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "T\\a:pzo=Hjq_yb= None: from_id=123, limit=10, skip_users="all", - type="subscriptions", + 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="subscriptions", + type="tags", ) 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 5fff34d2..36f9649d 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": ["zkdpbvszhsakqgbgdjduloq"]}, + filter={"tags": ["crwxz"]}, 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="nulla", ) 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="nulla", 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="nulla", ) 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="nulla", ) 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="cupiditate", + smart_link_id="accusantium", ) 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="cupiditate", + smart_link_id="accusantium", 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="cupiditate", + smart_link_id="accusantium", ) 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="cupiditate", + smart_link_id="accusantium", ) 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="temporibus", + smart_link_id="quia", ) 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="temporibus", + smart_link_id="quia", 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="temporibus", + smart_link_id="quia", ) 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="temporibus", + smart_link_id="quia", ) 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="et", + smart_link_id="sunt", ) 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="et", + smart_link_id="sunt", 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="et", + smart_link_id="sunt", ) 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="et", + smart_link_id="sunt", ) 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="facere", + smart_link_id="beatae", ) 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="facere", + smart_link_id="beatae", 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="facere", + smart_link_id="beatae", ) 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="facere", + smart_link_id="beatae", ) 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="iusto", + smart_link_id="perferendis", ) 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="iusto", + smart_link_id="perferendis", 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="iusto", + smart_link_id="perferendis", ) 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="iusto", + smart_link_id="perferendis", ) 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": ["zkdpbvszhsakqgbgdjduloq"]}, + filter={"tags": ["crwxz"]}, 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="nulla", ) 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="nulla", 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="nulla", ) 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="nulla", ) 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="cupiditate", + smart_link_id="accusantium", ) 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="cupiditate", + smart_link_id="accusantium", 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="cupiditate", + smart_link_id="accusantium", ) 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="cupiditate", + smart_link_id="accusantium", ) 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="temporibus", + smart_link_id="quia", ) 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="temporibus", + smart_link_id="quia", 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="temporibus", + smart_link_id="quia", ) 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="temporibus", + smart_link_id="quia", ) 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="et", + smart_link_id="sunt", ) 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="et", + smart_link_id="sunt", 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="et", + smart_link_id="sunt", ) 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="et", + smart_link_id="sunt", ) 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="facere", + smart_link_id="beatae", ) 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="facere", + smart_link_id="beatae", 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="facere", + smart_link_id="beatae", ) 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="facere", + smart_link_id="beatae", ) 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="iusto", + smart_link_id="perferendis", ) 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="iusto", + smart_link_id="perferendis", 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="iusto", + smart_link_id="perferendis", ) 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="iusto", + 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 8d91769c..f1c6d3db 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": "npy", - "tags": ["kxldxg"], + "search": "xz", + "tags": ["ylssxtxb"], }, 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": "qnnukenyrqvpgxjydunhp", - "tags": ["nudalntdlmlwbzzrh"], + "search": "dttvclazycncu", + "tags": ["bwarhlzjdvvidzjlpvottsp"], }, 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": "j", - "tags": ["ywltdjacsh"], + "include_smart_links": True, + "search": "nndgjukxx", + "tags": ["wvbwokxkmmfayoiewdsmmcrk"], }, 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": "yhhlmhlxxbohfkteywj", - "tags": ["tdckwgghfknodzcgxylftz"], + "include_smart_links": False, + "search": "ybyywadvabwuwyfk", + "tags": ["gznfyikpdaifdulvyb"], }, 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": "npy", - "tags": ["kxldxg"], + "search": "xz", + "tags": ["ylssxtxb"], }, 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": "qnnukenyrqvpgxjydunhp", - "tags": ["nudalntdlmlwbzzrh"], + "search": "dttvclazycncu", + "tags": ["bwarhlzjdvvidzjlpvottsp"], }, 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": "j", - "tags": ["ywltdjacsh"], + "include_smart_links": True, + "search": "nndgjukxx", + "tags": ["wvbwokxkmmfayoiewdsmmcrk"], }, 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": "yhhlmhlxxbohfkteywj", - "tags": ["tdckwgghfknodzcgxylftz"], + "include_smart_links": False, + "search": "ybyywadvabwuwyfk", + "tags": ["gznfyikpdaifdulvyb"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 9b9bc7f0..0675292b 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="est", 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="est", 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="est", 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="est", 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="est", 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="est", 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="est", 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="est", 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="dolore", + tracking_link_id="numquam", 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="dolore", + tracking_link_id="numquam", 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="dolore", + tracking_link_id="numquam", 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="dolore", + tracking_link_id="numquam", 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="dolore", + tracking_link_id="numquam", 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="voluptatem", + tracking_link_id="debitis", 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="voluptatem", + tracking_link_id="debitis", 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="voluptatem", + tracking_link_id="debitis", 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="voluptatem", + tracking_link_id="debitis", 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="voluptatem", + tracking_link_id="debitis", 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="est", 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="est", 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="est", 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="est", 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="est", 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="est", 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="est", 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="est", 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="dolore", + tracking_link_id="numquam", 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="dolore", + tracking_link_id="numquam", 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="dolore", + tracking_link_id="numquam", 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="dolore", + tracking_link_id="numquam", 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="dolore", + tracking_link_id="numquam", 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="voluptatem", + tracking_link_id="debitis", 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="voluptatem", + tracking_link_id="debitis", 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="voluptatem", + tracking_link_id="debitis", 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="voluptatem", + tracking_link_id="debitis", 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="voluptatem", + tracking_link_id="debitis", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 25d99a45..20c9e29a 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="ea", + trial_link_id="quod", 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="ea", + trial_link_id="quod", 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="ea", + trial_link_id="quod", 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="ea", + trial_link_id="quod", 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="ea", + trial_link_id="quod", 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="ea", + trial_link_id="quod", 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="ea", + trial_link_id="quod", 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="ea", + trial_link_id="quod", 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="incidunt", + trial_link_id="corrupti", 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="incidunt", + trial_link_id="corrupti", 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="incidunt", + trial_link_id="corrupti", 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="incidunt", + trial_link_id="corrupti", 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="incidunt", + trial_link_id="corrupti", 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="magnam", + trial_link_id="illo", 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="magnam", + trial_link_id="illo", 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="magnam", + trial_link_id="illo", 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="magnam", + trial_link_id="illo", 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="magnam", + trial_link_id="illo", 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="ea", + trial_link_id="quod", 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="ea", + trial_link_id="quod", 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="ea", + trial_link_id="quod", 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="ea", + trial_link_id="quod", 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="ea", + trial_link_id="quod", 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="ea", + trial_link_id="quod", 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="ea", + trial_link_id="quod", 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="ea", + trial_link_id="quod", 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="incidunt", + trial_link_id="corrupti", 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="incidunt", + trial_link_id="corrupti", 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="incidunt", + trial_link_id="corrupti", 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="incidunt", + trial_link_id="corrupti", 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="incidunt", + trial_link_id="corrupti", 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="magnam", + trial_link_id="illo", 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="magnam", + trial_link_id="illo", 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="magnam", + trial_link_id="illo", 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="magnam", + trial_link_id="illo", 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="magnam", + trial_link_id="illo", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 893cc644..30449c60 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="bwnnfoano", + name="aiwxqnucmhyncsfwlyrniw", ) 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="bwnnfoano", + name="aiwxqnucmhyncsfwlyrniw", ) 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="bwnnfoano", + name="aiwxqnucmhyncsfwlyrniw", ) 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="bwnnfoano", + name="aiwxqnucmhyncsfwlyrniw", ) @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="bwnnfoano", + name="aiwxqnucmhyncsfwlyrniw", ) 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="bwnnfoano", + name="aiwxqnucmhyncsfwlyrniw", ) 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="bwnnfoano", + name="aiwxqnucmhyncsfwlyrniw", ) 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="bwnnfoano", + name="aiwxqnucmhyncsfwlyrniw", ) @pytest.mark.skip(reason="Mock server tests are disabled") From c4cb46035be4dc92c35f839c4b0357c669990ee7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2026 19:12:36 +0000 Subject: [PATCH 078/249] 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 | 36 +++---- 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, 266 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index b368ad3e..0ed327de 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3726266cd2833aa149edb440069058b093b32d3fe1079822f62e677e026bdf21.yml -openapi_spec_hash: 8a32adf2deae6904b098951bebdaf2d2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b3350133f4eada468b1ba45afef946e33624d744e42781c8aa329a6aa9c89c37.yml +openapi_spec_hash: 1e7d909509c28b609766c155c653b196 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 77e54590..4a6cc0a1 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="dolores", + message_id="velit", 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="dolores", + message_id="velit", 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="dolores", + message_id="velit", 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="dolores", + message_id="velit", 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="dolores", + message_id="velit", 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="dolores", + message_id="velit", 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="dolores", + message_id="velit", 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="dolores", + message_id="velit", 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="dolores", + message_id="velit", 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="dolores", + message_id="velit", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index c1bc3094..643d718e 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 6f979536..2c8ad071 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="id", + post_id="magni", 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="id", + post_id="magni", 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="id", + post_id="magni", 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="id", + post_id="magni", 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="id", + post_id="magni", 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="id", + post_id="magni", 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="id", + post_id="magni", 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="id", + post_id="magni", 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="id", + post_id="magni", 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="id", + post_id="magni", 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="id", + post_id="magni", 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="id", + post_id="magni", 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="id", + post_id="magni", 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="id", + post_id="magni", 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="id", + post_id="magni", 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="id", + post_id="magni", 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="id", + post_id="magni", 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="id", + post_id="magni", 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="id", + post_id="magni", 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="id", + post_id="magni", 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 444937ba..aa735c97 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 fc7b1635..b5f3d61a 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=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=6, + 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=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_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=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=6, + 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=6, + 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=6, + 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=6, + period=24, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075f..544df889 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 36521a4f..3fea5b3e 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="veniam", + path_story_id="labore", 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="veniam", + path_story_id="labore", 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="veniam", + path_story_id="labore", 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="veniam", + path_story_id="labore", 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="veniam", + story_id="labore", 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="veniam", + story_id="labore", 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="veniam", + story_id="labore", 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="veniam", + story_id="labore", 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="veniam", + path_story_id="labore", 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="veniam", + path_story_id="labore", 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="veniam", + path_story_id="labore", 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="veniam", + path_story_id="labore", 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="veniam", + story_id="labore", 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="veniam", + story_id="labore", 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="veniam", + story_id="labore", 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="veniam", + story_id="labore", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index d2e5c48f..dc66d574 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( - "iure", + "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( - "iure", + "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( - "iure", + "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( - "iure", + "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( - "iure", + "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( - "iure", + "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 cf91b049..9ce8d9eb 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="ex", - auth_type="email_password", + auth_id="odit", + auth_type="mobile_app", cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "8JF*ge", + "password": 'tgX;Y"Pred*_q]/qi', "port": 8080, - "username": "voluptatem", + "username": "perspiciatis", }, - email="qkonopelski@example.org", + email="uabbott@example.org", force_connect=True, - name="qui", - password="F,ulMz", + name="non", + password="tNArgnzTcx", proxy_country="uk", - user_agent="earum", - xbc="perspiciatis", + user_agent="nihil", + xbc="quis", ) 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="ex", - auth_type="email_password", + auth_id="odit", + auth_type="mobile_app", cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "8JF*ge", + "password": 'tgX;Y"Pred*_q]/qi', "port": 8080, - "username": "voluptatem", + "username": "perspiciatis", }, - email="qkonopelski@example.org", + email="uabbott@example.org", force_connect=True, - name="qui", - password="F,ulMz", + name="non", + password="tNArgnzTcx", proxy_country="uk", - user_agent="earum", - xbc="perspiciatis", + user_agent="nihil", + xbc="quis", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index bea1ef2e..280e3de9 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 bd4f6161..65694e23 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 36f9649d..2f16f13d 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": ["crwxz"]}, + filter={"tags": ["oouompjgciimyndwjomf"]}, 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="nulla", + smart_link_id="eos", ) 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="nulla", + smart_link_id="eos", 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="nulla", + smart_link_id="eos", ) 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="nulla", + smart_link_id="eos", ) 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="accusantium", + smart_link_id="labore", ) 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="accusantium", + smart_link_id="labore", 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="accusantium", + smart_link_id="labore", ) 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="accusantium", + smart_link_id="labore", ) 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="sunt", + smart_link_id="et", ) 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="sunt", + smart_link_id="et", 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="sunt", + smart_link_id="et", ) 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="sunt", + smart_link_id="et", ) 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="beatae", + smart_link_id="ducimus", ) 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="beatae", + smart_link_id="ducimus", 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="beatae", + smart_link_id="ducimus", ) 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="beatae", + smart_link_id="ducimus", ) 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="perferendis", + smart_link_id="est", ) 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="perferendis", + smart_link_id="est", 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="perferendis", + smart_link_id="est", ) 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="perferendis", + smart_link_id="est", ) 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": ["crwxz"]}, + filter={"tags": ["oouompjgciimyndwjomf"]}, 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="nulla", + smart_link_id="eos", ) 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="nulla", + smart_link_id="eos", 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="nulla", + smart_link_id="eos", ) 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="nulla", + smart_link_id="eos", ) 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="accusantium", + smart_link_id="labore", ) 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="accusantium", + smart_link_id="labore", 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="accusantium", + smart_link_id="labore", ) 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="accusantium", + smart_link_id="labore", ) 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="sunt", + smart_link_id="et", ) 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="sunt", + smart_link_id="et", 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="sunt", + smart_link_id="et", ) 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="sunt", + smart_link_id="et", ) 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="beatae", + smart_link_id="ducimus", ) 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="beatae", + smart_link_id="ducimus", 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="beatae", + smart_link_id="ducimus", ) 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="beatae", + smart_link_id="ducimus", ) 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="perferendis", + smart_link_id="est", ) 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="perferendis", + smart_link_id="est", 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="perferendis", + smart_link_id="est", ) 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="perferendis", + 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 f1c6d3db..70b7a5f1 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": "xz", - "tags": ["ylssxtxb"], + "search": "izjpgs", + "tags": ["vbcpk"], }, 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": "dttvclazycncu", - "tags": ["bwarhlzjdvvidzjlpvottsp"], + "search": "hxytqpdzrsbwtlcx", + "tags": ["hmzotabokawhybk"], }, 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": "nndgjukxx", - "tags": ["wvbwokxkmmfayoiewdsmmcrk"], + "search": "bjhihtyepjzoqrogrvbmmxds", + "tags": ["jbudxwiwschzwr"], }, 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": "ybyywadvabwuwyfk", - "tags": ["gznfyikpdaifdulvyb"], + "include_smart_links": True, + "search": "ydoisoanfctdvooitpzyu", + "tags": ["dzxemo"], }, 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": "xz", - "tags": ["ylssxtxb"], + "search": "izjpgs", + "tags": ["vbcpk"], }, 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": "dttvclazycncu", - "tags": ["bwarhlzjdvvidzjlpvottsp"], + "search": "hxytqpdzrsbwtlcx", + "tags": ["hmzotabokawhybk"], }, 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": "nndgjukxx", - "tags": ["wvbwokxkmmfayoiewdsmmcrk"], + "search": "bjhihtyepjzoqrogrvbmmxds", + "tags": ["jbudxwiwschzwr"], }, 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": "ybyywadvabwuwyfk", - "tags": ["gznfyikpdaifdulvyb"], + "include_smart_links": True, + "search": "ydoisoanfctdvooitpzyu", + "tags": ["dzxemo"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 0675292b..ea51746a 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="numquam", + tracking_link_id="sunt", 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="numquam", + tracking_link_id="sunt", 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="numquam", + tracking_link_id="sunt", 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="numquam", + tracking_link_id="sunt", 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="numquam", + tracking_link_id="sunt", 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="debitis", + tracking_link_id="totam", 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="debitis", + tracking_link_id="totam", 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="debitis", + tracking_link_id="totam", 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="debitis", + tracking_link_id="totam", 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="debitis", + tracking_link_id="totam", 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="numquam", + tracking_link_id="sunt", 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="numquam", + tracking_link_id="sunt", 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="numquam", + tracking_link_id="sunt", 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="numquam", + tracking_link_id="sunt", 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="numquam", + tracking_link_id="sunt", 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="debitis", + tracking_link_id="totam", 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="debitis", + tracking_link_id="totam", 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="debitis", + tracking_link_id="totam", 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="debitis", + tracking_link_id="totam", 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="debitis", + tracking_link_id="totam", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 20c9e29a..c7041808 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="quod", + trial_link_id="nisi", 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="quod", + trial_link_id="nisi", 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="quod", + trial_link_id="nisi", 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="quod", + trial_link_id="nisi", 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="quod", + trial_link_id="nisi", 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="quod", + trial_link_id="nisi", 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="quod", + trial_link_id="nisi", 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="quod", + trial_link_id="nisi", 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="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="distinctio", + 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="distinctio", + 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="distinctio", + 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="corrupti", + trial_link_id="officia", 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="corrupti", + trial_link_id="officia", 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="corrupti", + trial_link_id="officia", 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="corrupti", + trial_link_id="officia", 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="corrupti", + trial_link_id="officia", 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="illo", + trial_link_id="perspiciatis", 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="illo", + trial_link_id="perspiciatis", 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="illo", + trial_link_id="perspiciatis", 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="illo", + trial_link_id="perspiciatis", 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="illo", + trial_link_id="perspiciatis", 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="quod", + trial_link_id="nisi", 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="quod", + trial_link_id="nisi", 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="quod", + trial_link_id="nisi", 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="quod", + trial_link_id="nisi", 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="quod", + trial_link_id="nisi", 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="quod", + trial_link_id="nisi", 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="quod", + trial_link_id="nisi", 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="quod", + trial_link_id="nisi", 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="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="distinctio", + 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="distinctio", + 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="distinctio", + 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="corrupti", + trial_link_id="officia", 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="corrupti", + trial_link_id="officia", 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="corrupti", + trial_link_id="officia", 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="corrupti", + trial_link_id="officia", 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="corrupti", + trial_link_id="officia", 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="illo", + trial_link_id="perspiciatis", 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="illo", + trial_link_id="perspiciatis", 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="illo", + trial_link_id="perspiciatis", 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="illo", + trial_link_id="perspiciatis", 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="illo", + trial_link_id="perspiciatis", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 30449c60..4466914d 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="aiwxqnucmhyncsfwlyrniw", + name="dxix", ) 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="aiwxqnucmhyncsfwlyrniw", + name="dxix", ) 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="aiwxqnucmhyncsfwlyrniw", + name="dxix", ) 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="aiwxqnucmhyncsfwlyrniw", + name="dxix", ) @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="aiwxqnucmhyncsfwlyrniw", + name="dxix", ) 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="aiwxqnucmhyncsfwlyrniw", + name="dxix", ) 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="aiwxqnucmhyncsfwlyrniw", + name="dxix", ) 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="aiwxqnucmhyncsfwlyrniw", + name="dxix", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 6206d4ea6f90f4670efd1bbbc575198dc83fa378 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2026 20:12:32 +0000 Subject: [PATCH 079/249] 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 | 84 +++++++++--------- 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, 258 insertions(+), 258 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0ed327de..b1ad7e65 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b3350133f4eada468b1ba45afef946e33624d744e42781c8aa329a6aa9c89c37.yml -openapi_spec_hash: 1e7d909509c28b609766c155c653b196 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9fb9f5c8a5e2431761a5c8768ce2f865fd544b659a7c864b31e309ff530a9243.yml +openapi_spec_hash: 4043672fd06ed68e2b38f06ecddbfcc4 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 4a6cc0a1..330a2740 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="velit", + message_id="ea", 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="velit", + message_id="ea", 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="velit", + message_id="ea", 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="velit", + message_id="ea", 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="velit", + message_id="ea", 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="velit", + message_id="ea", 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="velit", + message_id="ea", 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="velit", + message_id="ea", 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="velit", + message_id="ea", 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="velit", + message_id="ea", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 643d718e..261d1023 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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 2c8ad071..58959cc7 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="magni", + 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="magni", + 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="magni", + 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="magni", + 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="magni", + 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="magni", + 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="magni", + 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="magni", + 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="magni", + 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="magni", + 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="magni", + 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="magni", + 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="magni", + 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="magni", + 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="magni", + 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="magni", + 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="magni", + 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="magni", + 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="magni", + 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="magni", + post_id="aspernatur", 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 aa735c97..7549791e 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 b5f3d61a..9c80483e 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 3fea5b3e..827e92c2 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="labore", + path_story_id="delectus", 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="labore", + path_story_id="delectus", 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="labore", + path_story_id="delectus", 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="labore", + path_story_id="delectus", 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="labore", + story_id="delectus", 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="labore", + story_id="delectus", 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="labore", + story_id="delectus", 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="labore", + story_id="delectus", 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="labore", + path_story_id="delectus", 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="labore", + path_story_id="delectus", 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="labore", + path_story_id="delectus", 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="labore", + path_story_id="delectus", 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="labore", + story_id="delectus", 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="labore", + story_id="delectus", 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="labore", + story_id="delectus", 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="labore", + story_id="delectus", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index dc66d574..959e73c7 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", + "impedit", ) 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", + "impedit", ) 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", + "impedit", ) 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", + "impedit", ) 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", + "impedit", ) 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", + "impedit", ) 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 9ce8d9eb..11f13eec 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="odit", - auth_type="mobile_app", - cookies="et", + auth_id="ipsa", + auth_type="email_password", + cookies="ullam", custom_proxy={ "host": "proxy.example.com", - "password": 'tgX;Y"Pred*_q]/qi', + "password": "0yM?Z_$?'2Oo=z", "port": 8080, - "username": "perspiciatis", + "username": "repudiandae", }, - email="uabbott@example.org", - force_connect=True, - name="non", - password="tNArgnzTcx", + email="adrian38@example.com", + force_connect=False, + name="accusamus", + password="V-a>G|_OB7^:.x\\F`0T`", proxy_country="uk", - user_agent="nihil", - xbc="quis", + user_agent="ad", + 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="odit", - auth_type="mobile_app", - cookies="et", + auth_id="ipsa", + auth_type="email_password", + cookies="ullam", custom_proxy={ "host": "proxy.example.com", - "password": 'tgX;Y"Pred*_q]/qi', + "password": "0yM?Z_$?'2Oo=z", "port": 8080, - "username": "perspiciatis", + "username": "repudiandae", }, - email="uabbott@example.org", - force_connect=True, - name="non", - password="tNArgnzTcx", + email="adrian38@example.com", + force_connect=False, + name="accusamus", + password="V-a>G|_OB7^:.x\\F`0T`", proxy_country="uk", - user_agent="nihil", - xbc="quis", + user_agent="ad", + xbc="possimus", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 280e3de9..583d8ad4 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="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="comments", + 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 2f16f13d..b89c77c7 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": ["oouompjgciimyndwjomf"]}, + filter={"tags": ["jlpcrcqpfixup"]}, 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="eos", + smart_link_id="illum", ) 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="eos", + smart_link_id="illum", 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="eos", + smart_link_id="illum", ) 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="eos", + smart_link_id="illum", ) 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="dignissimos", ) 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="dignissimos", 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="dignissimos", ) 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="dignissimos", ) 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="et", + smart_link_id="consequuntur", ) 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="et", + smart_link_id="consequuntur", 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="et", + smart_link_id="consequuntur", ) 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="et", + smart_link_id="consequuntur", ) 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="ducimus", + smart_link_id="reiciendis", ) 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="ducimus", + smart_link_id="reiciendis", 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="ducimus", + smart_link_id="reiciendis", ) 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="ducimus", + smart_link_id="reiciendis", ) 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="est", + smart_link_id="maxime", ) 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="est", + smart_link_id="maxime", 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="est", + smart_link_id="maxime", ) 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="est", + smart_link_id="maxime", ) 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": ["oouompjgciimyndwjomf"]}, + filter={"tags": ["jlpcrcqpfixup"]}, 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="eos", + smart_link_id="illum", ) 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="eos", + smart_link_id="illum", 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="eos", + smart_link_id="illum", ) 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="eos", + smart_link_id="illum", ) 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="dignissimos", ) 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="dignissimos", 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="dignissimos", ) 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="dignissimos", ) 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="et", + smart_link_id="consequuntur", ) 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="et", + smart_link_id="consequuntur", 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="et", + smart_link_id="consequuntur", ) 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="et", + smart_link_id="consequuntur", ) 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="ducimus", + smart_link_id="reiciendis", ) 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="ducimus", + smart_link_id="reiciendis", 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="ducimus", + smart_link_id="reiciendis", ) 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="ducimus", + smart_link_id="reiciendis", ) 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="est", + smart_link_id="maxime", ) 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="est", + smart_link_id="maxime", 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="est", + smart_link_id="maxime", ) 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="est", + smart_link_id="maxime", ) 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 70b7a5f1..2f18ee4a 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": "izjpgs", - "tags": ["vbcpk"], + "search": "qofofhzuelrfavqzyktaid", + "tags": ["qzobkrdxytumxlpphb"], }, 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": "hxytqpdzrsbwtlcx", - "tags": ["hmzotabokawhybk"], + "search": "tqkshps", + "tags": ["ckdnizf"], }, 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": "bjhihtyepjzoqrogrvbmmxds", - "tags": ["jbudxwiwschzwr"], + "search": "wnhbowiqqlpaufbxntbzdfza", + "tags": ["dbfovkvzwzsrnvinh"], }, 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": "ydoisoanfctdvooitpzyu", - "tags": ["dzxemo"], + "search": "tssyfabwavwbbzjgjmahx", + "tags": ["lxxg"], }, 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": "izjpgs", - "tags": ["vbcpk"], + "search": "qofofhzuelrfavqzyktaid", + "tags": ["qzobkrdxytumxlpphb"], }, 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": "hxytqpdzrsbwtlcx", - "tags": ["hmzotabokawhybk"], + "search": "tqkshps", + "tags": ["ckdnizf"], }, 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": "bjhihtyepjzoqrogrvbmmxds", - "tags": ["jbudxwiwschzwr"], + "search": "wnhbowiqqlpaufbxntbzdfza", + "tags": ["dbfovkvzwzsrnvinh"], }, 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": "ydoisoanfctdvooitpzyu", - "tags": ["dzxemo"], + "search": "tssyfabwavwbbzjgjmahx", + "tags": ["lxxg"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index ea51746a..0e9f3077 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="libero", 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="libero", 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="libero", 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="libero", 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="libero", 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="libero", 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="libero", 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="libero", 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="sunt", + tracking_link_id="accusamus", 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="sunt", + tracking_link_id="accusamus", 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="sunt", + tracking_link_id="accusamus", 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="sunt", + tracking_link_id="accusamus", 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="sunt", + tracking_link_id="accusamus", 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="totam", + tracking_link_id="est", 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="totam", + tracking_link_id="est", 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="totam", + tracking_link_id="est", 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="totam", + tracking_link_id="est", 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="totam", + tracking_link_id="est", 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="libero", 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="libero", 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="libero", 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="libero", 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="libero", 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="libero", 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="libero", 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="libero", 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="sunt", + tracking_link_id="accusamus", 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="sunt", + tracking_link_id="accusamus", 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="sunt", + tracking_link_id="accusamus", 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="sunt", + tracking_link_id="accusamus", 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="sunt", + tracking_link_id="accusamus", 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="totam", + tracking_link_id="est", 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="totam", + tracking_link_id="est", 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="totam", + tracking_link_id="est", 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="totam", + tracking_link_id="est", 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="totam", + tracking_link_id="est", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index c7041808..6e431c15 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="nisi", + trial_link_id="quisquam", 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="nisi", + trial_link_id="quisquam", 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="nisi", + trial_link_id="quisquam", 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="nisi", + trial_link_id="quisquam", 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="nisi", + trial_link_id="quisquam", 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="nisi", + trial_link_id="quisquam", 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="nisi", + trial_link_id="quisquam", 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="nisi", + trial_link_id="quisquam", 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="animi", 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="animi", 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="animi", 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="animi", 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="officia", + trial_link_id="ratione", 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="officia", + trial_link_id="ratione", 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="officia", + trial_link_id="ratione", 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="officia", + trial_link_id="ratione", 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="officia", + trial_link_id="ratione", 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="perspiciatis", + 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="perspiciatis", + 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="perspiciatis", + 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="perspiciatis", + 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="perspiciatis", + 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="nisi", + trial_link_id="quisquam", 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="nisi", + trial_link_id="quisquam", 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="nisi", + trial_link_id="quisquam", 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="nisi", + trial_link_id="quisquam", 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="nisi", + trial_link_id="quisquam", 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="nisi", + trial_link_id="quisquam", 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="nisi", + trial_link_id="quisquam", 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="nisi", + trial_link_id="quisquam", 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="animi", 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="animi", 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="animi", 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="animi", 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="officia", + trial_link_id="ratione", 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="officia", + trial_link_id="ratione", 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="officia", + trial_link_id="ratione", 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="officia", + trial_link_id="ratione", 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="officia", + trial_link_id="ratione", 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="perspiciatis", + 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="perspiciatis", + 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="perspiciatis", + 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="perspiciatis", + 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="perspiciatis", + trial_link_id="et", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 4466914d..59c9370d 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="dxix", + name="oplcluzjqwohoykefoxj", ) 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="dxix", + name="oplcluzjqwohoykefoxj", ) 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="dxix", + name="oplcluzjqwohoykefoxj", ) 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="dxix", + name="oplcluzjqwohoykefoxj", ) @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="dxix", + name="oplcluzjqwohoykefoxj", ) 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="dxix", + name="oplcluzjqwohoykefoxj", ) 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="dxix", + name="oplcluzjqwohoykefoxj", ) 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="dxix", + name="oplcluzjqwohoykefoxj", ) @pytest.mark.skip(reason="Mock server tests are disabled") From b3e9ad4baf8a196ac8709aebd2544c35d7c4cb9f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 20 Jun 2026 00:12:37 +0000 Subject: [PATCH 080/249] 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 | 48 ++++----- tests/api_resources/test_notifications.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, 260 insertions(+), 260 deletions(-) diff --git a/.stats.yml b/.stats.yml index b1ad7e65..e0fd5d35 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9fb9f5c8a5e2431761a5c8768ce2f865fd544b659a7c864b31e309ff530a9243.yml -openapi_spec_hash: 4043672fd06ed68e2b38f06ecddbfcc4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7eeb3f3a16ed67c42c1dd6c6cf49e4e8b9b73ecf119c9b639220f60e68f5bc2e.yml +openapi_spec_hash: d249c309a792407bd531a85061e1f1cf config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 330a2740..4b737813 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="ea", + message_id="cumque", 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="ea", + message_id="cumque", 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="ea", + message_id="cumque", 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="ea", + message_id="cumque", 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="ea", + message_id="cumque", 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="ea", + message_id="cumque", 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="ea", + message_id="cumque", 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="ea", + message_id="cumque", 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="ea", + message_id="cumque", 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="ea", + message_id="cumque", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 261d1023..eab16a1b 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 58959cc7..67f4e8b1 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="odio", 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="odio", 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="odio", 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="odio", 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="odio", 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="odio", 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="odio", 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="odio", 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="odio", 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="odio", 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="odio", 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="odio", 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="odio", 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="odio", 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="odio", 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="odio", 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="odio", 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="odio", 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="odio", 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="odio", 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 9c80483e..fc7b1635 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 827e92c2..886b273c 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="delectus", + 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="delectus", + 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="delectus", + 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="delectus", + 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="delectus", + 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="delectus", + 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="delectus", + 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="delectus", + 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="delectus", + 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="delectus", + 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="delectus", + 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="delectus", + 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="delectus", + 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="delectus", + 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="delectus", + 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="delectus", + story_id="est", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 959e73c7..861d18bb 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( - "impedit", + "quae", ) 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( - "impedit", + "quae", ) 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( - "impedit", + "quae", ) 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( - "impedit", + "quae", ) 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( - "impedit", + "quae", ) 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( - "impedit", + "quae", ) 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 11f13eec..5a83c7ea 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="email_password", - cookies="ullam", + auth_id="culpa", + auth_type="raw_data", + cookies="assumenda", custom_proxy={ "host": "proxy.example.com", - "password": "0yM?Z_$?'2Oo=z", + "password": "DDbNX:-bmdRQ_L6gU", "port": 8080, - "username": "repudiandae", + "username": "et", }, - email="adrian38@example.com", - force_connect=False, - name="accusamus", - password="V-a>G|_OB7^:.x\\F`0T`", - proxy_country="uk", - user_agent="ad", - xbc="possimus", + email="lang.jamey@example.org", + force_connect=True, + name="eaque", + password="LtyI 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="email_password", - cookies="ullam", + auth_id="culpa", + auth_type="raw_data", + cookies="assumenda", custom_proxy={ "host": "proxy.example.com", - "password": "0yM?Z_$?'2Oo=z", + "password": "DDbNX:-bmdRQ_L6gU", "port": 8080, - "username": "repudiandae", + "username": "et", }, - email="adrian38@example.com", - force_connect=False, - name="accusamus", - password="V-a>G|_OB7^:.x\\F`0T`", - proxy_country="uk", - user_agent="ad", - xbc="possimus", + email="lang.jamey@example.org", + force_connect=True, + name="eaque", + password="LtyI None: from_id=123, limit=10, skip_users="all", - type="all", + 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="all", + 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 b89c77c7..76451000 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": ["jlpcrcqpfixup"]}, + filter={"tags": ["vaqypawzgtazkhreippxszjav"]}, 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="illum", + smart_link_id="occaecati", ) 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="illum", + smart_link_id="occaecati", 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="illum", + smart_link_id="occaecati", ) 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="illum", + smart_link_id="occaecati", ) 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="labore", + smart_link_id="inventore", ) 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="labore", + smart_link_id="inventore", 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="labore", + smart_link_id="inventore", ) 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="labore", + smart_link_id="inventore", ) 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="dignissimos", + smart_link_id="eaque", ) 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="dignissimos", + smart_link_id="eaque", 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="dignissimos", + smart_link_id="eaque", ) 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="dignissimos", + smart_link_id="eaque", ) 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="consequuntur", + smart_link_id="voluptas", ) 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="consequuntur", + smart_link_id="voluptas", 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="consequuntur", + smart_link_id="voluptas", ) 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="consequuntur", + smart_link_id="voluptas", ) 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="reiciendis", + smart_link_id="corporis", ) 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="reiciendis", + smart_link_id="corporis", 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="reiciendis", + smart_link_id="corporis", ) 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="reiciendis", + smart_link_id="corporis", ) 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="maxime", + smart_link_id="voluptas", ) 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="maxime", + smart_link_id="voluptas", 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="maxime", + smart_link_id="voluptas", ) 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="maxime", + smart_link_id="voluptas", ) 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": ["jlpcrcqpfixup"]}, + filter={"tags": ["vaqypawzgtazkhreippxszjav"]}, 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="illum", + smart_link_id="occaecati", ) 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="illum", + smart_link_id="occaecati", 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="illum", + smart_link_id="occaecati", ) 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="illum", + smart_link_id="occaecati", ) 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="labore", + smart_link_id="inventore", ) 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="labore", + smart_link_id="inventore", 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="labore", + smart_link_id="inventore", ) 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="labore", + smart_link_id="inventore", ) 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="dignissimos", + smart_link_id="eaque", ) 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="dignissimos", + smart_link_id="eaque", 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="dignissimos", + smart_link_id="eaque", ) 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="dignissimos", + smart_link_id="eaque", ) 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="consequuntur", + smart_link_id="voluptas", ) 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="consequuntur", + smart_link_id="voluptas", 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="consequuntur", + smart_link_id="voluptas", ) 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="consequuntur", + smart_link_id="voluptas", ) 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="reiciendis", + smart_link_id="corporis", ) 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="reiciendis", + smart_link_id="corporis", 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="reiciendis", + smart_link_id="corporis", ) 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="reiciendis", + smart_link_id="corporis", ) 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="maxime", + smart_link_id="voluptas", ) 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="maxime", + smart_link_id="voluptas", 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="maxime", + smart_link_id="voluptas", ) 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="maxime", + 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 2f18ee4a..16571070 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": "qofofhzuelrfavqzyktaid", - "tags": ["qzobkrdxytumxlpphb"], + "search": "jwjooadqlkeliwaehrqiupbnl", + "tags": ["ylveqmqtlbdovqzvarpsfwv"], }, 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": "tqkshps", - "tags": ["ckdnizf"], + "search": "xvezrfmffczfa", + "tags": ["oqwmy"], }, 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": "wnhbowiqqlpaufbxntbzdfza", - "tags": ["dbfovkvzwzsrnvinh"], + "include_smart_links": False, + "search": "irczsinakyzmpimzqvuqaqtfv", + "tags": ["sddajvkbbhptbblswy"], }, 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": "tssyfabwavwbbzjgjmahx", - "tags": ["lxxg"], + "search": "onbyrielxmqvvbjd", + "tags": ["yfpredlktsrkayabmzfxh"], }, 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": "qofofhzuelrfavqzyktaid", - "tags": ["qzobkrdxytumxlpphb"], + "search": "jwjooadqlkeliwaehrqiupbnl", + "tags": ["ylveqmqtlbdovqzvarpsfwv"], }, 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": "tqkshps", - "tags": ["ckdnizf"], + "search": "xvezrfmffczfa", + "tags": ["oqwmy"], }, 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": "wnhbowiqqlpaufbxntbzdfza", - "tags": ["dbfovkvzwzsrnvinh"], + "include_smart_links": False, + "search": "irczsinakyzmpimzqvuqaqtfv", + "tags": ["sddajvkbbhptbblswy"], }, 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": "tssyfabwavwbbzjgjmahx", - "tags": ["lxxg"], + "search": "onbyrielxmqvvbjd", + "tags": ["yfpredlktsrkayabmzfxh"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 0e9f3077..9652a457 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="libero", + tracking_link_id="atque", 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="libero", + tracking_link_id="atque", 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="libero", + tracking_link_id="atque", 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="libero", + tracking_link_id="atque", 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="libero", + tracking_link_id="atque", 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="libero", + tracking_link_id="atque", 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="libero", + tracking_link_id="atque", 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="libero", + tracking_link_id="atque", 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="libero", + tracking_link_id="atque", 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="libero", + tracking_link_id="atque", 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="libero", + tracking_link_id="atque", 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="libero", + tracking_link_id="atque", 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="libero", + tracking_link_id="atque", 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="libero", + tracking_link_id="atque", 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="libero", + tracking_link_id="atque", 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="libero", + tracking_link_id="atque", 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + tracking_link_id="optio", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 6e431c15..303f4e03 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="animi", + trial_link_id="voluptatem", 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="animi", + trial_link_id="voluptatem", 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="animi", + trial_link_id="voluptatem", 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="animi", + trial_link_id="voluptatem", 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="ratione", + trial_link_id="veritatis", 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="ratione", + trial_link_id="veritatis", 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="ratione", + trial_link_id="veritatis", 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="ratione", + trial_link_id="veritatis", 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="ratione", + trial_link_id="veritatis", 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="vitae", 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="vitae", 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="vitae", 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="vitae", 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="vitae", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="animi", + trial_link_id="voluptatem", 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="animi", + trial_link_id="voluptatem", 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="animi", + trial_link_id="voluptatem", 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="animi", + trial_link_id="voluptatem", 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="ratione", + trial_link_id="veritatis", 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="ratione", + trial_link_id="veritatis", 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="ratione", + trial_link_id="veritatis", 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="ratione", + trial_link_id="veritatis", 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="ratione", + trial_link_id="veritatis", 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="vitae", 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="vitae", 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="vitae", 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="vitae", 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="vitae", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 59c9370d..dcb4ca69 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="oplcluzjqwohoykefoxj", + name="wxvjmgfa", ) 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="oplcluzjqwohoykefoxj", + name="wxvjmgfa", ) 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="oplcluzjqwohoykefoxj", + name="wxvjmgfa", ) 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="oplcluzjqwohoykefoxj", + name="wxvjmgfa", ) @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="oplcluzjqwohoykefoxj", + name="wxvjmgfa", ) 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="oplcluzjqwohoykefoxj", + name="wxvjmgfa", ) 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="oplcluzjqwohoykefoxj", + name="wxvjmgfa", ) 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="oplcluzjqwohoykefoxj", + name="wxvjmgfa", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 8c1fc5bf584345d8f7322a364f372bafb9a61105 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 20 Jun 2026 07:12:37 +0000 Subject: [PATCH 081/249] 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 | 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 e0fd5d35..8d11d16a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7eeb3f3a16ed67c42c1dd6c6cf49e4e8b9b73ecf119c9b639220f60e68f5bc2e.yml -openapi_spec_hash: d249c309a792407bd531a85061e1f1cf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-920054175a18aef316492a157e29dcde0a0f00b251f28eba922c220c8024c1ee.yml +openapi_spec_hash: ae1d12a66790e4528e446d3a0326c5df config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 4b737813..3ebd23f1 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="cumque", + message_id="amet", 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="cumque", + message_id="amet", 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="cumque", + message_id="amet", 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="cumque", + message_id="amet", 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="cumque", + message_id="amet", 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="cumque", + message_id="amet", 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="cumque", + message_id="amet", 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="cumque", + message_id="amet", 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="cumque", + message_id="amet", 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="cumque", + message_id="amet", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index eab16a1b..92d05df7 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="voluptatem", + list_id="sint", 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="voluptatem", + list_id="sint", 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="voluptatem", + list_id="sint", 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="voluptatem", + list_id="sint", 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="voluptatem", + list_id="sint", 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="voluptatem", + list_id="sint", 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="voluptatem", + list_id="sint", 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="voluptatem", + list_id="sint", 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="voluptatem", + list_id="sint", 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="voluptatem", + list_id="sint", 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="voluptatem", + list_id="sint", 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="voluptatem", + list_id="sint", 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="voluptatem", + list_id="sint", 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="voluptatem", + list_id="sint", 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="voluptatem", + list_id="sint", 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="voluptatem", + list_id="sint", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 67f4e8b1..32f5d03f 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="odio", + post_id="quasi", 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="odio", + post_id="quasi", 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="odio", + post_id="quasi", 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="odio", + post_id="quasi", 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="odio", + post_id="quasi", 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="odio", + post_id="quasi", 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="odio", + post_id="quasi", 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="odio", + post_id="quasi", 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="odio", + post_id="quasi", 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="odio", + post_id="quasi", 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="odio", + post_id="quasi", 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="odio", + post_id="quasi", 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="odio", + post_id="quasi", 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="odio", + post_id="quasi", 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="odio", + post_id="quasi", 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="odio", + post_id="quasi", 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="odio", + post_id="quasi", 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="odio", + post_id="quasi", 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="odio", + post_id="quasi", 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="odio", + post_id="quasi", 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 7549791e..444937ba 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 fc7b1635..2ced6cb5 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 9664075f..544df889 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 886b273c..8437e679 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 861d18bb..28f9196e 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( - "quae", + "in", ) 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( - "quae", + "in", ) 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( - "quae", + "in", ) 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( - "quae", + "in", ) 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( - "quae", + "in", ) 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( - "quae", + "in", ) 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 5a83c7ea..98153d49 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="culpa", - auth_type="raw_data", - cookies="assumenda", + auth_id="voluptates", + auth_type="mobile_app", + cookies="totam", custom_proxy={ "host": "proxy.example.com", - "password": "DDbNX:-bmdRQ_L6gU", + "password": 'A7nwgW"CZT2ZkiL>wv', "port": 8080, - "username": "et", + "username": "est", }, - email="lang.jamey@example.org", + email="maxime.brekke@example.org", force_connect=True, - name="eaque", - password="LtyI None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="culpa", - auth_type="raw_data", - cookies="assumenda", + auth_id="voluptates", + auth_type="mobile_app", + cookies="totam", custom_proxy={ "host": "proxy.example.com", - "password": "DDbNX:-bmdRQ_L6gU", + "password": 'A7nwgW"CZT2ZkiL>wv', "port": 8080, - "username": "et", + "username": "est", }, - email="lang.jamey@example.org", + email="maxime.brekke@example.org", force_connect=True, - name="eaque", - password="LtyI 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 4d3e426f..0f3980c1 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="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="mentions", + 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 76451000..a9f36507 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": ["vaqypawzgtazkhreippxszjav"]}, + filter={"tags": ["tjrlavwa"]}, 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="inventore", + smart_link_id="iste", ) 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="inventore", + smart_link_id="iste", 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="inventore", + smart_link_id="iste", ) 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="inventore", + smart_link_id="iste", ) 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="eaque", + smart_link_id="ut", ) 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="eaque", + smart_link_id="ut", 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="eaque", + smart_link_id="ut", ) 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="eaque", + smart_link_id="ut", ) 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="voluptas", + smart_link_id="amet", ) 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="voluptas", + smart_link_id="amet", 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="voluptas", + smart_link_id="amet", ) 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="voluptas", + smart_link_id="amet", ) 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="corporis", + smart_link_id="sed", ) 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="corporis", + smart_link_id="sed", 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="corporis", + smart_link_id="sed", ) 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="corporis", + smart_link_id="sed", ) 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="voluptas", + smart_link_id="corporis", ) 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="voluptas", + smart_link_id="corporis", 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="voluptas", + smart_link_id="corporis", ) 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="voluptas", + smart_link_id="corporis", ) 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": ["vaqypawzgtazkhreippxszjav"]}, + filter={"tags": ["tjrlavwa"]}, 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="inventore", + smart_link_id="iste", ) 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="inventore", + smart_link_id="iste", 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="inventore", + smart_link_id="iste", ) 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="inventore", + smart_link_id="iste", ) 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="eaque", + smart_link_id="ut", ) 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="eaque", + smart_link_id="ut", 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="eaque", + smart_link_id="ut", ) 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="eaque", + smart_link_id="ut", ) 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="voluptas", + smart_link_id="amet", ) 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="voluptas", + smart_link_id="amet", 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="voluptas", + smart_link_id="amet", ) 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="voluptas", + smart_link_id="amet", ) 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="corporis", + smart_link_id="sed", ) 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="corporis", + smart_link_id="sed", 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="corporis", + smart_link_id="sed", ) 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="corporis", + smart_link_id="sed", ) 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="voluptas", + smart_link_id="corporis", ) 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="voluptas", + smart_link_id="corporis", 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="voluptas", + smart_link_id="corporis", ) 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="voluptas", + smart_link_id="corporis", ) 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 16571070..93e11500 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": "jwjooadqlkeliwaehrqiupbnl", - "tags": ["ylveqmqtlbdovqzvarpsfwv"], + "search": "jnosluzxpzrbaekwvqhuysxqu", + "tags": ["vqntjkjjalaeoiiwuxtcy"], }, 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": "xvezrfmffczfa", - "tags": ["oqwmy"], + "search": "e", + "tags": ["esjxgkdkwuzawjclrk"], }, 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": "irczsinakyzmpimzqvuqaqtfv", - "tags": ["sddajvkbbhptbblswy"], + "search": "vtrtjqpjsqxyjjefpxjurru", + "tags": ["nbefnctiix"], }, 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": "onbyrielxmqvvbjd", - "tags": ["yfpredlktsrkayabmzfxh"], + "include_smart_links": False, + "search": "kqmwajdwf", + "tags": ["yjzxyyngvacqdbc"], }, 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": "jwjooadqlkeliwaehrqiupbnl", - "tags": ["ylveqmqtlbdovqzvarpsfwv"], + "search": "jnosluzxpzrbaekwvqhuysxqu", + "tags": ["vqntjkjjalaeoiiwuxtcy"], }, 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": "xvezrfmffczfa", - "tags": ["oqwmy"], + "search": "e", + "tags": ["esjxgkdkwuzawjclrk"], }, 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": "irczsinakyzmpimzqvuqaqtfv", - "tags": ["sddajvkbbhptbblswy"], + "search": "vtrtjqpjsqxyjjefpxjurru", + "tags": ["nbefnctiix"], }, 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": "onbyrielxmqvvbjd", - "tags": ["yfpredlktsrkayabmzfxh"], + "include_smart_links": False, + "search": "kqmwajdwf", + "tags": ["yjzxyyngvacqdbc"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 9652a457..d1ce8019 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="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="optio", + 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="optio", + 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="optio", + 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="optio", + 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="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="optio", + 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="optio", + 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="optio", + 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="optio", + tracking_link_id="commodi", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 303f4e03..42d1e7af 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="voluptatem", + trial_link_id="enim", 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="voluptatem", + trial_link_id="enim", 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="voluptatem", + trial_link_id="enim", 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="voluptatem", + trial_link_id="enim", 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="veritatis", + trial_link_id="consequatur", 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="veritatis", + trial_link_id="consequatur", 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="veritatis", + trial_link_id="consequatur", 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="veritatis", + trial_link_id="consequatur", 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="veritatis", + trial_link_id="consequatur", 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="vitae", + trial_link_id="maxime", 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="vitae", + trial_link_id="maxime", 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="vitae", + trial_link_id="maxime", 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="vitae", + trial_link_id="maxime", 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="vitae", + trial_link_id="maxime", 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="voluptatem", + trial_link_id="enim", 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="voluptatem", + trial_link_id="enim", 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="voluptatem", + trial_link_id="enim", 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="voluptatem", + trial_link_id="enim", 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="veritatis", + trial_link_id="consequatur", 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="veritatis", + trial_link_id="consequatur", 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="veritatis", + trial_link_id="consequatur", 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="veritatis", + trial_link_id="consequatur", 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="veritatis", + trial_link_id="consequatur", 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="vitae", + trial_link_id="maxime", 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="vitae", + trial_link_id="maxime", 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="vitae", + trial_link_id="maxime", 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="vitae", + trial_link_id="maxime", 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="vitae", + trial_link_id="maxime", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index dcb4ca69..19801727 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="wxvjmgfa", + name="dipcnmqccvzyukkmo", ) 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="wxvjmgfa", + name="dipcnmqccvzyukkmo", ) 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="wxvjmgfa", + name="dipcnmqccvzyukkmo", ) 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="wxvjmgfa", + name="dipcnmqccvzyukkmo", ) @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="wxvjmgfa", + name="dipcnmqccvzyukkmo", ) 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="wxvjmgfa", + name="dipcnmqccvzyukkmo", ) 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="wxvjmgfa", + name="dipcnmqccvzyukkmo", ) 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="wxvjmgfa", + name="dipcnmqccvzyukkmo", ) @pytest.mark.skip(reason="Mock server tests are disabled") From bc6eecce257a653fb292faa08083275940e2988d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 21 Jun 2026 16:12:36 +0000 Subject: [PATCH 082/249] 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 | 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 8d11d16a..a6f8dea5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-920054175a18aef316492a157e29dcde0a0f00b251f28eba922c220c8024c1ee.yml -openapi_spec_hash: ae1d12a66790e4528e446d3a0326c5df +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ed5dc8c2f880550be887c5e65c9c14e91ab68384ee1d2ca9184d30cacea74b70.yml +openapi_spec_hash: c7208a565cf56a80d1473b3e61700096 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 3ebd23f1..77938613 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="amet", + message_id="quisquam", 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="amet", + message_id="quisquam", 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="amet", + message_id="quisquam", 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="amet", + message_id="quisquam", 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="amet", + message_id="quisquam", 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="amet", + message_id="quisquam", 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="amet", + message_id="quisquam", 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="amet", + message_id="quisquam", 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="amet", + message_id="quisquam", 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="amet", + message_id="quisquam", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 92d05df7..e8dbfc34 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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="sint", + 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 32f5d03f..efb0fc7f 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="quasi", + post_id="iste", 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="quasi", + post_id="iste", 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="quasi", + post_id="iste", 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="quasi", + post_id="iste", 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="quasi", + post_id="iste", 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="quasi", + post_id="iste", 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="quasi", + post_id="iste", 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="quasi", + post_id="iste", 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="quasi", + post_id="iste", 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="quasi", + post_id="iste", 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="quasi", + post_id="iste", 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="quasi", + post_id="iste", 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="quasi", + post_id="iste", 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="quasi", + post_id="iste", 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="quasi", + post_id="iste", 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="quasi", + post_id="iste", 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="quasi", + post_id="iste", 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="quasi", + post_id="iste", 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="quasi", + post_id="iste", 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="quasi", + post_id="iste", 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 444937ba..a62ccbd3 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 2ced6cb5..9c80483e 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 8437e679..bc183588 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="dolore", + path_story_id="id", 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="dolore", + path_story_id="id", 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="dolore", + path_story_id="id", 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="dolore", + path_story_id="id", 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="dolore", + story_id="id", 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="dolore", + story_id="id", 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="dolore", + story_id="id", 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="dolore", + story_id="id", 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="dolore", + path_story_id="id", 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="dolore", + path_story_id="id", 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="dolore", + path_story_id="id", 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="dolore", + path_story_id="id", 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="dolore", + story_id="id", 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="dolore", + story_id="id", 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="dolore", + story_id="id", 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="dolore", + story_id="id", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 28f9196e..744ad529 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( - "in", + "nemo", ) 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( - "in", + "nemo", ) 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( - "in", + "nemo", ) 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( - "in", + "nemo", ) 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( - "in", + "nemo", ) 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( - "in", + "nemo", ) 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 98153d49..3751847d 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="voluptates", - auth_type="mobile_app", - cookies="totam", + auth_id="et", + auth_type="email_password", + cookies="sequi", custom_proxy={ "host": "proxy.example.com", - "password": 'A7nwgW"CZT2ZkiL>wv', + "password": '@.W,T"0&>', "port": 8080, - "username": "est", + "username": "quidem", }, - email="maxime.brekke@example.org", - force_connect=True, - name="quia", - password="$XC&#ab,X~1;", - proxy_country="uk", + email="charlotte.aufderhar@example.org", + force_connect=False, + name="fugit", + password="JshEgeU=t=W}S*.nW1", + proxy_country="us", user_agent="a", - xbc="at", + 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="voluptates", - auth_type="mobile_app", - cookies="totam", + auth_id="et", + auth_type="email_password", + cookies="sequi", custom_proxy={ "host": "proxy.example.com", - "password": 'A7nwgW"CZT2ZkiL>wv', + "password": '@.W,T"0&>', "port": 8080, - "username": "est", + "username": "quidem", }, - email="maxime.brekke@example.org", - force_connect=True, - name="quia", - password="$XC&#ab,X~1;", - proxy_country="uk", + email="charlotte.aufderhar@example.org", + force_connect=False, + name="fugit", + password="JshEgeU=t=W}S*.nW1", + proxy_country="us", user_agent="a", - xbc="at", + 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 9249f386..3597ede6 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 0f3980c1..280e3de9 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_profiles.py b/tests/api_resources/test_profiles.py index 65694e23..bd4f6161 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 a9f36507..aaf4b3a4 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": ["tjrlavwa"]}, + filter={"tags": ["ymkuwmokh"]}, 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="blanditiis", ) 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="blanditiis", 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="blanditiis", ) 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="blanditiis", ) 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="iste", + smart_link_id="itaque", ) 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="iste", + smart_link_id="itaque", 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="iste", + smart_link_id="itaque", ) 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="iste", + smart_link_id="itaque", ) 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="ut", + smart_link_id="quibusdam", ) 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="ut", + smart_link_id="quibusdam", 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="ut", + smart_link_id="quibusdam", ) 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="ut", + smart_link_id="quibusdam", ) 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="amet", + smart_link_id="animi", ) 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="amet", + smart_link_id="animi", 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="amet", + smart_link_id="animi", ) 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="amet", + smart_link_id="animi", ) 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="sed", + smart_link_id="odio", ) 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="sed", + smart_link_id="odio", 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="sed", + smart_link_id="odio", ) 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="sed", + smart_link_id="odio", ) 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="corporis", + smart_link_id="molestias", ) 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="corporis", + smart_link_id="molestias", 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="corporis", + smart_link_id="molestias", ) 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="corporis", + smart_link_id="molestias", ) 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": ["tjrlavwa"]}, + filter={"tags": ["ymkuwmokh"]}, 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="blanditiis", ) 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="blanditiis", 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="blanditiis", ) 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="blanditiis", ) 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="iste", + smart_link_id="itaque", ) 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="iste", + smart_link_id="itaque", 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="iste", + smart_link_id="itaque", ) 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="iste", + smart_link_id="itaque", ) 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="ut", + smart_link_id="quibusdam", ) 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="ut", + smart_link_id="quibusdam", 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="ut", + smart_link_id="quibusdam", ) 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="ut", + smart_link_id="quibusdam", ) 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="amet", + smart_link_id="animi", ) 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="amet", + smart_link_id="animi", 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="amet", + smart_link_id="animi", ) 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="amet", + smart_link_id="animi", ) 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="sed", + smart_link_id="odio", ) 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="sed", + smart_link_id="odio", 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="sed", + smart_link_id="odio", ) 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="sed", + smart_link_id="odio", ) 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="corporis", + smart_link_id="molestias", ) 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="corporis", + smart_link_id="molestias", 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="corporis", + smart_link_id="molestias", ) 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="corporis", + 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 93e11500..3d564db9 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": "jnosluzxpzrbaekwvqhuysxqu", - "tags": ["vqntjkjjalaeoiiwuxtcy"], + "search": "thbqowvpcwkjtduvuea", + "tags": ["wigqtalvtkgd"], }, 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": "e", - "tags": ["esjxgkdkwuzawjclrk"], + "search": "wnalxxzibwdszgknonzujpc", + "tags": ["vbyk"], }, 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": "vtrtjqpjsqxyjjefpxjurru", - "tags": ["nbefnctiix"], + "search": "z", + "tags": ["xhoxoypndcp"], }, 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": "kqmwajdwf", - "tags": ["yjzxyyngvacqdbc"], + "search": "jsochidvuyxofabqfe", + "tags": ["kujeyvmjznxaefunsuuvhtb"], }, 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": "jnosluzxpzrbaekwvqhuysxqu", - "tags": ["vqntjkjjalaeoiiwuxtcy"], + "search": "thbqowvpcwkjtduvuea", + "tags": ["wigqtalvtkgd"], }, 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": "e", - "tags": ["esjxgkdkwuzawjclrk"], + "search": "wnalxxzibwdszgknonzujpc", + "tags": ["vbyk"], }, 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": "vtrtjqpjsqxyjjefpxjurru", - "tags": ["nbefnctiix"], + "search": "z", + "tags": ["xhoxoypndcp"], }, 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": "kqmwajdwf", - "tags": ["yjzxyyngvacqdbc"], + "search": "jsochidvuyxofabqfe", + "tags": ["kujeyvmjznxaefunsuuvhtb"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index d1ce8019..8f65f5cb 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="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="quod", + 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="quod", + 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="quod", + 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="quod", + 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="commodi", + 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="commodi", + 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="commodi", + 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="commodi", + 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="commodi", + 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="rerum", + tracking_link_id="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="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="quod", + 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="quod", + 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="quod", + 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="quod", + 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="commodi", + 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="commodi", + 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="commodi", + 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="commodi", + 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="commodi", + tracking_link_id="velit", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 42d1e7af..ade99468 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="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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="enim", + trial_link_id="voluptatem", 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="enim", + trial_link_id="voluptatem", 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="enim", + trial_link_id="voluptatem", 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="enim", + trial_link_id="voluptatem", 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="consequatur", + trial_link_id="officia", 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="consequatur", + trial_link_id="officia", 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="consequatur", + trial_link_id="officia", 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="consequatur", + trial_link_id="officia", 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="consequatur", + trial_link_id="officia", 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="maxime", + 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="maxime", + 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="maxime", + 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="maxime", + 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="maxime", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="enim", + trial_link_id="voluptatem", 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="enim", + trial_link_id="voluptatem", 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="enim", + trial_link_id="voluptatem", 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="enim", + trial_link_id="voluptatem", 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="consequatur", + trial_link_id="officia", 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="consequatur", + trial_link_id="officia", 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="consequatur", + trial_link_id="officia", 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="consequatur", + trial_link_id="officia", 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="consequatur", + trial_link_id="officia", 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="maxime", + 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="maxime", + 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="maxime", + 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="maxime", + 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="maxime", + trial_link_id="dolorem", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 19801727..7be56b47 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="dipcnmqccvzyukkmo", + name="zvvvbbhb", ) 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="dipcnmqccvzyukkmo", + name="zvvvbbhb", ) 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="dipcnmqccvzyukkmo", + name="zvvvbbhb", ) 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="dipcnmqccvzyukkmo", + name="zvvvbbhb", ) @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="dipcnmqccvzyukkmo", + name="zvvvbbhb", ) 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="dipcnmqccvzyukkmo", + name="zvvvbbhb", ) 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="dipcnmqccvzyukkmo", + name="zvvvbbhb", ) 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="dipcnmqccvzyukkmo", + name="zvvvbbhb", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 34b2ef520908d102c015ca22ae14cd962971803a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 21 Jun 2026 19:12:32 +0000 Subject: [PATCH 083/249] 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_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 +-- 18 files changed, 270 insertions(+), 270 deletions(-) diff --git a/.stats.yml b/.stats.yml index a6f8dea5..ba92e487 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ed5dc8c2f880550be887c5e65c9c14e91ab68384ee1d2ca9184d30cacea74b70.yml -openapi_spec_hash: c7208a565cf56a80d1473b3e61700096 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-96ef5a72effa5109d24e858e34e4c27e80c6da0fdfdd18d55455bd8970c0d081.yml +openapi_spec_hash: e10f2c391fdfadf1b52c942ec22c67c6 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 77938613..5845b49a 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="quisquam", + message_id="delectus", 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="quisquam", + message_id="delectus", 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="quisquam", + message_id="delectus", 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="quisquam", + message_id="delectus", 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="quisquam", + message_id="delectus", 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="quisquam", + message_id="delectus", 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="quisquam", + message_id="delectus", 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="quisquam", + message_id="delectus", 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="quisquam", + message_id="delectus", 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="quisquam", + message_id="delectus", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index e8dbfc34..db1d92ef 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index efb0fc7f..e4c41a54 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="iste", + post_id="pariatur", 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="iste", + post_id="pariatur", 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="iste", + post_id="pariatur", 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="iste", + post_id="pariatur", 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="iste", + post_id="pariatur", 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="iste", + post_id="pariatur", 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="iste", + post_id="pariatur", 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="iste", + post_id="pariatur", 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="iste", + post_id="pariatur", 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="iste", + post_id="pariatur", 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="iste", + post_id="pariatur", 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="iste", + post_id="pariatur", 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="iste", + post_id="pariatur", 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="iste", + post_id="pariatur", 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="iste", + post_id="pariatur", 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="iste", + post_id="pariatur", 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="iste", + post_id="pariatur", 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="iste", + post_id="pariatur", 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="iste", + post_id="pariatur", 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="iste", + post_id="pariatur", 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 a62ccbd3..444937ba 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 9c80483e..b5f3d61a 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 544df889..9664075f 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 bc183588..4ab12a6d 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="id", + path_story_id="voluptatibus", 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="id", + path_story_id="voluptatibus", 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="id", + path_story_id="voluptatibus", 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="id", + path_story_id="voluptatibus", 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="id", + story_id="voluptatibus", 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="id", + story_id="voluptatibus", 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="id", + story_id="voluptatibus", 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="id", + story_id="voluptatibus", 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="id", + path_story_id="voluptatibus", 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="id", + path_story_id="voluptatibus", 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="id", + path_story_id="voluptatibus", 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="id", + path_story_id="voluptatibus", 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="id", + story_id="voluptatibus", 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="id", + story_id="voluptatibus", 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="id", + story_id="voluptatibus", 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="id", + story_id="voluptatibus", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 744ad529..5342c088 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( - "nemo", + "debitis", ) 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( - "nemo", + "debitis", ) 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( - "nemo", + "debitis", ) 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( - "nemo", + "debitis", ) 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( - "nemo", + "debitis", ) 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( - "nemo", + "debitis", ) 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 3751847d..842baddf 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="eius", auth_type="email_password", - cookies="sequi", + cookies="ratione", custom_proxy={ "host": "proxy.example.com", - "password": '@.W,T"0&>', + "password": "l'Rq=Ny)l}=`dYXse7#o", "port": 8080, - "username": "quidem", + "username": "eveniet", }, - email="charlotte.aufderhar@example.org", + email="schroeder.imogene@example.org", force_connect=False, - name="fugit", - password="JshEgeU=t=W}S*.nW1", - proxy_country="us", - user_agent="a", - xbc="vel", + name="aut", + password="%q}..R20pV21j`|B\\C", + proxy_country="uk", + user_agent="corporis", + xbc="facilis", ) 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="eius", auth_type="email_password", - cookies="sequi", + cookies="ratione", custom_proxy={ "host": "proxy.example.com", - "password": '@.W,T"0&>', + "password": "l'Rq=Ny)l}=`dYXse7#o", "port": 8080, - "username": "quidem", + "username": "eveniet", }, - email="charlotte.aufderhar@example.org", + email="schroeder.imogene@example.org", force_connect=False, - name="fugit", - password="JshEgeU=t=W}S*.nW1", - proxy_country="us", - user_agent="a", - xbc="vel", + name="aut", + password="%q}..R20pV21j`|B\\C", + proxy_country="uk", + user_agent="corporis", + xbc="facilis", ) 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 3597ede6..9249f386 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 280e3de9..413a2df6 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="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="comments", + type="likes", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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 aaf4b3a4..cff4f7a7 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": ["ymkuwmokh"]}, + filter={"tags": ["eptbovswxzaekxjzyqhwktqzx"]}, 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="blanditiis", + smart_link_id="ducimus", ) 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="blanditiis", + smart_link_id="ducimus", 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="blanditiis", + smart_link_id="ducimus", ) 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="blanditiis", + smart_link_id="ducimus", ) 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="itaque", + smart_link_id="eaque", ) 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="itaque", + smart_link_id="eaque", 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="itaque", + smart_link_id="eaque", ) 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="itaque", + smart_link_id="eaque", ) 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="quibusdam", + smart_link_id="quod", ) 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="quibusdam", + smart_link_id="quod", 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="quibusdam", + smart_link_id="quod", ) 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="quibusdam", + smart_link_id="quod", ) 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="animi", + smart_link_id="qui", ) 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="animi", + smart_link_id="qui", 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="animi", + smart_link_id="qui", ) 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="animi", + smart_link_id="qui", ) 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="odio", + smart_link_id="animi", ) 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="odio", + smart_link_id="animi", 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="odio", + smart_link_id="animi", ) 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="odio", + smart_link_id="animi", ) 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="molestias", + smart_link_id="aut", ) 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="molestias", + smart_link_id="aut", 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="molestias", + smart_link_id="aut", ) 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="molestias", + smart_link_id="aut", ) 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": ["ymkuwmokh"]}, + filter={"tags": ["eptbovswxzaekxjzyqhwktqzx"]}, 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="blanditiis", + smart_link_id="ducimus", ) 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="blanditiis", + smart_link_id="ducimus", 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="blanditiis", + smart_link_id="ducimus", ) 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="blanditiis", + smart_link_id="ducimus", ) 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="itaque", + smart_link_id="eaque", ) 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="itaque", + smart_link_id="eaque", 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="itaque", + smart_link_id="eaque", ) 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="itaque", + smart_link_id="eaque", ) 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="quibusdam", + smart_link_id="quod", ) 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="quibusdam", + smart_link_id="quod", 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="quibusdam", + smart_link_id="quod", ) 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="quibusdam", + smart_link_id="quod", ) 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="animi", + smart_link_id="qui", ) 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="animi", + smart_link_id="qui", 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="animi", + smart_link_id="qui", ) 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="animi", + smart_link_id="qui", ) 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="odio", + smart_link_id="animi", ) 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="odio", + smart_link_id="animi", 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="odio", + smart_link_id="animi", ) 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="odio", + smart_link_id="animi", ) 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="molestias", + smart_link_id="aut", ) 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="molestias", + smart_link_id="aut", 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="molestias", + smart_link_id="aut", ) 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="molestias", + 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 3d564db9..94255395 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": "thbqowvpcwkjtduvuea", - "tags": ["wigqtalvtkgd"], + "search": "evqveicpexe", + "tags": ["kdfwzlhmgjcyvy"], }, 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": "wnalxxzibwdszgknonzujpc", - "tags": ["vbyk"], + "search": "utbmzoqksxoawhgaktbuncu", + "tags": ["nbdptjit"], }, 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": "z", - "tags": ["xhoxoypndcp"], + "include_smart_links": True, + "search": "bdwkbcfskhyeh", + "tags": ["ozuudeidlncxnnphtttvrpl"], }, 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": "jsochidvuyxofabqfe", - "tags": ["kujeyvmjznxaefunsuuvhtb"], + "search": "pehjadcaknoccsxbnqqtxcx", + "tags": ["hlxqpwyrzwe"], }, 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": "thbqowvpcwkjtduvuea", - "tags": ["wigqtalvtkgd"], + "search": "evqveicpexe", + "tags": ["kdfwzlhmgjcyvy"], }, 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": "wnalxxzibwdszgknonzujpc", - "tags": ["vbyk"], + "search": "utbmzoqksxoawhgaktbuncu", + "tags": ["nbdptjit"], }, 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": "z", - "tags": ["xhoxoypndcp"], + "include_smart_links": True, + "search": "bdwkbcfskhyeh", + "tags": ["ozuudeidlncxnnphtttvrpl"], }, 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": "jsochidvuyxofabqfe", - "tags": ["kujeyvmjznxaefunsuuvhtb"], + "search": "pehjadcaknoccsxbnqqtxcx", + "tags": ["hlxqpwyrzwe"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 8f65f5cb..584802f5 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="quis", + tracking_link_id="architecto", 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="quis", + tracking_link_id="architecto", 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="quis", + tracking_link_id="architecto", 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="quis", + tracking_link_id="architecto", 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="quis", + tracking_link_id="architecto", 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="quis", + tracking_link_id="architecto", 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="quis", + tracking_link_id="architecto", 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="quis", + tracking_link_id="architecto", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="ad", 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="ad", 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="ad", 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="ad", 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="ad", 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="quis", + tracking_link_id="architecto", 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="quis", + tracking_link_id="architecto", 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="quis", + tracking_link_id="architecto", 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="quis", + tracking_link_id="architecto", 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="quis", + tracking_link_id="architecto", 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="quis", + tracking_link_id="architecto", 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="quis", + tracking_link_id="architecto", 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="quis", + tracking_link_id="architecto", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="ad", 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="ad", 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="ad", 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="ad", 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="ad", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index ade99468..dc6e7fee 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="adipisci", + trial_link_id="odio", 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="adipisci", + trial_link_id="odio", 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="adipisci", + trial_link_id="odio", 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="adipisci", + trial_link_id="odio", 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="adipisci", + trial_link_id="odio", 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="adipisci", + trial_link_id="odio", 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="adipisci", + trial_link_id="odio", 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="adipisci", + trial_link_id="odio", 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="voluptatem", + trial_link_id="ut", 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="voluptatem", + trial_link_id="ut", 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="voluptatem", + trial_link_id="ut", 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="voluptatem", + trial_link_id="ut", 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="officia", + trial_link_id="earum", 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="officia", + trial_link_id="earum", 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="officia", + trial_link_id="earum", 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="officia", + trial_link_id="earum", 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="officia", + trial_link_id="earum", 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="ex", 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="ex", 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="ex", 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="ex", 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="ex", 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="adipisci", + trial_link_id="odio", 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="adipisci", + trial_link_id="odio", 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="adipisci", + trial_link_id="odio", 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="adipisci", + trial_link_id="odio", 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="adipisci", + trial_link_id="odio", 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="adipisci", + trial_link_id="odio", 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="adipisci", + trial_link_id="odio", 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="adipisci", + trial_link_id="odio", 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="voluptatem", + trial_link_id="ut", 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="voluptatem", + trial_link_id="ut", 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="voluptatem", + trial_link_id="ut", 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="voluptatem", + trial_link_id="ut", 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="officia", + trial_link_id="earum", 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="officia", + trial_link_id="earum", 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="officia", + trial_link_id="earum", 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="officia", + trial_link_id="earum", 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="officia", + trial_link_id="earum", 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="ex", 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="ex", 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="ex", 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="ex", 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="ex", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 7be56b47..d6cd5749 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="zvvvbbhb", + name="l", ) 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="zvvvbbhb", + name="l", ) 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="zvvvbbhb", + name="l", ) 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="zvvvbbhb", + name="l", ) @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="zvvvbbhb", + name="l", ) 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="zvvvbbhb", + name="l", ) 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="zvvvbbhb", + name="l", ) 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="zvvvbbhb", + name="l", ) @pytest.mark.skip(reason="Mock server tests are disabled") From fb91a8a2ae01b12b8e23d04019f14cf589d2b6d6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 05:12:35 +0000 Subject: [PATCH 084/249] 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_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 | 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, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index ba92e487..178f603b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-96ef5a72effa5109d24e858e34e4c27e80c6da0fdfdd18d55455bd8970c0d081.yml -openapi_spec_hash: e10f2c391fdfadf1b52c942ec22c67c6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-18ea139e992cfeac2558a0ac650efd96b78fc536ac88d62f3639c84537e01156.yml +openapi_spec_hash: 0113ba037170124cfe907c495e45696f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 5845b49a..a0734891 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="delectus", + message_id="consequatur", 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="delectus", + message_id="consequatur", 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="delectus", + message_id="consequatur", 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="delectus", + message_id="consequatur", 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="delectus", + message_id="consequatur", 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="delectus", + message_id="consequatur", 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="delectus", + message_id="consequatur", 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="delectus", + message_id="consequatur", 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="delectus", + message_id="consequatur", 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="delectus", + message_id="consequatur", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index db1d92ef..276a89c7 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="nesciunt", + list_id="asperiores", 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="nesciunt", + list_id="asperiores", 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="nesciunt", + list_id="asperiores", 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="nesciunt", + list_id="asperiores", 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="nesciunt", + list_id="asperiores", 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="nesciunt", + list_id="asperiores", 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="nesciunt", + list_id="asperiores", 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="nesciunt", + list_id="asperiores", 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="nesciunt", + list_id="asperiores", 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="nesciunt", + list_id="asperiores", 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="nesciunt", + list_id="asperiores", 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="nesciunt", + list_id="asperiores", 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="nesciunt", + list_id="asperiores", 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="nesciunt", + list_id="asperiores", 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="nesciunt", + list_id="asperiores", 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="nesciunt", + list_id="asperiores", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index e4c41a54..cee77a55 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="pariatur", + post_id="recusandae", 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="pariatur", + post_id="recusandae", 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="pariatur", + post_id="recusandae", 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="pariatur", + post_id="recusandae", 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="pariatur", + post_id="recusandae", 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="pariatur", + post_id="recusandae", 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="pariatur", + post_id="recusandae", 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="pariatur", + post_id="recusandae", 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="pariatur", + post_id="recusandae", 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="pariatur", + post_id="recusandae", 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="pariatur", + post_id="recusandae", 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="pariatur", + post_id="recusandae", 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="pariatur", + post_id="recusandae", 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="pariatur", + post_id="recusandae", 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="pariatur", + post_id="recusandae", 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="pariatur", + post_id="recusandae", 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="pariatur", + post_id="recusandae", 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="pariatur", + post_id="recusandae", 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="pariatur", + post_id="recusandae", 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="pariatur", + post_id="recusandae", 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 b5f3d61a..fc7b1635 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 9664075f..544df889 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 4ab12a6d..5b3b61a4 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + story_id="totam", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 5342c088..86e468bd 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( - "debitis", + "magnam", ) 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( - "debitis", + "magnam", ) 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( - "debitis", + "magnam", ) 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( - "debitis", + "magnam", ) 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( - "debitis", + "magnam", ) 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( - "debitis", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 842baddf..16aed2fc 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="eius", - auth_type="email_password", - cookies="ratione", + auth_id="velit", + auth_type="raw_data", + cookies="laboriosam", custom_proxy={ "host": "proxy.example.com", - "password": "l'Rq=Ny)l}=`dYXse7#o", + "password": "),%afY#B8o", "port": 8080, - "username": "eveniet", + "username": "quam", }, - email="schroeder.imogene@example.org", + email="predovic.phyllis@example.com", force_connect=False, - name="aut", - password="%q}..R20pV21j`|B\\C", - proxy_country="uk", - user_agent="corporis", - xbc="facilis", + name="illo", + password="70W/x%\\Y/%)O(*?M", + proxy_country="us", + user_agent="eos", + xbc="unde", ) 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="eius", - auth_type="email_password", - cookies="ratione", + auth_id="velit", + auth_type="raw_data", + cookies="laboriosam", custom_proxy={ "host": "proxy.example.com", - "password": "l'Rq=Ny)l}=`dYXse7#o", + "password": "),%afY#B8o", "port": 8080, - "username": "eveniet", + "username": "quam", }, - email="schroeder.imogene@example.org", + email="predovic.phyllis@example.com", force_connect=False, - name="aut", - password="%q}..R20pV21j`|B\\C", - proxy_country="uk", - user_agent="corporis", - xbc="facilis", + name="illo", + password="70W/x%\\Y/%)O(*?M", + proxy_country="us", + user_agent="eos", + xbc="unde", ) 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 9249f386..3597ede6 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 413a2df6..280e3de9 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="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="likes", + 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 65694e23..bd4f6161 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 cff4f7a7..f07b19c8 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": ["eptbovswxzaekxjzyqhwktqzx"]}, + filter={"tags": ["rfpe"]}, 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="ducimus", + smart_link_id="provident", ) 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="ducimus", + smart_link_id="provident", 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="ducimus", + smart_link_id="provident", ) 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="ducimus", + smart_link_id="provident", ) 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="eaque", + smart_link_id="rem", ) 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="eaque", + smart_link_id="rem", 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="eaque", + smart_link_id="rem", ) 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="eaque", + smart_link_id="rem", ) 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="quod", + smart_link_id="consectetur", ) 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="quod", + smart_link_id="consectetur", 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="quod", + smart_link_id="consectetur", ) 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="quod", + smart_link_id="consectetur", ) 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="qui", + smart_link_id="doloremque", ) 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="qui", + smart_link_id="doloremque", 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="qui", + smart_link_id="doloremque", ) 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="qui", + smart_link_id="doloremque", ) 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="animi", + smart_link_id="ipsa", ) 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="animi", + smart_link_id="ipsa", 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="animi", + smart_link_id="ipsa", ) 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="animi", + smart_link_id="ipsa", ) 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="aut", + smart_link_id="iste", ) 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="aut", + smart_link_id="iste", 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="aut", + smart_link_id="iste", ) 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="aut", + smart_link_id="iste", ) 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": ["eptbovswxzaekxjzyqhwktqzx"]}, + filter={"tags": ["rfpe"]}, 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="ducimus", + smart_link_id="provident", ) 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="ducimus", + smart_link_id="provident", 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="ducimus", + smart_link_id="provident", ) 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="ducimus", + smart_link_id="provident", ) 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="eaque", + smart_link_id="rem", ) 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="eaque", + smart_link_id="rem", 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="eaque", + smart_link_id="rem", ) 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="eaque", + smart_link_id="rem", ) 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="quod", + smart_link_id="consectetur", ) 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="quod", + smart_link_id="consectetur", 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="quod", + smart_link_id="consectetur", ) 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="quod", + smart_link_id="consectetur", ) 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="qui", + smart_link_id="doloremque", ) 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="qui", + smart_link_id="doloremque", 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="qui", + smart_link_id="doloremque", ) 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="qui", + smart_link_id="doloremque", ) 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="animi", + smart_link_id="ipsa", ) 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="animi", + smart_link_id="ipsa", 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="animi", + smart_link_id="ipsa", ) 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="animi", + smart_link_id="ipsa", ) 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="aut", + smart_link_id="iste", ) 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="aut", + smart_link_id="iste", 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="aut", + smart_link_id="iste", ) 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="aut", + smart_link_id="iste", ) 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 94255395..088a5b06 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": "evqveicpexe", - "tags": ["kdfwzlhmgjcyvy"], + "search": "fncatzdnheyzwmvlmikn", + "tags": ["uxcgkkfymgsgppj"], }, 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": "utbmzoqksxoawhgaktbuncu", - "tags": ["nbdptjit"], + "search": "yytvisjpskuybcqgrrwdqvbos", + "tags": ["vldfqqtppjrwfswnpekxzqc"], }, 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": "bdwkbcfskhyeh", - "tags": ["ozuudeidlncxnnphtttvrpl"], + "search": "bkzhwvyyowmus", + "tags": ["onadxqmdpcdudibgilgngyumt"], }, 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": "pehjadcaknoccsxbnqqtxcx", - "tags": ["hlxqpwyrzwe"], + "search": "mzpcomyplhhljzmb", + "tags": ["c"], }, 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": "evqveicpexe", - "tags": ["kdfwzlhmgjcyvy"], + "search": "fncatzdnheyzwmvlmikn", + "tags": ["uxcgkkfymgsgppj"], }, 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": "utbmzoqksxoawhgaktbuncu", - "tags": ["nbdptjit"], + "search": "yytvisjpskuybcqgrrwdqvbos", + "tags": ["vldfqqtppjrwfswnpekxzqc"], }, 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": "bdwkbcfskhyeh", - "tags": ["ozuudeidlncxnnphtttvrpl"], + "search": "bkzhwvyyowmus", + "tags": ["onadxqmdpcdudibgilgngyumt"], }, 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": "pehjadcaknoccsxbnqqtxcx", - "tags": ["hlxqpwyrzwe"], + "search": "mzpcomyplhhljzmb", + "tags": ["c"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 584802f5..292e20de 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="architecto", + tracking_link_id="consectetur", 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="architecto", + tracking_link_id="consectetur", 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="architecto", + tracking_link_id="consectetur", 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="architecto", + tracking_link_id="consectetur", 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="architecto", + tracking_link_id="consectetur", 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="architecto", + tracking_link_id="consectetur", 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="architecto", + tracking_link_id="consectetur", 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="architecto", + tracking_link_id="consectetur", 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="ad", + tracking_link_id="incidunt", 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="ad", + tracking_link_id="incidunt", 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="ad", + tracking_link_id="incidunt", 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="ad", + tracking_link_id="incidunt", 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="ad", + tracking_link_id="incidunt", 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="architecto", + tracking_link_id="consectetur", 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="architecto", + tracking_link_id="consectetur", 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="architecto", + tracking_link_id="consectetur", 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="architecto", + tracking_link_id="consectetur", 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="architecto", + tracking_link_id="consectetur", 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="architecto", + tracking_link_id="consectetur", 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="architecto", + tracking_link_id="consectetur", 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="architecto", + tracking_link_id="consectetur", 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="ad", + tracking_link_id="incidunt", 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="ad", + tracking_link_id="incidunt", 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="ad", + tracking_link_id="incidunt", 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="ad", + tracking_link_id="incidunt", 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="ad", + tracking_link_id="incidunt", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index dc6e7fee..99e14166 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="odio", + 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="odio", + 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="odio", + 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="odio", + 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="odio", + 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="odio", + 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="odio", + 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="odio", + 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="ut", + trial_link_id="sed", 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="sed", 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="sed", 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="sed", 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="earum", + trial_link_id="repellat", 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="earum", + trial_link_id="repellat", 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="earum", + trial_link_id="repellat", 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="earum", + trial_link_id="repellat", 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="earum", + trial_link_id="repellat", 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="ex", + trial_link_id="totam", 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="ex", + trial_link_id="totam", 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="ex", + trial_link_id="totam", 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="ex", + trial_link_id="totam", 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="ex", + trial_link_id="totam", 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="odio", + 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="odio", + 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="odio", + 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="odio", + 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="odio", + 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="odio", + 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="odio", + 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="odio", + 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="ut", + trial_link_id="sed", 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="sed", 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="sed", 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="sed", 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="earum", + trial_link_id="repellat", 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="earum", + trial_link_id="repellat", 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="earum", + trial_link_id="repellat", 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="earum", + trial_link_id="repellat", 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="earum", + trial_link_id="repellat", 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="ex", + trial_link_id="totam", 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="ex", + trial_link_id="totam", 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="ex", + trial_link_id="totam", 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="ex", + trial_link_id="totam", 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="ex", + trial_link_id="totam", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index d6cd5749..c2d5a6a3 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="l", + name="upwidopmnwsvueo", ) 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="l", + name="upwidopmnwsvueo", ) 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="l", + name="upwidopmnwsvueo", ) 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="l", + name="upwidopmnwsvueo", ) @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="l", + name="upwidopmnwsvueo", ) 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="l", + name="upwidopmnwsvueo", ) 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="l", + name="upwidopmnwsvueo", ) 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="l", + name="upwidopmnwsvueo", ) @pytest.mark.skip(reason="Mock server tests are disabled") From ad185f2dba151f99f4305a991d59c732bfed3567 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 15:12:35 +0000 Subject: [PATCH 085/249] 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 +++---- .../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_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 +-- 16 files changed, 252 insertions(+), 252 deletions(-) diff --git a/.stats.yml b/.stats.yml index 178f603b..bee7ee31 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-18ea139e992cfeac2558a0ac650efd96b78fc536ac88d62f3639c84537e01156.yml -openapi_spec_hash: 0113ba037170124cfe907c495e45696f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5be9606b6648f96d96fbfd1ce827e917d866d67e0c6c86efec0189271b6b6280.yml +openapi_spec_hash: cb334b7d2013e3c87a26cc4215126ce9 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index a0734891..a1d6eb5a 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="consequatur", + message_id="quam", 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="consequatur", + message_id="quam", 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="consequatur", + message_id="quam", 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="consequatur", + message_id="quam", 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="consequatur", + message_id="quam", 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="consequatur", + message_id="quam", 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="consequatur", + message_id="quam", 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="consequatur", + message_id="quam", 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="consequatur", + message_id="quam", 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="consequatur", + message_id="quam", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 276a89c7..9c7afc65 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="asperiores", + list_id="impedit", 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="asperiores", + list_id="impedit", 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="asperiores", + list_id="impedit", 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="asperiores", + list_id="impedit", 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="asperiores", + list_id="impedit", 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="asperiores", + list_id="impedit", 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="asperiores", + list_id="impedit", 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="asperiores", + list_id="impedit", 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="asperiores", + list_id="impedit", 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="asperiores", + list_id="impedit", 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="asperiores", + list_id="impedit", 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="asperiores", + list_id="impedit", 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="asperiores", + list_id="impedit", 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="asperiores", + list_id="impedit", 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="asperiores", + list_id="impedit", 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="asperiores", + list_id="impedit", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index cee77a55..fdce6d9c 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="recusandae", + post_id="earum", 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="recusandae", + post_id="earum", 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="recusandae", + post_id="earum", 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="recusandae", + post_id="earum", 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="recusandae", + post_id="earum", 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="recusandae", + post_id="earum", 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="recusandae", + post_id="earum", 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="recusandae", + post_id="earum", 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="recusandae", + post_id="earum", 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="recusandae", + post_id="earum", 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="recusandae", + post_id="earum", 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="recusandae", + post_id="earum", 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="recusandae", + post_id="earum", 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="recusandae", + post_id="earum", 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="recusandae", + post_id="earum", 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="recusandae", + post_id="earum", 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="recusandae", + post_id="earum", 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="recusandae", + post_id="earum", 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="recusandae", + post_id="earum", 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="recusandae", + post_id="earum", account="", ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 5b3b61a4..d44eaade 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="iure", 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="iure", 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="iure", 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="iure", 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="iure", 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="iure", 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="iure", 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="iure", 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="iure", 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="iure", 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="iure", 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="iure", 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="iure", 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="iure", 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="iure", 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="iure", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 86e468bd..723dc6fb 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( - "magnam", + "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( - "magnam", + "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( - "magnam", + "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( - "magnam", + "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( - "magnam", + "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( - "magnam", + "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 16aed2fc..ec308a74 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="velit", + auth_id="vitae", auth_type="raw_data", - cookies="laboriosam", + cookies="iure", custom_proxy={ "host": "proxy.example.com", - "password": "),%afY#B8o", + "password": "W# None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="velit", + auth_id="vitae", auth_type="raw_data", - cookies="laboriosam", + cookies="iure", custom_proxy={ "host": "proxy.example.com", - "password": "),%afY#B8o", + "password": "W# 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 280e3de9..bea1ef2e 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="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="comments", + 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 bd4f6161..65694e23 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 f07b19c8..c6f7c1af 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": ["rfpe"]}, + filter={"tags": ["jastfxiyrqyjne"]}, 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="provident", + smart_link_id="quo", ) 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="provident", + smart_link_id="quo", 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="provident", + smart_link_id="quo", ) 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="provident", + smart_link_id="quo", ) 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="rem", + smart_link_id="et", ) 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="rem", + smart_link_id="et", 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="rem", + smart_link_id="et", ) 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="rem", + smart_link_id="et", ) 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="consectetur", + smart_link_id="porro", ) 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="consectetur", + smart_link_id="porro", 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="consectetur", + smart_link_id="porro", ) 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="consectetur", + smart_link_id="porro", ) 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="doloremque", + smart_link_id="sed", ) 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="doloremque", + smart_link_id="sed", 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="doloremque", + smart_link_id="sed", ) 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="doloremque", + smart_link_id="sed", ) 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="ipsa", + smart_link_id="omnis", ) 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="ipsa", + smart_link_id="omnis", 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="ipsa", + smart_link_id="omnis", ) 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="ipsa", + smart_link_id="omnis", ) 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="iste", + smart_link_id="deserunt", ) 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="iste", + smart_link_id="deserunt", 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="iste", + smart_link_id="deserunt", ) 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="iste", + smart_link_id="deserunt", ) 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": ["rfpe"]}, + filter={"tags": ["jastfxiyrqyjne"]}, 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="provident", + smart_link_id="quo", ) 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="provident", + smart_link_id="quo", 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="provident", + smart_link_id="quo", ) 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="provident", + smart_link_id="quo", ) 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="rem", + smart_link_id="et", ) 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="rem", + smart_link_id="et", 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="rem", + smart_link_id="et", ) 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="rem", + smart_link_id="et", ) 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="consectetur", + smart_link_id="porro", ) 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="consectetur", + smart_link_id="porro", 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="consectetur", + smart_link_id="porro", ) 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="consectetur", + smart_link_id="porro", ) 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="doloremque", + smart_link_id="sed", ) 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="doloremque", + smart_link_id="sed", 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="doloremque", + smart_link_id="sed", ) 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="doloremque", + smart_link_id="sed", ) 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="ipsa", + smart_link_id="omnis", ) 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="ipsa", + smart_link_id="omnis", 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="ipsa", + smart_link_id="omnis", ) 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="ipsa", + smart_link_id="omnis", ) 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="iste", + smart_link_id="deserunt", ) 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="iste", + smart_link_id="deserunt", 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="iste", + smart_link_id="deserunt", ) 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="iste", + smart_link_id="deserunt", ) 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 088a5b06..890bb549 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": "fncatzdnheyzwmvlmikn", - "tags": ["uxcgkkfymgsgppj"], + "search": "qtckeenfdhivohu", + "tags": ["wrzfaseqsjnutwgmjjudhwoyt"], }, 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": "yytvisjpskuybcqgrrwdqvbos", - "tags": ["vldfqqtppjrwfswnpekxzqc"], + "search": "uutlfzmcylvif", + "tags": ["zylbgbieioeqarjoqd"], }, 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": "bkzhwvyyowmus", - "tags": ["onadxqmdpcdudibgilgngyumt"], + "search": "iyrscbmvlpmhmmgfqjsapwar", + "tags": ["dzuqripwrrxxyjow"], }, 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": "mzpcomyplhhljzmb", - "tags": ["c"], + "include_smart_links": True, + "search": "ydixgdxzsmstujb", + "tags": ["dwlissbubw"], }, 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": "fncatzdnheyzwmvlmikn", - "tags": ["uxcgkkfymgsgppj"], + "search": "qtckeenfdhivohu", + "tags": ["wrzfaseqsjnutwgmjjudhwoyt"], }, 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": "yytvisjpskuybcqgrrwdqvbos", - "tags": ["vldfqqtppjrwfswnpekxzqc"], + "search": "uutlfzmcylvif", + "tags": ["zylbgbieioeqarjoqd"], }, 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": "bkzhwvyyowmus", - "tags": ["onadxqmdpcdudibgilgngyumt"], + "search": "iyrscbmvlpmhmmgfqjsapwar", + "tags": ["dzuqripwrrxxyjow"], }, 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": "mzpcomyplhhljzmb", - "tags": ["c"], + "include_smart_links": True, + "search": "ydixgdxzsmstujb", + "tags": ["dwlissbubw"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 292e20de..84d09924 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="impedit", 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="impedit", 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="impedit", 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="impedit", 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="impedit", 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="impedit", 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="impedit", 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="impedit", 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="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="est", + 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="est", + 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="est", + 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="est", + 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="incidunt", + tracking_link_id="ipsum", 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="incidunt", + tracking_link_id="ipsum", 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="incidunt", + tracking_link_id="ipsum", 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="incidunt", + tracking_link_id="ipsum", 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="incidunt", + tracking_link_id="ipsum", 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="impedit", 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="impedit", 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="impedit", 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="impedit", 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="impedit", 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="impedit", 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="impedit", 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="impedit", 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="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="est", + 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="est", + 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="est", + 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="est", + 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="incidunt", + tracking_link_id="ipsum", 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="incidunt", + tracking_link_id="ipsum", 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="incidunt", + tracking_link_id="ipsum", 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="incidunt", + tracking_link_id="ipsum", 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="incidunt", + tracking_link_id="ipsum", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 99e14166..ee02f653 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="sed", + trial_link_id="rem", 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="sed", + trial_link_id="rem", 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="sed", + trial_link_id="rem", 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="sed", + trial_link_id="rem", 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="repellat", + trial_link_id="omnis", 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="repellat", + trial_link_id="omnis", 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="repellat", + trial_link_id="omnis", 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="repellat", + trial_link_id="omnis", 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="repellat", + trial_link_id="omnis", 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="totam", + trial_link_id="itaque", 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="totam", + trial_link_id="itaque", 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="totam", + trial_link_id="itaque", 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="totam", + trial_link_id="itaque", 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="totam", + trial_link_id="itaque", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="sed", + trial_link_id="rem", 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="sed", + trial_link_id="rem", 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="sed", + trial_link_id="rem", 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="sed", + trial_link_id="rem", 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="repellat", + trial_link_id="omnis", 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="repellat", + trial_link_id="omnis", 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="repellat", + trial_link_id="omnis", 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="repellat", + trial_link_id="omnis", 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="repellat", + trial_link_id="omnis", 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="totam", + trial_link_id="itaque", 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="totam", + trial_link_id="itaque", 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="totam", + trial_link_id="itaque", 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="totam", + trial_link_id="itaque", 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="totam", + trial_link_id="itaque", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index c2d5a6a3..008f90fa 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="upwidopmnwsvueo", + name="srnltqrwxbifcd", ) 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="upwidopmnwsvueo", + name="srnltqrwxbifcd", ) 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="upwidopmnwsvueo", + name="srnltqrwxbifcd", ) 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="upwidopmnwsvueo", + name="srnltqrwxbifcd", ) @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="upwidopmnwsvueo", + name="srnltqrwxbifcd", ) 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="upwidopmnwsvueo", + name="srnltqrwxbifcd", ) 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="upwidopmnwsvueo", + name="srnltqrwxbifcd", ) 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="upwidopmnwsvueo", + name="srnltqrwxbifcd", ) @pytest.mark.skip(reason="Mock server tests are disabled") From d37311c2c3241b721cfb6c4bb23768871ddb37d3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 17:12:39 +0000 Subject: [PATCH 086/249] 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 | 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 | 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, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index bee7ee31..89d96d03 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5be9606b6648f96d96fbfd1ce827e917d866d67e0c6c86efec0189271b6b6280.yml -openapi_spec_hash: cb334b7d2013e3c87a26cc4215126ce9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4936b32be2f2af07d0a7f6db433e3697cc33e786fc6a160ba03469396e400619.yml +openapi_spec_hash: 70ddc04518b8814735b0f9226f1a9545 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index a1d6eb5a..a6c92cee 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="quam", + message_id="autem", 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="quam", + message_id="autem", 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="quam", + message_id="autem", 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="quam", + message_id="autem", 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="quam", + message_id="autem", 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="quam", + message_id="autem", 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="quam", + message_id="autem", 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="quam", + message_id="autem", 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="quam", + message_id="autem", 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="quam", + message_id="autem", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 9c7afc65..d3c94b72 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="impedit", + list_id="dicta", 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="impedit", + list_id="dicta", 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="impedit", + list_id="dicta", 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="impedit", + list_id="dicta", 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="impedit", + list_id="dicta", 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="impedit", + list_id="dicta", 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="impedit", + list_id="dicta", 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="impedit", + list_id="dicta", 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="impedit", + list_id="dicta", 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="impedit", + list_id="dicta", 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="impedit", + list_id="dicta", 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="impedit", + list_id="dicta", 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="impedit", + list_id="dicta", 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="impedit", + list_id="dicta", 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="impedit", + list_id="dicta", 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="impedit", + list_id="dicta", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index fdce6d9c..57718d85 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="earum", + post_id="error", 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="earum", + post_id="error", 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="earum", + post_id="error", 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="earum", + post_id="error", 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="earum", + post_id="error", 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="earum", + post_id="error", 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="earum", + post_id="error", 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="earum", + post_id="error", 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="earum", + post_id="error", 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="earum", + post_id="error", 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="earum", + post_id="error", 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="earum", + post_id="error", 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="earum", + post_id="error", 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="earum", + post_id="error", 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="earum", + post_id="error", 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="earum", + post_id="error", 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="earum", + post_id="error", 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="earum", + post_id="error", 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="earum", + post_id="error", 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="earum", + post_id="error", 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 444937ba..aa735c97 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075f..544df889 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 d44eaade..4b39ad0a 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="iure", + path_story_id="facilis", 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="iure", + path_story_id="facilis", 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="iure", + path_story_id="facilis", 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="iure", + path_story_id="facilis", 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="iure", + story_id="facilis", 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="iure", + story_id="facilis", 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="iure", + story_id="facilis", 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="iure", + story_id="facilis", 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="iure", + path_story_id="facilis", 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="iure", + path_story_id="facilis", 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="iure", + path_story_id="facilis", 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="iure", + path_story_id="facilis", 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="iure", + story_id="facilis", 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="iure", + story_id="facilis", 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="iure", + story_id="facilis", 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="iure", + story_id="facilis", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 723dc6fb..e0865538 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", + "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( - "voluptas", + "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( - "voluptas", + "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( - "voluptas", + "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( - "voluptas", + "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( - "voluptas", + "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 ec308a74..c3d2623f 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="vitae", - auth_type="raw_data", - cookies="iure", + auth_id="minus", + auth_type="email_password", + cookies="culpa", custom_proxy={ "host": "proxy.example.com", - "password": "W# None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="vitae", - auth_type="raw_data", - cookies="iure", + auth_id="minus", + auth_type="email_password", + cookies="culpa", custom_proxy={ "host": "proxy.example.com", - "password": "W# 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 bea1ef2e..583d8ad4 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="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="tags", + type="all", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e23..bd4f6161 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 c6f7c1af..85527a58 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": ["jastfxiyrqyjne"]}, + filter={"tags": ["djblp"]}, 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="quo", + smart_link_id="molestiae", ) 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="quo", + smart_link_id="molestiae", 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="quo", + smart_link_id="molestiae", ) 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="quo", + smart_link_id="molestiae", ) 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="et", + smart_link_id="deleniti", ) 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="et", + smart_link_id="deleniti", 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="et", + smart_link_id="deleniti", ) 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="et", + smart_link_id="deleniti", ) 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="porro", + smart_link_id="velit", ) 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="porro", + smart_link_id="velit", 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="porro", + smart_link_id="velit", ) 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="porro", + smart_link_id="velit", ) 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="sed", + smart_link_id="aut", ) 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="sed", + smart_link_id="aut", 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="sed", + smart_link_id="aut", ) 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="sed", + smart_link_id="aut", ) 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="omnis", + smart_link_id="at", ) 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="omnis", + smart_link_id="at", 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="omnis", + smart_link_id="at", ) 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="omnis", + smart_link_id="at", ) 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="deserunt", + smart_link_id="mollitia", ) 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="deserunt", + smart_link_id="mollitia", 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="deserunt", + smart_link_id="mollitia", ) 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="deserunt", + smart_link_id="mollitia", ) 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": ["jastfxiyrqyjne"]}, + filter={"tags": ["djblp"]}, 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="quo", + smart_link_id="molestiae", ) 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="quo", + smart_link_id="molestiae", 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="quo", + smart_link_id="molestiae", ) 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="quo", + smart_link_id="molestiae", ) 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="et", + smart_link_id="deleniti", ) 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="et", + smart_link_id="deleniti", 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="et", + smart_link_id="deleniti", ) 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="et", + smart_link_id="deleniti", ) 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="porro", + smart_link_id="velit", ) 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="porro", + smart_link_id="velit", 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="porro", + smart_link_id="velit", ) 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="porro", + smart_link_id="velit", ) 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="sed", + smart_link_id="aut", ) 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="sed", + smart_link_id="aut", 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="sed", + smart_link_id="aut", ) 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="sed", + smart_link_id="aut", ) 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="omnis", + smart_link_id="at", ) 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="omnis", + smart_link_id="at", 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="omnis", + smart_link_id="at", ) 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="omnis", + smart_link_id="at", ) 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="deserunt", + smart_link_id="mollitia", ) 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="deserunt", + smart_link_id="mollitia", 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="deserunt", + smart_link_id="mollitia", ) 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="deserunt", + smart_link_id="mollitia", ) 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 890bb549..a0094619 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": "qtckeenfdhivohu", - "tags": ["wrzfaseqsjnutwgmjjudhwoyt"], + "search": "xgfvrctvtczjyj", + "tags": ["ptdxwsdomcculouolgfrocef"], }, 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": "uutlfzmcylvif", - "tags": ["zylbgbieioeqarjoqd"], + "search": "iyjcjqbtalufqroowywx", + "tags": ["jmaziyfivg"], }, 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": "iyrscbmvlpmhmmgfqjsapwar", - "tags": ["dzuqripwrrxxyjow"], + "search": "tyfp", + "tags": ["yfpakykukocjamga"], }, 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": "ydixgdxzsmstujb", - "tags": ["dwlissbubw"], + "include_smart_links": False, + "search": "anzhawiuimrzawsvphnnfyen", + "tags": ["kjemox"], }, 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": "qtckeenfdhivohu", - "tags": ["wrzfaseqsjnutwgmjjudhwoyt"], + "search": "xgfvrctvtczjyj", + "tags": ["ptdxwsdomcculouolgfrocef"], }, 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": "uutlfzmcylvif", - "tags": ["zylbgbieioeqarjoqd"], + "search": "iyjcjqbtalufqroowywx", + "tags": ["jmaziyfivg"], }, 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": "iyrscbmvlpmhmmgfqjsapwar", - "tags": ["dzuqripwrrxxyjow"], + "search": "tyfp", + "tags": ["yfpakykukocjamga"], }, 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": "ydixgdxzsmstujb", - "tags": ["dwlissbubw"], + "include_smart_links": False, + "search": "anzhawiuimrzawsvphnnfyen", + "tags": ["kjemox"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 84d09924..15b93ac8 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="impedit", + tracking_link_id="totam", 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="impedit", + tracking_link_id="totam", 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="impedit", + tracking_link_id="totam", 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="impedit", + tracking_link_id="totam", 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="impedit", + tracking_link_id="totam", 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="impedit", + tracking_link_id="totam", 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="impedit", + tracking_link_id="totam", 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="impedit", + tracking_link_id="totam", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="ipsum", + tracking_link_id="laborum", 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="ipsum", + tracking_link_id="laborum", 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="ipsum", + tracking_link_id="laborum", 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="ipsum", + tracking_link_id="laborum", 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="ipsum", + tracking_link_id="laborum", 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="impedit", + tracking_link_id="totam", 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="impedit", + tracking_link_id="totam", 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="impedit", + tracking_link_id="totam", 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="impedit", + tracking_link_id="totam", 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="impedit", + tracking_link_id="totam", 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="impedit", + tracking_link_id="totam", 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="impedit", + tracking_link_id="totam", 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="impedit", + tracking_link_id="totam", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="ipsum", + tracking_link_id="laborum", 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="ipsum", + tracking_link_id="laborum", 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="ipsum", + tracking_link_id="laborum", 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="ipsum", + tracking_link_id="laborum", 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="ipsum", + tracking_link_id="laborum", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index ee02f653..f9dc6eab 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="rem", + trial_link_id="consectetur", 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="rem", + trial_link_id="consectetur", 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="rem", + trial_link_id="consectetur", 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="rem", + trial_link_id="consectetur", 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="omnis", + trial_link_id="voluptatibus", 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="omnis", + trial_link_id="voluptatibus", 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="omnis", + trial_link_id="voluptatibus", 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="omnis", + trial_link_id="voluptatibus", 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="omnis", + trial_link_id="voluptatibus", 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="itaque", + trial_link_id="eligendi", 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="itaque", + trial_link_id="eligendi", 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="itaque", + trial_link_id="eligendi", 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="itaque", + trial_link_id="eligendi", 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="itaque", + trial_link_id="eligendi", 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="rem", + trial_link_id="consectetur", 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="rem", + trial_link_id="consectetur", 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="rem", + trial_link_id="consectetur", 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="rem", + trial_link_id="consectetur", 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="omnis", + trial_link_id="voluptatibus", 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="omnis", + trial_link_id="voluptatibus", 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="omnis", + trial_link_id="voluptatibus", 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="omnis", + trial_link_id="voluptatibus", 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="omnis", + trial_link_id="voluptatibus", 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="itaque", + trial_link_id="eligendi", 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="itaque", + trial_link_id="eligendi", 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="itaque", + trial_link_id="eligendi", 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="itaque", + trial_link_id="eligendi", 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="itaque", + trial_link_id="eligendi", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 008f90fa..9a5e27e7 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="srnltqrwxbifcd", + name="fiedgasexepliwyqlwnn", ) 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="srnltqrwxbifcd", + name="fiedgasexepliwyqlwnn", ) 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="srnltqrwxbifcd", + name="fiedgasexepliwyqlwnn", ) 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="srnltqrwxbifcd", + name="fiedgasexepliwyqlwnn", ) @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="srnltqrwxbifcd", + name="fiedgasexepliwyqlwnn", ) 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="srnltqrwxbifcd", + name="fiedgasexepliwyqlwnn", ) 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="srnltqrwxbifcd", + name="fiedgasexepliwyqlwnn", ) 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="srnltqrwxbifcd", + name="fiedgasexepliwyqlwnn", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 6dac13ef7bfe10bdf41a445e2bbf733574b6ce49 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 19:12:38 +0000 Subject: [PATCH 087/249] 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_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 +-- 16 files changed, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index 89d96d03..8a02e0e2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4936b32be2f2af07d0a7f6db433e3697cc33e786fc6a160ba03469396e400619.yml -openapi_spec_hash: 70ddc04518b8814735b0f9226f1a9545 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0a38bc63e4392fdcb21b8976786bbadccddc6b5f5c7206cd2bbcd2a6d4d974a2.yml +openapi_spec_hash: 17f7d8002fc1bf0440eed04981b7288c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index a6c92cee..cac757f8 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="autem", + message_id="fugit", 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="autem", + message_id="fugit", 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="autem", + message_id="fugit", 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="autem", + message_id="fugit", 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="autem", + message_id="fugit", 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="autem", + message_id="fugit", 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="autem", + message_id="fugit", 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="autem", + message_id="fugit", 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="autem", + message_id="fugit", 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="autem", + message_id="fugit", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index d3c94b72..ed39a9ed 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="dicta", + list_id="maiores", 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="dicta", + list_id="maiores", 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="dicta", + list_id="maiores", 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="dicta", + list_id="maiores", 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="dicta", + list_id="maiores", 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="dicta", + list_id="maiores", 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="dicta", + list_id="maiores", 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="dicta", + list_id="maiores", 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="dicta", + list_id="maiores", 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="dicta", + list_id="maiores", 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="dicta", + list_id="maiores", 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="dicta", + list_id="maiores", 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="dicta", + list_id="maiores", 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="dicta", + list_id="maiores", 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="dicta", + list_id="maiores", 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="dicta", + list_id="maiores", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 57718d85..d809aa5d 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="error", + post_id="quis", 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="error", + post_id="quis", 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="error", + post_id="quis", 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="error", + post_id="quis", 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="error", + post_id="quis", 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="error", + post_id="quis", 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="error", + post_id="quis", 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="error", + post_id="quis", 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="error", + post_id="quis", 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="error", + post_id="quis", 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="error", + post_id="quis", 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="error", + post_id="quis", 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="error", + post_id="quis", 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="error", + post_id="quis", 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="error", + post_id="quis", 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="error", + post_id="quis", 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="error", + post_id="quis", 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="error", + post_id="quis", 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="error", + post_id="quis", 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="error", + post_id="quis", 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 aa735c97..7549791e 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 4b39ad0a..506c2ed9 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + story_id="et", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index e0865538..15dbf748 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", + "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( - "rerum", + "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( - "rerum", + "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( - "rerum", + "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( - "rerum", + "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( - "rerum", + "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 c3d2623f..a53780f3 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="minus", - auth_type="email_password", - cookies="culpa", + auth_id="sapiente", + auth_type="mobile_app", + cookies="dolor", custom_proxy={ "host": "proxy.example.com", - "password": ",d!V^MX4WI7$i6K5[i", + "password": '?{$9<="}aNYE(]o043.', "port": 8080, - "username": "eius", + "username": "dolores", }, - email="balistreri.wendell@example.com", + email="nicolas.philip@example.com", force_connect=False, - name="maxime", - password="&*RN< None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="minus", - auth_type="email_password", - cookies="culpa", + auth_id="sapiente", + auth_type="mobile_app", + cookies="dolor", custom_proxy={ "host": "proxy.example.com", - "password": ",d!V^MX4WI7$i6K5[i", + "password": '?{$9<="}aNYE(]o043.', "port": 8080, - "username": "eius", + "username": "dolores", }, - email="balistreri.wendell@example.com", + email="nicolas.philip@example.com", force_connect=False, - name="maxime", - password="&*RN< None: from_id=123, limit=10, skip_users="all", - type="all", + 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="all", + type="likes", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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 85527a58..a835b06a 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": ["djblp"]}, + filter={"tags": ["qvfhyyhtcefjdlfslyd"]}, 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="molestiae", + smart_link_id="fugiat", ) 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="molestiae", + smart_link_id="fugiat", 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="molestiae", + smart_link_id="fugiat", ) 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="molestiae", + smart_link_id="fugiat", ) 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="deleniti", + smart_link_id="mollitia", ) 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="deleniti", + smart_link_id="mollitia", 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="deleniti", + smart_link_id="mollitia", ) 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="deleniti", + smart_link_id="mollitia", ) 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="velit", + smart_link_id="sed", ) 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="velit", + smart_link_id="sed", 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="velit", + smart_link_id="sed", ) 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="velit", + smart_link_id="sed", ) 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="aut", + smart_link_id="est", ) 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="aut", + smart_link_id="est", 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="aut", + smart_link_id="est", ) 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="aut", + smart_link_id="est", ) 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="at", + smart_link_id="nihil", ) 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="at", + smart_link_id="nihil", 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="at", + smart_link_id="nihil", ) 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="at", + smart_link_id="nihil", ) 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="mollitia", + smart_link_id="distinctio", ) 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="mollitia", + smart_link_id="distinctio", 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="mollitia", + smart_link_id="distinctio", ) 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="mollitia", + smart_link_id="distinctio", ) 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": ["djblp"]}, + filter={"tags": ["qvfhyyhtcefjdlfslyd"]}, 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="molestiae", + smart_link_id="fugiat", ) 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="molestiae", + smart_link_id="fugiat", 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="molestiae", + smart_link_id="fugiat", ) 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="molestiae", + smart_link_id="fugiat", ) 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="deleniti", + smart_link_id="mollitia", ) 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="deleniti", + smart_link_id="mollitia", 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="deleniti", + smart_link_id="mollitia", ) 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="deleniti", + smart_link_id="mollitia", ) 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="velit", + smart_link_id="sed", ) 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="velit", + smart_link_id="sed", 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="velit", + smart_link_id="sed", ) 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="velit", + smart_link_id="sed", ) 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="aut", + smart_link_id="est", ) 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="aut", + smart_link_id="est", 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="aut", + smart_link_id="est", ) 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="aut", + smart_link_id="est", ) 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="at", + smart_link_id="nihil", ) 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="at", + smart_link_id="nihil", 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="at", + smart_link_id="nihil", ) 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="at", + smart_link_id="nihil", ) 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="mollitia", + smart_link_id="distinctio", ) 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="mollitia", + smart_link_id="distinctio", 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="mollitia", + smart_link_id="distinctio", ) 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="mollitia", + smart_link_id="distinctio", ) 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 a0094619..02cf1a7f 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": "xgfvrctvtczjyj", - "tags": ["ptdxwsdomcculouolgfrocef"], + "search": "cddgzwdvwjr", + "tags": ["hpqvkboomokvkrvgobddvphlh"], }, 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": "iyjcjqbtalufqroowywx", - "tags": ["jmaziyfivg"], + "search": "nhm", + "tags": ["esjhuoyxhgel"], }, 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": "tyfp", - "tags": ["yfpakykukocjamga"], + "search": "oepownldutqrnnljdbcnthspp", + "tags": ["tu"], }, 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": "anzhawiuimrzawsvphnnfyen", - "tags": ["kjemox"], + "include_smart_links": True, + "search": "zitequngauxtcqziwz", + "tags": ["zhgqfkuvjargtqmavwwqkyh"], }, 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": "xgfvrctvtczjyj", - "tags": ["ptdxwsdomcculouolgfrocef"], + "search": "cddgzwdvwjr", + "tags": ["hpqvkboomokvkrvgobddvphlh"], }, 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": "iyjcjqbtalufqroowywx", - "tags": ["jmaziyfivg"], + "search": "nhm", + "tags": ["esjhuoyxhgel"], }, 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": "tyfp", - "tags": ["yfpakykukocjamga"], + "search": "oepownldutqrnnljdbcnthspp", + "tags": ["tu"], }, 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": "anzhawiuimrzawsvphnnfyen", - "tags": ["kjemox"], + "include_smart_links": True, + "search": "zitequngauxtcqziwz", + "tags": ["zhgqfkuvjargtqmavwwqkyh"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 15b93ac8..0de4ebbe 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="totam", + tracking_link_id="dolores", 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="totam", + tracking_link_id="dolores", 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="totam", + tracking_link_id="dolores", 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="totam", + tracking_link_id="dolores", 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="totam", + tracking_link_id="dolores", 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="totam", + tracking_link_id="dolores", 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="totam", + tracking_link_id="dolores", 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="totam", + tracking_link_id="dolores", 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="laborum", + tracking_link_id="nobis", 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="laborum", + tracking_link_id="nobis", 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="laborum", + tracking_link_id="nobis", 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="laborum", + tracking_link_id="nobis", 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="laborum", + tracking_link_id="nobis", 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="totam", + tracking_link_id="dolores", 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="totam", + tracking_link_id="dolores", 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="totam", + tracking_link_id="dolores", 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="totam", + tracking_link_id="dolores", 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="totam", + tracking_link_id="dolores", 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="totam", + tracking_link_id="dolores", 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="totam", + tracking_link_id="dolores", 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="totam", + tracking_link_id="dolores", 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="laborum", + tracking_link_id="nobis", 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="laborum", + tracking_link_id="nobis", 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="laborum", + tracking_link_id="nobis", 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="laborum", + tracking_link_id="nobis", 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="laborum", + tracking_link_id="nobis", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index f9dc6eab..ae0990f8 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="consectetur", + trial_link_id="minus", 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="consectetur", + trial_link_id="minus", 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="consectetur", + trial_link_id="minus", 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="consectetur", + trial_link_id="minus", 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="voluptatibus", + trial_link_id="odio", 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="voluptatibus", + trial_link_id="odio", 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="voluptatibus", + trial_link_id="odio", 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="voluptatibus", + trial_link_id="odio", 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="voluptatibus", + trial_link_id="odio", 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="eligendi", + 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="eligendi", + 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="eligendi", + 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="eligendi", + 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="eligendi", + 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="sint", + trial_link_id="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="consectetur", + trial_link_id="minus", 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="consectetur", + trial_link_id="minus", 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="consectetur", + trial_link_id="minus", 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="consectetur", + trial_link_id="minus", 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="voluptatibus", + trial_link_id="odio", 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="voluptatibus", + trial_link_id="odio", 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="voluptatibus", + trial_link_id="odio", 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="voluptatibus", + trial_link_id="odio", 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="voluptatibus", + trial_link_id="odio", 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="eligendi", + 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="eligendi", + 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="eligendi", + 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="eligendi", + 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="eligendi", + trial_link_id="ut", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 9a5e27e7..eb46f093 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="fiedgasexepliwyqlwnn", + name="zstjthkqorjq", ) 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="fiedgasexepliwyqlwnn", + name="zstjthkqorjq", ) 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="fiedgasexepliwyqlwnn", + name="zstjthkqorjq", ) 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="fiedgasexepliwyqlwnn", + name="zstjthkqorjq", ) @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="fiedgasexepliwyqlwnn", + name="zstjthkqorjq", ) 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="fiedgasexepliwyqlwnn", + name="zstjthkqorjq", ) 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="fiedgasexepliwyqlwnn", + name="zstjthkqorjq", ) 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="fiedgasexepliwyqlwnn", + name="zstjthkqorjq", ) @pytest.mark.skip(reason="Mock server tests are disabled") From b4de79adfe74b16d971c2ac5c0483c6ea2823b17 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 20:12:34 +0000 Subject: [PATCH 088/249] 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_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 40 +++---- tests/api_resources/test_tracking_links.py | 52 ++++----- 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 8a02e0e2..6832043f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0a38bc63e4392fdcb21b8976786bbadccddc6b5f5c7206cd2bbcd2a6d4d974a2.yml -openapi_spec_hash: 17f7d8002fc1bf0440eed04981b7288c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-17c8346ae2310da283cdf2555a0ec1ac2e47fea935518c95aeaa472cb8d00099.yml +openapi_spec_hash: 4c717bf5d92a82280ba7f629f3d29128 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index cac757f8..b0522fcb 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="fugit", + message_id="maiores", 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="fugit", + message_id="maiores", 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="fugit", + message_id="maiores", 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="fugit", + message_id="maiores", 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="fugit", + message_id="maiores", 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="fugit", + message_id="maiores", 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="fugit", + message_id="maiores", 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="fugit", + message_id="maiores", 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="fugit", + message_id="maiores", 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="fugit", + message_id="maiores", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index ed39a9ed..4641577f 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="maiores", + list_id="rerum", 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="maiores", + list_id="rerum", 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="maiores", + list_id="rerum", 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="maiores", + list_id="rerum", 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="maiores", + list_id="rerum", 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="maiores", + list_id="rerum", 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="maiores", + list_id="rerum", 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="maiores", + list_id="rerum", 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="maiores", + list_id="rerum", 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="maiores", + list_id="rerum", 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="maiores", + list_id="rerum", 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="maiores", + list_id="rerum", 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="maiores", + list_id="rerum", 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="maiores", + list_id="rerum", 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="maiores", + list_id="rerum", 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="maiores", + list_id="rerum", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index d809aa5d..0ddf0672 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="quis", + post_id="omnis", 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="quis", + post_id="omnis", 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="quis", + post_id="omnis", 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="quis", + post_id="omnis", 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="quis", + post_id="omnis", 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="quis", + post_id="omnis", 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="quis", + post_id="omnis", 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="quis", + post_id="omnis", 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="quis", + post_id="omnis", 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="quis", + post_id="omnis", 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="quis", + post_id="omnis", 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="quis", + post_id="omnis", 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="quis", + post_id="omnis", 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="quis", + post_id="omnis", 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="quis", + post_id="omnis", 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="quis", + post_id="omnis", 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="quis", + post_id="omnis", 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="quis", + post_id="omnis", 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="quis", + post_id="omnis", 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="quis", + post_id="omnis", 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 7549791e..aa735c97 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 fc7b1635..9c80483e 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 506c2ed9..0ad56d28 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 15dbf748..28025ddd 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", + "deleniti", ) 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", + "deleniti", ) 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", + "deleniti", ) 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", + "deleniti", ) 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", + "deleniti", ) 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", + "deleniti", ) 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 a53780f3..a27dab28 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="sapiente", - auth_type="mobile_app", - cookies="dolor", + auth_id="sint", + auth_type="raw_data", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": '?{$9<="}aNYE(]o043.', + "password": "II?02_puKcrJz<'MdAV", "port": 8080, - "username": "dolores", + "username": "odio", }, - email="nicolas.philip@example.com", - force_connect=False, - name="officia", - password="J}g;)Kon\\q None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="sapiente", - auth_type="mobile_app", - cookies="dolor", + auth_id="sint", + auth_type="raw_data", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": '?{$9<="}aNYE(]o043.', + "password": "II?02_puKcrJz<'MdAV", "port": 8080, - "username": "dolores", + "username": "odio", }, - email="nicolas.philip@example.com", - force_connect=False, - name="officia", - password="J}g;)Kon\\q None: from_id=123, limit=10, skip_users="all", - type="likes", + 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="likes", + 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 a835b06a..97955b2c 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": ["qvfhyyhtcefjdlfslyd"]}, + filter={"tags": ["xyy"]}, 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="mollitia", + smart_link_id="nesciunt", ) 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="mollitia", + smart_link_id="nesciunt", 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="mollitia", + smart_link_id="nesciunt", ) 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="mollitia", + smart_link_id="nesciunt", ) 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="sed", + smart_link_id="ut", ) 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="sed", + smart_link_id="ut", 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="sed", + smart_link_id="ut", ) 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="sed", + smart_link_id="ut", ) 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="est", + smart_link_id="corrupti", ) 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="est", + smart_link_id="corrupti", 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="est", + smart_link_id="corrupti", ) 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="est", + smart_link_id="corrupti", ) 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="nihil", + smart_link_id="et", ) 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="nihil", + smart_link_id="et", 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="nihil", + smart_link_id="et", ) 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="nihil", + smart_link_id="et", ) 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="distinctio", + smart_link_id="ea", ) 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="distinctio", + smart_link_id="ea", 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="distinctio", + smart_link_id="ea", ) 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="distinctio", + smart_link_id="ea", ) 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": ["qvfhyyhtcefjdlfslyd"]}, + filter={"tags": ["xyy"]}, 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="mollitia", + smart_link_id="nesciunt", ) 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="mollitia", + smart_link_id="nesciunt", 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="mollitia", + smart_link_id="nesciunt", ) 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="mollitia", + smart_link_id="nesciunt", ) 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="sed", + smart_link_id="ut", ) 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="sed", + smart_link_id="ut", 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="sed", + smart_link_id="ut", ) 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="sed", + smart_link_id="ut", ) 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="est", + smart_link_id="corrupti", ) 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="est", + smart_link_id="corrupti", 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="est", + smart_link_id="corrupti", ) 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="est", + smart_link_id="corrupti", ) 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="nihil", + smart_link_id="et", ) 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="nihil", + smart_link_id="et", 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="nihil", + smart_link_id="et", ) 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="nihil", + smart_link_id="et", ) 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="distinctio", + smart_link_id="ea", ) 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="distinctio", + smart_link_id="ea", 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="distinctio", + smart_link_id="ea", ) 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="distinctio", + 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 02cf1a7f..7c3115fa 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": "cddgzwdvwjr", - "tags": ["hpqvkboomokvkrvgobddvphlh"], + "search": "hvjfxiabhgfxiwkfidfsqago", + "tags": ["ekcdgycaikbtlpzixshnvljpl"], }, 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": "nhm", - "tags": ["esjhuoyxhgel"], + "search": "cvlenqnmrowyce", + "tags": ["azdppxjh"], }, 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": "oepownldutqrnnljdbcnthspp", - "tags": ["tu"], + "include_smart_links": False, + "search": "wynvlnpf", + "tags": ["avlkzdjegzjylcenclu"], }, 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": "zitequngauxtcqziwz", - "tags": ["zhgqfkuvjargtqmavwwqkyh"], + "include_smart_links": False, + "search": "eoowmusipttsddhm", + "tags": ["pvgjw"], }, 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": "cddgzwdvwjr", - "tags": ["hpqvkboomokvkrvgobddvphlh"], + "search": "hvjfxiabhgfxiwkfidfsqago", + "tags": ["ekcdgycaikbtlpzixshnvljpl"], }, 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": "nhm", - "tags": ["esjhuoyxhgel"], + "search": "cvlenqnmrowyce", + "tags": ["azdppxjh"], }, 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": "oepownldutqrnnljdbcnthspp", - "tags": ["tu"], + "include_smart_links": False, + "search": "wynvlnpf", + "tags": ["avlkzdjegzjylcenclu"], }, 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": "zitequngauxtcqziwz", - "tags": ["zhgqfkuvjargtqmavwwqkyh"], + "include_smart_links": False, + "search": "eoowmusipttsddhm", + "tags": ["pvgjw"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 0de4ebbe..12efc65e 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="dolores", + tracking_link_id="veniam", 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="dolores", + tracking_link_id="veniam", 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="dolores", + tracking_link_id="veniam", 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="dolores", + tracking_link_id="veniam", 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="dolores", + tracking_link_id="veniam", 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="dolores", + tracking_link_id="veniam", 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="dolores", + tracking_link_id="veniam", 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="dolores", + tracking_link_id="veniam", 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="nobis", + tracking_link_id="sequi", 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="nobis", + tracking_link_id="sequi", 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="nobis", + tracking_link_id="sequi", 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="nobis", + tracking_link_id="sequi", 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="nobis", + tracking_link_id="sequi", 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="dolores", + tracking_link_id="veniam", 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="dolores", + tracking_link_id="veniam", 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="dolores", + tracking_link_id="veniam", 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="dolores", + tracking_link_id="veniam", 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="dolores", + tracking_link_id="veniam", 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="dolores", + tracking_link_id="veniam", 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="dolores", + tracking_link_id="veniam", 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="dolores", + tracking_link_id="veniam", 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="nobis", + tracking_link_id="sequi", 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="nobis", + tracking_link_id="sequi", 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="nobis", + tracking_link_id="sequi", 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="nobis", + tracking_link_id="sequi", 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="nobis", + tracking_link_id="sequi", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index ae0990f8..66db5555 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="expedita", + trial_link_id="nobis", 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="expedita", + trial_link_id="nobis", 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="expedita", + trial_link_id="nobis", 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="expedita", + trial_link_id="nobis", 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="expedita", + trial_link_id="nobis", 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="expedita", + trial_link_id="nobis", 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="expedita", + trial_link_id="nobis", 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="expedita", + trial_link_id="nobis", 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="minus", + trial_link_id="suscipit", 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="minus", + trial_link_id="suscipit", 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="minus", + trial_link_id="suscipit", 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="minus", + trial_link_id="suscipit", 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="odio", + trial_link_id="veniam", 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="odio", + trial_link_id="veniam", 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="odio", + trial_link_id="veniam", 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="odio", + trial_link_id="veniam", 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="odio", + trial_link_id="veniam", 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="expedita", + trial_link_id="nobis", 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="expedita", + trial_link_id="nobis", 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="expedita", + trial_link_id="nobis", 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="expedita", + trial_link_id="nobis", 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="expedita", + trial_link_id="nobis", 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="expedita", + trial_link_id="nobis", 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="expedita", + trial_link_id="nobis", 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="expedita", + trial_link_id="nobis", 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="minus", + trial_link_id="suscipit", 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="minus", + trial_link_id="suscipit", 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="minus", + trial_link_id="suscipit", 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="minus", + trial_link_id="suscipit", 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="odio", + trial_link_id="veniam", 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="odio", + trial_link_id="veniam", 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="odio", + trial_link_id="veniam", 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="odio", + trial_link_id="veniam", 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="odio", + trial_link_id="veniam", 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + trial_link_id="omnis", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index eb46f093..8038584b 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="zstjthkqorjq", + name="pisifwqmavftdrmjlq", ) 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="zstjthkqorjq", + name="pisifwqmavftdrmjlq", ) 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="zstjthkqorjq", + name="pisifwqmavftdrmjlq", ) 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="zstjthkqorjq", + name="pisifwqmavftdrmjlq", ) @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="zstjthkqorjq", + name="pisifwqmavftdrmjlq", ) 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="zstjthkqorjq", + name="pisifwqmavftdrmjlq", ) 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="zstjthkqorjq", + name="pisifwqmavftdrmjlq", ) 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="zstjthkqorjq", + name="pisifwqmavftdrmjlq", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 219a4ad76a013f4409e78c39bf98ff178063b0e5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 03:12:37 +0000 Subject: [PATCH 089/249] 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_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 84 +++++++++--------- 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, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6832043f..59a380cd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-17c8346ae2310da283cdf2555a0ec1ac2e47fea935518c95aeaa472cb8d00099.yml -openapi_spec_hash: 4c717bf5d92a82280ba7f629f3d29128 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b71f8cb6cb43ee90116fde1dcca89ec5030f9dbb879f437f0338a7754aff2ef1.yml +openapi_spec_hash: 0a4f68981383ff47b1f2a022953ec8c6 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index b0522fcb..e1d1981c 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="maiores", + message_id="harum", 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="maiores", + message_id="harum", 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="maiores", + message_id="harum", 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="maiores", + message_id="harum", 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="maiores", + message_id="harum", 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="maiores", + message_id="harum", 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="maiores", + message_id="harum", 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="maiores", + message_id="harum", 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="maiores", + message_id="harum", 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="maiores", + message_id="harum", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 4641577f..2eba9079 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="rerum", + list_id="explicabo", 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="rerum", + list_id="explicabo", 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="rerum", + list_id="explicabo", 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="rerum", + list_id="explicabo", 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="rerum", + list_id="explicabo", 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="rerum", + list_id="explicabo", 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="rerum", + list_id="explicabo", 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="rerum", + list_id="explicabo", 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="rerum", + list_id="explicabo", 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="rerum", + list_id="explicabo", 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="rerum", + list_id="explicabo", 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="rerum", + list_id="explicabo", 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="rerum", + list_id="explicabo", 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="rerum", + list_id="explicabo", 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="rerum", + list_id="explicabo", 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="rerum", + list_id="explicabo", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 0ddf0672..73907a29 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="omnis", + post_id="perspiciatis", 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="omnis", + post_id="perspiciatis", 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="omnis", + post_id="perspiciatis", 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="omnis", + post_id="perspiciatis", 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="omnis", + post_id="perspiciatis", 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="omnis", + post_id="perspiciatis", 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="omnis", + post_id="perspiciatis", 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="omnis", + post_id="perspiciatis", 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="omnis", + post_id="perspiciatis", 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="omnis", + post_id="perspiciatis", 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="omnis", + post_id="perspiciatis", 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="omnis", + post_id="perspiciatis", 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="omnis", + post_id="perspiciatis", 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="omnis", + post_id="perspiciatis", 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="omnis", + post_id="perspiciatis", 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="omnis", + post_id="perspiciatis", 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="omnis", + post_id="perspiciatis", 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="omnis", + post_id="perspiciatis", 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="omnis", + post_id="perspiciatis", 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="omnis", + post_id="perspiciatis", 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 aa735c97..444937ba 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 9c80483e..b5f3d61a 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 9664075f..544df889 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 0ad56d28..02fa509d 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="dolorem", + path_story_id="corporis", 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="dolorem", + path_story_id="corporis", 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="dolorem", + path_story_id="corporis", 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="dolorem", + path_story_id="corporis", 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="dolorem", + story_id="corporis", 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="dolorem", + story_id="corporis", 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="dolorem", + story_id="corporis", 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="dolorem", + story_id="corporis", 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="dolorem", + path_story_id="corporis", 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="dolorem", + path_story_id="corporis", 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="dolorem", + path_story_id="corporis", 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="dolorem", + path_story_id="corporis", 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="dolorem", + story_id="corporis", 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="dolorem", + story_id="corporis", 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="dolorem", + story_id="corporis", 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="dolorem", + story_id="corporis", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 28025ddd..fecc5dbc 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( - "deleniti", + "error", ) 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( - "deleniti", + "error", ) 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( - "deleniti", + "error", ) 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( - "deleniti", + "error", ) 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( - "deleniti", + "error", ) 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( - "deleniti", + "error", ) 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 a27dab28..76603cb1 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="sint", - auth_type="raw_data", - cookies="et", + auth_id="consequatur", + auth_type="email_password", + cookies="tempora", custom_proxy={ "host": "proxy.example.com", - "password": "II?02_puKcrJz<'MdAV", + "password": "V/_*3qq", "port": 8080, - "username": "odio", + "username": "quia", }, - email="barrows.wilton@example.com", - force_connect=True, - name="enim", - password="?zjsHl*QA)19o,-@Q+'^", + email="akeebler@example.org", + force_connect=False, + name="doloremque", + password="#@qTS_*#u]9(9s}B*n*^", proxy_country="uk", - user_agent="laudantium", - xbc="ad", + user_agent="earum", + xbc="sunt", ) 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="sint", - auth_type="raw_data", - cookies="et", + auth_id="consequatur", + auth_type="email_password", + cookies="tempora", custom_proxy={ "host": "proxy.example.com", - "password": "II?02_puKcrJz<'MdAV", + "password": "V/_*3qq", "port": 8080, - "username": "odio", + "username": "quia", }, - email="barrows.wilton@example.com", - force_connect=True, - name="enim", - password="?zjsHl*QA)19o,-@Q+'^", + email="akeebler@example.org", + force_connect=False, + name="doloremque", + password="#@qTS_*#u]9(9s}B*n*^", proxy_country="uk", - user_agent="laudantium", - xbc="ad", + user_agent="earum", + xbc="sunt", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index b2158856..bea1ef2e 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="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="purchases", + 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 65694e23..bd4f6161 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 97955b2c..7bd4448e 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": ["xyy"]}, + filter={"tags": ["degcs"]}, 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="voluptatem", ) 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="voluptatem", 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="voluptatem", ) 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="voluptatem", ) 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="nesciunt", + smart_link_id="omnis", ) 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="nesciunt", + smart_link_id="omnis", 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="nesciunt", + smart_link_id="omnis", ) 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="nesciunt", + smart_link_id="omnis", ) 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="corrupti", + smart_link_id="error", ) 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="corrupti", + smart_link_id="error", 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="corrupti", + smart_link_id="error", ) 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="corrupti", + smart_link_id="error", ) 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="et", + smart_link_id="aut", ) 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="et", + smart_link_id="aut", 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="et", + smart_link_id="aut", ) 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="et", + smart_link_id="aut", ) 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="ea", + smart_link_id="doloribus", ) 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="ea", + smart_link_id="doloribus", 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="ea", + smart_link_id="doloribus", ) 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="ea", + smart_link_id="doloribus", ) 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": ["xyy"]}, + filter={"tags": ["degcs"]}, 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="voluptatem", ) 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="voluptatem", 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="voluptatem", ) 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="voluptatem", ) 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="nesciunt", + smart_link_id="omnis", ) 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="nesciunt", + smart_link_id="omnis", 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="nesciunt", + smart_link_id="omnis", ) 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="nesciunt", + smart_link_id="omnis", ) 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="corrupti", + smart_link_id="error", ) 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="corrupti", + smart_link_id="error", 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="corrupti", + smart_link_id="error", ) 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="corrupti", + smart_link_id="error", ) 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="et", + smart_link_id="aut", ) 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="et", + smart_link_id="aut", 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="et", + smart_link_id="aut", ) 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="et", + smart_link_id="aut", ) 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="ea", + smart_link_id="doloribus", ) 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="ea", + smart_link_id="doloribus", 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="ea", + smart_link_id="doloribus", ) 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="ea", + smart_link_id="doloribus", ) 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 7c3115fa..9e66adb5 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": "hvjfxiabhgfxiwkfidfsqago", - "tags": ["ekcdgycaikbtlpzixshnvljpl"], + "search": "uuicoxxmmfjly", + "tags": ["kwhbstwthwc"], }, 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": "cvlenqnmrowyce", - "tags": ["azdppxjh"], + "search": "pnbibqlxnbarrlqgonnbq", + "tags": ["amiurac"], }, 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": "wynvlnpf", - "tags": ["avlkzdjegzjylcenclu"], + "include_smart_links": True, + "search": "skkpdwzzpwotxa", + "tags": ["eag"], }, 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": "eoowmusipttsddhm", - "tags": ["pvgjw"], + "search": "wfudjgwtkfonemyxoqaown", + "tags": ["bhfjsyzkdkz"], }, 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": "hvjfxiabhgfxiwkfidfsqago", - "tags": ["ekcdgycaikbtlpzixshnvljpl"], + "search": "uuicoxxmmfjly", + "tags": ["kwhbstwthwc"], }, 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": "cvlenqnmrowyce", - "tags": ["azdppxjh"], + "search": "pnbibqlxnbarrlqgonnbq", + "tags": ["amiurac"], }, 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": "wynvlnpf", - "tags": ["avlkzdjegzjylcenclu"], + "include_smart_links": True, + "search": "skkpdwzzpwotxa", + "tags": ["eag"], }, 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": "eoowmusipttsddhm", - "tags": ["pvgjw"], + "search": "wfudjgwtkfonemyxoqaown", + "tags": ["bhfjsyzkdkz"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 12efc65e..6301fcfa 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="veniam", + tracking_link_id="saepe", 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="veniam", + tracking_link_id="saepe", 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="veniam", + tracking_link_id="saepe", 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="veniam", + tracking_link_id="saepe", 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="veniam", + tracking_link_id="saepe", 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="veniam", + tracking_link_id="saepe", 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="veniam", + tracking_link_id="saepe", 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="veniam", + tracking_link_id="saepe", 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="assumenda", 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="assumenda", 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="assumenda", 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="assumenda", 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="assumenda", 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="veniam", + tracking_link_id="saepe", 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="veniam", + tracking_link_id="saepe", 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="veniam", + tracking_link_id="saepe", 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="veniam", + tracking_link_id="saepe", 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="veniam", + tracking_link_id="saepe", 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="veniam", + tracking_link_id="saepe", 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="veniam", + tracking_link_id="saepe", 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="veniam", + tracking_link_id="saepe", 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="assumenda", 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="assumenda", 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="assumenda", 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="assumenda", 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="assumenda", 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + tracking_link_id="eligendi", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 66db5555..14e31bf9 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="suscipit", + trial_link_id="sit", 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="suscipit", + trial_link_id="sit", 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="suscipit", + trial_link_id="sit", 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="suscipit", + trial_link_id="sit", 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="omnis", + trial_link_id="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="suscipit", + trial_link_id="sit", 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="suscipit", + trial_link_id="sit", 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="suscipit", + trial_link_id="sit", 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="suscipit", + trial_link_id="sit", 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="omnis", + trial_link_id="vel", 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="vel", 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="vel", 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="vel", 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="vel", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 8038584b..485bf834 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="pisifwqmavftdrmjlq", + name="rvsik", ) 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="pisifwqmavftdrmjlq", + name="rvsik", ) 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="pisifwqmavftdrmjlq", + name="rvsik", ) 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="pisifwqmavftdrmjlq", + name="rvsik", ) @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="pisifwqmavftdrmjlq", + name="rvsik", ) 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="pisifwqmavftdrmjlq", + name="rvsik", ) 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="pisifwqmavftdrmjlq", + name="rvsik", ) 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="pisifwqmavftdrmjlq", + name="rvsik", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 2a9d43da2583fc5787269d8419544ba0ed3256f6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 06:12:35 +0000 Subject: [PATCH 090/249] 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 | 100 +++++++++--------- 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, 272 insertions(+), 272 deletions(-) diff --git a/.stats.yml b/.stats.yml index 59a380cd..5f7b3443 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b71f8cb6cb43ee90116fde1dcca89ec5030f9dbb879f437f0338a7754aff2ef1.yml -openapi_spec_hash: 0a4f68981383ff47b1f2a022953ec8c6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a907e754426fe187ceb85344916e070498a0c810938f1ad23555322651de017b.yml +openapi_spec_hash: 3fa5aa5cc7a3422378364fb7b0876b2c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index e1d1981c..4d16e61a 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="harum", + message_id="incidunt", 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="harum", + message_id="incidunt", 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="harum", + message_id="incidunt", 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="harum", + message_id="incidunt", 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="harum", + message_id="incidunt", 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="harum", + message_id="incidunt", 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="harum", + message_id="incidunt", 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="harum", + message_id="incidunt", 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="harum", + message_id="incidunt", 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="harum", + message_id="incidunt", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 2eba9079..cd43c0b0 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="explicabo", + 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="explicabo", + 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="explicabo", + 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="explicabo", + 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="explicabo", + 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="explicabo", + 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="explicabo", + 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="explicabo", + 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="explicabo", + 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="explicabo", + 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="explicabo", + 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="explicabo", + 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="explicabo", + 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="explicabo", + 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="explicabo", + 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="explicabo", + 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 73907a29..ba29aae1 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="perspiciatis", + post_id="culpa", 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="perspiciatis", + post_id="culpa", 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="perspiciatis", + post_id="culpa", 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="perspiciatis", + post_id="culpa", 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="perspiciatis", + post_id="culpa", 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="perspiciatis", + post_id="culpa", 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="perspiciatis", + post_id="culpa", 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="perspiciatis", + post_id="culpa", 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="perspiciatis", + post_id="culpa", 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="perspiciatis", + post_id="culpa", 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="perspiciatis", + post_id="culpa", 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="perspiciatis", + post_id="culpa", 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="perspiciatis", + post_id="culpa", 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="perspiciatis", + post_id="culpa", 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="perspiciatis", + post_id="culpa", 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="perspiciatis", + post_id="culpa", 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="perspiciatis", + post_id="culpa", 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="perspiciatis", + post_id="culpa", 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="perspiciatis", + post_id="culpa", 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="perspiciatis", + post_id="culpa", 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 444937ba..aa735c97 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 b5f3d61a..9c80483e 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 02fa509d..506c2ed9 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + story_id="et", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index fecc5dbc..650aef2a 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( - "error", + "nihil", ) 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( - "error", + "nihil", ) 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( - "error", + "nihil", ) 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( - "error", + "nihil", ) 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( - "error", + "nihil", ) 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( - "error", + "nihil", ) 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 76603cb1..a14cb238 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="consequatur", - auth_type="email_password", - cookies="tempora", + auth_id="dignissimos", + auth_type="raw_data", + cookies="rerum", custom_proxy={ "host": "proxy.example.com", - "password": "V/_*3qq", + "password": "_!kbcXtI", "port": 8080, - "username": "quia", + "username": "ut", }, - email="akeebler@example.org", - force_connect=False, - name="doloremque", - password="#@qTS_*#u]9(9s}B*n*^", + email="lincoln.stark@example.org", + force_connect=True, + name="quod", + password="pK[8lAY)$(??uF", proxy_country="uk", - user_agent="earum", - xbc="sunt", + user_agent="modi", + 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="consequatur", - auth_type="email_password", - cookies="tempora", + auth_id="dignissimos", + auth_type="raw_data", + cookies="rerum", custom_proxy={ "host": "proxy.example.com", - "password": "V/_*3qq", + "password": "_!kbcXtI", "port": 8080, - "username": "quia", + "username": "ut", }, - email="akeebler@example.org", - force_connect=False, - name="doloremque", - password="#@qTS_*#u]9(9s}B*n*^", + email="lincoln.stark@example.org", + force_connect=True, + name="quod", + password="pK[8lAY)$(??uF", proxy_country="uk", - user_agent="earum", - xbc="sunt", + user_agent="modi", + 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 3597ede6..9249f386 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 bea1ef2e..4d3e426f 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="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="tags", + 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 7bd4448e..8d279d60 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": ["degcs"]}, + filter={"tags": ["mvrfphrlxig"]}, 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="voluptatem", + smart_link_id="repudiandae", ) 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="voluptatem", + smart_link_id="repudiandae", 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="voluptatem", + smart_link_id="repudiandae", ) 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="voluptatem", + smart_link_id="repudiandae", ) 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="omnis", + smart_link_id="odio", ) 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="omnis", + smart_link_id="odio", 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="omnis", + smart_link_id="odio", ) 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="omnis", + smart_link_id="odio", ) 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="error", + smart_link_id="minus", ) 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="error", + smart_link_id="minus", 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="error", + smart_link_id="minus", ) 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="error", + smart_link_id="minus", ) 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="aut", + smart_link_id="eveniet", ) 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="aut", + smart_link_id="eveniet", 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="aut", + smart_link_id="eveniet", ) 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="aut", + smart_link_id="eveniet", ) 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="doloribus", + smart_link_id="porro", ) 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="doloribus", + smart_link_id="porro", 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="doloribus", + smart_link_id="porro", ) 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="doloribus", + smart_link_id="porro", ) 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": ["degcs"]}, + filter={"tags": ["mvrfphrlxig"]}, 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="voluptatem", + smart_link_id="repudiandae", ) 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="voluptatem", + smart_link_id="repudiandae", 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="voluptatem", + smart_link_id="repudiandae", ) 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="voluptatem", + smart_link_id="repudiandae", ) 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="omnis", + smart_link_id="odio", ) 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="omnis", + smart_link_id="odio", 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="omnis", + smart_link_id="odio", ) 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="omnis", + smart_link_id="odio", ) 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="error", + smart_link_id="minus", ) 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="error", + smart_link_id="minus", 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="error", + smart_link_id="minus", ) 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="error", + smart_link_id="minus", ) 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="aut", + smart_link_id="eveniet", ) 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="aut", + smart_link_id="eveniet", 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="aut", + smart_link_id="eveniet", ) 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="aut", + smart_link_id="eveniet", ) 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="doloribus", + smart_link_id="porro", ) 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="doloribus", + smart_link_id="porro", 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="doloribus", + smart_link_id="porro", ) 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="doloribus", + smart_link_id="porro", ) 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 9e66adb5..3e46bdb1 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": "uuicoxxmmfjly", - "tags": ["kwhbstwthwc"], + "search": "xzgdnyyufjx", + "tags": ["ntsrrdncyigyfqsbo"], }, 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": "pnbibqlxnbarrlqgonnbq", - "tags": ["amiurac"], + "search": "qyvskqll", + "tags": ["lzejxlhkznzjcdpfwzrgqxnr"], }, 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": "skkpdwzzpwotxa", - "tags": ["eag"], + "include_smart_links": False, + "search": "dreitv", + "tags": ["pyjfkrm"], }, 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": "wfudjgwtkfonemyxoqaown", - "tags": ["bhfjsyzkdkz"], + "include_smart_links": True, + "search": "gaeqmxvo", + "tags": ["bhidbkyzoiowtjrkx"], }, 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": "uuicoxxmmfjly", - "tags": ["kwhbstwthwc"], + "search": "xzgdnyyufjx", + "tags": ["ntsrrdncyigyfqsbo"], }, 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": "pnbibqlxnbarrlqgonnbq", - "tags": ["amiurac"], + "search": "qyvskqll", + "tags": ["lzejxlhkznzjcdpfwzrgqxnr"], }, 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": "skkpdwzzpwotxa", - "tags": ["eag"], + "include_smart_links": False, + "search": "dreitv", + "tags": ["pyjfkrm"], }, 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": "wfudjgwtkfonemyxoqaown", - "tags": ["bhfjsyzkdkz"], + "include_smart_links": True, + "search": "gaeqmxvo", + "tags": ["bhidbkyzoiowtjrkx"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 6301fcfa..3cd63641 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="eligendi", + tracking_link_id="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="eligendi", + tracking_link_id="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 14e31bf9..c882ac26 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="et", + trial_link_id="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + trial_link_id="ipsa", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 485bf834..f740af04 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="rvsik", + name="hrcy", ) 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="rvsik", + name="hrcy", ) 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="rvsik", + name="hrcy", ) 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="rvsik", + name="hrcy", ) @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="rvsik", + name="hrcy", ) 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="rvsik", + name="hrcy", ) 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="rvsik", + name="hrcy", ) 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="rvsik", + name="hrcy", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 8e6951a2d77aa5c1e7bf04346006b23aac571f12 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 09:12:39 +0000 Subject: [PATCH 091/249] 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 | 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, 268 insertions(+), 268 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5f7b3443..6e9c5a97 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a907e754426fe187ceb85344916e070498a0c810938f1ad23555322651de017b.yml -openapi_spec_hash: 3fa5aa5cc7a3422378364fb7b0876b2c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c2f88e1934d9f443e45c12470acb6415baa953e79f2e7493e3680d67003c8a83.yml +openapi_spec_hash: 08fffce664e4f3dd0aaaaeb72f039989 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 4d16e61a..ce398661 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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 cd43c0b0..382b1bf3 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index ba29aae1..37688227 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="culpa", + post_id="labore", 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="culpa", + post_id="labore", 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="culpa", + post_id="labore", 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="culpa", + post_id="labore", 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="culpa", + post_id="labore", 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="culpa", + post_id="labore", 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="culpa", + post_id="labore", 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="culpa", + post_id="labore", 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="culpa", + post_id="labore", 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="culpa", + post_id="labore", 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="culpa", + post_id="labore", 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="culpa", + post_id="labore", 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="culpa", + post_id="labore", 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="culpa", + post_id="labore", 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="culpa", + post_id="labore", 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="culpa", + post_id="labore", 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="culpa", + post_id="labore", 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="culpa", + post_id="labore", 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="culpa", + post_id="labore", 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="culpa", + post_id="labore", 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 aa735c97..444937ba 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 9c80483e..2ced6cb5 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075f..544df889 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 506c2ed9..e2c05faa 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="excepturi", 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="excepturi", 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="excepturi", 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="excepturi", 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="excepturi", 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="excepturi", 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="excepturi", 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="excepturi", 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="excepturi", 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="excepturi", 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="excepturi", 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="excepturi", 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="excepturi", 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="excepturi", 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="excepturi", 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="excepturi", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 650aef2a..025ea850 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( - "nihil", + "expedita", ) 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( - "nihil", + "expedita", ) 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( - "nihil", + "expedita", ) 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( - "nihil", + "expedita", ) 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( - "nihil", + "expedita", ) 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( - "nihil", + "expedita", ) 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 a14cb238..123d6542 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="dignissimos", + auth_id="facilis", auth_type="raw_data", - cookies="rerum", + cookies="dolorum", custom_proxy={ "host": "proxy.example.com", - "password": "_!kbcXtI", + "password": "%nv|d{yS7mQ+Y=){", "port": 8080, - "username": "ut", + "username": "rerum", }, - email="lincoln.stark@example.org", + email="darwin27@example.com", force_connect=True, - name="quod", - password="pK[8lAY)$(??uF", - proxy_country="uk", - user_agent="modi", - xbc="aut", + name="expedita", + password=",o\\Pc2&B", + proxy_country="us", + user_agent="ea", + xbc="velit", ) 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="dignissimos", + auth_id="facilis", auth_type="raw_data", - cookies="rerum", + cookies="dolorum", custom_proxy={ "host": "proxy.example.com", - "password": "_!kbcXtI", + "password": "%nv|d{yS7mQ+Y=){", "port": 8080, - "username": "ut", + "username": "rerum", }, - email="lincoln.stark@example.org", + email="darwin27@example.com", force_connect=True, - name="quod", - password="pK[8lAY)$(??uF", - proxy_country="uk", - user_agent="modi", - xbc="aut", + name="expedita", + password=",o\\Pc2&B", + proxy_country="us", + user_agent="ea", + xbc="velit", ) 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 9249f386..3597ede6 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 4d3e426f..bea1ef2e 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_smart_links.py b/tests/api_resources/test_smart_links.py index 8d279d60..bc7b2338 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": ["mvrfphrlxig"]}, + filter={"tags": ["any"]}, 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="repudiandae", + smart_link_id="velit", ) 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="repudiandae", + smart_link_id="velit", 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="repudiandae", + smart_link_id="velit", ) 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="repudiandae", + smart_link_id="velit", ) 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="odio", + smart_link_id="in", ) 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="odio", + smart_link_id="in", 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="odio", + smart_link_id="in", ) 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="odio", + smart_link_id="in", ) 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="et", ) 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="et", 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="et", ) 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="et", ) 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="minus", + smart_link_id="ut", ) 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="minus", + smart_link_id="ut", 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="minus", + smart_link_id="ut", ) 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="minus", + smart_link_id="ut", ) 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="eveniet", + smart_link_id="in", ) 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="eveniet", + smart_link_id="in", 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="eveniet", + smart_link_id="in", ) 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="eveniet", + smart_link_id="in", ) 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="porro", + smart_link_id="possimus", ) 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="porro", + smart_link_id="possimus", 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="porro", + smart_link_id="possimus", ) 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="porro", + smart_link_id="possimus", ) 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": ["mvrfphrlxig"]}, + filter={"tags": ["any"]}, 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="repudiandae", + smart_link_id="velit", ) 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="repudiandae", + smart_link_id="velit", 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="repudiandae", + smart_link_id="velit", ) 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="repudiandae", + smart_link_id="velit", ) 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="odio", + smart_link_id="in", ) 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="odio", + smart_link_id="in", 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="odio", + smart_link_id="in", ) 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="odio", + smart_link_id="in", ) 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="et", ) 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="et", 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="et", ) 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="et", ) 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="minus", + smart_link_id="ut", ) 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="minus", + smart_link_id="ut", 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="minus", + smart_link_id="ut", ) 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="minus", + smart_link_id="ut", ) 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="eveniet", + smart_link_id="in", ) 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="eveniet", + smart_link_id="in", 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="eveniet", + smart_link_id="in", ) 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="eveniet", + smart_link_id="in", ) 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="porro", + smart_link_id="possimus", ) 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="porro", + smart_link_id="possimus", 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="porro", + smart_link_id="possimus", ) 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="porro", + 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 3e46bdb1..16cde94f 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": "xzgdnyyufjx", - "tags": ["ntsrrdncyigyfqsbo"], + "search": "maovzhhylccyswgu", + "tags": ["xgiujyllrqupmkl"], }, 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": "qyvskqll", - "tags": ["lzejxlhkznzjcdpfwzrgqxnr"], + "search": "ucfpxpanlqkkvjduxnul", + "tags": ["tjogxwvq"], }, 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": "dreitv", - "tags": ["pyjfkrm"], + "include_smart_links": True, + "search": "kj", + "tags": ["qdctjatpdjzetxni"], }, 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": "gaeqmxvo", - "tags": ["bhidbkyzoiowtjrkx"], + "search": "tezxbgoigzvqsslwfjtjpxmek", + "tags": ["c"], }, 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": "xzgdnyyufjx", - "tags": ["ntsrrdncyigyfqsbo"], + "search": "maovzhhylccyswgu", + "tags": ["xgiujyllrqupmkl"], }, 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": "qyvskqll", - "tags": ["lzejxlhkznzjcdpfwzrgqxnr"], + "search": "ucfpxpanlqkkvjduxnul", + "tags": ["tjogxwvq"], }, 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": "dreitv", - "tags": ["pyjfkrm"], + "include_smart_links": True, + "search": "kj", + "tags": ["qdctjatpdjzetxni"], }, 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": "gaeqmxvo", - "tags": ["bhidbkyzoiowtjrkx"], + "search": "tezxbgoigzvqsslwfjtjpxmek", + "tags": ["c"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 3cd63641..7336fd22 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="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="laborum", + 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="laborum", + 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="laborum", + 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="laborum", + 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="laborum", + 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="laborum", + 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="laborum", + 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="repellendus", + tracking_link_id="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="voluptas", + tracking_link_id="dolorum", 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="voluptas", + tracking_link_id="dolorum", 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="voluptas", + tracking_link_id="dolorum", 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="voluptas", + tracking_link_id="dolorum", 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="voluptas", + tracking_link_id="dolorum", 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="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="laborum", + 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="laborum", + 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="laborum", + 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="laborum", + 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="laborum", + 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="laborum", + 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="laborum", + 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="repellendus", + tracking_link_id="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="voluptas", + tracking_link_id="dolorum", 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="voluptas", + tracking_link_id="dolorum", 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="voluptas", + tracking_link_id="dolorum", 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="voluptas", + tracking_link_id="dolorum", 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="voluptas", + tracking_link_id="dolorum", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index c882ac26..f545bc21 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="hic", + trial_link_id="corporis", 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="hic", + trial_link_id="corporis", 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="hic", + trial_link_id="corporis", 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="hic", + trial_link_id="corporis", 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="hic", + trial_link_id="corporis", 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="hic", + trial_link_id="corporis", 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="hic", + trial_link_id="corporis", 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="hic", + trial_link_id="corporis", 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="error", 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="error", 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="error", 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="error", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", 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="ipsam", 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="ipsam", 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="ipsam", 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="ipsam", 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="ipsam", 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="hic", + trial_link_id="corporis", 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="hic", + trial_link_id="corporis", 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="hic", + trial_link_id="corporis", 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="hic", + trial_link_id="corporis", 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="hic", + trial_link_id="corporis", 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="hic", + trial_link_id="corporis", 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="hic", + trial_link_id="corporis", 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="hic", + trial_link_id="corporis", 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="error", 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="error", 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="error", 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="error", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", 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="ipsam", 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="ipsam", 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="ipsam", 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="ipsam", 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="ipsam", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index f740af04..3813aaac 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="hrcy", + name="xkjvqdqhgxlntmfvga", ) 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="hrcy", + name="xkjvqdqhgxlntmfvga", ) 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="hrcy", + name="xkjvqdqhgxlntmfvga", ) 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="hrcy", + name="xkjvqdqhgxlntmfvga", ) @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="hrcy", + name="xkjvqdqhgxlntmfvga", ) 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="hrcy", + name="xkjvqdqhgxlntmfvga", ) 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="hrcy", + name="xkjvqdqhgxlntmfvga", ) 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="hrcy", + name="xkjvqdqhgxlntmfvga", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 27d82bd7196e95abb0d4dae7b7d83880e9758e2e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 11:12:38 +0000 Subject: [PATCH 092/249] 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_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 +-- 18 files changed, 272 insertions(+), 272 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6e9c5a97..2bf41a86 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c2f88e1934d9f443e45c12470acb6415baa953e79f2e7493e3680d67003c8a83.yml -openapi_spec_hash: 08fffce664e4f3dd0aaaaeb72f039989 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-466df7bcb4d8dc90c8ee79faa1c560b85ab1cffd97a56ed9ee2fd8172edb7bd7.yml +openapi_spec_hash: bf811c8223f39a7e477652afe8e7800f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index ce398661..182beed3 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="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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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 382b1bf3..0079b377 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="fugit", + list_id="cum", 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="fugit", + list_id="cum", 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="fugit", + list_id="cum", 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="fugit", + list_id="cum", 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="fugit", + list_id="cum", 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="fugit", + list_id="cum", 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="fugit", + list_id="cum", 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="fugit", + list_id="cum", 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="fugit", + list_id="cum", 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="fugit", + list_id="cum", 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="fugit", + list_id="cum", 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="fugit", + list_id="cum", 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="fugit", + list_id="cum", 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="fugit", + list_id="cum", 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="fugit", + list_id="cum", 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="fugit", + list_id="cum", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 37688227..20d12215 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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 444937ba..aa735c97 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 2ced6cb5..9c80483e 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 544df889..9664075f 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 e2c05faa..4b39ad0a 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="excepturi", + path_story_id="facilis", 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="excepturi", + path_story_id="facilis", 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="excepturi", + path_story_id="facilis", 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="excepturi", + path_story_id="facilis", 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="excepturi", + story_id="facilis", 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="excepturi", + story_id="facilis", 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="excepturi", + story_id="facilis", 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="excepturi", + story_id="facilis", 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="excepturi", + path_story_id="facilis", 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="excepturi", + path_story_id="facilis", 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="excepturi", + path_story_id="facilis", 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="excepturi", + path_story_id="facilis", 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="excepturi", + story_id="facilis", 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="excepturi", + story_id="facilis", 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="excepturi", + story_id="facilis", 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="excepturi", + story_id="facilis", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 025ea850..ca2c75e8 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( - "expedita", + "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( - "expedita", + "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( - "expedita", + "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( - "expedita", + "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( - "expedita", + "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( - "expedita", + "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 123d6542..49c9a946 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="facilis", - auth_type="raw_data", - cookies="dolorum", + auth_id="eveniet", + auth_type="email_password", + cookies="qui", custom_proxy={ "host": "proxy.example.com", - "password": "%nv|d{yS7mQ+Y=){", + "password": "gjUi~ua", "port": 8080, - "username": "rerum", + "username": "commodi", }, - email="darwin27@example.com", + email="zulauf.brad@example.com", force_connect=True, - name="expedita", - password=",o\\Pc2&B", - proxy_country="us", - user_agent="ea", - xbc="velit", + name="quia", + password="?Lmk$iyXW19'gSiDR", + proxy_country="uk", + user_agent="animi", + 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="facilis", - auth_type="raw_data", - cookies="dolorum", + auth_id="eveniet", + auth_type="email_password", + cookies="qui", custom_proxy={ "host": "proxy.example.com", - "password": "%nv|d{yS7mQ+Y=){", + "password": "gjUi~ua", "port": 8080, - "username": "rerum", + "username": "commodi", }, - email="darwin27@example.com", + email="zulauf.brad@example.com", force_connect=True, - name="expedita", - password=",o\\Pc2&B", - proxy_country="us", - user_agent="ea", - xbc="velit", + name="quia", + password="?Lmk$iyXW19'gSiDR", + proxy_country="uk", + user_agent="animi", + xbc="nihil", ) 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 3597ede6..9249f386 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 bea1ef2e..0f3980c1 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="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="tags", + 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 bd4f6161..65694e23 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 bc7b2338..b9f7a756 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": ["any"]}, + filter={"tags": ["nlcytpt"]}, 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="velit", + smart_link_id="voluptatem", ) 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="velit", + smart_link_id="voluptatem", 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="velit", + smart_link_id="voluptatem", ) 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="velit", + smart_link_id="voluptatem", ) 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="in", + smart_link_id="officia", ) 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="in", + smart_link_id="officia", 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="in", + smart_link_id="officia", ) 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="in", + smart_link_id="officia", ) 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="et", + smart_link_id="sunt", ) 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="et", + smart_link_id="sunt", 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="et", + smart_link_id="sunt", ) 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="et", + smart_link_id="sunt", ) 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="ut", + smart_link_id="molestias", ) 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="ut", + smart_link_id="molestias", 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="ut", + smart_link_id="molestias", ) 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="ut", + smart_link_id="molestias", ) 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="in", + smart_link_id="nisi", ) 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="in", + smart_link_id="nisi", 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="in", + smart_link_id="nisi", ) 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="in", + smart_link_id="nisi", ) 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="possimus", + smart_link_id="quisquam", ) 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="possimus", + smart_link_id="quisquam", 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="possimus", + smart_link_id="quisquam", ) 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="possimus", + smart_link_id="quisquam", ) 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": ["any"]}, + filter={"tags": ["nlcytpt"]}, 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="velit", + smart_link_id="voluptatem", ) 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="velit", + smart_link_id="voluptatem", 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="velit", + smart_link_id="voluptatem", ) 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="velit", + smart_link_id="voluptatem", ) 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="in", + smart_link_id="officia", ) 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="in", + smart_link_id="officia", 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="in", + smart_link_id="officia", ) 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="in", + smart_link_id="officia", ) 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="et", + smart_link_id="sunt", ) 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="et", + smart_link_id="sunt", 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="et", + smart_link_id="sunt", ) 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="et", + smart_link_id="sunt", ) 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="ut", + smart_link_id="molestias", ) 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="ut", + smart_link_id="molestias", 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="ut", + smart_link_id="molestias", ) 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="ut", + smart_link_id="molestias", ) 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="in", + smart_link_id="nisi", ) 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="in", + smart_link_id="nisi", 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="in", + smart_link_id="nisi", ) 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="in", + smart_link_id="nisi", ) 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="possimus", + smart_link_id="quisquam", ) 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="possimus", + smart_link_id="quisquam", 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="possimus", + smart_link_id="quisquam", ) 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="possimus", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index 16cde94f..ebffa107 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": "maovzhhylccyswgu", - "tags": ["xgiujyllrqupmkl"], + "search": "ujkcvat", + "tags": ["wcnfjq"], }, 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": "ucfpxpanlqkkvjduxnul", - "tags": ["tjogxwvq"], + "search": "capqqvgcwpwl", + "tags": ["yykcymmvdk"], }, 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": "kj", - "tags": ["qdctjatpdjzetxni"], + "include_smart_links": False, + "search": "gaoyvtlzki", + "tags": ["zpk"], }, 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": "tezxbgoigzvqsslwfjtjpxmek", - "tags": ["c"], + "search": "zgsbikhdctaqwwk", + "tags": ["oknbetavreajkkrapigxzc"], }, 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": "maovzhhylccyswgu", - "tags": ["xgiujyllrqupmkl"], + "search": "ujkcvat", + "tags": ["wcnfjq"], }, 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": "ucfpxpanlqkkvjduxnul", - "tags": ["tjogxwvq"], + "search": "capqqvgcwpwl", + "tags": ["yykcymmvdk"], }, 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": "kj", - "tags": ["qdctjatpdjzetxni"], + "include_smart_links": False, + "search": "gaoyvtlzki", + "tags": ["zpk"], }, 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": "tezxbgoigzvqsslwfjtjpxmek", - "tags": ["c"], + "search": "zgsbikhdctaqwwk", + "tags": ["oknbetavreajkkrapigxzc"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 7336fd22..27107a9c 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="dolorum", + tracking_link_id="doloremque", 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="dolorum", + tracking_link_id="doloremque", 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="dolorum", + tracking_link_id="doloremque", 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="dolorum", + tracking_link_id="doloremque", 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="dolorum", + tracking_link_id="doloremque", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="dolorum", + tracking_link_id="doloremque", 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="dolorum", + tracking_link_id="doloremque", 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="dolorum", + tracking_link_id="doloremque", 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="dolorum", + tracking_link_id="doloremque", 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="dolorum", + tracking_link_id="doloremque", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index f545bc21..fee9d609 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="corporis", + trial_link_id="dolor", 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="corporis", + trial_link_id="dolor", 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="corporis", + trial_link_id="dolor", 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="corporis", + trial_link_id="dolor", 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="corporis", + trial_link_id="dolor", 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="corporis", + trial_link_id="dolor", 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="corporis", + trial_link_id="dolor", 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="corporis", + trial_link_id="dolor", 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="error", + trial_link_id="sunt", 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="error", + trial_link_id="sunt", 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="error", + trial_link_id="sunt", 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="error", + trial_link_id="sunt", 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="ipsam", + trial_link_id="asperiores", 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="ipsam", + trial_link_id="asperiores", 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="ipsam", + trial_link_id="asperiores", 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="ipsam", + trial_link_id="asperiores", 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="ipsam", + trial_link_id="asperiores", 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="corporis", + trial_link_id="dolor", 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="corporis", + trial_link_id="dolor", 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="corporis", + trial_link_id="dolor", 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="corporis", + trial_link_id="dolor", 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="corporis", + trial_link_id="dolor", 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="corporis", + trial_link_id="dolor", 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="corporis", + trial_link_id="dolor", 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="corporis", + trial_link_id="dolor", 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="error", + trial_link_id="sunt", 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="error", + trial_link_id="sunt", 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="error", + trial_link_id="sunt", 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="error", + trial_link_id="sunt", 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="ipsam", + trial_link_id="asperiores", 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="ipsam", + trial_link_id="asperiores", 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="ipsam", + trial_link_id="asperiores", 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="ipsam", + trial_link_id="asperiores", 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="ipsam", + trial_link_id="asperiores", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 3813aaac..4cc863ea 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="xkjvqdqhgxlntmfvga", + name="wybzwdztwa", ) 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="xkjvqdqhgxlntmfvga", + name="wybzwdztwa", ) 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="xkjvqdqhgxlntmfvga", + name="wybzwdztwa", ) 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="xkjvqdqhgxlntmfvga", + name="wybzwdztwa", ) @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="xkjvqdqhgxlntmfvga", + name="wybzwdztwa", ) 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="xkjvqdqhgxlntmfvga", + name="wybzwdztwa", ) 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="xkjvqdqhgxlntmfvga", + name="wybzwdztwa", ) 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="xkjvqdqhgxlntmfvga", + name="wybzwdztwa", ) @pytest.mark.skip(reason="Mock server tests are disabled") From fcbc734d81a4fe09530f934f619c65bbbbc21a8c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 13:12:39 +0000 Subject: [PATCH 093/249] 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 | 100 +++++++++--------- tests/api_resources/test_stored.py | 40 +++---- tests/api_resources/test_tracking_links.py | 72 ++++++------- tests/api_resources/test_trial_links.py | 68 ++++++------ tests/api_resources/test_user_lists.py | 16 +-- 16 files changed, 258 insertions(+), 258 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2bf41a86..249cf110 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-466df7bcb4d8dc90c8ee79faa1c560b85ab1cffd97a56ed9ee2fd8172edb7bd7.yml -openapi_spec_hash: bf811c8223f39a7e477652afe8e7800f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1889b56b61ae6215904ecc029bb2585aff87f44ee8eb0f4d095a012743f02466.yml +openapi_spec_hash: 947d943b18849afb6bb545c24098755b config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 182beed3..f9b244c6 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="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="repellat", + 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="repellat", + 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="repellat", + 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="repellat", + 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="repellat", + 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="repellat", + 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="repellat", + 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="repellat", + 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="repellat", + 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 0079b377..b5a78ff4 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="cum", + list_id="repellat", 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="cum", + list_id="repellat", 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="cum", + list_id="repellat", 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="cum", + list_id="repellat", 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="cum", + list_id="repellat", 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="cum", + list_id="repellat", 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="cum", + list_id="repellat", 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="cum", + list_id="repellat", 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="cum", + list_id="repellat", 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="cum", + list_id="repellat", 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="cum", + list_id="repellat", 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="cum", + list_id="repellat", 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="cum", + list_id="repellat", 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="cum", + list_id="repellat", 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="cum", + list_id="repellat", 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="cum", + list_id="repellat", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 20d12215..32f5d03f 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="quasi", 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="quasi", 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="quasi", 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="quasi", 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="quasi", 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="quasi", 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="quasi", 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="quasi", 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="quasi", 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="quasi", 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="quasi", 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="quasi", 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="quasi", 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="quasi", 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="quasi", 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="quasi", 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="quasi", 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="quasi", 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="quasi", 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="quasi", 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 aa735c97..444937ba 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 9c80483e..fc7b1635 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 9664075f..544df889 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 4b39ad0a..e4dffdf3 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="facilis", + path_story_id="a", 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="facilis", + path_story_id="a", 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="facilis", + path_story_id="a", 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="facilis", + path_story_id="a", 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="facilis", + story_id="a", 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="facilis", + story_id="a", 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="facilis", + story_id="a", 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="facilis", + story_id="a", 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="facilis", + path_story_id="a", 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="facilis", + path_story_id="a", 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="facilis", + path_story_id="a", 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="facilis", + path_story_id="a", 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="facilis", + story_id="a", 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="facilis", + story_id="a", 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="facilis", + story_id="a", 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="facilis", + story_id="a", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index ca2c75e8..b456ddec 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", + "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( - "id", + "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( - "id", + "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( - "id", + "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( - "id", + "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( - "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_authenticate.py b/tests/api_resources/test_authenticate.py index 49c9a946..4b7eb335 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_type="email_password", - cookies="qui", + auth_id="expedita", + auth_type="raw_data", + cookies="at", custom_proxy={ "host": "proxy.example.com", - "password": "gjUi~ua", + "password": "_;&Lq`:l,n09/Ow:7!", "port": 8080, - "username": "commodi", + "username": "temporibus", }, - email="zulauf.brad@example.com", + email="sandra34@example.net", force_connect=True, - name="quia", - password="?Lmk$iyXW19'gSiDR", + name="aut", + password="urriDNN#sCEr-ZXn5>", proxy_country="uk", - user_agent="animi", - xbc="nihil", + user_agent="libero", + xbc="asperiores", ) 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_type="email_password", - cookies="qui", + auth_id="expedita", + auth_type="raw_data", + cookies="at", custom_proxy={ "host": "proxy.example.com", - "password": "gjUi~ua", + "password": "_;&Lq`:l,n09/Ow:7!", "port": 8080, - "username": "commodi", + "username": "temporibus", }, - email="zulauf.brad@example.com", + email="sandra34@example.net", force_connect=True, - name="quia", - password="?Lmk$iyXW19'gSiDR", + name="aut", + password="urriDNN#sCEr-ZXn5>", proxy_country="uk", - user_agent="animi", - xbc="nihil", + user_agent="libero", + xbc="asperiores", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 0f3980c1..413a2df6 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="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="tips", + 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 b9f7a756..33eee837 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": ["nlcytpt"]}, + filter={"tags": ["yxvzzmroagghxcoklcuiliyn"]}, 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="voluptatem", + smart_link_id="doloribus", ) 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="voluptatem", + smart_link_id="doloribus", 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="voluptatem", + smart_link_id="doloribus", ) 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="voluptatem", + smart_link_id="doloribus", ) 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="officia", + smart_link_id="accusamus", ) 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="officia", + smart_link_id="accusamus", 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="officia", + smart_link_id="accusamus", ) 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="officia", + smart_link_id="accusamus", ) 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="sunt", + smart_link_id="saepe", ) 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="sunt", + smart_link_id="saepe", 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="sunt", + smart_link_id="saepe", ) 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="sunt", + smart_link_id="saepe", ) 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="molestias", + smart_link_id="atque", ) 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="molestias", + smart_link_id="atque", 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="molestias", + smart_link_id="atque", ) 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="molestias", + smart_link_id="atque", ) 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="nisi", + smart_link_id="voluptatem", ) 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="nisi", + smart_link_id="voluptatem", 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="nisi", + smart_link_id="voluptatem", ) 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="nisi", + smart_link_id="voluptatem", ) 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="quisquam", + smart_link_id="a", ) 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="quisquam", + smart_link_id="a", 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="quisquam", + smart_link_id="a", ) 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="quisquam", + smart_link_id="a", ) 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": ["nlcytpt"]}, + filter={"tags": ["yxvzzmroagghxcoklcuiliyn"]}, 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="voluptatem", + smart_link_id="doloribus", ) 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="voluptatem", + smart_link_id="doloribus", 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="voluptatem", + smart_link_id="doloribus", ) 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="voluptatem", + smart_link_id="doloribus", ) 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="officia", + smart_link_id="accusamus", ) 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="officia", + smart_link_id="accusamus", 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="officia", + smart_link_id="accusamus", ) 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="officia", + smart_link_id="accusamus", ) 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="sunt", + smart_link_id="saepe", ) 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="sunt", + smart_link_id="saepe", 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="sunt", + smart_link_id="saepe", ) 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="sunt", + smart_link_id="saepe", ) 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="molestias", + smart_link_id="atque", ) 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="molestias", + smart_link_id="atque", 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="molestias", + smart_link_id="atque", ) 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="molestias", + smart_link_id="atque", ) 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="nisi", + smart_link_id="voluptatem", ) 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="nisi", + smart_link_id="voluptatem", 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="nisi", + smart_link_id="voluptatem", ) 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="nisi", + smart_link_id="voluptatem", ) 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="quisquam", + smart_link_id="a", ) 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="quisquam", + smart_link_id="a", 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="quisquam", + smart_link_id="a", ) 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="quisquam", + 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 ebffa107..89aceaf2 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": "ujkcvat", - "tags": ["wcnfjq"], + "search": "foxoxplw", + "tags": ["syxcgvwpzsabdstrtrcxo"], }, 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": "capqqvgcwpwl", - "tags": ["yykcymmvdk"], + "search": "elxdlijvlmalwoiooknqtyojp", + "tags": ["jnlyidovfkwsujodr"], }, 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": "gaoyvtlzki", - "tags": ["zpk"], + "include_smart_links": True, + "search": "bomwetpjsedsnvxfyjesiivm", + "tags": ["dmfcpeoqgqlgllvkilebrju"], }, 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": "zgsbikhdctaqwwk", - "tags": ["oknbetavreajkkrapigxzc"], + "include_smart_links": False, + "search": "co", + "tags": ["oguceev"], }, 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": "ujkcvat", - "tags": ["wcnfjq"], + "search": "foxoxplw", + "tags": ["syxcgvwpzsabdstrtrcxo"], }, 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": "capqqvgcwpwl", - "tags": ["yykcymmvdk"], + "search": "elxdlijvlmalwoiooknqtyojp", + "tags": ["jnlyidovfkwsujodr"], }, 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": "gaoyvtlzki", - "tags": ["zpk"], + "include_smart_links": True, + "search": "bomwetpjsedsnvxfyjesiivm", + "tags": ["dmfcpeoqgqlgllvkilebrju"], }, 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": "zgsbikhdctaqwwk", - "tags": ["oknbetavreajkkrapigxzc"], + "include_smart_links": False, + "search": "co", + "tags": ["oguceev"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 27107a9c..e43f07b9 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="voluptas", + tracking_link_id="similique", 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="voluptas", + tracking_link_id="similique", 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="voluptas", + tracking_link_id="similique", 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="voluptas", + tracking_link_id="similique", 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="voluptas", + tracking_link_id="similique", 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="voluptas", + tracking_link_id="similique", 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="voluptas", + tracking_link_id="similique", 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="voluptas", + tracking_link_id="similique", 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="ab", 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="ab", 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="ab", 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="ab", 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="ab", 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="doloremque", + tracking_link_id="fuga", 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="doloremque", + tracking_link_id="fuga", 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="doloremque", + tracking_link_id="fuga", 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="doloremque", + tracking_link_id="fuga", 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="doloremque", + tracking_link_id="fuga", 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="voluptas", + tracking_link_id="similique", 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="voluptas", + tracking_link_id="similique", 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="voluptas", + tracking_link_id="similique", 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="voluptas", + tracking_link_id="similique", 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="voluptas", + tracking_link_id="similique", 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="voluptas", + tracking_link_id="similique", 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="voluptas", + tracking_link_id="similique", 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="voluptas", + tracking_link_id="similique", 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="ab", 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="ab", 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="ab", 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="ab", 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="ab", 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="doloremque", + tracking_link_id="fuga", 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="doloremque", + tracking_link_id="fuga", 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="doloremque", + tracking_link_id="fuga", 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="doloremque", + tracking_link_id="fuga", 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="doloremque", + tracking_link_id="fuga", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index fee9d609..63fd5822 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="sunt", + trial_link_id="nemo", 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="sunt", + trial_link_id="nemo", 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="sunt", + trial_link_id="nemo", 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="sunt", + trial_link_id="nemo", account="", limit=10, offset=0, @@ -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="asperiores", + trial_link_id="tempora", 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="asperiores", + trial_link_id="tempora", 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="asperiores", + trial_link_id="tempora", 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="asperiores", + trial_link_id="tempora", 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="asperiores", + trial_link_id="tempora", 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="sunt", + trial_link_id="nemo", 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="sunt", + trial_link_id="nemo", 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="sunt", + trial_link_id="nemo", 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="sunt", + trial_link_id="nemo", account="", limit=10, offset=0, @@ -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="asperiores", + trial_link_id="tempora", 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="asperiores", + trial_link_id="tempora", 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="asperiores", + trial_link_id="tempora", 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="asperiores", + trial_link_id="tempora", 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="asperiores", + trial_link_id="tempora", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 4cc863ea..92d0ca5e 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="wybzwdztwa", + name="ibjnkgvgsxyomvo", ) 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="wybzwdztwa", + name="ibjnkgvgsxyomvo", ) 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="wybzwdztwa", + name="ibjnkgvgsxyomvo", ) 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="wybzwdztwa", + name="ibjnkgvgsxyomvo", ) @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="wybzwdztwa", + name="ibjnkgvgsxyomvo", ) 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="wybzwdztwa", + name="ibjnkgvgsxyomvo", ) 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="wybzwdztwa", + name="ibjnkgvgsxyomvo", ) 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="wybzwdztwa", + name="ibjnkgvgsxyomvo", ) @pytest.mark.skip(reason="Mock server tests are disabled") From e6371a97aef6d5b5724bee5ff93856d5444f39cf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 16:12:35 +0000 Subject: [PATCH 094/249] 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 | 36 +++---- 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 | 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, 256 insertions(+), 256 deletions(-) diff --git a/.stats.yml b/.stats.yml index 249cf110..336b8150 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1889b56b61ae6215904ecc029bb2585aff87f44ee8eb0f4d095a012743f02466.yml -openapi_spec_hash: 947d943b18849afb6bb545c24098755b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e59dac2df4c84a35fb1f1ce6be21d9c73bff5bfe5f7e8e116914ac2910125f28.yml +openapi_spec_hash: 2c07760d997c59c2b889c3b367b69d93 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index f9b244c6..3dd850c9 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index b5a78ff4..232832d1 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="repellat", + list_id="dolores", 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="repellat", + list_id="dolores", 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="repellat", + list_id="dolores", 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="repellat", + list_id="dolores", 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="repellat", + list_id="dolores", 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="repellat", + list_id="dolores", 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="repellat", + list_id="dolores", 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="repellat", + list_id="dolores", 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="repellat", + list_id="dolores", 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="repellat", + list_id="dolores", 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="repellat", + list_id="dolores", 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="repellat", + list_id="dolores", 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="repellat", + list_id="dolores", 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="repellat", + list_id="dolores", 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="repellat", + list_id="dolores", 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="repellat", + list_id="dolores", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 32f5d03f..7334b8b8 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="quasi", + 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="quasi", + 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="quasi", + 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="quasi", + 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="quasi", + 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="quasi", + 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="quasi", + 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="quasi", + 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="quasi", + 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="quasi", + 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="quasi", + 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="quasi", + 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="quasi", + 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="quasi", + 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="quasi", + 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="quasi", + 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="quasi", + 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="quasi", + 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="quasi", + 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="quasi", + post_id="ipsum", 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 444937ba..7549791e 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 e4dffdf3..76229116 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + story_id="ut", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index b456ddec..27f66f6b 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", + "aliquid", ) 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", + "aliquid", ) 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", + "aliquid", ) 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", + "aliquid", ) 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", + "aliquid", ) 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", + "aliquid", ) 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 4b7eb335..343679df 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="expedita", + auth_id="aut", auth_type="raw_data", - cookies="at", + cookies="ipsam", custom_proxy={ "host": "proxy.example.com", - "password": "_;&Lq`:l,n09/Ow:7!", + "password": "KW)S]X", "port": 8080, - "username": "temporibus", + "username": "ut", }, - email="sandra34@example.net", + email="kaylah00@example.net", force_connect=True, - name="aut", - password="urriDNN#sCEr-ZXn5>", + name="qui", + password="3giC.cV]0[6v@N>U*v4", proxy_country="uk", - user_agent="libero", - xbc="asperiores", + user_agent="consequatur", + xbc="esse", ) 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="expedita", + auth_id="aut", auth_type="raw_data", - cookies="at", + cookies="ipsam", custom_proxy={ "host": "proxy.example.com", - "password": "_;&Lq`:l,n09/Ow:7!", + "password": "KW)S]X", "port": 8080, - "username": "temporibus", + "username": "ut", }, - email="sandra34@example.net", + email="kaylah00@example.net", force_connect=True, - name="aut", - password="urriDNN#sCEr-ZXn5>", + name="qui", + password="3giC.cV]0[6v@N>U*v4", proxy_country="uk", - user_agent="libero", - xbc="asperiores", + user_agent="consequatur", + xbc="esse", ) 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 9249f386..3597ede6 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 413a2df6..bea1ef2e 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="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="likes", + 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 65694e23..bd4f6161 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 33eee837..0b273729 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": ["yxvzzmroagghxcoklcuiliyn"]}, + filter={"tags": ["pqqkzlpmtpykpppdt"]}, 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="doloribus", + smart_link_id="laboriosam", ) 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="doloribus", + smart_link_id="laboriosam", 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="doloribus", + smart_link_id="laboriosam", ) 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="doloribus", + smart_link_id="laboriosam", ) 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="accusamus", + smart_link_id="molestias", ) 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="accusamus", + smart_link_id="molestias", 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="accusamus", + smart_link_id="molestias", ) 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="accusamus", + smart_link_id="molestias", ) 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="saepe", + smart_link_id="ut", ) 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="saepe", + smart_link_id="ut", 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="saepe", + smart_link_id="ut", ) 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="saepe", + smart_link_id="ut", ) 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="atque", + smart_link_id="ea", ) 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="atque", + smart_link_id="ea", 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="atque", + smart_link_id="ea", ) 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="atque", + smart_link_id="ea", ) 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="voluptatem", + smart_link_id="fuga", ) 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="voluptatem", + smart_link_id="fuga", 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="voluptatem", + smart_link_id="fuga", ) 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="voluptatem", + smart_link_id="fuga", ) 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="a", + smart_link_id="dignissimos", ) 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="a", + smart_link_id="dignissimos", 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="a", + smart_link_id="dignissimos", ) 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="a", + smart_link_id="dignissimos", ) 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": ["yxvzzmroagghxcoklcuiliyn"]}, + filter={"tags": ["pqqkzlpmtpykpppdt"]}, 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="doloribus", + smart_link_id="laboriosam", ) 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="doloribus", + smart_link_id="laboriosam", 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="doloribus", + smart_link_id="laboriosam", ) 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="doloribus", + smart_link_id="laboriosam", ) 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="accusamus", + smart_link_id="molestias", ) 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="accusamus", + smart_link_id="molestias", 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="accusamus", + smart_link_id="molestias", ) 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="accusamus", + smart_link_id="molestias", ) 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="saepe", + smart_link_id="ut", ) 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="saepe", + smart_link_id="ut", 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="saepe", + smart_link_id="ut", ) 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="saepe", + smart_link_id="ut", ) 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="atque", + smart_link_id="ea", ) 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="atque", + smart_link_id="ea", 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="atque", + smart_link_id="ea", ) 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="atque", + smart_link_id="ea", ) 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="voluptatem", + smart_link_id="fuga", ) 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="voluptatem", + smart_link_id="fuga", 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="voluptatem", + smart_link_id="fuga", ) 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="voluptatem", + smart_link_id="fuga", ) 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="a", + smart_link_id="dignissimos", ) 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="a", + smart_link_id="dignissimos", 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="a", + smart_link_id="dignissimos", ) 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="a", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index 89aceaf2..cb7f47e5 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": "foxoxplw", - "tags": ["syxcgvwpzsabdstrtrcxo"], + "search": "fejhisumnudvzwdtrljjbf", + "tags": ["ukcftwc"], }, 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": "elxdlijvlmalwoiooknqtyojp", - "tags": ["jnlyidovfkwsujodr"], + "search": "mpxhjkrommmreawealcoxmv", + "tags": ["ddvcxmaqdovx"], }, 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": "bomwetpjsedsnvxfyjesiivm", - "tags": ["dmfcpeoqgqlgllvkilebrju"], + "search": "oksfualzkeswurjrrym", + "tags": ["nmafzxvcedbhhkiwxvmfjasn"], }, 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": "co", - "tags": ["oguceev"], + "search": "gphfxzwctdobwagzj", + "tags": ["trykdpgsroitznuyohcppeej"], }, 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": "foxoxplw", - "tags": ["syxcgvwpzsabdstrtrcxo"], + "search": "fejhisumnudvzwdtrljjbf", + "tags": ["ukcftwc"], }, 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": "elxdlijvlmalwoiooknqtyojp", - "tags": ["jnlyidovfkwsujodr"], + "search": "mpxhjkrommmreawealcoxmv", + "tags": ["ddvcxmaqdovx"], }, 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": "bomwetpjsedsnvxfyjesiivm", - "tags": ["dmfcpeoqgqlgllvkilebrju"], + "search": "oksfualzkeswurjrrym", + "tags": ["nmafzxvcedbhhkiwxvmfjasn"], }, 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": "co", - "tags": ["oguceev"], + "search": "gphfxzwctdobwagzj", + "tags": ["trykdpgsroitznuyohcppeej"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index e43f07b9..2f7c71f7 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="similique", + 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="similique", + 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="similique", + 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="similique", + 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="similique", + 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="similique", + 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="similique", + 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="similique", + 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="ab", + tracking_link_id="modi", 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="ab", + tracking_link_id="modi", 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="ab", + tracking_link_id="modi", 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="ab", + tracking_link_id="modi", 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="ab", + tracking_link_id="modi", 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="fuga", + tracking_link_id="animi", 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="fuga", + tracking_link_id="animi", 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="fuga", + tracking_link_id="animi", 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="fuga", + tracking_link_id="animi", 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="fuga", + tracking_link_id="animi", 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="similique", + 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="similique", + 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="similique", + 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="similique", + 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="similique", + 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="similique", + 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="similique", + 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="similique", + 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="ab", + tracking_link_id="modi", 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="ab", + tracking_link_id="modi", 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="ab", + tracking_link_id="modi", 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="ab", + tracking_link_id="modi", 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="ab", + tracking_link_id="modi", 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="fuga", + tracking_link_id="animi", 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="fuga", + tracking_link_id="animi", 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="fuga", + tracking_link_id="animi", 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="fuga", + tracking_link_id="animi", 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="fuga", + tracking_link_id="animi", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 63fd5822..efd912fa 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="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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="qui", + trial_link_id="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + trial_link_id="quo", 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="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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="qui", + trial_link_id="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + trial_link_id="quo", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 92d0ca5e..ecf6873c 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="ibjnkgvgsxyomvo", + name="wu", ) 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="ibjnkgvgsxyomvo", + name="wu", ) 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="ibjnkgvgsxyomvo", + name="wu", ) 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="ibjnkgvgsxyomvo", + name="wu", ) @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="ibjnkgvgsxyomvo", + name="wu", ) 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="ibjnkgvgsxyomvo", + name="wu", ) 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="ibjnkgvgsxyomvo", + name="wu", ) 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="ibjnkgvgsxyomvo", + name="wu", ) @pytest.mark.skip(reason="Mock server tests are disabled") From c065f5e87e1c8a34984dabc5b36fc8b5d89dc04e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 23:12:35 +0000 Subject: [PATCH 095/249] 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_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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, 268 insertions(+), 268 deletions(-) diff --git a/.stats.yml b/.stats.yml index 336b8150..0b5d5e10 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e59dac2df4c84a35fb1f1ce6be21d9c73bff5bfe5f7e8e116914ac2910125f28.yml -openapi_spec_hash: 2c07760d997c59c2b889c3b367b69d93 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-65eb15df13708c2eca935e5cac643af48813340782a8d992cbfaeddbf39a982e.yml +openapi_spec_hash: 768d57b20fb71d81f09a2c0b04c15222 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 3dd850c9..741b9384 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="debitis", + message_id="at", 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="debitis", + message_id="at", 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="debitis", + message_id="at", 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="debitis", + message_id="at", 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="debitis", + message_id="at", 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="debitis", + message_id="at", 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="debitis", + message_id="at", 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="debitis", + message_id="at", 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="debitis", + message_id="at", 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="debitis", + message_id="at", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 232832d1..3fae1838 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="dolores", + list_id="nemo", 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="dolores", + list_id="nemo", 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="dolores", + list_id="nemo", 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="dolores", + list_id="nemo", 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="dolores", + list_id="nemo", 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="dolores", + list_id="nemo", 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="dolores", + list_id="nemo", 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="dolores", + list_id="nemo", 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="dolores", + list_id="nemo", 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="dolores", + list_id="nemo", 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="dolores", + list_id="nemo", 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="dolores", + list_id="nemo", 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="dolores", + list_id="nemo", 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="dolores", + list_id="nemo", 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="dolores", + list_id="nemo", 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="dolores", + list_id="nemo", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 7334b8b8..8c13b633 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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="dolorem", 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 7549791e..a62ccbd3 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index fc7b1635..2ced6cb5 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 76229116..3c270c97 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", 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="tenetur", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 27f66f6b..7506d9b8 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( - "aliquid", + "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( - "aliquid", + "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( - "aliquid", + "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( - "aliquid", + "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( - "aliquid", + "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( - "aliquid", + "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 343679df..b3fc8952 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_type="raw_data", - cookies="ipsam", + auth_id="iure", + auth_type="email_password", + cookies="quia", custom_proxy={ "host": "proxy.example.com", - "password": "KW)S]X", + "password": "2meT2v^s_;^7", "port": 8080, - "username": "ut", + "username": "quia", }, - email="kaylah00@example.net", - force_connect=True, - name="qui", - password="3giC.cV]0[6v@N>U*v4", + email="lockman.orland@example.org", + force_connect=False, + name="autem", + password="N|H+Od7/?(", proxy_country="uk", - user_agent="consequatur", - xbc="esse", + user_agent="pariatur", + xbc="reprehenderit", ) 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="aut", - auth_type="raw_data", - cookies="ipsam", + auth_id="iure", + auth_type="email_password", + cookies="quia", custom_proxy={ "host": "proxy.example.com", - "password": "KW)S]X", + "password": "2meT2v^s_;^7", "port": 8080, - "username": "ut", + "username": "quia", }, - email="kaylah00@example.net", - force_connect=True, - name="qui", - password="3giC.cV]0[6v@N>U*v4", + email="lockman.orland@example.org", + force_connect=False, + name="autem", + password="N|H+Od7/?(", proxy_country="uk", - user_agent="consequatur", - xbc="esse", + user_agent="pariatur", + xbc="reprehenderit", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index bea1ef2e..1a80b275 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="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="tags", + 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 0b273729..6d147947 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": ["pqqkzlpmtpykpppdt"]}, + filter={"tags": ["wxibeenzhvikxnobitutpst"]}, 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="laboriosam", + smart_link_id="praesentium", ) 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="laboriosam", + smart_link_id="praesentium", 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="laboriosam", + smart_link_id="praesentium", ) 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="laboriosam", + smart_link_id="praesentium", ) 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="molestias", + smart_link_id="et", ) 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="molestias", + smart_link_id="et", 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="molestias", + smart_link_id="et", ) 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="molestias", + smart_link_id="et", ) 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="ut", + smart_link_id="expedita", ) 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="ut", + smart_link_id="expedita", 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="ut", + smart_link_id="expedita", ) 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="ut", + smart_link_id="expedita", ) 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="ea", + smart_link_id="perferendis", ) 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="ea", + smart_link_id="perferendis", 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="ea", + smart_link_id="perferendis", ) 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="ea", + smart_link_id="perferendis", ) 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="fuga", + smart_link_id="et", ) 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="fuga", + smart_link_id="et", 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="fuga", + smart_link_id="et", ) 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="fuga", + smart_link_id="et", ) 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="dignissimos", + smart_link_id="recusandae", ) 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="dignissimos", + smart_link_id="recusandae", 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="dignissimos", + smart_link_id="recusandae", ) 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="dignissimos", + smart_link_id="recusandae", ) 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": ["pqqkzlpmtpykpppdt"]}, + filter={"tags": ["wxibeenzhvikxnobitutpst"]}, 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="laboriosam", + smart_link_id="praesentium", ) 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="laboriosam", + smart_link_id="praesentium", 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="laboriosam", + smart_link_id="praesentium", ) 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="laboriosam", + smart_link_id="praesentium", ) 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="molestias", + smart_link_id="et", ) 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="molestias", + smart_link_id="et", 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="molestias", + smart_link_id="et", ) 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="molestias", + smart_link_id="et", ) 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="ut", + smart_link_id="expedita", ) 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="ut", + smart_link_id="expedita", 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="ut", + smart_link_id="expedita", ) 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="ut", + smart_link_id="expedita", ) 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="ea", + smart_link_id="perferendis", ) 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="ea", + smart_link_id="perferendis", 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="ea", + smart_link_id="perferendis", ) 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="ea", + smart_link_id="perferendis", ) 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="fuga", + smart_link_id="et", ) 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="fuga", + smart_link_id="et", 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="fuga", + smart_link_id="et", ) 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="fuga", + smart_link_id="et", ) 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="dignissimos", + smart_link_id="recusandae", ) 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="dignissimos", + smart_link_id="recusandae", 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="dignissimos", + smart_link_id="recusandae", ) 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="dignissimos", + smart_link_id="recusandae", ) 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 cb7f47e5..08253688 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": "fejhisumnudvzwdtrljjbf", - "tags": ["ukcftwc"], + "search": "kvtwnyaeqejternoaty", + "tags": ["duzwybuxufhakbaqdlkkmx"], }, 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": "mpxhjkrommmreawealcoxmv", - "tags": ["ddvcxmaqdovx"], + "search": "fweg", + "tags": ["uflnqapvautiqkiuc"], }, 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": "oksfualzkeswurjrrym", - "tags": ["nmafzxvcedbhhkiwxvmfjasn"], + "include_smart_links": False, + "search": "dk", + "tags": ["mpgmmyrtfyrg"], }, 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": "gphfxzwctdobwagzj", - "tags": ["trykdpgsroitznuyohcppeej"], + "include_smart_links": True, + "search": "rg", + "tags": ["yhtelkbpyu"], }, 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": "fejhisumnudvzwdtrljjbf", - "tags": ["ukcftwc"], + "search": "kvtwnyaeqejternoaty", + "tags": ["duzwybuxufhakbaqdlkkmx"], }, 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": "mpxhjkrommmreawealcoxmv", - "tags": ["ddvcxmaqdovx"], + "search": "fweg", + "tags": ["uflnqapvautiqkiuc"], }, 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": "oksfualzkeswurjrrym", - "tags": ["nmafzxvcedbhhkiwxvmfjasn"], + "include_smart_links": False, + "search": "dk", + "tags": ["mpgmmyrtfyrg"], }, 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": "gphfxzwctdobwagzj", - "tags": ["trykdpgsroitznuyohcppeej"], + "include_smart_links": True, + "search": "rg", + "tags": ["yhtelkbpyu"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 2f7c71f7..a1023fb4 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="modi", + tracking_link_id="rem", 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="modi", + tracking_link_id="rem", 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="modi", + tracking_link_id="rem", 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="modi", + tracking_link_id="rem", 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="modi", + tracking_link_id="rem", 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="animi", + 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="animi", + 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="animi", + 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="animi", + 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="animi", + 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="et", + tracking_link_id="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="modi", + tracking_link_id="rem", 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="modi", + tracking_link_id="rem", 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="modi", + tracking_link_id="rem", 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="modi", + tracking_link_id="rem", 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="modi", + tracking_link_id="rem", 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="animi", + 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="animi", + 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="animi", + 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="animi", + 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="animi", + tracking_link_id="rem", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index efd912fa..0ba992c5 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="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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="et", + trial_link_id="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="quo", + trial_link_id="at", 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="at", 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="at", 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="at", 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="at", 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="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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="et", + trial_link_id="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="quo", + trial_link_id="at", 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="at", 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="at", 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="at", 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="at", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index ecf6873c..03dccb0f 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="wu", + name="juot", ) 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="wu", + name="juot", ) 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="wu", + name="juot", ) 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="wu", + name="juot", ) @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="wu", + name="juot", ) 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="wu", + name="juot", ) 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="wu", + name="juot", ) 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="wu", + name="juot", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 61824c2c6a658abc8a5b256f26153c852fdf07ca Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 24 Jun 2026 19:12:31 +0000 Subject: [PATCH 096/249] 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 | 40 +++---- 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 +-- 13 files changed, 246 insertions(+), 246 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0b5d5e10..21631f9c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-65eb15df13708c2eca935e5cac643af48813340782a8d992cbfaeddbf39a982e.yml -openapi_spec_hash: 768d57b20fb71d81f09a2c0b04c15222 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-125d10acf9ea710900f124509e9fd30603e874637c63131812d43fb1ab5c58e1.yml +openapi_spec_hash: 5cb7d0f539881b8d1486f4aacaca06e2 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 741b9384..10cfa2e6 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="at", + 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="at", + 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="at", + 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="at", + 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="at", + 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="at", + 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="at", + 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="at", + 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="at", + 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="at", + 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 3fae1838..82b7bbbd 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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 8c13b633..7ba90b72 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="dolorem", + post_id="ad", 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="dolorem", + post_id="ad", 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="dolorem", + post_id="ad", 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="dolorem", + post_id="ad", 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="dolorem", + post_id="ad", 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="dolorem", + post_id="ad", 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="dolorem", + post_id="ad", 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="dolorem", + post_id="ad", 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="dolorem", + post_id="ad", 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="dolorem", + post_id="ad", 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="dolorem", + post_id="ad", 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="dolorem", + post_id="ad", 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="dolorem", + post_id="ad", 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="dolorem", + post_id="ad", 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="dolorem", + post_id="ad", 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="dolorem", + post_id="ad", 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="dolorem", + post_id="ad", 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="dolorem", + post_id="ad", 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="dolorem", + post_id="ad", 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="dolorem", + post_id="ad", account="", ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 3c270c97..f904686f 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + story_id="animi", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 7506d9b8..5c3afb22 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", + "natus", ) 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", + "natus", ) 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", + "natus", ) 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", + "natus", ) 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", + "natus", ) 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", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index b3fc8952..6c765c4e 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="est", auth_type="email_password", - cookies="quia", + cookies="sit", custom_proxy={ "host": "proxy.example.com", - "password": "2meT2v^s_;^7", + "password": 'TH"T@`Oc:j\\S(%HXG', "port": 8080, - "username": "quia", + "username": "minus", }, - email="lockman.orland@example.org", + email="serena23@example.com", force_connect=False, - name="autem", - password="N|H+Od7/?(", - proxy_country="uk", - user_agent="pariatur", - xbc="reprehenderit", + name="nemo", + password=",K)[?yCtgC| 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="est", auth_type="email_password", - cookies="quia", + cookies="sit", custom_proxy={ "host": "proxy.example.com", - "password": "2meT2v^s_;^7", + "password": 'TH"T@`Oc:j\\S(%HXG', "port": 8080, - "username": "quia", + "username": "minus", }, - email="lockman.orland@example.org", + email="serena23@example.com", force_connect=False, - name="autem", - password="N|H+Od7/?(", - proxy_country="uk", - user_agent="pariatur", - xbc="reprehenderit", + name="nemo", + password=",K)[?yCtgC| None: from_id=123, limit=10, skip_users="all", - type="onlyfans", + 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="onlyfans", + 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 6d147947..8dba090e 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": ["wxibeenzhvikxnobitutpst"]}, + filter={"tags": ["miojefasranlujegsnor"]}, 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="praesentium", + smart_link_id="nam", ) 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="praesentium", + smart_link_id="nam", 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="praesentium", + smart_link_id="nam", ) 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="praesentium", + smart_link_id="nam", ) 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="et", + smart_link_id="repellendus", ) 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="et", + smart_link_id="repellendus", 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="et", + smart_link_id="repellendus", ) 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="et", + smart_link_id="repellendus", ) 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="expedita", + smart_link_id="et", ) 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="expedita", + smart_link_id="et", 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="expedita", + smart_link_id="et", ) 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="expedita", + smart_link_id="et", ) 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="perferendis", + smart_link_id="sunt", ) 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="perferendis", + smart_link_id="sunt", 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="perferendis", + smart_link_id="sunt", ) 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="perferendis", + smart_link_id="sunt", ) 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="et", + smart_link_id="saepe", ) 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="et", + smart_link_id="saepe", 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="et", + smart_link_id="saepe", ) 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="et", + smart_link_id="saepe", ) 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="recusandae", + smart_link_id="tempore", ) 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="recusandae", + smart_link_id="tempore", 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="recusandae", + smart_link_id="tempore", ) 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="recusandae", + smart_link_id="tempore", ) 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": ["wxibeenzhvikxnobitutpst"]}, + filter={"tags": ["miojefasranlujegsnor"]}, 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="praesentium", + smart_link_id="nam", ) 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="praesentium", + smart_link_id="nam", 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="praesentium", + smart_link_id="nam", ) 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="praesentium", + smart_link_id="nam", ) 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="et", + smart_link_id="repellendus", ) 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="et", + smart_link_id="repellendus", 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="et", + smart_link_id="repellendus", ) 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="et", + smart_link_id="repellendus", ) 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="expedita", + smart_link_id="et", ) 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="expedita", + smart_link_id="et", 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="expedita", + smart_link_id="et", ) 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="expedita", + smart_link_id="et", ) 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="perferendis", + smart_link_id="sunt", ) 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="perferendis", + smart_link_id="sunt", 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="perferendis", + smart_link_id="sunt", ) 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="perferendis", + smart_link_id="sunt", ) 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="et", + smart_link_id="saepe", ) 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="et", + smart_link_id="saepe", 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="et", + smart_link_id="saepe", ) 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="et", + smart_link_id="saepe", ) 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="recusandae", + smart_link_id="tempore", ) 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="recusandae", + smart_link_id="tempore", 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="recusandae", + smart_link_id="tempore", ) 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="recusandae", + smart_link_id="tempore", ) 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 08253688..4da4bb05 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": "kvtwnyaeqejternoaty", - "tags": ["duzwybuxufhakbaqdlkkmx"], + "search": "lptsinzeudynfmyhcmlauev", + "tags": ["uvftnavknpipblxkb"], }, 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": "fweg", - "tags": ["uflnqapvautiqkiuc"], + "search": "rqfibflvqd", + "tags": ["qzfkbeekwbh"], }, 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": "dk", - "tags": ["mpgmmyrtfyrg"], + "search": "zilqrcxczorggfngfmdyz", + "tags": ["edwkwdqxawlxcojmmodfcfwwb"], }, 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": "rg", - "tags": ["yhtelkbpyu"], + "search": "byrqshjnbcjaydjj", + "tags": ["rgzddqsy"], }, 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": "kvtwnyaeqejternoaty", - "tags": ["duzwybuxufhakbaqdlkkmx"], + "search": "lptsinzeudynfmyhcmlauev", + "tags": ["uvftnavknpipblxkb"], }, 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": "fweg", - "tags": ["uflnqapvautiqkiuc"], + "search": "rqfibflvqd", + "tags": ["qzfkbeekwbh"], }, 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": "dk", - "tags": ["mpgmmyrtfyrg"], + "search": "zilqrcxczorggfngfmdyz", + "tags": ["edwkwdqxawlxcojmmodfcfwwb"], }, 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": "rg", - "tags": ["yhtelkbpyu"], + "search": "byrqshjnbcjaydjj", + "tags": ["rgzddqsy"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index a1023fb4..907dad07 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="nihil", + tracking_link_id="sint", 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="nihil", + tracking_link_id="sint", 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="nihil", + tracking_link_id="sint", 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="nihil", + tracking_link_id="sint", 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="nihil", + tracking_link_id="sint", 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="nihil", + tracking_link_id="sint", 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="nihil", + tracking_link_id="sint", 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="nihil", + tracking_link_id="sint", 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="rem", + tracking_link_id="magni", 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="rem", + tracking_link_id="magni", 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="rem", + tracking_link_id="magni", 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="rem", + tracking_link_id="magni", 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="rem", + tracking_link_id="magni", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="nihil", + tracking_link_id="sint", 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="nihil", + tracking_link_id="sint", 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="nihil", + tracking_link_id="sint", 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="nihil", + tracking_link_id="sint", 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="nihil", + tracking_link_id="sint", 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="nihil", + tracking_link_id="sint", 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="nihil", + tracking_link_id="sint", 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="nihil", + tracking_link_id="sint", 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="rem", + tracking_link_id="magni", 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="rem", + tracking_link_id="magni", 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="rem", + tracking_link_id="magni", 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="rem", + tracking_link_id="magni", 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="rem", + tracking_link_id="magni", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 0ba992c5..971de3dd 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="quo", 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="quo", 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="quo", 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="quo", 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="quo", 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="quo", 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="quo", 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="quo", 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="asperiores", + trial_link_id="magnam", 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="asperiores", + trial_link_id="magnam", 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="asperiores", + trial_link_id="magnam", 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="asperiores", + trial_link_id="magnam", 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="omnis", 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="omnis", 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="omnis", 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="omnis", 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="omnis", 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="at", + trial_link_id="sapiente", 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="at", + trial_link_id="sapiente", 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="at", + trial_link_id="sapiente", 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="at", + trial_link_id="sapiente", 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="at", + trial_link_id="sapiente", 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="quo", 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="quo", 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="quo", 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="quo", 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="quo", 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="quo", 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="quo", 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="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="asperiores", + trial_link_id="magnam", 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="asperiores", + trial_link_id="magnam", 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="asperiores", + trial_link_id="magnam", 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="asperiores", + trial_link_id="magnam", 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="omnis", 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="omnis", 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="omnis", 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="omnis", 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="omnis", 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="at", + trial_link_id="sapiente", 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="at", + trial_link_id="sapiente", 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="at", + trial_link_id="sapiente", 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="at", + trial_link_id="sapiente", 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="at", + trial_link_id="sapiente", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 03dccb0f..e74d435a 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="juot", + name="vpzp", ) 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="juot", + name="vpzp", ) 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="juot", + name="vpzp", ) 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="juot", + name="vpzp", ) @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="juot", + name="vpzp", ) 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="juot", + name="vpzp", ) 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="juot", + name="vpzp", ) 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="juot", + name="vpzp", ) @pytest.mark.skip(reason="Mock server tests are disabled") From d7f273e31c9f47d142a18b0a2a9a72b520277a41 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 25 Jun 2026 13:12:40 +0000 Subject: [PATCH 097/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/authenticate.py | 4 + src/onlyfansapi/resources/data_exports.py | 22 ++-- .../types/authenticate_start_params.py | 2 + .../types/data_export_create_params.py | 10 +- .../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 | 42 ++++---- 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 | 32 +++--- tests/api_resources/test_tracking_links.py | 52 ++++----- tests/api_resources/test_trial_links.py | 88 +++++++-------- tests/api_resources/test_user_lists.py | 16 +-- 21 files changed, 281 insertions(+), 271 deletions(-) diff --git a/.stats.yml b/.stats.yml index 21631f9c..75c4dc48 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-125d10acf9ea710900f124509e9fd30603e874637c63131812d43fb1ab5c58e1.yml -openapi_spec_hash: 5cb7d0f539881b8d1486f4aacaca06e2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4b6927860931b57f8ed17190991d139a662da5fe147cc7d872baf163da31edf3.yml +openapi_spec_hash: 156f8c8acdf021ea023d1db57db8f73f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/authenticate.py b/src/onlyfansapi/resources/authenticate.py index aae19208..f6b45848 100644 --- a/src/onlyfansapi/resources/authenticate.py +++ b/src/onlyfansapi/resources/authenticate.py @@ -157,6 +157,7 @@ def send_2fa_email( def start( self, *, + _internal_automatic_syncs_disabled: bool | Omit = omit, auth_id: str | Omit = omit, auth_type: Literal["email_password", "raw_data", "mobile_app"] | Omit = omit, cookies: str | Omit = omit, @@ -231,6 +232,7 @@ def start( "/api/authenticate", body=maybe_transform( { + "_internal_automatic_syncs_disabled": _internal_automatic_syncs_disabled, "auth_id": auth_id, "auth_type": auth_type, "cookies": cookies, @@ -432,6 +434,7 @@ async def send_2fa_email( async def start( self, *, + _internal_automatic_syncs_disabled: bool | Omit = omit, auth_id: str | Omit = omit, auth_type: Literal["email_password", "raw_data", "mobile_app"] | Omit = omit, cookies: str | Omit = omit, @@ -506,6 +509,7 @@ async def start( "/api/authenticate", body=await async_maybe_transform( { + "_internal_automatic_syncs_disabled": _internal_automatic_syncs_disabled, "auth_id": auth_id, "auth_type": auth_type, "cookies": cookies, diff --git a/src/onlyfansapi/resources/data_exports.py b/src/onlyfansapi/resources/data_exports.py index 2eaf7c0e..05ee9932 100644 --- a/src/onlyfansapi/resources/data_exports.py +++ b/src/onlyfansapi/resources/data_exports.py @@ -117,11 +117,12 @@ def create( (optional, USD), `maxSubscribePrice` (optional, USD), `location` (optional), `minPostsCount` (optional, minimum posts), `minPhotosCount` (optional, minimum photos), `minVideosCount` (optional, minimum videos), `minSubscribersCount` - (optional, minimum subscribers), `minJoinDate` (optional, ISO 8601 date), - `minLastSeenAt` (optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601 - date, profile added to DB after), `createdAtTo` (optional, ISO 8601 date, - profile added to DB before), `instagram` (optional), `twitter` (optional), - `tiktok` (optional), `maxResults` (optional, limit results). + (optional, minimum subscribers), `maxSubscribersCount` (optional, maximum + subscribers), `minJoinDate` (optional, ISO 8601 date), `minLastSeenAt` + (optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601 date, profile + added to DB after), `createdAtTo` (optional, ISO 8601 date, profile added to DB + before), `instagram` (optional), `twitter` (optional), `tiktok` (optional), + `maxResults` (optional, limit results). extra_headers: Send extra headers @@ -466,11 +467,12 @@ async def create( (optional, USD), `maxSubscribePrice` (optional, USD), `location` (optional), `minPostsCount` (optional, minimum posts), `minPhotosCount` (optional, minimum photos), `minVideosCount` (optional, minimum videos), `minSubscribersCount` - (optional, minimum subscribers), `minJoinDate` (optional, ISO 8601 date), - `minLastSeenAt` (optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601 - date, profile added to DB after), `createdAtTo` (optional, ISO 8601 date, - profile added to DB before), `instagram` (optional), `twitter` (optional), - `tiktok` (optional), `maxResults` (optional, limit results). + (optional, minimum subscribers), `maxSubscribersCount` (optional, maximum + subscribers), `minJoinDate` (optional, ISO 8601 date), `minLastSeenAt` + (optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601 date, profile + added to DB after), `createdAtTo` (optional, ISO 8601 date, profile added to DB + before), `instagram` (optional), `twitter` (optional), `tiktok` (optional), + `maxResults` (optional, limit results). extra_headers: Send extra headers diff --git a/src/onlyfansapi/types/authenticate_start_params.py b/src/onlyfansapi/types/authenticate_start_params.py index 0c7d0590..18186743 100644 --- a/src/onlyfansapi/types/authenticate_start_params.py +++ b/src/onlyfansapi/types/authenticate_start_params.py @@ -10,6 +10,8 @@ class AuthenticateStartParams(TypedDict, total=False): + _internal_automatic_syncs_disabled: bool + auth_id: str """The auth_id from OnlyFans session cookies. diff --git a/src/onlyfansapi/types/data_export_create_params.py b/src/onlyfansapi/types/data_export_create_params.py index 6e33559f..ecc3ccac 100644 --- a/src/onlyfansapi/types/data_export_create_params.py +++ b/src/onlyfansapi/types/data_export_create_params.py @@ -72,9 +72,9 @@ class DataExportCreateParams(TypedDict, total=False): (optional, USD), `location` (optional), `minPostsCount` (optional, minimum posts), `minPhotosCount` (optional, minimum photos), `minVideosCount` (optional, minimum videos), `minSubscribersCount` (optional, minimum subscribers), - `minJoinDate` (optional, ISO 8601 date), `minLastSeenAt` (optional, ISO 8601 - date), `createdAtFrom` (optional, ISO 8601 date, profile added to DB after), - `createdAtTo` (optional, ISO 8601 date, profile added to DB before), `instagram` - (optional), `twitter` (optional), `tiktok` (optional), `maxResults` (optional, - limit results). + `maxSubscribersCount` (optional, maximum subscribers), `minJoinDate` (optional, + ISO 8601 date), `minLastSeenAt` (optional, ISO 8601 date), `createdAtFrom` + (optional, ISO 8601 date, profile added to DB after), `createdAtTo` (optional, + ISO 8601 date, profile added to DB before), `instagram` (optional), `twitter` + (optional), `tiktok` (optional), `maxResults` (optional, limit results). """ diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 10cfa2e6..dabb97ef 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="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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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 82b7bbbd..6264fa0d 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", 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="fugiat", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 7ba90b72..f66b90ab 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="ad", + 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="ad", + 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="ad", + 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="ad", + 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="ad", + 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="ad", + 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="ad", + 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="ad", + 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="ad", + 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="ad", + 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="ad", + 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="ad", + 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="ad", + 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="ad", + 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="ad", + 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="ad", + 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="ad", + 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="ad", + 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="ad", + 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="ad", + 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 a62ccbd3..aa735c97 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 2ced6cb5..b5f3d61a 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 544df889..9664075f 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 f904686f..bee32fe6 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="in", 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="in", 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="in", 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="in", 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="in", 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="in", 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="in", 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="in", 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="in", 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="in", 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="in", 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="in", 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="in", 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="in", 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="in", 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="in", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 5c3afb22..05714e62 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( - "natus", + "totam", ) 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( - "natus", + "totam", ) 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( - "natus", + "totam", ) 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( - "natus", + "totam", ) 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( - "natus", + "totam", ) 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( - "natus", + "totam", ) 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 6c765c4e..2184a972 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,23 @@ 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="email_password", - cookies="sit", + _internal_automatic_syncs_disabled=False, + auth_id="quidem", + auth_type="raw_data", + cookies="inventore", custom_proxy={ "host": "proxy.example.com", - "password": 'TH"T@`Oc:j\\S(%HXG', + "password": "p~}9w:4'FL(UKv`", "port": 8080, - "username": "minus", + "username": "eaque", }, - email="serena23@example.com", + email="florine.smith@example.net", force_connect=False, - name="nemo", - password=",K)[?yCtgC| 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="email_password", - cookies="sit", + _internal_automatic_syncs_disabled=False, + auth_id="quidem", + auth_type="raw_data", + cookies="inventore", custom_proxy={ "host": "proxy.example.com", - "password": 'TH"T@`Oc:j\\S(%HXG', + "password": "p~}9w:4'FL(UKv`", "port": 8080, - "username": "minus", + "username": "eaque", }, - email="serena23@example.com", + email="florine.smith@example.net", force_connect=False, - name="nemo", - password=",K)[?yCtgC| None: from_id=123, limit=10, skip_users="all", - type="likes", + 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="likes", + 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 bd4f6161..65694e23 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 8dba090e..33a98df8 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": ["miojefasranlujegsnor"]}, + filter={"tags": ["fpimrktlfnyom"]}, 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="nam", + smart_link_id="necessitatibus", ) 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="nam", + smart_link_id="necessitatibus", 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="nam", + smart_link_id="necessitatibus", ) 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="nam", + smart_link_id="necessitatibus", ) 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="repellendus", + smart_link_id="quo", ) 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="repellendus", + smart_link_id="quo", 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="repellendus", + smart_link_id="quo", ) 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="repellendus", + smart_link_id="quo", ) 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="et", + smart_link_id="omnis", ) 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="et", + smart_link_id="omnis", 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="et", + smart_link_id="omnis", ) 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="et", + smart_link_id="omnis", ) 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="sunt", + smart_link_id="distinctio", ) 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="sunt", + smart_link_id="distinctio", 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="sunt", + smart_link_id="distinctio", ) 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="sunt", + smart_link_id="distinctio", ) 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="saepe", + smart_link_id="reiciendis", ) 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="saepe", + smart_link_id="reiciendis", 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="saepe", + smart_link_id="reiciendis", ) 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="saepe", + smart_link_id="reiciendis", ) 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="tempore", + smart_link_id="quia", ) 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="tempore", + smart_link_id="quia", 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="tempore", + smart_link_id="quia", ) 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="tempore", + smart_link_id="quia", ) 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": ["miojefasranlujegsnor"]}, + filter={"tags": ["fpimrktlfnyom"]}, 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="nam", + smart_link_id="necessitatibus", ) 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="nam", + smart_link_id="necessitatibus", 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="nam", + smart_link_id="necessitatibus", ) 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="nam", + smart_link_id="necessitatibus", ) 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="repellendus", + smart_link_id="quo", ) 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="repellendus", + smart_link_id="quo", 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="repellendus", + smart_link_id="quo", ) 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="repellendus", + smart_link_id="quo", ) 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="et", + smart_link_id="omnis", ) 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="et", + smart_link_id="omnis", 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="et", + smart_link_id="omnis", ) 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="et", + smart_link_id="omnis", ) 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="sunt", + smart_link_id="distinctio", ) 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="sunt", + smart_link_id="distinctio", 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="sunt", + smart_link_id="distinctio", ) 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="sunt", + smart_link_id="distinctio", ) 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="saepe", + smart_link_id="reiciendis", ) 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="saepe", + smart_link_id="reiciendis", 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="saepe", + smart_link_id="reiciendis", ) 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="saepe", + smart_link_id="reiciendis", ) 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="tempore", + smart_link_id="quia", ) 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="tempore", + smart_link_id="quia", 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="tempore", + smart_link_id="quia", ) 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="tempore", + 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 4da4bb05..48bd3f21 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": "lptsinzeudynfmyhcmlauev", - "tags": ["uvftnavknpipblxkb"], + "search": "lxhyk", + "tags": ["kxrufoyczdisscu"], }, 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": "rqfibflvqd", - "tags": ["qzfkbeekwbh"], + "search": "vddytcrguagazrqokmqfhpf", + "tags": ["fdld"], }, 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": "zilqrcxczorggfngfmdyz", - "tags": ["edwkwdqxawlxcojmmodfcfwwb"], + "search": "dzckulszumzzguh", + "tags": ["qbkvx"], }, 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": "byrqshjnbcjaydjj", - "tags": ["rgzddqsy"], + "search": "sodxncfkwlukxkxkfqsjqemb", + "tags": ["kyfazhbvjpdg"], }, 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": "lptsinzeudynfmyhcmlauev", - "tags": ["uvftnavknpipblxkb"], + "search": "lxhyk", + "tags": ["kxrufoyczdisscu"], }, 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": "rqfibflvqd", - "tags": ["qzfkbeekwbh"], + "search": "vddytcrguagazrqokmqfhpf", + "tags": ["fdld"], }, 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": "zilqrcxczorggfngfmdyz", - "tags": ["edwkwdqxawlxcojmmodfcfwwb"], + "search": "dzckulszumzzguh", + "tags": ["qbkvx"], }, 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": "byrqshjnbcjaydjj", - "tags": ["rgzddqsy"], + "search": "sodxncfkwlukxkxkfqsjqemb", + "tags": ["kyfazhbvjpdg"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 907dad07..d9ccfd0c 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="sint", + tracking_link_id="nobis", 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="sint", + tracking_link_id="nobis", 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="sint", + tracking_link_id="nobis", 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="sint", + tracking_link_id="nobis", 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="sint", + tracking_link_id="nobis", 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="sint", + tracking_link_id="nobis", 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="sint", + tracking_link_id="nobis", 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="sint", + tracking_link_id="nobis", 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="atque", + tracking_link_id="doloribus", 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="atque", + tracking_link_id="doloribus", 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="atque", + tracking_link_id="doloribus", 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="atque", + tracking_link_id="doloribus", 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="atque", + tracking_link_id="doloribus", 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="sint", + tracking_link_id="nobis", 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="sint", + tracking_link_id="nobis", 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="sint", + tracking_link_id="nobis", 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="sint", + tracking_link_id="nobis", 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="sint", + tracking_link_id="nobis", 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="sint", + tracking_link_id="nobis", 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="sint", + tracking_link_id="nobis", 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="sint", + tracking_link_id="nobis", 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="atque", + tracking_link_id="doloribus", 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="atque", + tracking_link_id="doloribus", 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="atque", + tracking_link_id="doloribus", 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="atque", + tracking_link_id="doloribus", 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="atque", + tracking_link_id="doloribus", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 971de3dd..ac9d9411 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="quo", + trial_link_id="vel", 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="quo", + trial_link_id="vel", 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="quo", + trial_link_id="vel", 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="quo", + trial_link_id="vel", 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="quo", + trial_link_id="vel", 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="quo", + trial_link_id="vel", 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="quo", + trial_link_id="vel", 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="quo", + trial_link_id="vel", 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="omnis", + trial_link_id="nulla", 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="omnis", + trial_link_id="nulla", 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="omnis", + trial_link_id="nulla", 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="omnis", + trial_link_id="nulla", 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="omnis", + trial_link_id="nulla", 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="sapiente", + trial_link_id="ea", 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="sapiente", + trial_link_id="ea", 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="sapiente", + trial_link_id="ea", 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="sapiente", + trial_link_id="ea", 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="sapiente", + trial_link_id="ea", 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="quo", + trial_link_id="vel", 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="quo", + trial_link_id="vel", 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="quo", + trial_link_id="vel", 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="quo", + trial_link_id="vel", 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="quo", + trial_link_id="vel", 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="quo", + trial_link_id="vel", 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="quo", + trial_link_id="vel", 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="quo", + trial_link_id="vel", 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="omnis", + trial_link_id="nulla", 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="omnis", + trial_link_id="nulla", 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="omnis", + trial_link_id="nulla", 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="omnis", + trial_link_id="nulla", 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="omnis", + trial_link_id="nulla", 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="sapiente", + trial_link_id="ea", 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="sapiente", + trial_link_id="ea", 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="sapiente", + trial_link_id="ea", 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="sapiente", + trial_link_id="ea", 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="sapiente", + trial_link_id="ea", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index e74d435a..1b2c448d 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="vpzp", + name="sastftobgbhmqibh", ) 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="vpzp", + name="sastftobgbhmqibh", ) 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="vpzp", + name="sastftobgbhmqibh", ) 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="vpzp", + name="sastftobgbhmqibh", ) @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="vpzp", + name="sastftobgbhmqibh", ) 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="vpzp", + name="sastftobgbhmqibh", ) 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="vpzp", + name="sastftobgbhmqibh", ) 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="vpzp", + name="sastftobgbhmqibh", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 2eede932d7795151755cef1373ef723b594b51ec Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 25 Jun 2026 14:12:34 +0000 Subject: [PATCH 098/249] 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_client_sessions.py | 4 +- tests/api_resources/test_notifications.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 +-- 15 files changed, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index 75c4dc48..121535df 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4b6927860931b57f8ed17190991d139a662da5fe147cc7d872baf163da31edf3.yml -openapi_spec_hash: 156f8c8acdf021ea023d1db57db8f73f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c715f3e202d1d4b7398b9d9ba271169d4d4bcbd9c99a020a16753e21130fe223.yml +openapi_spec_hash: 2036b74457c0d27d7fa535980e29ab08 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index dabb97ef..daa2eca4 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="tempore", 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="tempore", 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="tempore", 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="tempore", 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="tempore", 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="tempore", 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="tempore", 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="tempore", 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="tempore", 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="tempore", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 6264fa0d..15dbe2ac 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="fugiat", + 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="fugiat", + 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 f66b90ab..884361f5 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="cupiditate", 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="cupiditate", 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="cupiditate", 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="cupiditate", 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="cupiditate", 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="cupiditate", 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="cupiditate", 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="cupiditate", 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="cupiditate", 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="cupiditate", 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="cupiditate", 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="cupiditate", 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="cupiditate", 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="cupiditate", 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="cupiditate", 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="cupiditate", 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="cupiditate", 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="cupiditate", 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="cupiditate", 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="cupiditate", 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 aa735c97..7549791e 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/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index bee32fe6..75c8be26 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="in", + path_story_id="sit", 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="in", + path_story_id="sit", 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="in", + path_story_id="sit", 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="in", + path_story_id="sit", 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="in", + story_id="sit", 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="in", + story_id="sit", 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="in", + story_id="sit", 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="in", + story_id="sit", 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="in", + path_story_id="sit", 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="in", + path_story_id="sit", 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="in", + path_story_id="sit", 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="in", + path_story_id="sit", 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="in", + story_id="sit", 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="in", + story_id="sit", 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="in", + story_id="sit", 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="in", + story_id="sit", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 05714e62..e0865538 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( - "totam", + "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( - "totam", + "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( - "totam", + "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( - "totam", + "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( - "totam", + "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( - "totam", + "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 2184a972..d87217dc 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -160,22 +160,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( _internal_automatic_syncs_disabled=False, - auth_id="quidem", - auth_type="raw_data", - cookies="inventore", + auth_id="architecto", + auth_type="email_password", + cookies="molestiae", custom_proxy={ "host": "proxy.example.com", - "password": "p~}9w:4'FL(UKv`", + "password": "4LTo`WYrb.P", "port": 8080, - "username": "eaque", + "username": "provident", }, - email="florine.smith@example.net", - force_connect=False, - name="sed", - password="uj!7M%g[|P6|", - proxy_country="us", - user_agent="ut", - xbc="ut", + email="levi.wisozk@example.net", + force_connect=True, + name="ullam", + password="fqfGHi-Mn", + proxy_country="uk", + user_agent="ratione", + xbc="molestiae", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -396,22 +396,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( _internal_automatic_syncs_disabled=False, - auth_id="quidem", - auth_type="raw_data", - cookies="inventore", + auth_id="architecto", + auth_type="email_password", + cookies="molestiae", custom_proxy={ "host": "proxy.example.com", - "password": "p~}9w:4'FL(UKv`", + "password": "4LTo`WYrb.P", "port": 8080, - "username": "eaque", + "username": "provident", }, - email="florine.smith@example.net", - force_connect=False, - name="sed", - password="uj!7M%g[|P6|", - proxy_country="us", - user_agent="ut", - xbc="ut", + email="levi.wisozk@example.net", + force_connect=True, + name="ullam", + password="fqfGHi-Mn", + proxy_country="uk", + user_agent="ratione", + 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 3597ede6..9249f386 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 aaff3bff..4fb0fa41 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="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="promotions", + type="subscriptions", ) 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 33a98df8..cea2dec6 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": ["fpimrktlfnyom"]}, + filter={"tags": ["zsreuxusjnrovbo"]}, 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="necessitatibus", + smart_link_id="eum", ) 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="necessitatibus", + smart_link_id="eum", 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="necessitatibus", + smart_link_id="eum", ) 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="necessitatibus", + smart_link_id="eum", ) 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="quo", + smart_link_id="itaque", ) 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="quo", + smart_link_id="itaque", 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="quo", + smart_link_id="itaque", ) 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="quo", + smart_link_id="itaque", ) 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="omnis", + smart_link_id="error", ) 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="omnis", + smart_link_id="error", 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="omnis", + smart_link_id="error", ) 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="omnis", + smart_link_id="error", ) 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="distinctio", + smart_link_id="et", ) 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="distinctio", + smart_link_id="et", 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="distinctio", + smart_link_id="et", ) 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="distinctio", + smart_link_id="et", ) 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="reiciendis", + smart_link_id="doloribus", ) 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="reiciendis", + smart_link_id="doloribus", 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="reiciendis", + smart_link_id="doloribus", ) 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="reiciendis", + smart_link_id="doloribus", ) 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="quia", + smart_link_id="voluptatem", ) 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="quia", + smart_link_id="voluptatem", 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="quia", + smart_link_id="voluptatem", ) 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="quia", + smart_link_id="voluptatem", ) 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": ["fpimrktlfnyom"]}, + filter={"tags": ["zsreuxusjnrovbo"]}, 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="necessitatibus", + smart_link_id="eum", ) 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="necessitatibus", + smart_link_id="eum", 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="necessitatibus", + smart_link_id="eum", ) 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="necessitatibus", + smart_link_id="eum", ) 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="quo", + smart_link_id="itaque", ) 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="quo", + smart_link_id="itaque", 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="quo", + smart_link_id="itaque", ) 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="quo", + smart_link_id="itaque", ) 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="omnis", + smart_link_id="error", ) 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="omnis", + smart_link_id="error", 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="omnis", + smart_link_id="error", ) 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="omnis", + smart_link_id="error", ) 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="distinctio", + smart_link_id="et", ) 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="distinctio", + smart_link_id="et", 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="distinctio", + smart_link_id="et", ) 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="distinctio", + smart_link_id="et", ) 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="reiciendis", + smart_link_id="doloribus", ) 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="reiciendis", + smart_link_id="doloribus", 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="reiciendis", + smart_link_id="doloribus", ) 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="reiciendis", + smart_link_id="doloribus", ) 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="quia", + smart_link_id="voluptatem", ) 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="quia", + smart_link_id="voluptatem", 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="quia", + smart_link_id="voluptatem", ) 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="quia", + 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 48bd3f21..f8175839 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": "lxhyk", - "tags": ["kxrufoyczdisscu"], + "search": "inpeefccybelehkble", + "tags": ["iihurhvgnf"], }, 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": "vddytcrguagazrqokmqfhpf", - "tags": ["fdld"], + "search": "sqpmu", + "tags": ["ervflrleustfcnzchgmoety"], }, 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": "dzckulszumzzguh", - "tags": ["qbkvx"], + "include_smart_links": True, + "search": "ahontrcghzhvtlww", + "tags": ["uholgkiqaubycpre"], }, 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": "sodxncfkwlukxkxkfqsjqemb", - "tags": ["kyfazhbvjpdg"], + "search": "jswflxttlxkuwcnuwlbjdpyw", + "tags": ["edr"], }, 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": "lxhyk", - "tags": ["kxrufoyczdisscu"], + "search": "inpeefccybelehkble", + "tags": ["iihurhvgnf"], }, 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": "vddytcrguagazrqokmqfhpf", - "tags": ["fdld"], + "search": "sqpmu", + "tags": ["ervflrleustfcnzchgmoety"], }, 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": "dzckulszumzzguh", - "tags": ["qbkvx"], + "include_smart_links": True, + "search": "ahontrcghzhvtlww", + "tags": ["uholgkiqaubycpre"], }, 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": "sodxncfkwlukxkxkfqsjqemb", - "tags": ["kyfazhbvjpdg"], + "search": "jswflxttlxkuwcnuwlbjdpyw", + "tags": ["edr"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index d9ccfd0c..0dfef25d 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="nobis", + tracking_link_id="quis", 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="nobis", + tracking_link_id="quis", 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="nobis", + tracking_link_id="quis", 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="nobis", + tracking_link_id="quis", 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="nobis", + tracking_link_id="quis", 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="nobis", + tracking_link_id="quis", 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="nobis", + tracking_link_id="quis", 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="nobis", + tracking_link_id="quis", 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="magni", + tracking_link_id="consequatur", 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="magni", + tracking_link_id="consequatur", 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="magni", + tracking_link_id="consequatur", 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="magni", + tracking_link_id="consequatur", 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="magni", + tracking_link_id="consequatur", 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="doloribus", + tracking_link_id="deleniti", 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="doloribus", + tracking_link_id="deleniti", 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="doloribus", + tracking_link_id="deleniti", 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="doloribus", + tracking_link_id="deleniti", 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="doloribus", + tracking_link_id="deleniti", 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="nobis", + tracking_link_id="quis", 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="nobis", + tracking_link_id="quis", 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="nobis", + tracking_link_id="quis", 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="nobis", + tracking_link_id="quis", 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="nobis", + tracking_link_id="quis", 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="nobis", + tracking_link_id="quis", 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="nobis", + tracking_link_id="quis", 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="nobis", + tracking_link_id="quis", 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="magni", + tracking_link_id="consequatur", 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="magni", + tracking_link_id="consequatur", 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="magni", + tracking_link_id="consequatur", 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="magni", + tracking_link_id="consequatur", 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="magni", + tracking_link_id="consequatur", 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="doloribus", + tracking_link_id="deleniti", 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="doloribus", + tracking_link_id="deleniti", 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="doloribus", + tracking_link_id="deleniti", 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="doloribus", + tracking_link_id="deleniti", 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="doloribus", + tracking_link_id="deleniti", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index ac9d9411..89acf418 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="vel", + trial_link_id="aut", 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="vel", + trial_link_id="aut", 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="vel", + trial_link_id="aut", 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="vel", + trial_link_id="aut", 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="vel", + trial_link_id="aut", 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="vel", + trial_link_id="aut", 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="vel", + trial_link_id="aut", 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="vel", + trial_link_id="aut", 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="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="et", + 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="et", + 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="et", + 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="nulla", + trial_link_id="in", 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="nulla", + trial_link_id="in", 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="nulla", + trial_link_id="in", 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="nulla", + trial_link_id="in", 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="nulla", + trial_link_id="in", 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="ea", + trial_link_id="temporibus", 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="ea", + trial_link_id="temporibus", 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="ea", + trial_link_id="temporibus", 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="ea", + trial_link_id="temporibus", 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="ea", + trial_link_id="temporibus", 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="vel", + trial_link_id="aut", 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="vel", + trial_link_id="aut", 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="vel", + trial_link_id="aut", 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="vel", + trial_link_id="aut", 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="vel", + trial_link_id="aut", 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="vel", + trial_link_id="aut", 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="vel", + trial_link_id="aut", 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="vel", + trial_link_id="aut", 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="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="et", + 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="et", + 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="et", + 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="nulla", + trial_link_id="in", 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="nulla", + trial_link_id="in", 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="nulla", + trial_link_id="in", 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="nulla", + trial_link_id="in", 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="nulla", + trial_link_id="in", 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="ea", + trial_link_id="temporibus", 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="ea", + trial_link_id="temporibus", 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="ea", + trial_link_id="temporibus", 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="ea", + trial_link_id="temporibus", 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="ea", + trial_link_id="temporibus", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 1b2c448d..431a82cd 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="sastftobgbhmqibh", + name="nsavenchjsdkznkcy", ) 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="sastftobgbhmqibh", + name="nsavenchjsdkznkcy", ) 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="sastftobgbhmqibh", + name="nsavenchjsdkznkcy", ) 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="sastftobgbhmqibh", + name="nsavenchjsdkznkcy", ) @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="sastftobgbhmqibh", + name="nsavenchjsdkznkcy", ) 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="sastftobgbhmqibh", + name="nsavenchjsdkznkcy", ) 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="sastftobgbhmqibh", + name="nsavenchjsdkznkcy", ) 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="sastftobgbhmqibh", + name="nsavenchjsdkznkcy", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 7dd3175dea435e9d03ba94cd548b45588cdadc12 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 25 Jun 2026 15:12:33 +0000 Subject: [PATCH 099/249] 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_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 +-- 16 files changed, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index 121535df..8999d039 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c715f3e202d1d4b7398b9d9ba271169d4d4bcbd9c99a020a16753e21130fe223.yml -openapi_spec_hash: 2036b74457c0d27d7fa535980e29ab08 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-50d0abf343b151483fef7b3f9336312ea10fe344678fcaef872aeb79208476d0.yml +openapi_spec_hash: 09419fb52bdc9eed8527dac1ac0f54ff config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index daa2eca4..aa30020e 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="tempore", + message_id="perferendis", 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="tempore", + message_id="perferendis", 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="tempore", + message_id="perferendis", 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="tempore", + message_id="perferendis", 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="tempore", + message_id="perferendis", 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="tempore", + message_id="perferendis", 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="tempore", + message_id="perferendis", 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="tempore", + message_id="perferendis", 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="tempore", + message_id="perferendis", 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="tempore", + message_id="perferendis", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 15dbe2ac..d3c94b72 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="dicta", 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="dicta", 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="dicta", 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="dicta", 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="dicta", 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="dicta", 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="dicta", 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="dicta", 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="dicta", 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="dicta", 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="dicta", 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="dicta", 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="dicta", 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="dicta", 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="dicta", 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="dicta", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 884361f5..6728f778 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + post_id="deserunt", 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 b5f3d61a..9c80483e 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075f..544df889 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 75c8be26..1d8e7702 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="sit", + path_story_id="consequuntur", 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="sit", + path_story_id="consequuntur", 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="sit", + path_story_id="consequuntur", 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="sit", + path_story_id="consequuntur", 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="sit", + story_id="consequuntur", 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="sit", + story_id="consequuntur", 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="sit", + story_id="consequuntur", 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="sit", + story_id="consequuntur", 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="sit", + path_story_id="consequuntur", 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="sit", + path_story_id="consequuntur", 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="sit", + path_story_id="consequuntur", 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="sit", + path_story_id="consequuntur", 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="sit", + story_id="consequuntur", 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="sit", + story_id="consequuntur", 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="sit", + story_id="consequuntur", 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="sit", + story_id="consequuntur", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index e0865538..c1e02f66 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", + "libero", ) 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", + "libero", ) 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", + "libero", ) 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", + "libero", ) 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", + "libero", ) 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", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index d87217dc..77b8282f 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,23 +159,23 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - _internal_automatic_syncs_disabled=False, - auth_id="architecto", - auth_type="email_password", - cookies="molestiae", + _internal_automatic_syncs_disabled=True, + auth_id="voluptate", + auth_type="mobile_app", + cookies="quod", custom_proxy={ "host": "proxy.example.com", - "password": "4LTo`WYrb.P", + "password": "Zfo!5c.^", "port": 8080, - "username": "provident", + "username": "magnam", }, - email="levi.wisozk@example.net", + email="gislason.dolores@example.org", force_connect=True, - name="ullam", - password="fqfGHi-Mn", + name="voluptate", + password="!o55+s", proxy_country="uk", - user_agent="ratione", - xbc="molestiae", + user_agent="et", + xbc="sed", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -395,23 +395,23 @@ 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( - _internal_automatic_syncs_disabled=False, - auth_id="architecto", - auth_type="email_password", - cookies="molestiae", + _internal_automatic_syncs_disabled=True, + auth_id="voluptate", + auth_type="mobile_app", + cookies="quod", custom_proxy={ "host": "proxy.example.com", - "password": "4LTo`WYrb.P", + "password": "Zfo!5c.^", "port": 8080, - "username": "provident", + "username": "magnam", }, - email="levi.wisozk@example.net", + email="gislason.dolores@example.org", force_connect=True, - name="ullam", - password="fqfGHi-Mn", + name="voluptate", + password="!o55+s", proxy_country="uk", - user_agent="ratione", - xbc="molestiae", + user_agent="et", + xbc="sed", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 4fb0fa41..aaff3bff 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="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="subscriptions", + 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 65694e23..bd4f6161 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 cea2dec6..371c2157 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": ["zsreuxusjnrovbo"]}, + filter={"tags": ["rtwhn"]}, 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="eum", + smart_link_id="nostrum", ) 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="eum", + smart_link_id="nostrum", 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="eum", + smart_link_id="nostrum", ) 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="eum", + smart_link_id="nostrum", ) 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="itaque", + smart_link_id="officiis", ) 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="itaque", + smart_link_id="officiis", 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="itaque", + smart_link_id="officiis", ) 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="itaque", + smart_link_id="officiis", ) 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="error", + smart_link_id="et", ) 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="error", + smart_link_id="et", 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="error", + smart_link_id="et", ) 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="error", + smart_link_id="et", ) 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="et", + smart_link_id="rerum", ) 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="et", + smart_link_id="rerum", 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="et", + smart_link_id="rerum", ) 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="et", + smart_link_id="rerum", ) 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="doloribus", + smart_link_id="quia", ) 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="doloribus", + smart_link_id="quia", 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="doloribus", + smart_link_id="quia", ) 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="doloribus", + smart_link_id="quia", ) 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="voluptatem", + smart_link_id="vitae", ) 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="voluptatem", + smart_link_id="vitae", 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="voluptatem", + smart_link_id="vitae", ) 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="voluptatem", + smart_link_id="vitae", ) 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": ["zsreuxusjnrovbo"]}, + filter={"tags": ["rtwhn"]}, 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="eum", + smart_link_id="nostrum", ) 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="eum", + smart_link_id="nostrum", 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="eum", + smart_link_id="nostrum", ) 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="eum", + smart_link_id="nostrum", ) 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="itaque", + smart_link_id="officiis", ) 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="itaque", + smart_link_id="officiis", 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="itaque", + smart_link_id="officiis", ) 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="itaque", + smart_link_id="officiis", ) 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="error", + smart_link_id="et", ) 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="error", + smart_link_id="et", 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="error", + smart_link_id="et", ) 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="error", + smart_link_id="et", ) 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="et", + smart_link_id="rerum", ) 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="et", + smart_link_id="rerum", 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="et", + smart_link_id="rerum", ) 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="et", + smart_link_id="rerum", ) 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="doloribus", + smart_link_id="quia", ) 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="doloribus", + smart_link_id="quia", 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="doloribus", + smart_link_id="quia", ) 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="doloribus", + smart_link_id="quia", ) 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="voluptatem", + smart_link_id="vitae", ) 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="voluptatem", + smart_link_id="vitae", 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="voluptatem", + smart_link_id="vitae", ) 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="voluptatem", + smart_link_id="vitae", ) 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 f8175839..22cc9e3f 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": "inpeefccybelehkble", - "tags": ["iihurhvgnf"], + "search": "to", + "tags": ["nfoejzqszqjczntk"], }, 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": "sqpmu", - "tags": ["ervflrleustfcnzchgmoety"], + "search": "r", + "tags": ["wkqwdnjyluis"], }, 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": "ahontrcghzhvtlww", - "tags": ["uholgkiqaubycpre"], + "search": "ugrlipgdjwxjedc", + "tags": ["yhjbdysqpjzlspihryoz"], }, 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": "jswflxttlxkuwcnuwlbjdpyw", - "tags": ["edr"], + "include_smart_links": False, + "search": "ljpfbwedzhlojptvm", + "tags": ["l"], }, 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": "inpeefccybelehkble", - "tags": ["iihurhvgnf"], + "search": "to", + "tags": ["nfoejzqszqjczntk"], }, 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": "sqpmu", - "tags": ["ervflrleustfcnzchgmoety"], + "search": "r", + "tags": ["wkqwdnjyluis"], }, 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": "ahontrcghzhvtlww", - "tags": ["uholgkiqaubycpre"], + "search": "ugrlipgdjwxjedc", + "tags": ["yhjbdysqpjzlspihryoz"], }, 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": "jswflxttlxkuwcnuwlbjdpyw", - "tags": ["edr"], + "include_smart_links": False, + "search": "ljpfbwedzhlojptvm", + "tags": ["l"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 0dfef25d..b05f17bf 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="quis", + tracking_link_id="officiis", 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="quis", + tracking_link_id="officiis", 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="quis", + tracking_link_id="officiis", 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="quis", + tracking_link_id="officiis", 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="quis", + tracking_link_id="officiis", 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="quis", + tracking_link_id="officiis", 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="quis", + tracking_link_id="officiis", 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="quis", + tracking_link_id="officiis", 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="consequatur", + tracking_link_id="quae", 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="consequatur", + tracking_link_id="quae", 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="consequatur", + tracking_link_id="quae", 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="consequatur", + tracking_link_id="quae", 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="consequatur", + tracking_link_id="quae", 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="deleniti", + 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="deleniti", + 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="deleniti", + 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="deleniti", + 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="deleniti", + 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="quis", + tracking_link_id="officiis", 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="quis", + tracking_link_id="officiis", 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="quis", + tracking_link_id="officiis", 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="quis", + tracking_link_id="officiis", 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="quis", + tracking_link_id="officiis", 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="quis", + tracking_link_id="officiis", 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="quis", + tracking_link_id="officiis", 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="quis", + tracking_link_id="officiis", 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="consequatur", + tracking_link_id="quae", 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="consequatur", + tracking_link_id="quae", 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="consequatur", + tracking_link_id="quae", 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="consequatur", + tracking_link_id="quae", 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="consequatur", + tracking_link_id="quae", 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="deleniti", + 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="deleniti", + 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="deleniti", + 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="deleniti", + 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="deleniti", + tracking_link_id="amet", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 89acf418..25940ed4 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="aut", + trial_link_id="hic", 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="aut", + trial_link_id="hic", 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="aut", + trial_link_id="hic", 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="aut", + trial_link_id="hic", 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="aut", + trial_link_id="hic", 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="aut", + trial_link_id="hic", 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="aut", + trial_link_id="hic", 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="aut", + trial_link_id="hic", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="in", + trial_link_id="cumque", 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="in", + trial_link_id="cumque", 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="in", + trial_link_id="cumque", 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="in", + trial_link_id="cumque", 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="in", + trial_link_id="cumque", 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="temporibus", + trial_link_id="velit", 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="temporibus", + trial_link_id="velit", 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="temporibus", + trial_link_id="velit", 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="temporibus", + trial_link_id="velit", 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="temporibus", + trial_link_id="velit", 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="aut", + trial_link_id="hic", 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="aut", + trial_link_id="hic", 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="aut", + trial_link_id="hic", 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="aut", + trial_link_id="hic", 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="aut", + trial_link_id="hic", 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="aut", + trial_link_id="hic", 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="aut", + trial_link_id="hic", 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="aut", + trial_link_id="hic", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="in", + trial_link_id="cumque", 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="in", + trial_link_id="cumque", 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="in", + trial_link_id="cumque", 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="in", + trial_link_id="cumque", 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="in", + trial_link_id="cumque", 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="temporibus", + trial_link_id="velit", 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="temporibus", + trial_link_id="velit", 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="temporibus", + trial_link_id="velit", 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="temporibus", + trial_link_id="velit", 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="temporibus", + trial_link_id="velit", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 431a82cd..0866f77d 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="nsavenchjsdkznkcy", + name="sasjvijtuprqonjxtwnbmx", ) 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="nsavenchjsdkznkcy", + name="sasjvijtuprqonjxtwnbmx", ) 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="nsavenchjsdkznkcy", + name="sasjvijtuprqonjxtwnbmx", ) 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="nsavenchjsdkznkcy", + name="sasjvijtuprqonjxtwnbmx", ) @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="nsavenchjsdkznkcy", + name="sasjvijtuprqonjxtwnbmx", ) 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="nsavenchjsdkznkcy", + name="sasjvijtuprqonjxtwnbmx", ) 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="nsavenchjsdkznkcy", + name="sasjvijtuprqonjxtwnbmx", ) 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="nsavenchjsdkznkcy", + name="sasjvijtuprqonjxtwnbmx", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 86e264e4f4596e989c1227b0f8717a562ccb5c8a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 25 Jun 2026 17:12:34 +0000 Subject: [PATCH 100/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/authenticate.py | 4 - .../types/authenticate_start_params.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/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 | 50 +++++---- 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 +-- 18 files changed, 264 insertions(+), 272 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8999d039..ddb5b0c4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-50d0abf343b151483fef7b3f9336312ea10fe344678fcaef872aeb79208476d0.yml -openapi_spec_hash: 09419fb52bdc9eed8527dac1ac0f54ff +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9ca8a87d0f54fdf9922c090c17f5ee283468321eec53f061132c4524c29cdf26.yml +openapi_spec_hash: e31a26532527e5408227d7eafb336f99 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/authenticate.py b/src/onlyfansapi/resources/authenticate.py index f6b45848..aae19208 100644 --- a/src/onlyfansapi/resources/authenticate.py +++ b/src/onlyfansapi/resources/authenticate.py @@ -157,7 +157,6 @@ def send_2fa_email( def start( self, *, - _internal_automatic_syncs_disabled: bool | Omit = omit, auth_id: str | Omit = omit, auth_type: Literal["email_password", "raw_data", "mobile_app"] | Omit = omit, cookies: str | Omit = omit, @@ -232,7 +231,6 @@ def start( "/api/authenticate", body=maybe_transform( { - "_internal_automatic_syncs_disabled": _internal_automatic_syncs_disabled, "auth_id": auth_id, "auth_type": auth_type, "cookies": cookies, @@ -434,7 +432,6 @@ async def send_2fa_email( async def start( self, *, - _internal_automatic_syncs_disabled: bool | Omit = omit, auth_id: str | Omit = omit, auth_type: Literal["email_password", "raw_data", "mobile_app"] | Omit = omit, cookies: str | Omit = omit, @@ -509,7 +506,6 @@ async def start( "/api/authenticate", body=await async_maybe_transform( { - "_internal_automatic_syncs_disabled": _internal_automatic_syncs_disabled, "auth_id": auth_id, "auth_type": auth_type, "cookies": cookies, diff --git a/src/onlyfansapi/types/authenticate_start_params.py b/src/onlyfansapi/types/authenticate_start_params.py index 18186743..0c7d0590 100644 --- a/src/onlyfansapi/types/authenticate_start_params.py +++ b/src/onlyfansapi/types/authenticate_start_params.py @@ -10,8 +10,6 @@ class AuthenticateStartParams(TypedDict, total=False): - _internal_automatic_syncs_disabled: bool - auth_id: str """The auth_id from OnlyFans session cookies. diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index aa30020e..74a8622b 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="perferendis", + message_id="non", 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="perferendis", + message_id="non", 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="perferendis", + message_id="non", 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="perferendis", + message_id="non", 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="perferendis", + message_id="non", 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="perferendis", + message_id="non", 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="perferendis", + message_id="non", 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="perferendis", + message_id="non", 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="perferendis", + message_id="non", 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="perferendis", + message_id="non", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index d3c94b72..126fe602 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="dicta", + list_id="modi", 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="dicta", + list_id="modi", 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="dicta", + list_id="modi", 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="dicta", + list_id="modi", 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="dicta", + list_id="modi", 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="dicta", + list_id="modi", 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="dicta", + list_id="modi", 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="dicta", + list_id="modi", 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="dicta", + list_id="modi", 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="dicta", + list_id="modi", 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="dicta", + list_id="modi", 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="dicta", + list_id="modi", 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="dicta", + list_id="modi", 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="dicta", + list_id="modi", 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="dicta", + list_id="modi", 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="dicta", + list_id="modi", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 6728f778..0d70ffc7 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="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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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 9c80483e..fc7b1635 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 544df889..9664075f 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 1d8e7702..34837627 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="consequuntur", + path_story_id="quisquam", 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="consequuntur", + path_story_id="quisquam", 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="consequuntur", + path_story_id="quisquam", 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="consequuntur", + path_story_id="quisquam", 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="consequuntur", + story_id="quisquam", 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="consequuntur", + story_id="quisquam", 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="consequuntur", + story_id="quisquam", 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="consequuntur", + story_id="quisquam", 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="consequuntur", + path_story_id="quisquam", 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="consequuntur", + path_story_id="quisquam", 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="consequuntur", + path_story_id="quisquam", 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="consequuntur", + path_story_id="quisquam", 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="consequuntur", + story_id="quisquam", 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="consequuntur", + story_id="quisquam", 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="consequuntur", + story_id="quisquam", 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="consequuntur", + story_id="quisquam", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index c1e02f66..e12e80ca 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( - "libero", + "non", ) 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( - "libero", + "non", ) 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( - "libero", + "non", ) 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( - "libero", + "non", ) 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( - "libero", + "non", ) 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( - "libero", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 77b8282f..59ab342b 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,23 +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( - _internal_automatic_syncs_disabled=True, - auth_id="voluptate", - auth_type="mobile_app", - cookies="quod", + auth_id="rerum", + auth_type="raw_data", + cookies="omnis", custom_proxy={ "host": "proxy.example.com", - "password": "Zfo!5c.^", + "password": "i\"D#'T22He3pI", "port": 8080, - "username": "magnam", + "username": "veniam", }, - email="gislason.dolores@example.org", - force_connect=True, - name="voluptate", - password="!o55+s", - proxy_country="uk", - user_agent="et", - xbc="sed", + email="mason37@example.com", + force_connect=False, + name="officia", + password="#SS&Pc", + proxy_country="us", + user_agent="culpa", + xbc="voluptatem", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -395,23 +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( - _internal_automatic_syncs_disabled=True, - auth_id="voluptate", - auth_type="mobile_app", - cookies="quod", + auth_id="rerum", + auth_type="raw_data", + cookies="omnis", custom_proxy={ "host": "proxy.example.com", - "password": "Zfo!5c.^", + "password": "i\"D#'T22He3pI", "port": 8080, - "username": "magnam", + "username": "veniam", }, - email="gislason.dolores@example.org", - force_connect=True, - name="voluptate", - password="!o55+s", - proxy_country="uk", - user_agent="et", - xbc="sed", + email="mason37@example.com", + force_connect=False, + name="officia", + password="#SS&Pc", + proxy_country="us", + user_agent="culpa", + xbc="voluptatem", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index aaff3bff..4d3e426f 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="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="promotions", + 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 bd4f6161..65694e23 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 371c2157..69f1edc3 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": ["rtwhn"]}, + filter={"tags": ["e"]}, 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="nostrum", + smart_link_id="voluptas", ) 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="nostrum", + smart_link_id="voluptas", 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="nostrum", + smart_link_id="voluptas", ) 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="nostrum", + smart_link_id="voluptas", ) 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="officiis", + smart_link_id="voluptatem", ) 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="officiis", + smart_link_id="voluptatem", 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="officiis", + smart_link_id="voluptatem", ) 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="officiis", + smart_link_id="voluptatem", ) 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="et", + smart_link_id="labore", ) 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="et", + smart_link_id="labore", 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="et", + smart_link_id="labore", ) 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="et", + smart_link_id="labore", ) 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="rerum", + smart_link_id="sed", ) 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="rerum", + smart_link_id="sed", 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="rerum", + smart_link_id="sed", ) 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="rerum", + smart_link_id="sed", ) 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="quia", + smart_link_id="eveniet", ) 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="quia", + smart_link_id="eveniet", 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="quia", + smart_link_id="eveniet", ) 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="quia", + smart_link_id="eveniet", ) 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="vitae", + smart_link_id="doloribus", ) 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="vitae", + smart_link_id="doloribus", 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="vitae", + smart_link_id="doloribus", ) 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="vitae", + smart_link_id="doloribus", ) 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": ["rtwhn"]}, + filter={"tags": ["e"]}, 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="nostrum", + smart_link_id="voluptas", ) 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="nostrum", + smart_link_id="voluptas", 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="nostrum", + smart_link_id="voluptas", ) 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="nostrum", + smart_link_id="voluptas", ) 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="officiis", + smart_link_id="voluptatem", ) 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="officiis", + smart_link_id="voluptatem", 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="officiis", + smart_link_id="voluptatem", ) 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="officiis", + smart_link_id="voluptatem", ) 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="et", + smart_link_id="labore", ) 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="et", + smart_link_id="labore", 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="et", + smart_link_id="labore", ) 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="et", + smart_link_id="labore", ) 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="rerum", + smart_link_id="sed", ) 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="rerum", + smart_link_id="sed", 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="rerum", + smart_link_id="sed", ) 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="rerum", + smart_link_id="sed", ) 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="quia", + smart_link_id="eveniet", ) 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="quia", + smart_link_id="eveniet", 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="quia", + smart_link_id="eveniet", ) 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="quia", + smart_link_id="eveniet", ) 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="vitae", + smart_link_id="doloribus", ) 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="vitae", + smart_link_id="doloribus", 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="vitae", + smart_link_id="doloribus", ) 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="vitae", + smart_link_id="doloribus", ) 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 22cc9e3f..e32dabbc 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": "to", - "tags": ["nfoejzqszqjczntk"], + "search": "ezqajlha", + "tags": ["sbi"], }, 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": "r", - "tags": ["wkqwdnjyluis"], + "search": "aubntwtdvvfmufeegmn", + "tags": ["cz"], }, 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": "ugrlipgdjwxjedc", - "tags": ["yhjbdysqpjzlspihryoz"], + "search": "pppzw", + "tags": ["wwavhqfvlzll"], }, 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": "ljpfbwedzhlojptvm", - "tags": ["l"], + "include_smart_links": True, + "search": "stlczf", + "tags": ["wkonqzxhjpgvyoiaraxrznyoe"], }, 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": "to", - "tags": ["nfoejzqszqjczntk"], + "search": "ezqajlha", + "tags": ["sbi"], }, 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": "r", - "tags": ["wkqwdnjyluis"], + "search": "aubntwtdvvfmufeegmn", + "tags": ["cz"], }, 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": "ugrlipgdjwxjedc", - "tags": ["yhjbdysqpjzlspihryoz"], + "search": "pppzw", + "tags": ["wwavhqfvlzll"], }, 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": "ljpfbwedzhlojptvm", - "tags": ["l"], + "include_smart_links": True, + "search": "stlczf", + "tags": ["wkonqzxhjpgvyoiaraxrznyoe"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index b05f17bf..ce8dfb3d 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="officiis", + tracking_link_id="temporibus", 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="officiis", + tracking_link_id="temporibus", 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="officiis", + tracking_link_id="temporibus", 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="officiis", + tracking_link_id="temporibus", 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="officiis", + tracking_link_id="temporibus", 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="officiis", + tracking_link_id="temporibus", 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="officiis", + tracking_link_id="temporibus", 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="officiis", + tracking_link_id="temporibus", 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="quae", + tracking_link_id="sint", 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="quae", + tracking_link_id="sint", 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="quae", + tracking_link_id="sint", 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="quae", + tracking_link_id="sint", 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="quae", + tracking_link_id="sint", 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="quo", 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="quo", 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="quo", 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="quo", 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="quo", 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="officiis", + tracking_link_id="temporibus", 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="officiis", + tracking_link_id="temporibus", 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="officiis", + tracking_link_id="temporibus", 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="officiis", + tracking_link_id="temporibus", 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="officiis", + tracking_link_id="temporibus", 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="officiis", + tracking_link_id="temporibus", 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="officiis", + tracking_link_id="temporibus", 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="officiis", + tracking_link_id="temporibus", 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="quae", + tracking_link_id="sint", 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="quae", + tracking_link_id="sint", 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="quae", + tracking_link_id="sint", 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="quae", + tracking_link_id="sint", 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="quae", + tracking_link_id="sint", 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="quo", 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="quo", 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="quo", 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="quo", 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="quo", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 25940ed4..d59b866c 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="hic", + trial_link_id="nobis", 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="hic", + trial_link_id="nobis", 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="hic", + trial_link_id="nobis", 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="hic", + trial_link_id="nobis", 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="hic", + trial_link_id="nobis", 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="hic", + trial_link_id="nobis", 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="hic", + trial_link_id="nobis", 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="hic", + trial_link_id="nobis", 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="expedita", + trial_link_id="exercitationem", 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="expedita", + trial_link_id="exercitationem", 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="expedita", + trial_link_id="exercitationem", 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="expedita", + trial_link_id="exercitationem", 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="cumque", + 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="cumque", + 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="cumque", + 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="cumque", + 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="cumque", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="hic", + trial_link_id="nobis", 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="hic", + trial_link_id="nobis", 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="hic", + trial_link_id="nobis", 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="hic", + trial_link_id="nobis", 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="hic", + trial_link_id="nobis", 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="hic", + trial_link_id="nobis", 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="hic", + trial_link_id="nobis", 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="hic", + trial_link_id="nobis", 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="expedita", + trial_link_id="exercitationem", 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="expedita", + trial_link_id="exercitationem", 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="expedita", + trial_link_id="exercitationem", 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="expedita", + trial_link_id="exercitationem", 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="cumque", + 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="cumque", + 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="cumque", + 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="cumque", + 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="cumque", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + trial_link_id="aut", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 0866f77d..8ddba471 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="sasjvijtuprqonjxtwnbmx", + name="hmrbsnivyh", ) 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="sasjvijtuprqonjxtwnbmx", + name="hmrbsnivyh", ) 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="sasjvijtuprqonjxtwnbmx", + name="hmrbsnivyh", ) 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="sasjvijtuprqonjxtwnbmx", + name="hmrbsnivyh", ) @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="sasjvijtuprqonjxtwnbmx", + name="hmrbsnivyh", ) 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="sasjvijtuprqonjxtwnbmx", + name="hmrbsnivyh", ) 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="sasjvijtuprqonjxtwnbmx", + name="hmrbsnivyh", ) 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="sasjvijtuprqonjxtwnbmx", + name="hmrbsnivyh", ) @pytest.mark.skip(reason="Mock server tests are disabled") From ff8013848469ba5059d0ae9f43164ea3de6f17ec Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 25 Jun 2026 19:12:40 +0000 Subject: [PATCH 101/249] 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 | 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 +-- 16 files changed, 266 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index ddb5b0c4..0b022882 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9ca8a87d0f54fdf9922c090c17f5ee283468321eec53f061132c4524c29cdf26.yml -openapi_spec_hash: e31a26532527e5408227d7eafb336f99 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-389700aa8616bd4a08bfeea379ef64b22614ecd4e38f87777d569b3a5689c727.yml +openapi_spec_hash: 96b9e35a69e7b5385289875a017f3e7a config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 74a8622b..532dc0e8 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="non", + message_id="voluptatum", 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="non", + message_id="voluptatum", 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="non", + message_id="voluptatum", 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="non", + message_id="voluptatum", 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="non", + message_id="voluptatum", 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="non", + message_id="voluptatum", 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="non", + message_id="voluptatum", 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="non", + message_id="voluptatum", 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="non", + message_id="voluptatum", 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="non", + message_id="voluptatum", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 126fe602..6e6f0db5 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="modi", + list_id="reiciendis", 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="modi", + list_id="reiciendis", 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="modi", + list_id="reiciendis", 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="modi", + list_id="reiciendis", 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="modi", + list_id="reiciendis", 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="modi", + list_id="reiciendis", 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="modi", + list_id="reiciendis", 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="modi", + list_id="reiciendis", 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="modi", + list_id="reiciendis", 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="modi", + list_id="reiciendis", 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="modi", + list_id="reiciendis", 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="modi", + list_id="reiciendis", 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="modi", + list_id="reiciendis", 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="modi", + list_id="reiciendis", 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="modi", + list_id="reiciendis", 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="modi", + list_id="reiciendis", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 0d70ffc7..a17ff9ae 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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 7549791e..a62ccbd3 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index fc7b1635..9c80483e 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 34837627..7b3febb7 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="quisquam", + path_story_id="quasi", 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="quisquam", + path_story_id="quasi", 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="quisquam", + path_story_id="quasi", 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="quisquam", + path_story_id="quasi", 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="quisquam", + story_id="quasi", 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="quisquam", + story_id="quasi", 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="quisquam", + story_id="quasi", 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="quisquam", + story_id="quasi", 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="quisquam", + path_story_id="quasi", 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="quisquam", + path_story_id="quasi", 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="quisquam", + path_story_id="quasi", 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="quisquam", + path_story_id="quasi", 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="quisquam", + story_id="quasi", 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="quisquam", + story_id="quasi", 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="quisquam", + story_id="quasi", 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="quisquam", + story_id="quasi", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index e12e80ca..723dc6fb 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( - "non", + "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( - "non", + "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( - "non", + "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( - "non", + "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( - "non", + "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( - "non", + "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 59ab342b..9c0fc085 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="rerum", - auth_type="raw_data", - cookies="omnis", + auth_id="expedita", + auth_type="mobile_app", + cookies="voluptatibus", custom_proxy={ "host": "proxy.example.com", - "password": "i\"D#'T22He3pI", + "password": ")b6uW($CD,3p<==*[", "port": 8080, - "username": "veniam", + "username": "voluptas", }, - email="mason37@example.com", + email="hermiston.yasmine@example.com", force_connect=False, - name="officia", - password="#SS&Pc", + name="fuga", + password="'c~O}w:GY0T2ff", proxy_country="us", - user_agent="culpa", - xbc="voluptatem", + user_agent="possimus", + xbc="natus", ) 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="rerum", - auth_type="raw_data", - cookies="omnis", + auth_id="expedita", + auth_type="mobile_app", + cookies="voluptatibus", custom_proxy={ "host": "proxy.example.com", - "password": "i\"D#'T22He3pI", + "password": ")b6uW($CD,3p<==*[", "port": 8080, - "username": "veniam", + "username": "voluptas", }, - email="mason37@example.com", + email="hermiston.yasmine@example.com", force_connect=False, - name="officia", - password="#SS&Pc", + name="fuga", + password="'c~O}w:GY0T2ff", proxy_country="us", - user_agent="culpa", - xbc="voluptatem", + user_agent="possimus", + xbc="natus", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 4d3e426f..0f3980c1 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="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="mentions", + 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 65694e23..bd4f6161 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 69f1edc3..eb7a2229 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": ["e"]}, + filter={"tags": ["ammnqrnzyeuinmaiamyk"]}, 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="voluptas", + smart_link_id="aliquid", ) 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="voluptas", + smart_link_id="aliquid", 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="voluptas", + smart_link_id="aliquid", ) 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="voluptas", + smart_link_id="aliquid", ) 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="voluptatem", + smart_link_id="qui", ) 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="voluptatem", + smart_link_id="qui", 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="voluptatem", + smart_link_id="qui", ) 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="voluptatem", + smart_link_id="qui", ) 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="labore", + smart_link_id="animi", ) 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="labore", + smart_link_id="animi", 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="labore", + smart_link_id="animi", ) 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="labore", + smart_link_id="animi", ) 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="sed", + smart_link_id="quia", ) 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="sed", + smart_link_id="quia", 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="sed", + smart_link_id="quia", ) 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="sed", + smart_link_id="quia", ) 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="eveniet", + smart_link_id="aspernatur", ) 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="eveniet", + smart_link_id="aspernatur", 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="eveniet", + smart_link_id="aspernatur", ) 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="eveniet", + smart_link_id="aspernatur", ) 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="doloribus", + smart_link_id="atque", ) 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="doloribus", + smart_link_id="atque", 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="doloribus", + smart_link_id="atque", ) 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="doloribus", + smart_link_id="atque", ) 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": ["e"]}, + filter={"tags": ["ammnqrnzyeuinmaiamyk"]}, 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="voluptas", + smart_link_id="aliquid", ) 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="voluptas", + smart_link_id="aliquid", 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="voluptas", + smart_link_id="aliquid", ) 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="voluptas", + smart_link_id="aliquid", ) 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="voluptatem", + smart_link_id="qui", ) 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="voluptatem", + smart_link_id="qui", 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="voluptatem", + smart_link_id="qui", ) 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="voluptatem", + smart_link_id="qui", ) 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="labore", + smart_link_id="animi", ) 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="labore", + smart_link_id="animi", 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="labore", + smart_link_id="animi", ) 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="labore", + smart_link_id="animi", ) 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="sed", + smart_link_id="quia", ) 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="sed", + smart_link_id="quia", 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="sed", + smart_link_id="quia", ) 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="sed", + smart_link_id="quia", ) 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="eveniet", + smart_link_id="aspernatur", ) 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="eveniet", + smart_link_id="aspernatur", 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="eveniet", + smart_link_id="aspernatur", ) 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="eveniet", + smart_link_id="aspernatur", ) 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="doloribus", + smart_link_id="atque", ) 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="doloribus", + smart_link_id="atque", 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="doloribus", + smart_link_id="atque", ) 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="doloribus", + smart_link_id="atque", ) 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 e32dabbc..fc939a66 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": "ezqajlha", - "tags": ["sbi"], + "search": "hvereuykb", + "tags": ["vptietgarfzx"], }, 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": "aubntwtdvvfmufeegmn", - "tags": ["cz"], + "search": "acbpdxbikgdvhcc", + "tags": ["mvi"], }, 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": "pppzw", - "tags": ["wwavhqfvlzll"], + "include_smart_links": False, + "search": "aamuvdijpepmktjmjdbuqasl", + "tags": ["kj"], }, 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": "stlczf", - "tags": ["wkonqzxhjpgvyoiaraxrznyoe"], + "search": "t", + "tags": ["rbcqzizzmcn"], }, 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": "ezqajlha", - "tags": ["sbi"], + "search": "hvereuykb", + "tags": ["vptietgarfzx"], }, 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": "aubntwtdvvfmufeegmn", - "tags": ["cz"], + "search": "acbpdxbikgdvhcc", + "tags": ["mvi"], }, 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": "pppzw", - "tags": ["wwavhqfvlzll"], + "include_smart_links": False, + "search": "aamuvdijpepmktjmjdbuqasl", + "tags": ["kj"], }, 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": "stlczf", - "tags": ["wkonqzxhjpgvyoiaraxrznyoe"], + "search": "t", + "tags": ["rbcqzizzmcn"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index ce8dfb3d..c375b579 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="temporibus", + tracking_link_id="error", 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="temporibus", + tracking_link_id="error", 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="temporibus", + tracking_link_id="error", 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="temporibus", + tracking_link_id="error", 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="temporibus", + tracking_link_id="error", 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="temporibus", + tracking_link_id="error", 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="temporibus", + tracking_link_id="error", 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="temporibus", + tracking_link_id="error", 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="sint", + tracking_link_id="mollitia", 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="sint", + tracking_link_id="mollitia", 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="sint", + tracking_link_id="mollitia", 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="sint", + tracking_link_id="mollitia", 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="sint", + tracking_link_id="mollitia", 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="quo", + 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="quo", + 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="quo", + 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="quo", + 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="quo", + 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="temporibus", + tracking_link_id="error", 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="temporibus", + tracking_link_id="error", 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="temporibus", + tracking_link_id="error", 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="temporibus", + tracking_link_id="error", 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="temporibus", + tracking_link_id="error", 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="temporibus", + tracking_link_id="error", 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="temporibus", + tracking_link_id="error", 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="temporibus", + tracking_link_id="error", 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="sint", + tracking_link_id="mollitia", 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="sint", + tracking_link_id="mollitia", 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="sint", + tracking_link_id="mollitia", 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="sint", + tracking_link_id="mollitia", 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="sint", + tracking_link_id="mollitia", 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="quo", + 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="quo", + 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="quo", + 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="quo", + 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="quo", + tracking_link_id="in", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index d59b866c..33f0593f 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="nobis", + trial_link_id="maxime", 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="nobis", + trial_link_id="maxime", 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="nobis", + trial_link_id="maxime", 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="nobis", + trial_link_id="maxime", 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="nobis", + trial_link_id="maxime", 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="nobis", + trial_link_id="maxime", 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="nobis", + trial_link_id="maxime", 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="nobis", + trial_link_id="maxime", 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="exercitationem", + 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="exercitationem", + 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="exercitationem", + 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="exercitationem", + 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="ullam", + trial_link_id="aliquam", 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="aliquam", 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="aliquam", 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="aliquam", 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="aliquam", 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="ipsum", 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="ipsum", 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="ipsum", 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="ipsum", 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="ipsum", 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="nobis", + trial_link_id="maxime", 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="nobis", + trial_link_id="maxime", 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="nobis", + trial_link_id="maxime", 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="nobis", + trial_link_id="maxime", 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="nobis", + trial_link_id="maxime", 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="nobis", + trial_link_id="maxime", 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="nobis", + trial_link_id="maxime", 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="nobis", + trial_link_id="maxime", 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="exercitationem", + 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="exercitationem", + 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="exercitationem", + 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="exercitationem", + 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="ullam", + trial_link_id="aliquam", 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="aliquam", 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="aliquam", 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="aliquam", 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="aliquam", 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="ipsum", 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="ipsum", 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="ipsum", 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="ipsum", 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="ipsum", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 8ddba471..9e856e02 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="hmrbsnivyh", + name="muijqcrfy", ) 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="hmrbsnivyh", + name="muijqcrfy", ) 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="hmrbsnivyh", + name="muijqcrfy", ) 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="hmrbsnivyh", + name="muijqcrfy", ) @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="hmrbsnivyh", + name="muijqcrfy", ) 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="hmrbsnivyh", + name="muijqcrfy", ) 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="hmrbsnivyh", + name="muijqcrfy", ) 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="hmrbsnivyh", + name="muijqcrfy", ) @pytest.mark.skip(reason="Mock server tests are disabled") From e04b31fbb676188666fea058aec58892b665e560 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 16:12:31 +0000 Subject: [PATCH 102/249] 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_notifications.py | 4 +- tests/api_resources/test_profiles.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 0b022882..c852266f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-389700aa8616bd4a08bfeea379ef64b22614ecd4e38f87777d569b3a5689c727.yml -openapi_spec_hash: 96b9e35a69e7b5385289875a017f3e7a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bd3284d3cbf3b4ea945b6e874659e0c37fa925a84943a52896991146e8c4f532.yml +openapi_spec_hash: 9117c96bbcef0da26e33ed473a08004f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 532dc0e8..e5ed5e10 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="voluptatum", + message_id="sed", 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="voluptatum", + message_id="sed", 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="voluptatum", + message_id="sed", 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="voluptatum", + message_id="sed", 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="voluptatum", + message_id="sed", 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="voluptatum", + message_id="sed", 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="voluptatum", + message_id="sed", 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="voluptatum", + message_id="sed", 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="voluptatum", + message_id="sed", 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="voluptatum", + message_id="sed", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 6e6f0db5..977841df 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="reiciendis", + list_id="omnis", 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="reiciendis", + list_id="omnis", 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="reiciendis", + list_id="omnis", 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="reiciendis", + list_id="omnis", 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="reiciendis", + list_id="omnis", 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="reiciendis", + list_id="omnis", 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="reiciendis", + list_id="omnis", 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="reiciendis", + list_id="omnis", 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="reiciendis", + list_id="omnis", 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="reiciendis", + list_id="omnis", 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="reiciendis", + list_id="omnis", 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="reiciendis", + list_id="omnis", 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="reiciendis", + list_id="omnis", 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="reiciendis", + list_id="omnis", 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="reiciendis", + list_id="omnis", 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="reiciendis", + list_id="omnis", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index a17ff9ae..66b11d36 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="asperiores", + post_id="magnam", 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="asperiores", + post_id="magnam", 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="asperiores", + post_id="magnam", 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="asperiores", + post_id="magnam", 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="asperiores", + post_id="magnam", 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="asperiores", + post_id="magnam", 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="asperiores", + post_id="magnam", 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="asperiores", + post_id="magnam", 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="asperiores", + post_id="magnam", 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="asperiores", + post_id="magnam", 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="asperiores", + post_id="magnam", 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="asperiores", + post_id="magnam", 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="asperiores", + post_id="magnam", 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="asperiores", + post_id="magnam", 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="asperiores", + post_id="magnam", 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="asperiores", + post_id="magnam", 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="asperiores", + post_id="magnam", 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="asperiores", + post_id="magnam", 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="asperiores", + post_id="magnam", 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="asperiores", + post_id="magnam", 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 a62ccbd3..aa735c97 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 7b3febb7..ee78fc67 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="quasi", + path_story_id="natus", 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="quasi", + path_story_id="natus", 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="quasi", + path_story_id="natus", 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="quasi", + path_story_id="natus", 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="quasi", + story_id="natus", 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="quasi", + story_id="natus", 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="quasi", + story_id="natus", 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="quasi", + story_id="natus", 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="quasi", + path_story_id="natus", 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="quasi", + path_story_id="natus", 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="quasi", + path_story_id="natus", 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="quasi", + path_story_id="natus", 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="quasi", + story_id="natus", 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="quasi", + story_id="natus", 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="quasi", + story_id="natus", 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="quasi", + story_id="natus", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 723dc6fb..c93b81b6 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", + "itaque", ) 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", + "itaque", ) 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", + "itaque", ) 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", + "itaque", ) 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", + "itaque", ) 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", + "itaque", ) 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 9c0fc085..e78f294e 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="expedita", - auth_type="mobile_app", - cookies="voluptatibus", + auth_id="voluptatum", + auth_type="email_password", + cookies="nostrum", custom_proxy={ "host": "proxy.example.com", - "password": ")b6uW($CD,3p<==*[", + "password": 'ew6F"+#:ExUKv)i_', "port": 8080, - "username": "voluptas", + "username": "enim", }, - email="hermiston.yasmine@example.com", + email="horace.watsica@example.com", force_connect=False, - name="fuga", - password="'c~O}w:GY0T2ff", - proxy_country="us", - user_agent="possimus", - xbc="natus", + name="repellat", + password="v?Sg%d]j&@M:=m(\\@", + proxy_country="uk", + user_agent="fugit", + xbc="magni", ) 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="expedita", - auth_type="mobile_app", - cookies="voluptatibus", + auth_id="voluptatum", + auth_type="email_password", + cookies="nostrum", custom_proxy={ "host": "proxy.example.com", - "password": ")b6uW($CD,3p<==*[", + "password": 'ew6F"+#:ExUKv)i_', "port": 8080, - "username": "voluptas", + "username": "enim", }, - email="hermiston.yasmine@example.com", + email="horace.watsica@example.com", force_connect=False, - name="fuga", - password="'c~O}w:GY0T2ff", - proxy_country="us", - user_agent="possimus", - xbc="natus", + name="repellat", + password="v?Sg%d]j&@M:=m(\\@", + proxy_country="uk", + user_agent="fugit", + xbc="magni", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 0f3980c1..1a80b275 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="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="tips", + type="onlyfans", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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 eb7a2229..16ae37ae 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": ["ammnqrnzyeuinmaiamyk"]}, + filter={"tags": ["eu"]}, 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="aliquid", + smart_link_id="nihil", ) 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="aliquid", + smart_link_id="nihil", 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="aliquid", + smart_link_id="nihil", ) 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="aliquid", + smart_link_id="nihil", ) 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="qui", + smart_link_id="dolorem", ) 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="qui", + smart_link_id="dolorem", 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="qui", + smart_link_id="dolorem", ) 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="qui", + smart_link_id="dolorem", ) 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="animi", + smart_link_id="distinctio", ) 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="animi", + smart_link_id="distinctio", 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="animi", + smart_link_id="distinctio", ) 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="animi", + smart_link_id="distinctio", ) 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="quia", + smart_link_id="ipsam", ) 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="quia", + smart_link_id="ipsam", 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="quia", + smart_link_id="ipsam", ) 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="quia", + smart_link_id="ipsam", ) 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="aspernatur", + smart_link_id="sapiente", ) 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="aspernatur", + smart_link_id="sapiente", 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="aspernatur", + smart_link_id="sapiente", ) 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="aspernatur", + smart_link_id="sapiente", ) 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="atque", + smart_link_id="quas", ) 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="atque", + smart_link_id="quas", 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="atque", + smart_link_id="quas", ) 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="atque", + smart_link_id="quas", ) 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": ["ammnqrnzyeuinmaiamyk"]}, + filter={"tags": ["eu"]}, 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="aliquid", + smart_link_id="nihil", ) 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="aliquid", + smart_link_id="nihil", 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="aliquid", + smart_link_id="nihil", ) 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="aliquid", + smart_link_id="nihil", ) 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="qui", + smart_link_id="dolorem", ) 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="qui", + smart_link_id="dolorem", 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="qui", + smart_link_id="dolorem", ) 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="qui", + smart_link_id="dolorem", ) 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="animi", + smart_link_id="distinctio", ) 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="animi", + smart_link_id="distinctio", 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="animi", + smart_link_id="distinctio", ) 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="animi", + smart_link_id="distinctio", ) 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="quia", + smart_link_id="ipsam", ) 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="quia", + smart_link_id="ipsam", 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="quia", + smart_link_id="ipsam", ) 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="quia", + smart_link_id="ipsam", ) 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="aspernatur", + smart_link_id="sapiente", ) 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="aspernatur", + smart_link_id="sapiente", 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="aspernatur", + smart_link_id="sapiente", ) 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="aspernatur", + smart_link_id="sapiente", ) 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="atque", + smart_link_id="quas", ) 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="atque", + smart_link_id="quas", 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="atque", + smart_link_id="quas", ) 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="atque", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index fc939a66..7b848bcb 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": "hvereuykb", - "tags": ["vptietgarfzx"], + "search": "xzrrp", + "tags": ["yideqmaaah"], }, 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": "acbpdxbikgdvhcc", - "tags": ["mvi"], + "search": "rbtbtnkgcwjzowskzp", + "tags": ["unv"], }, 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": "aamuvdijpepmktjmjdbuqasl", - "tags": ["kj"], + "search": "cezpifxv", + "tags": ["hb"], }, 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": "t", - "tags": ["rbcqzizzmcn"], + "search": "jw", + "tags": ["vuwsdyqhp"], }, 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": "hvereuykb", - "tags": ["vptietgarfzx"], + "search": "xzrrp", + "tags": ["yideqmaaah"], }, 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": "acbpdxbikgdvhcc", - "tags": ["mvi"], + "search": "rbtbtnkgcwjzowskzp", + "tags": ["unv"], }, 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": "aamuvdijpepmktjmjdbuqasl", - "tags": ["kj"], + "search": "cezpifxv", + "tags": ["hb"], }, 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": "t", - "tags": ["rbcqzizzmcn"], + "search": "jw", + "tags": ["vuwsdyqhp"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index c375b579..32267119 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="error", + tracking_link_id="accusamus", 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="error", + tracking_link_id="accusamus", 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="error", + tracking_link_id="accusamus", 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="error", + tracking_link_id="accusamus", 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="error", + tracking_link_id="accusamus", 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="error", + tracking_link_id="accusamus", 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="error", + tracking_link_id="accusamus", 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="error", + tracking_link_id="accusamus", 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="mollitia", + tracking_link_id="officiis", 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="mollitia", + tracking_link_id="officiis", 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="mollitia", + tracking_link_id="officiis", 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="mollitia", + tracking_link_id="officiis", 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="mollitia", + tracking_link_id="officiis", 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="dicta", 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="dicta", 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="dicta", 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="dicta", 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="dicta", 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="error", + tracking_link_id="accusamus", 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="error", + tracking_link_id="accusamus", 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="error", + tracking_link_id="accusamus", 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="error", + tracking_link_id="accusamus", 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="error", + tracking_link_id="accusamus", 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="error", + tracking_link_id="accusamus", 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="error", + tracking_link_id="accusamus", 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="error", + tracking_link_id="accusamus", 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="mollitia", + tracking_link_id="officiis", 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="mollitia", + tracking_link_id="officiis", 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="mollitia", + tracking_link_id="officiis", 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="mollitia", + tracking_link_id="officiis", 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="mollitia", + tracking_link_id="officiis", 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="dicta", 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="dicta", 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="dicta", 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="dicta", 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="dicta", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 33f0593f..957cc381 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="maxime", + trial_link_id="molestiae", 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="maxime", + trial_link_id="molestiae", 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="maxime", + trial_link_id="molestiae", 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="maxime", + trial_link_id="molestiae", 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="maxime", + trial_link_id="molestiae", 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="maxime", + trial_link_id="molestiae", 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="maxime", + trial_link_id="molestiae", 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="maxime", + trial_link_id="molestiae", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="aliquam", + trial_link_id="quod", 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="aliquam", + trial_link_id="quod", 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="aliquam", + trial_link_id="quod", 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="aliquam", + trial_link_id="quod", 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="aliquam", + trial_link_id="quod", 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="ipsum", + trial_link_id="debitis", 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="ipsum", + trial_link_id="debitis", 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="ipsum", + trial_link_id="debitis", 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="ipsum", + trial_link_id="debitis", 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="ipsum", + trial_link_id="debitis", 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="maxime", + trial_link_id="molestiae", 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="maxime", + trial_link_id="molestiae", 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="maxime", + trial_link_id="molestiae", 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="maxime", + trial_link_id="molestiae", 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="maxime", + trial_link_id="molestiae", 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="maxime", + trial_link_id="molestiae", 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="maxime", + trial_link_id="molestiae", 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="maxime", + trial_link_id="molestiae", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="aliquam", + trial_link_id="quod", 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="aliquam", + trial_link_id="quod", 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="aliquam", + trial_link_id="quod", 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="aliquam", + trial_link_id="quod", 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="aliquam", + trial_link_id="quod", 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="ipsum", + trial_link_id="debitis", 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="ipsum", + trial_link_id="debitis", 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="ipsum", + trial_link_id="debitis", 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="ipsum", + trial_link_id="debitis", 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="ipsum", + trial_link_id="debitis", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 9e856e02..43e85d90 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="muijqcrfy", + name="layoo", ) 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="muijqcrfy", + name="layoo", ) 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="muijqcrfy", + name="layoo", ) 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="muijqcrfy", + name="layoo", ) @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="muijqcrfy", + name="layoo", ) 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="muijqcrfy", + name="layoo", ) 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="muijqcrfy", + name="layoo", ) 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="muijqcrfy", + name="layoo", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 5ecfe507bb879f29f5f7d3ef84294d7495a77c27 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 17:12:40 +0000 Subject: [PATCH 103/249] 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_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, 272 insertions(+), 272 deletions(-) diff --git a/.stats.yml b/.stats.yml index c852266f..5ed86a9a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bd3284d3cbf3b4ea945b6e874659e0c37fa925a84943a52896991146e8c4f532.yml -openapi_spec_hash: 9117c96bbcef0da26e33ed473a08004f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f27c53578cefb55e35c3310855bbf36ff24fb53ca74de05c9c5e1495477d5623.yml +openapi_spec_hash: 2f3151418ba4702534ad90d4d3ee51fc config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index e5ed5e10..15f6dfce 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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="sed", + 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 977841df..776cbd57 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="omnis", + list_id="enim", 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="omnis", + list_id="enim", 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="omnis", + list_id="enim", 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="omnis", + list_id="enim", 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="omnis", + list_id="enim", 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="omnis", + list_id="enim", 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="omnis", + list_id="enim", 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="omnis", + list_id="enim", 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="omnis", + list_id="enim", 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="omnis", + list_id="enim", 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="omnis", + list_id="enim", 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="omnis", + list_id="enim", 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="omnis", + list_id="enim", 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="omnis", + list_id="enim", 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="omnis", + list_id="enim", 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="omnis", + list_id="enim", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 66b11d36..50fab6df 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="magnam", + post_id="rerum", 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="magnam", + post_id="rerum", 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="magnam", + post_id="rerum", 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="magnam", + post_id="rerum", 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="magnam", + post_id="rerum", 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="magnam", + post_id="rerum", 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="magnam", + post_id="rerum", 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="magnam", + post_id="rerum", 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="magnam", + post_id="rerum", 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="magnam", + post_id="rerum", 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="magnam", + post_id="rerum", 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="magnam", + post_id="rerum", 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="magnam", + post_id="rerum", 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="magnam", + post_id="rerum", 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="magnam", + post_id="rerum", 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="magnam", + post_id="rerum", 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="magnam", + post_id="rerum", 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="magnam", + post_id="rerum", 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="magnam", + post_id="rerum", 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="magnam", + post_id="rerum", 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 aa735c97..a62ccbd3 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 9c80483e..2ced6cb5 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075f..544df889 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 ee78fc67..eff3ec0c 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="natus", + path_story_id="ipsa", 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="natus", + path_story_id="ipsa", 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="natus", + path_story_id="ipsa", 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="natus", + path_story_id="ipsa", 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="natus", + story_id="ipsa", 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="natus", + story_id="ipsa", 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="natus", + story_id="ipsa", 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="natus", + story_id="ipsa", 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="natus", + path_story_id="ipsa", 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="natus", + path_story_id="ipsa", 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="natus", + path_story_id="ipsa", 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="natus", + path_story_id="ipsa", 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="natus", + story_id="ipsa", 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="natus", + story_id="ipsa", 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="natus", + story_id="ipsa", 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="natus", + story_id="ipsa", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index c93b81b6..1ba8c6ad 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( - "itaque", + "reiciendis", ) 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( - "itaque", + "reiciendis", ) 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( - "itaque", + "reiciendis", ) 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( - "itaque", + "reiciendis", ) 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( - "itaque", + "reiciendis", ) 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( - "itaque", + "reiciendis", ) 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 e78f294e..53a9cc71 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="voluptatum", - auth_type="email_password", - cookies="nostrum", + auth_id="quos", + auth_type="mobile_app", + cookies="quaerat", custom_proxy={ "host": "proxy.example.com", - "password": 'ew6F"+#:ExUKv)i_', + "password": "]S.^]A@b]J_Y", "port": 8080, - "username": "enim", + "username": "doloremque", }, - email="horace.watsica@example.com", - force_connect=False, - name="repellat", - password="v?Sg%d]j&@M:=m(\\@", - proxy_country="uk", - user_agent="fugit", - xbc="magni", + email="kessler.gerhard@example.net", + force_connect=True, + name="eos", + password="i1hl}pqXEFsCP-yN'-q.", + proxy_country="us", + user_agent="soluta", + xbc="repellat", ) 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="voluptatum", - auth_type="email_password", - cookies="nostrum", + auth_id="quos", + auth_type="mobile_app", + cookies="quaerat", custom_proxy={ "host": "proxy.example.com", - "password": 'ew6F"+#:ExUKv)i_', + "password": "]S.^]A@b]J_Y", "port": 8080, - "username": "enim", + "username": "doloremque", }, - email="horace.watsica@example.com", - force_connect=False, - name="repellat", - password="v?Sg%d]j&@M:=m(\\@", - proxy_country="uk", - user_agent="fugit", - xbc="magni", + email="kessler.gerhard@example.net", + force_connect=True, + name="eos", + password="i1hl}pqXEFsCP-yN'-q.", + proxy_country="us", + user_agent="soluta", + xbc="repellat", ) 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 9249f386..3597ede6 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 1a80b275..413a2df6 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="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="onlyfans", + 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 16ae37ae..96e6dc0b 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": ["eu"]}, + filter={"tags": ["lk"]}, 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="nihil", + smart_link_id="quasi", ) 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="nihil", + smart_link_id="quasi", 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="nihil", + smart_link_id="quasi", ) 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="nihil", + smart_link_id="quasi", ) 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="dolorem", + smart_link_id="eos", ) 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="dolorem", + smart_link_id="eos", 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="dolorem", + smart_link_id="eos", ) 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="dolorem", + smart_link_id="eos", ) 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="distinctio", + smart_link_id="nam", ) 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="distinctio", + smart_link_id="nam", 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="distinctio", + smart_link_id="nam", ) 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="distinctio", + smart_link_id="nam", ) 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="ipsam", + smart_link_id="labore", ) 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="ipsam", + smart_link_id="labore", 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="ipsam", + smart_link_id="labore", ) 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="ipsam", + smart_link_id="labore", ) 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="sapiente", + smart_link_id="quidem", ) 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="sapiente", + smart_link_id="quidem", 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="sapiente", + smart_link_id="quidem", ) 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="sapiente", + smart_link_id="quidem", ) 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="quas", + smart_link_id="sunt", ) 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="quas", + smart_link_id="sunt", 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="quas", + smart_link_id="sunt", ) 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="quas", + smart_link_id="sunt", ) 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": ["eu"]}, + filter={"tags": ["lk"]}, 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="nihil", + smart_link_id="quasi", ) 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="nihil", + smart_link_id="quasi", 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="nihil", + smart_link_id="quasi", ) 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="nihil", + smart_link_id="quasi", ) 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="dolorem", + smart_link_id="eos", ) 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="dolorem", + smart_link_id="eos", 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="dolorem", + smart_link_id="eos", ) 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="dolorem", + smart_link_id="eos", ) 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="distinctio", + smart_link_id="nam", ) 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="distinctio", + smart_link_id="nam", 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="distinctio", + smart_link_id="nam", ) 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="distinctio", + smart_link_id="nam", ) 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="ipsam", + smart_link_id="labore", ) 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="ipsam", + smart_link_id="labore", 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="ipsam", + smart_link_id="labore", ) 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="ipsam", + smart_link_id="labore", ) 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="sapiente", + smart_link_id="quidem", ) 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="sapiente", + smart_link_id="quidem", 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="sapiente", + smart_link_id="quidem", ) 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="sapiente", + smart_link_id="quidem", ) 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="quas", + smart_link_id="sunt", ) 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="quas", + smart_link_id="sunt", 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="quas", + smart_link_id="sunt", ) 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="quas", + smart_link_id="sunt", ) 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 7b848bcb..d915a63d 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": "xzrrp", - "tags": ["yideqmaaah"], + "search": "kxmlridykcszjhm", + "tags": ["hthrvu"], }, 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": "rbtbtnkgcwjzowskzp", - "tags": ["unv"], + "search": "ynqfinihg", + "tags": ["iuajrosarnhkwok"], }, 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": "cezpifxv", - "tags": ["hb"], + "search": "fchjsxqcfy", + "tags": ["j"], }, 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": "jw", - "tags": ["vuwsdyqhp"], + "include_smart_links": False, + "search": "tomtsjtghifqgk", + "tags": ["avmlqsro"], }, 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": "xzrrp", - "tags": ["yideqmaaah"], + "search": "kxmlridykcszjhm", + "tags": ["hthrvu"], }, 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": "rbtbtnkgcwjzowskzp", - "tags": ["unv"], + "search": "ynqfinihg", + "tags": ["iuajrosarnhkwok"], }, 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": "cezpifxv", - "tags": ["hb"], + "search": "fchjsxqcfy", + "tags": ["j"], }, 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": "jw", - "tags": ["vuwsdyqhp"], + "include_smart_links": False, + "search": "tomtsjtghifqgk", + "tags": ["avmlqsro"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 32267119..8573f6bb 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="accusamus", + tracking_link_id="illum", 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="accusamus", + tracking_link_id="illum", 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="accusamus", + tracking_link_id="illum", 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="accusamus", + tracking_link_id="illum", 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="accusamus", + tracking_link_id="illum", 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="accusamus", + tracking_link_id="illum", 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="accusamus", + tracking_link_id="illum", 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="accusamus", + tracking_link_id="illum", 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="officiis", + tracking_link_id="dolore", 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="officiis", + tracking_link_id="dolore", 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="officiis", + tracking_link_id="dolore", 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="officiis", + tracking_link_id="dolore", 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="officiis", + tracking_link_id="dolore", 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="dicta", + tracking_link_id="necessitatibus", 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="dicta", + tracking_link_id="necessitatibus", 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="dicta", + tracking_link_id="necessitatibus", 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="dicta", + tracking_link_id="necessitatibus", 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="dicta", + tracking_link_id="necessitatibus", 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="accusamus", + tracking_link_id="illum", 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="accusamus", + tracking_link_id="illum", 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="accusamus", + tracking_link_id="illum", 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="accusamus", + tracking_link_id="illum", 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="accusamus", + tracking_link_id="illum", 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="accusamus", + tracking_link_id="illum", 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="accusamus", + tracking_link_id="illum", 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="accusamus", + tracking_link_id="illum", 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="officiis", + tracking_link_id="dolore", 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="officiis", + tracking_link_id="dolore", 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="officiis", + tracking_link_id="dolore", 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="officiis", + tracking_link_id="dolore", 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="officiis", + tracking_link_id="dolore", 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="dicta", + tracking_link_id="necessitatibus", 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="dicta", + tracking_link_id="necessitatibus", 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="dicta", + tracking_link_id="necessitatibus", 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="dicta", + tracking_link_id="necessitatibus", 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="dicta", + tracking_link_id="necessitatibus", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 957cc381..56fd20a6 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="molestiae", + trial_link_id="neque", 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="molestiae", + trial_link_id="neque", 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="molestiae", + trial_link_id="neque", 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="molestiae", + trial_link_id="neque", 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="molestiae", + trial_link_id="neque", 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="molestiae", + trial_link_id="neque", 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="molestiae", + trial_link_id="neque", 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="molestiae", + trial_link_id="neque", 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="dolores", + 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="dolores", + 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="dolores", + 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="dolores", + 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="quod", + trial_link_id="dolores", 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="quod", + trial_link_id="dolores", 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="quod", + trial_link_id="dolores", 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="quod", + trial_link_id="dolores", 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="quod", + trial_link_id="dolores", 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="debitis", + trial_link_id="deleniti", 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="debitis", + trial_link_id="deleniti", 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="debitis", + trial_link_id="deleniti", 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="debitis", + trial_link_id="deleniti", 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="debitis", + trial_link_id="deleniti", 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="molestiae", + trial_link_id="neque", 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="molestiae", + trial_link_id="neque", 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="molestiae", + trial_link_id="neque", 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="molestiae", + trial_link_id="neque", 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="molestiae", + trial_link_id="neque", 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="molestiae", + trial_link_id="neque", 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="molestiae", + trial_link_id="neque", 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="molestiae", + trial_link_id="neque", 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="dolores", + 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="dolores", + 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="dolores", + 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="dolores", + 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="quod", + trial_link_id="dolores", 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="quod", + trial_link_id="dolores", 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="quod", + trial_link_id="dolores", 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="quod", + trial_link_id="dolores", 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="quod", + trial_link_id="dolores", 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="debitis", + trial_link_id="deleniti", 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="debitis", + trial_link_id="deleniti", 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="debitis", + trial_link_id="deleniti", 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="debitis", + trial_link_id="deleniti", 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="debitis", + trial_link_id="deleniti", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 43e85d90..302a3131 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="layoo", + name="jgtxobqzuqiyxhsiigouat", ) 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="layoo", + name="jgtxobqzuqiyxhsiigouat", ) 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="layoo", + name="jgtxobqzuqiyxhsiigouat", ) 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="layoo", + name="jgtxobqzuqiyxhsiigouat", ) @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="layoo", + name="jgtxobqzuqiyxhsiigouat", ) 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="layoo", + name="jgtxobqzuqiyxhsiigouat", ) 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="layoo", + name="jgtxobqzuqiyxhsiigouat", ) 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="layoo", + name="jgtxobqzuqiyxhsiigouat", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 2623e4ff6f4beb7e4601c4d5bfd3c445be5b53d8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 18:12:31 +0000 Subject: [PATCH 104/249] 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_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 +-- 15 files changed, 264 insertions(+), 264 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5ed86a9a..09de13eb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f27c53578cefb55e35c3310855bbf36ff24fb53ca74de05c9c5e1495477d5623.yml -openapi_spec_hash: 2f3151418ba4702534ad90d4d3ee51fc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-89deaf03491565964696fe6a39652caedaf14cb70af5ba6329c70bf7b719e18b.yml +openapi_spec_hash: 66c086ac3d5f89740961c0cf59265a74 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 15f6dfce..a6c92cee 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 776cbd57..b5417354 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="enim", + list_id="voluptatum", 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="enim", + list_id="voluptatum", 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="enim", + list_id="voluptatum", 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="enim", + list_id="voluptatum", 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="enim", + list_id="voluptatum", 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="enim", + list_id="voluptatum", 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="enim", + list_id="voluptatum", 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="enim", + list_id="voluptatum", 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="enim", + list_id="voluptatum", 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="enim", + list_id="voluptatum", 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="enim", + list_id="voluptatum", 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="enim", + list_id="voluptatum", 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="enim", + list_id="voluptatum", 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="enim", + list_id="voluptatum", 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="enim", + list_id="voluptatum", 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="enim", + list_id="voluptatum", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 50fab6df..f1092988 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="rerum", + post_id="porro", 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="rerum", + post_id="porro", 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="rerum", + post_id="porro", 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="rerum", + post_id="porro", 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="rerum", + post_id="porro", 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="rerum", + post_id="porro", 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="rerum", + post_id="porro", 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="rerum", + post_id="porro", 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="rerum", + post_id="porro", 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="rerum", + post_id="porro", 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="rerum", + post_id="porro", 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="rerum", + post_id="porro", 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="rerum", + post_id="porro", 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="rerum", + post_id="porro", 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="rerum", + post_id="porro", 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="rerum", + post_id="porro", 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="rerum", + post_id="porro", 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="rerum", + post_id="porro", 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="rerum", + post_id="porro", 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="rerum", + post_id="porro", 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 a62ccbd3..aa735c97 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 2ced6cb5..b5f3d61a 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 eff3ec0c..ad9c9b25 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="ipsa", + path_story_id="rem", 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="ipsa", + path_story_id="rem", 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="ipsa", + path_story_id="rem", 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="ipsa", + path_story_id="rem", 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="ipsa", + story_id="rem", 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="ipsa", + story_id="rem", 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="ipsa", + story_id="rem", 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="ipsa", + story_id="rem", 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="ipsa", + path_story_id="rem", 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="ipsa", + path_story_id="rem", 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="ipsa", + path_story_id="rem", 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="ipsa", + path_story_id="rem", 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="ipsa", + story_id="rem", 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="ipsa", + story_id="rem", 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="ipsa", + story_id="rem", 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="ipsa", + story_id="rem", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 1ba8c6ad..3fd0e53a 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( - "reiciendis", + "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( - "reiciendis", + "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( - "reiciendis", + "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( - "reiciendis", + "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( - "reiciendis", + "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( - "reiciendis", + "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 53a9cc71..1e195b88 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="quos", + auth_id="dicta", auth_type="mobile_app", - cookies="quaerat", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "]S.^]A@b]J_Y", + "password": "{-bj$os", "port": 8080, - "username": "doloremque", + "username": "necessitatibus", }, - email="kessler.gerhard@example.net", - force_connect=True, - name="eos", - password="i1hl}pqXEFsCP-yN'-q.", + email="brekke.benton@example.net", + force_connect=False, + name="velit", + password=";=J,UvSeo", proxy_country="us", - user_agent="soluta", - xbc="repellat", + user_agent="non", + xbc="excepturi", ) 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="quos", + auth_id="dicta", auth_type="mobile_app", - cookies="quaerat", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "]S.^]A@b]J_Y", + "password": "{-bj$os", "port": 8080, - "username": "doloremque", + "username": "necessitatibus", }, - email="kessler.gerhard@example.net", - force_connect=True, - name="eos", - password="i1hl}pqXEFsCP-yN'-q.", + email="brekke.benton@example.net", + force_connect=False, + name="velit", + password=";=J,UvSeo", proxy_country="us", - user_agent="soluta", - xbc="repellat", + user_agent="non", + xbc="excepturi", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 413a2df6..aaff3bff 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="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="likes", + 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 96e6dc0b..3154ceb0 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": ["lk"]}, + filter={"tags": ["fzsujvgvnsr"]}, 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="quasi", + smart_link_id="aut", ) 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="quasi", + smart_link_id="aut", 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="quasi", + smart_link_id="aut", ) 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="quasi", + smart_link_id="aut", ) 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="eos", + smart_link_id="sed", ) 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="eos", + smart_link_id="sed", 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="eos", + smart_link_id="sed", ) 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="eos", + smart_link_id="sed", ) 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="nam", + smart_link_id="illum", ) 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="nam", + smart_link_id="illum", 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="nam", + smart_link_id="illum", ) 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="nam", + smart_link_id="illum", ) 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="labore", + smart_link_id="recusandae", ) 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="labore", + smart_link_id="recusandae", 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="labore", + smart_link_id="recusandae", ) 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="labore", + smart_link_id="recusandae", ) 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="quidem", + smart_link_id="voluptatem", ) 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="quidem", + smart_link_id="voluptatem", 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="quidem", + smart_link_id="voluptatem", ) 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="quidem", + smart_link_id="voluptatem", ) 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="sunt", + smart_link_id="in", ) 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="sunt", + smart_link_id="in", 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="sunt", + smart_link_id="in", ) 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="sunt", + smart_link_id="in", ) 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": ["lk"]}, + filter={"tags": ["fzsujvgvnsr"]}, 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="quasi", + smart_link_id="aut", ) 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="quasi", + smart_link_id="aut", 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="quasi", + smart_link_id="aut", ) 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="quasi", + smart_link_id="aut", ) 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="eos", + smart_link_id="sed", ) 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="eos", + smart_link_id="sed", 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="eos", + smart_link_id="sed", ) 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="eos", + smart_link_id="sed", ) 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="nam", + smart_link_id="illum", ) 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="nam", + smart_link_id="illum", 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="nam", + smart_link_id="illum", ) 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="nam", + smart_link_id="illum", ) 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="labore", + smart_link_id="recusandae", ) 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="labore", + smart_link_id="recusandae", 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="labore", + smart_link_id="recusandae", ) 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="labore", + smart_link_id="recusandae", ) 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="quidem", + smart_link_id="voluptatem", ) 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="quidem", + smart_link_id="voluptatem", 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="quidem", + smart_link_id="voluptatem", ) 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="quidem", + smart_link_id="voluptatem", ) 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="sunt", + smart_link_id="in", ) 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="sunt", + smart_link_id="in", 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="sunt", + smart_link_id="in", ) 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="sunt", + smart_link_id="in", ) 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 d915a63d..46a1f460 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": "kxmlridykcszjhm", - "tags": ["hthrvu"], + "search": "qoxietohdbf", + "tags": ["jljyomrgdpwmtlq"], }, 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": "ynqfinihg", - "tags": ["iuajrosarnhkwok"], + "search": "qvakd", + "tags": ["bvfdu"], }, 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": "fchjsxqcfy", - "tags": ["j"], + "search": "qgixzqofiifor", + "tags": ["kpeilrdmsssdm"], }, 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": "tomtsjtghifqgk", - "tags": ["avmlqsro"], + "include_smart_links": True, + "search": "xiazkslistvcf", + "tags": ["serciuvuajsvbtggj"], }, 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": "kxmlridykcszjhm", - "tags": ["hthrvu"], + "search": "qoxietohdbf", + "tags": ["jljyomrgdpwmtlq"], }, 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": "ynqfinihg", - "tags": ["iuajrosarnhkwok"], + "search": "qvakd", + "tags": ["bvfdu"], }, 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": "fchjsxqcfy", - "tags": ["j"], + "search": "qgixzqofiifor", + "tags": ["kpeilrdmsssdm"], }, 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": "tomtsjtghifqgk", - "tags": ["avmlqsro"], + "include_smart_links": True, + "search": "xiazkslistvcf", + "tags": ["serciuvuajsvbtggj"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 8573f6bb..882ee3cd 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="illum", + tracking_link_id="molestias", 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="illum", + tracking_link_id="molestias", 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="illum", + tracking_link_id="molestias", 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="illum", + tracking_link_id="molestias", 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="illum", + tracking_link_id="molestias", 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="illum", + tracking_link_id="molestias", 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="illum", + tracking_link_id="molestias", 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="illum", + tracking_link_id="molestias", 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="dolore", + 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="dolore", + 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="dolore", + 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="dolore", + 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="dolore", + 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="necessitatibus", + tracking_link_id="repudiandae", 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="necessitatibus", + tracking_link_id="repudiandae", 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="necessitatibus", + tracking_link_id="repudiandae", 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="necessitatibus", + tracking_link_id="repudiandae", 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="necessitatibus", + tracking_link_id="repudiandae", 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="illum", + tracking_link_id="molestias", 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="illum", + tracking_link_id="molestias", 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="illum", + tracking_link_id="molestias", 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="illum", + tracking_link_id="molestias", 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="illum", + tracking_link_id="molestias", 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="illum", + tracking_link_id="molestias", 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="illum", + tracking_link_id="molestias", 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="illum", + tracking_link_id="molestias", 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="dolore", + 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="dolore", + 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="dolore", + 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="dolore", + 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="dolore", + 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="necessitatibus", + tracking_link_id="repudiandae", 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="necessitatibus", + tracking_link_id="repudiandae", 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="necessitatibus", + tracking_link_id="repudiandae", 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="necessitatibus", + tracking_link_id="repudiandae", 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="necessitatibus", + tracking_link_id="repudiandae", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 56fd20a6..b91dc0b4 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="et", + trial_link_id="consectetur", 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="consectetur", 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="consectetur", 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="consectetur", 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="dolores", + trial_link_id="quaerat", 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="dolores", + trial_link_id="quaerat", 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="dolores", + trial_link_id="quaerat", 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="dolores", + trial_link_id="quaerat", 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="dolores", + trial_link_id="quaerat", 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="deleniti", + 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="deleniti", + 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="deleniti", + 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="deleniti", + 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="deleniti", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="et", + trial_link_id="consectetur", 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="consectetur", 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="consectetur", 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="consectetur", 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="dolores", + trial_link_id="quaerat", 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="dolores", + trial_link_id="quaerat", 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="dolores", + trial_link_id="quaerat", 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="dolores", + trial_link_id="quaerat", 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="dolores", + trial_link_id="quaerat", 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="deleniti", + 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="deleniti", + 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="deleniti", + 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="deleniti", + 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="deleniti", + trial_link_id="ut", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 302a3131..9416c480 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="jgtxobqzuqiyxhsiigouat", + name="mwmionuveow", ) 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="jgtxobqzuqiyxhsiigouat", + name="mwmionuveow", ) 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="jgtxobqzuqiyxhsiigouat", + name="mwmionuveow", ) 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="jgtxobqzuqiyxhsiigouat", + name="mwmionuveow", ) @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="jgtxobqzuqiyxhsiigouat", + name="mwmionuveow", ) 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="jgtxobqzuqiyxhsiigouat", + name="mwmionuveow", ) 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="jgtxobqzuqiyxhsiigouat", + name="mwmionuveow", ) 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="jgtxobqzuqiyxhsiigouat", + name="mwmionuveow", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 34b01164051b22ec5c95c03104ecf086cf5c38a9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 27 Jun 2026 07:12:30 +0000 Subject: [PATCH 105/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/smart_links.py | 18 +++ .../types/smart_link_list_fans_params.py | 9 ++ .../types/smart_link_list_fans_response.py | 32 ++++++ .../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_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 104 +++++++++--------- 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, 329 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index 09de13eb..da00913b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-89deaf03491565964696fe6a39652caedaf14cb70af5ba6329c70bf7b719e18b.yml -openapi_spec_hash: 66c086ac3d5f89740961c0cf59265a74 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3c1cc402f9708c709f7d236bff9dfea7da318df8373813cdc1da5ccede26da18.yml +openapi_spec_hash: bde4ea8516a19fea9ae7849d087307c8 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/smart_links.py b/src/onlyfansapi/resources/smart_links.py index 0c022392..459927a9 100644 --- a/src/onlyfansapi/resources/smart_links.py +++ b/src/onlyfansapi/resources/smart_links.py @@ -400,6 +400,7 @@ def list_fans( min_revenue_net: float | Omit = omit, min_tips_net: float | Omit = omit, offset: int | Omit = omit, + previously_subscribed: bool | Omit = omit, sort: Literal[ "revenue_net", "-revenue_net", @@ -411,6 +412,7 @@ def list_fans( "-converted_at", ] | Omit = omit, + subscribed_using_promo: bool | 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, @@ -435,8 +437,13 @@ def list_fans( offset: Offset for pagination. Default `0` + previously_subscribed: Optional - Filter to returning subscribers (fans previously subscribed before + this subscription) + sort: Optional sort field. Default `-revenue_net` + subscribed_using_promo: Optional - Filter to fans who subscribed via a promotion/offer + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -462,7 +469,9 @@ def list_fans( "min_revenue_net": min_revenue_net, "min_tips_net": min_tips_net, "offset": offset, + "previously_subscribed": previously_subscribed, "sort": sort, + "subscribed_using_promo": subscribed_using_promo, }, smart_link_list_fans_params.SmartLinkListFansParams, ), @@ -987,6 +996,7 @@ async def list_fans( min_revenue_net: float | Omit = omit, min_tips_net: float | Omit = omit, offset: int | Omit = omit, + previously_subscribed: bool | Omit = omit, sort: Literal[ "revenue_net", "-revenue_net", @@ -998,6 +1008,7 @@ async def list_fans( "-converted_at", ] | Omit = omit, + subscribed_using_promo: bool | 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, @@ -1022,8 +1033,13 @@ async def list_fans( offset: Offset for pagination. Default `0` + previously_subscribed: Optional - Filter to returning subscribers (fans previously subscribed before + this subscription) + sort: Optional sort field. Default `-revenue_net` + subscribed_using_promo: Optional - Filter to fans who subscribed via a promotion/offer + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -1049,7 +1065,9 @@ async def list_fans( "min_revenue_net": min_revenue_net, "min_tips_net": min_tips_net, "offset": offset, + "previously_subscribed": previously_subscribed, "sort": sort, + "subscribed_using_promo": subscribed_using_promo, }, smart_link_list_fans_params.SmartLinkListFansParams, ), diff --git a/src/onlyfansapi/types/smart_link_list_fans_params.py b/src/onlyfansapi/types/smart_link_list_fans_params.py index 28d9ab53..13f4075b 100644 --- a/src/onlyfansapi/types/smart_link_list_fans_params.py +++ b/src/onlyfansapi/types/smart_link_list_fans_params.py @@ -26,6 +26,12 @@ class SmartLinkListFansParams(TypedDict, total=False): offset: int """Offset for pagination. Default `0`""" + previously_subscribed: bool + """ + Optional - Filter to returning subscribers (fans previously subscribed before + this subscription) + """ + sort: Literal[ "revenue_net", "-revenue_net", @@ -37,3 +43,6 @@ class SmartLinkListFansParams(TypedDict, total=False): "-converted_at", ] """Optional sort field. Default `-revenue_net`""" + + subscribed_using_promo: bool + """Optional - Filter to fans who subscribed via a promotion/offer""" diff --git a/src/onlyfansapi/types/smart_link_list_fans_response.py b/src/onlyfansapi/types/smart_link_list_fans_response.py index 89d44bc6..43e52a6f 100644 --- a/src/onlyfansapi/types/smart_link_list_fans_response.py +++ b/src/onlyfansapi/types/smart_link_list_fans_response.py @@ -14,6 +14,8 @@ "Data", "DataFilters", "DataRow", + "DataRowSubscriptionInsights", + "DataRowSubscriptionInsightsCurrentSubscription", "DataSummary", ] @@ -51,8 +53,36 @@ class DataFilters(BaseModel): offset: Optional[int] = None + previously_subscribed: Optional[str] = None + sort: Optional[str] = None + subscribed_using_promo: Optional[str] = None + + +class DataRowSubscriptionInsightsCurrentSubscription(BaseModel): + action: Optional[str] = None + + is_free: Optional[bool] = None + + price: Optional[int] = None + + regular_price: Optional[int] = None + + type: Optional[str] = None + + +class DataRowSubscriptionInsights(BaseModel): + current_subscription: Optional[DataRowSubscriptionInsightsCurrentSubscription] = None + + current_subscription_from_smart_link: Optional[bool] = None + + has_subscription_data: Optional[bool] = None + + previously_subscribed: Optional[bool] = None + + subscribed_using_promo: Optional[bool] = None + class DataRow(BaseModel): avatar_url: Optional[str] = None @@ -75,6 +105,8 @@ class DataRow(BaseModel): revenue_net: Optional[int] = None + subscription_insights: Optional[DataRowSubscriptionInsights] = None + tips_net: Optional[int] = None username: Optional[str] = None diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index a6c92cee..87cebf71 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="autem", + message_id="fugiat", 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="autem", + message_id="fugiat", 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="autem", + message_id="fugiat", 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="autem", + message_id="fugiat", 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="autem", + message_id="fugiat", 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="autem", + message_id="fugiat", 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="autem", + message_id="fugiat", 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="autem", + message_id="fugiat", 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="autem", + message_id="fugiat", 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="autem", + message_id="fugiat", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index b5417354..422d2a14 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="voluptatum", + list_id="recusandae", 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="voluptatum", + list_id="recusandae", 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="voluptatum", + list_id="recusandae", 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="voluptatum", + list_id="recusandae", 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="voluptatum", + list_id="recusandae", 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="voluptatum", + list_id="recusandae", 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="voluptatum", + list_id="recusandae", 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="voluptatum", + list_id="recusandae", 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="voluptatum", + list_id="recusandae", 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="voluptatum", + list_id="recusandae", 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="voluptatum", + list_id="recusandae", 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="voluptatum", + list_id="recusandae", 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="voluptatum", + list_id="recusandae", 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="voluptatum", + list_id="recusandae", 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="voluptatum", + list_id="recusandae", 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="voluptatum", + list_id="recusandae", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index f1092988..03abe1e1 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="porro", + post_id="maxime", 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="porro", + post_id="maxime", 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="porro", + post_id="maxime", 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="porro", + post_id="maxime", 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="porro", + post_id="maxime", 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="porro", + post_id="maxime", 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="porro", + post_id="maxime", 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="porro", + post_id="maxime", 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="porro", + post_id="maxime", 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="porro", + post_id="maxime", 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="porro", + post_id="maxime", 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="porro", + post_id="maxime", 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="porro", + post_id="maxime", 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="porro", + post_id="maxime", 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="porro", + post_id="maxime", 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="porro", + post_id="maxime", 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="porro", + post_id="maxime", 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="porro", + post_id="maxime", 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="porro", + post_id="maxime", 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="porro", + post_id="maxime", 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 aa735c97..444937ba 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 b5f3d61a..2ced6cb5 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 ad9c9b25..ffcd9662 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="rem", + path_story_id="assumenda", 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="rem", + path_story_id="assumenda", 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="rem", + path_story_id="assumenda", 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="rem", + path_story_id="assumenda", 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="rem", + story_id="assumenda", 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="rem", + story_id="assumenda", 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="rem", + story_id="assumenda", 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="rem", + story_id="assumenda", 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="rem", + path_story_id="assumenda", 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="rem", + path_story_id="assumenda", 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="rem", + path_story_id="assumenda", 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="rem", + path_story_id="assumenda", 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="rem", + story_id="assumenda", 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="rem", + story_id="assumenda", 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="rem", + story_id="assumenda", 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="rem", + story_id="assumenda", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 3fd0e53a..8a817007 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", + "enim", ) 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", + "enim", ) 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", + "enim", ) 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", + "enim", ) 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", + "enim", ) 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", + "enim", ) 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 1e195b88..98235b7b 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="dicta", + auth_id="enim", auth_type="mobile_app", - cookies="et", + cookies="sit", custom_proxy={ "host": "proxy.example.com", - "password": "{-bj$os", + "password": "lHh=(D", "port": 8080, - "username": "necessitatibus", + "username": "tempora", }, - email="brekke.benton@example.net", - force_connect=False, - name="velit", - password=";=J,UvSeo", - proxy_country="us", - user_agent="non", - xbc="excepturi", + email="shannon.leffler@example.com", + force_connect=True, + name="saepe", + password="2wc~Zi-OpD", + proxy_country="uk", + user_agent="quia", + 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="dicta", + auth_id="enim", auth_type="mobile_app", - cookies="et", + cookies="sit", custom_proxy={ "host": "proxy.example.com", - "password": "{-bj$os", + "password": "lHh=(D", "port": 8080, - "username": "necessitatibus", + "username": "tempora", }, - email="brekke.benton@example.net", - force_connect=False, - name="velit", - password=";=J,UvSeo", - proxy_country="us", - user_agent="non", - xbc="excepturi", + email="shannon.leffler@example.com", + force_connect=True, + name="saepe", + password="2wc~Zi-OpD", + proxy_country="uk", + user_agent="quia", + xbc="ut", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index aaff3bff..b2158856 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="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="promotions", + 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 65694e23..bd4f6161 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 3154ceb0..e3344456 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": ["fzsujvgvnsr"]}, + filter={"tags": ["gdauwha"]}, 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="aut", + smart_link_id="rerum", ) 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="aut", + smart_link_id="rerum", 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="aut", + smart_link_id="rerum", ) 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="aut", + smart_link_id="rerum", ) 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="sed", + smart_link_id="sint", ) 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="sed", + smart_link_id="sint", 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="sed", + smart_link_id="sint", ) 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="sed", + smart_link_id="sint", ) 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="illum", + smart_link_id="id", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -330,14 +330,16 @@ 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="illum", + smart_link_id="id", has_messages=True, limit=100, min_messages_sent_by_fan=3, min_revenue_net=25, min_tips_net=10, offset=0, + previously_subscribed=True, sort="-revenue_net", + subscribed_using_promo=True, ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -345,7 +347,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="illum", + smart_link_id="id", ) assert response.is_closed is True @@ -357,7 +359,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="illum", + smart_link_id="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -379,7 +381,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="recusandae", + smart_link_id="explicabo", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -387,7 +389,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="recusandae", + smart_link_id="explicabo", limit=50, min_spend=1, offset=0, @@ -398,7 +400,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="recusandae", + smart_link_id="explicabo", ) assert response.is_closed is True @@ -410,7 +412,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="recusandae", + smart_link_id="explicabo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -432,7 +434,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="voluptatem", + smart_link_id="est", ) assert smart_link is None @@ -440,7 +442,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="voluptatem", + smart_link_id="est", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -451,7 +453,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="voluptatem", + smart_link_id="est", ) assert response.is_closed is True @@ -463,7 +465,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="voluptatem", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -485,7 +487,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="in", + smart_link_id="ab", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -493,7 +495,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="in", + smart_link_id="ab", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -503,7 +505,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="in", + smart_link_id="ab", ) assert response.is_closed is True @@ -515,7 +517,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="in", + smart_link_id="ab", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -643,7 +645,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": ["fzsujvgvnsr"]}, + filter={"tags": ["gdauwha"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -720,7 +722,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="rerum", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -728,7 +730,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="rerum", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -742,7 +744,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="rerum", ) assert response.is_closed is True @@ -754,7 +756,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="rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -776,7 +778,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="sed", + smart_link_id="sint", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -784,7 +786,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="sed", + smart_link_id="sint", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -800,7 +802,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="sed", + smart_link_id="sint", ) assert response.is_closed is True @@ -812,7 +814,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="sed", + smart_link_id="sint", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -834,7 +836,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="illum", + smart_link_id="id", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -842,14 +844,16 @@ 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="illum", + smart_link_id="id", has_messages=True, limit=100, min_messages_sent_by_fan=3, min_revenue_net=25, min_tips_net=10, offset=0, + previously_subscribed=True, sort="-revenue_net", + subscribed_using_promo=True, ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -857,7 +861,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="illum", + smart_link_id="id", ) assert response.is_closed is True @@ -869,7 +873,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="illum", + smart_link_id="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -891,7 +895,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="recusandae", + smart_link_id="explicabo", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -899,7 +903,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="recusandae", + smart_link_id="explicabo", limit=50, min_spend=1, offset=0, @@ -910,7 +914,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="recusandae", + smart_link_id="explicabo", ) assert response.is_closed is True @@ -922,7 +926,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="recusandae", + smart_link_id="explicabo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -944,7 +948,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="voluptatem", + smart_link_id="est", ) assert smart_link is None @@ -952,7 +956,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="voluptatem", + smart_link_id="est", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -963,7 +967,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="voluptatem", + smart_link_id="est", ) assert response.is_closed is True @@ -975,7 +979,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="voluptatem", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -997,7 +1001,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="in", + smart_link_id="ab", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1005,7 +1009,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="in", + smart_link_id="ab", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1015,7 +1019,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="in", + smart_link_id="ab", ) assert response.is_closed is True @@ -1027,7 +1031,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="in", + smart_link_id="ab", ) 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 46a1f460..75f3682b 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": "qoxietohdbf", - "tags": ["jljyomrgdpwmtlq"], + "search": "spqvidxiatasl", + "tags": ["gurpgyawvpxaeimcvapssur"], }, 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": "qvakd", - "tags": ["bvfdu"], + "search": "sbvcjbftuzeqlbjhfa", + "tags": ["nikucoiayjdkdmvlsugsd"], }, 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": "qgixzqofiifor", - "tags": ["kpeilrdmsssdm"], + "search": "llykwrwa", + "tags": ["eilq"], }, 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": "xiazkslistvcf", - "tags": ["serciuvuajsvbtggj"], + "search": "jlokwzpdkeolqqprcblu", + "tags": ["ymsrxfbqhgaoannxvitgh"], }, 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": "qoxietohdbf", - "tags": ["jljyomrgdpwmtlq"], + "search": "spqvidxiatasl", + "tags": ["gurpgyawvpxaeimcvapssur"], }, 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": "qvakd", - "tags": ["bvfdu"], + "search": "sbvcjbftuzeqlbjhfa", + "tags": ["nikucoiayjdkdmvlsugsd"], }, 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": "qgixzqofiifor", - "tags": ["kpeilrdmsssdm"], + "search": "llykwrwa", + "tags": ["eilq"], }, 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": "xiazkslistvcf", - "tags": ["serciuvuajsvbtggj"], + "search": "jlokwzpdkeolqqprcblu", + "tags": ["ymsrxfbqhgaoannxvitgh"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 882ee3cd..872aca29 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="odio", + tracking_link_id="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="odio", + tracking_link_id="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + tracking_link_id="voluptates", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index b91dc0b4..19b2306f 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="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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="consectetur", + 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="consectetur", + 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="consectetur", + 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="consectetur", + 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="quaerat", + trial_link_id="eos", 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="quaerat", + trial_link_id="eos", 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="quaerat", + trial_link_id="eos", 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="quaerat", + trial_link_id="eos", 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="quaerat", + trial_link_id="eos", 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="ut", + trial_link_id="quod", 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="ut", + trial_link_id="quod", 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="ut", + trial_link_id="quod", 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="ut", + trial_link_id="quod", 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="ut", + trial_link_id="quod", 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="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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="sint", + 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="consectetur", + 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="consectetur", + 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="consectetur", + 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="consectetur", + 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="quaerat", + trial_link_id="eos", 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="quaerat", + trial_link_id="eos", 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="quaerat", + trial_link_id="eos", 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="quaerat", + trial_link_id="eos", 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="quaerat", + trial_link_id="eos", 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="ut", + trial_link_id="quod", 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="ut", + trial_link_id="quod", 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="ut", + trial_link_id="quod", 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="ut", + trial_link_id="quod", 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="ut", + trial_link_id="quod", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 9416c480..32fe5561 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="mwmionuveow", + name="aqqbjv", ) 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="mwmionuveow", + name="aqqbjv", ) 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="mwmionuveow", + name="aqqbjv", ) 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="mwmionuveow", + name="aqqbjv", ) @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="mwmionuveow", + name="aqqbjv", ) 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="mwmionuveow", + name="aqqbjv", ) 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="mwmionuveow", + name="aqqbjv", ) 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="mwmionuveow", + name="aqqbjv", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 673360549e2dba4c0558234ee9b172304530f3d8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 27 Jun 2026 18:12:38 +0000 Subject: [PATCH 106/249] 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 | 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 | 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 +-- 17 files changed, 260 insertions(+), 260 deletions(-) diff --git a/.stats.yml b/.stats.yml index da00913b..cffa537b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3c1cc402f9708c709f7d236bff9dfea7da318df8373813cdc1da5ccede26da18.yml -openapi_spec_hash: bde4ea8516a19fea9ae7849d087307c8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0c59776add5573e6393cb3bfa63536c25fe249c97fbea4d33cec4c845a5458a8.yml +openapi_spec_hash: 4950e80957798997ee35e6c12ba35e22 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 87cebf71..e83812f7 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="fugiat", + message_id="sint", 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="fugiat", + message_id="sint", 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="fugiat", + message_id="sint", 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="fugiat", + message_id="sint", 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="fugiat", + message_id="sint", 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="fugiat", + message_id="sint", 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="fugiat", + message_id="sint", 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="fugiat", + message_id="sint", 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="fugiat", + message_id="sint", 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="fugiat", + message_id="sint", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 422d2a14..a1edf470 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="recusandae", + list_id="laboriosam", 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="recusandae", + list_id="laboriosam", 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="recusandae", + list_id="laboriosam", 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="recusandae", + list_id="laboriosam", 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="recusandae", + list_id="laboriosam", 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="recusandae", + list_id="laboriosam", 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="recusandae", + list_id="laboriosam", 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="recusandae", + list_id="laboriosam", 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="recusandae", + list_id="laboriosam", 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="recusandae", + list_id="laboriosam", 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="recusandae", + list_id="laboriosam", 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="recusandae", + list_id="laboriosam", 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="recusandae", + list_id="laboriosam", 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="recusandae", + list_id="laboriosam", 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="recusandae", + list_id="laboriosam", 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="recusandae", + list_id="laboriosam", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 03abe1e1..efb0fc7f 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="maxime", + post_id="iste", 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="maxime", + post_id="iste", 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="maxime", + post_id="iste", 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="maxime", + post_id="iste", 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="maxime", + post_id="iste", 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="maxime", + post_id="iste", 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="maxime", + post_id="iste", 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="maxime", + post_id="iste", 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="maxime", + post_id="iste", 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="maxime", + post_id="iste", 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="maxime", + post_id="iste", 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="maxime", + post_id="iste", 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="maxime", + post_id="iste", 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="maxime", + post_id="iste", 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="maxime", + post_id="iste", 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="maxime", + post_id="iste", 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="maxime", + post_id="iste", 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="maxime", + post_id="iste", 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="maxime", + post_id="iste", 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="maxime", + post_id="iste", 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 444937ba..aa735c97 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 ffcd9662..34837627 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="assumenda", + path_story_id="quisquam", 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="assumenda", + path_story_id="quisquam", 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="assumenda", + path_story_id="quisquam", 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="assumenda", + path_story_id="quisquam", 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="assumenda", + story_id="quisquam", 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="assumenda", + story_id="quisquam", 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="assumenda", + story_id="quisquam", 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="assumenda", + story_id="quisquam", 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="assumenda", + path_story_id="quisquam", 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="assumenda", + path_story_id="quisquam", 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="assumenda", + path_story_id="quisquam", 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="assumenda", + path_story_id="quisquam", 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="assumenda", + story_id="quisquam", 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="assumenda", + story_id="quisquam", 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="assumenda", + story_id="quisquam", 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="assumenda", + story_id="quisquam", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 8a817007..58c24f2e 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( - "enim", + "nam", ) 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( - "enim", + "nam", ) 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( - "enim", + "nam", ) 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( - "enim", + "nam", ) 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( - "enim", + "nam", ) 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( - "enim", + "nam", ) 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 98235b7b..d061e450 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -160,20 +160,20 @@ def test_method_start(self, client: OnlyFansAPI) -> None: def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( auth_id="enim", - auth_type="mobile_app", - cookies="sit", + auth_type="raw_data", + cookies="aperiam", custom_proxy={ "host": "proxy.example.com", - "password": "lHh=(D", + "password": "`]{ONa'9", "port": 8080, - "username": "tempora", + "username": "dolores", }, - email="shannon.leffler@example.com", - force_connect=True, - name="saepe", - password="2wc~Zi-OpD", - proxy_country="uk", - user_agent="quia", + email="fisher.jeanette@example.com", + force_connect=False, + name="perferendis", + password='7Ue"jAVlUrR', + proxy_country="us", + user_agent="odio", xbc="ut", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -395,20 +395,20 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( auth_id="enim", - auth_type="mobile_app", - cookies="sit", + auth_type="raw_data", + cookies="aperiam", custom_proxy={ "host": "proxy.example.com", - "password": "lHh=(D", + "password": "`]{ONa'9", "port": 8080, - "username": "tempora", + "username": "dolores", }, - email="shannon.leffler@example.com", - force_connect=True, - name="saepe", - password="2wc~Zi-OpD", - proxy_country="uk", - user_agent="quia", + email="fisher.jeanette@example.com", + force_connect=False, + name="perferendis", + password='7Ue"jAVlUrR', + proxy_country="us", + user_agent="odio", xbc="ut", ) 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 3597ede6..9249f386 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 b2158856..aaff3bff 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="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="purchases", + 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 bd4f6161..65694e23 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 e3344456..38464d0e 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": ["gdauwha"]}, + filter={"tags": ["xozdhlspbnmro"]}, 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="rerum", + smart_link_id="repellat", ) 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="rerum", + smart_link_id="repellat", 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="rerum", + smart_link_id="repellat", ) 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="rerum", + smart_link_id="repellat", ) 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="sint", + smart_link_id="aliquam", ) 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="sint", + smart_link_id="aliquam", 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="sint", + smart_link_id="aliquam", ) 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="sint", + smart_link_id="aliquam", ) 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="id", + smart_link_id="enim", ) 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="id", + smart_link_id="enim", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="id", + smart_link_id="enim", ) assert response.is_closed is True @@ -359,7 +359,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="id", + smart_link_id="enim", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="explicabo", + smart_link_id="dolorum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="explicabo", + smart_link_id="dolorum", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="explicabo", + smart_link_id="dolorum", ) assert response.is_closed is True @@ -412,7 +412,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="explicabo", + smart_link_id="dolorum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="est", + smart_link_id="enim", ) assert smart_link is None @@ -442,7 +442,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="est", + smart_link_id="enim", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="est", + smart_link_id="enim", ) assert response.is_closed is True @@ -465,7 +465,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="est", + smart_link_id="enim", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="ab", + smart_link_id="id", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="ab", + smart_link_id="id", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="ab", + smart_link_id="id", ) assert response.is_closed is True @@ -517,7 +517,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="ab", + smart_link_id="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["gdauwha"]}, + filter={"tags": ["xozdhlspbnmro"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="rerum", + smart_link_id="repellat", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="rerum", + smart_link_id="repellat", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="rerum", + smart_link_id="repellat", ) assert response.is_closed is True @@ -756,7 +756,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="rerum", + smart_link_id="repellat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="aliquam", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="aliquam", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="aliquam", ) assert response.is_closed is True @@ -814,7 +814,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="aliquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="id", + smart_link_id="enim", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="id", + smart_link_id="enim", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="id", + smart_link_id="enim", ) assert response.is_closed is True @@ -873,7 +873,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="id", + smart_link_id="enim", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="explicabo", + smart_link_id="dolorum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="explicabo", + smart_link_id="dolorum", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="explicabo", + smart_link_id="dolorum", ) assert response.is_closed is True @@ -926,7 +926,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="explicabo", + smart_link_id="dolorum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="est", + smart_link_id="enim", ) assert smart_link is None @@ -956,7 +956,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="est", + smart_link_id="enim", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="est", + smart_link_id="enim", ) assert response.is_closed is True @@ -979,7 +979,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="est", + smart_link_id="enim", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="ab", + smart_link_id="id", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="ab", + smart_link_id="id", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="ab", + smart_link_id="id", ) assert response.is_closed is True @@ -1031,7 +1031,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="ab", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index 75f3682b..130c96e0 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": "spqvidxiatasl", - "tags": ["gurpgyawvpxaeimcvapssur"], + "search": "myelfnzawupmerw", + "tags": ["jxxciziibnsv"], }, 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": "sbvcjbftuzeqlbjhfa", - "tags": ["nikucoiayjdkdmvlsugsd"], + "search": "ejvyvovuucuwfcpayokk", + "tags": ["htpvkzmorqgcvxrkiccat"], }, 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": "llykwrwa", - "tags": ["eilq"], + "search": "sjhcdlwzyuoyio", + "tags": ["htnnp"], }, 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": "jlokwzpdkeolqqprcblu", - "tags": ["ymsrxfbqhgaoannxvitgh"], + "search": "yxmhrncylexzxkv", + "tags": ["xxubjtislkzso"], }, 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": "spqvidxiatasl", - "tags": ["gurpgyawvpxaeimcvapssur"], + "search": "myelfnzawupmerw", + "tags": ["jxxciziibnsv"], }, 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": "sbvcjbftuzeqlbjhfa", - "tags": ["nikucoiayjdkdmvlsugsd"], + "search": "ejvyvovuucuwfcpayokk", + "tags": ["htpvkzmorqgcvxrkiccat"], }, 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": "llykwrwa", - "tags": ["eilq"], + "search": "sjhcdlwzyuoyio", + "tags": ["htnnp"], }, 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": "jlokwzpdkeolqqprcblu", - "tags": ["ymsrxfbqhgaoannxvitgh"], + "search": "yxmhrncylexzxkv", + "tags": ["xxubjtislkzso"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 872aca29..41717e75 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="consectetur", 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="consectetur", 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="consectetur", 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="consectetur", 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="consectetur", 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="consectetur", 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="consectetur", 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="consectetur", 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="aut", + tracking_link_id="mollitia", 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="aut", + tracking_link_id="mollitia", 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="aut", + tracking_link_id="mollitia", 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="aut", + tracking_link_id="mollitia", 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="aut", + tracking_link_id="mollitia", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="consectetur", 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="consectetur", 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="consectetur", 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="consectetur", 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="consectetur", 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="consectetur", 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="consectetur", 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="consectetur", 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="aut", + tracking_link_id="mollitia", 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="aut", + tracking_link_id="mollitia", 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="aut", + tracking_link_id="mollitia", 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="aut", + tracking_link_id="mollitia", 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="aut", + tracking_link_id="mollitia", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 19b2306f..a2416179 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="commodi", 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="commodi", 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="commodi", 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="commodi", 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="eos", + trial_link_id="dolorum", 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="eos", + trial_link_id="dolorum", 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="eos", + trial_link_id="dolorum", 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="eos", + trial_link_id="dolorum", 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="eos", + trial_link_id="dolorum", 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="quod", + trial_link_id="laudantium", 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="quod", + trial_link_id="laudantium", 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="quod", + trial_link_id="laudantium", 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="quod", + trial_link_id="laudantium", 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="quod", + trial_link_id="laudantium", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="dolore", 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="commodi", 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="commodi", 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="commodi", 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="commodi", 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="eos", + trial_link_id="dolorum", 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="eos", + trial_link_id="dolorum", 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="eos", + trial_link_id="dolorum", 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="eos", + trial_link_id="dolorum", 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="eos", + trial_link_id="dolorum", 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="quod", + trial_link_id="laudantium", 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="quod", + trial_link_id="laudantium", 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="quod", + trial_link_id="laudantium", 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="quod", + trial_link_id="laudantium", 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="quod", + trial_link_id="laudantium", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 32fe5561..907903ca 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="aqqbjv", + name="jatilzsqsjukxemrc", ) 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="aqqbjv", + name="jatilzsqsjukxemrc", ) 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="aqqbjv", + name="jatilzsqsjukxemrc", ) 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="aqqbjv", + name="jatilzsqsjukxemrc", ) @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="aqqbjv", + name="jatilzsqsjukxemrc", ) 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="aqqbjv", + name="jatilzsqsjukxemrc", ) 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="aqqbjv", + name="jatilzsqsjukxemrc", ) 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="aqqbjv", + name="jatilzsqsjukxemrc", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 1a1f70df2843def16fe176ac59863f41b3864467 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 28 Jun 2026 06:12:42 +0000 Subject: [PATCH 107/249] 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_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, 264 insertions(+), 264 deletions(-) diff --git a/.stats.yml b/.stats.yml index cffa537b..1a2597f5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0c59776add5573e6393cb3bfa63536c25fe249c97fbea4d33cec4c845a5458a8.yml -openapi_spec_hash: 4950e80957798997ee35e6c12ba35e22 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bdbcb71d3890454f9a80554d6e8893125a88a15551731e55b2bd4995e4b981b5.yml +openapi_spec_hash: f49b334718187cf5534314f5389eb412 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index e83812f7..21b80250 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="sint", + message_id="dolorem", 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="sint", + message_id="dolorem", 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="sint", + message_id="dolorem", 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="sint", + message_id="dolorem", 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="sint", + message_id="dolorem", 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="sint", + message_id="dolorem", 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="sint", + message_id="dolorem", 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="sint", + message_id="dolorem", 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="sint", + message_id="dolorem", 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="sint", + message_id="dolorem", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index a1edf470..4e59b8e6 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="laboriosam", + list_id="aspernatur", 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="laboriosam", + list_id="aspernatur", 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="laboriosam", + list_id="aspernatur", 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="laboriosam", + list_id="aspernatur", 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="laboriosam", + list_id="aspernatur", 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="laboriosam", + list_id="aspernatur", 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="laboriosam", + list_id="aspernatur", 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="laboriosam", + list_id="aspernatur", 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="laboriosam", + list_id="aspernatur", 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="laboriosam", + list_id="aspernatur", 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="laboriosam", + list_id="aspernatur", 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="laboriosam", + list_id="aspernatur", 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="laboriosam", + list_id="aspernatur", 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="laboriosam", + list_id="aspernatur", 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="laboriosam", + list_id="aspernatur", 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="laboriosam", + list_id="aspernatur", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index efb0fc7f..20d12215 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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 aa735c97..7549791e 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 2ced6cb5..fc7b1635 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 34837627..641042a3 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="quisquam", + path_story_id="praesentium", 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="quisquam", + path_story_id="praesentium", 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="quisquam", + path_story_id="praesentium", 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="quisquam", + path_story_id="praesentium", 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="quisquam", + story_id="praesentium", 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="quisquam", + story_id="praesentium", 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="quisquam", + story_id="praesentium", 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="quisquam", + story_id="praesentium", 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="quisquam", + path_story_id="praesentium", 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="quisquam", + path_story_id="praesentium", 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="quisquam", + path_story_id="praesentium", 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="quisquam", + path_story_id="praesentium", 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="quisquam", + story_id="praesentium", 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="quisquam", + story_id="praesentium", 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="quisquam", + story_id="praesentium", 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="quisquam", + story_id="praesentium", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 58c24f2e..cb4f0cfb 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( - "nam", + "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( - "nam", + "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( - "nam", + "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( - "nam", + "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( - "nam", + "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( - "nam", + "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 d061e450..425c2f23 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="enim", - auth_type="raw_data", - cookies="aperiam", + auth_id="amet", + auth_type="email_password", + cookies="minus", custom_proxy={ "host": "proxy.example.com", - "password": "`]{ONa'9", + "password": "!ep)LQQrJ&J", "port": 8080, - "username": "dolores", + "username": "ut", }, - email="fisher.jeanette@example.com", - force_connect=False, - name="perferendis", - password='7Ue"jAVlUrR', + email="aiden.okon@example.org", + force_connect=True, + name="dicta", + password="pU80nVzKc#*Mhp'b.*|", proxy_country="us", - user_agent="odio", - xbc="ut", + user_agent="illo", + xbc="nulla", ) 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="enim", - auth_type="raw_data", - cookies="aperiam", + auth_id="amet", + auth_type="email_password", + cookies="minus", custom_proxy={ "host": "proxy.example.com", - "password": "`]{ONa'9", + "password": "!ep)LQQrJ&J", "port": 8080, - "username": "dolores", + "username": "ut", }, - email="fisher.jeanette@example.com", - force_connect=False, - name="perferendis", - password='7Ue"jAVlUrR', + email="aiden.okon@example.org", + force_connect=True, + name="dicta", + password="pU80nVzKc#*Mhp'b.*|", proxy_country="us", - user_agent="odio", - xbc="ut", + user_agent="illo", + xbc="nulla", ) 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 38464d0e..3deb2981 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": ["xozdhlspbnmro"]}, + filter={"tags": ["yfxtanrcxrhcdbsovyywsmv"]}, 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="repellat", + smart_link_id="laboriosam", ) 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="repellat", + smart_link_id="laboriosam", 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="repellat", + smart_link_id="laboriosam", ) 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="repellat", + smart_link_id="laboriosam", ) 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="aliquam", + smart_link_id="sit", ) 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="aliquam", + smart_link_id="sit", 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="aliquam", + smart_link_id="sit", ) 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="aliquam", + smart_link_id="sit", ) 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="enim", + smart_link_id="similique", ) 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="enim", + smart_link_id="similique", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="enim", + smart_link_id="similique", ) assert response.is_closed is True @@ -359,7 +359,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="enim", + smart_link_id="similique", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="itaque", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="itaque", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="itaque", ) assert response.is_closed is True @@ -412,7 +412,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="itaque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="enim", + smart_link_id="et", ) assert smart_link is None @@ -442,7 +442,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="enim", + smart_link_id="et", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="enim", + smart_link_id="et", ) assert response.is_closed is True @@ -465,7 +465,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="enim", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="id", + smart_link_id="est", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="id", + smart_link_id="est", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="id", + smart_link_id="est", ) assert response.is_closed is True @@ -517,7 +517,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="id", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["xozdhlspbnmro"]}, + filter={"tags": ["yfxtanrcxrhcdbsovyywsmv"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="repellat", + smart_link_id="laboriosam", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="repellat", + smart_link_id="laboriosam", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="repellat", + smart_link_id="laboriosam", ) assert response.is_closed is True @@ -756,7 +756,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="repellat", + smart_link_id="laboriosam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="sit", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="sit", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="sit", ) assert response.is_closed is True @@ -814,7 +814,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="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="enim", + smart_link_id="similique", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="enim", + smart_link_id="similique", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="enim", + smart_link_id="similique", ) assert response.is_closed is True @@ -873,7 +873,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="enim", + smart_link_id="similique", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="itaque", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="itaque", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="itaque", ) assert response.is_closed is True @@ -926,7 +926,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="itaque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="enim", + smart_link_id="et", ) assert smart_link is None @@ -956,7 +956,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="enim", + smart_link_id="et", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="enim", + smart_link_id="et", ) assert response.is_closed is True @@ -979,7 +979,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="enim", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="id", + smart_link_id="est", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="id", + smart_link_id="est", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="id", + smart_link_id="est", ) assert response.is_closed is True @@ -1031,7 +1031,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="id", + 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 130c96e0..2f9543ad 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": "myelfnzawupmerw", - "tags": ["jxxciziibnsv"], + "search": "hawccsarr", + "tags": ["skntrnjuamcpwumhagkbxetiy"], }, 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": "ejvyvovuucuwfcpayokk", - "tags": ["htpvkzmorqgcvxrkiccat"], + "search": "plcseb", + "tags": ["xblmclnsrkvrlqorri"], }, 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": "sjhcdlwzyuoyio", - "tags": ["htnnp"], + "include_smart_links": True, + "search": "oy", + "tags": ["a"], }, 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": "yxmhrncylexzxkv", - "tags": ["xxubjtislkzso"], + "search": "zgbijfrgbmqmtobozm", + "tags": ["goqlpgsdfzcoxmmtgtcxybq"], }, 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": "myelfnzawupmerw", - "tags": ["jxxciziibnsv"], + "search": "hawccsarr", + "tags": ["skntrnjuamcpwumhagkbxetiy"], }, 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": "ejvyvovuucuwfcpayokk", - "tags": ["htpvkzmorqgcvxrkiccat"], + "search": "plcseb", + "tags": ["xblmclnsrkvrlqorri"], }, 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": "sjhcdlwzyuoyio", - "tags": ["htnnp"], + "include_smart_links": True, + "search": "oy", + "tags": ["a"], }, 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": "yxmhrncylexzxkv", - "tags": ["xxubjtislkzso"], + "search": "zgbijfrgbmqmtobozm", + "tags": ["goqlpgsdfzcoxmmtgtcxybq"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 41717e75..198edeab 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="repellendus", 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="repellendus", 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="repellendus", 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="repellendus", 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="repellendus", 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="repellendus", 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="repellendus", 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="repellendus", 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="mollitia", + tracking_link_id="cumque", 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="mollitia", + tracking_link_id="cumque", 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="mollitia", + tracking_link_id="cumque", 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="mollitia", + tracking_link_id="cumque", 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="mollitia", + tracking_link_id="cumque", 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="aliquid", + tracking_link_id="atque", 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="aliquid", + tracking_link_id="atque", 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="aliquid", + tracking_link_id="atque", 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="aliquid", + tracking_link_id="atque", 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="aliquid", + tracking_link_id="atque", 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="repellendus", 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="repellendus", 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="repellendus", 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="repellendus", 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="repellendus", 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="repellendus", 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="repellendus", 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="repellendus", 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="mollitia", + tracking_link_id="cumque", 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="mollitia", + tracking_link_id="cumque", 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="mollitia", + tracking_link_id="cumque", 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="mollitia", + tracking_link_id="cumque", 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="mollitia", + tracking_link_id="cumque", 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="aliquid", + tracking_link_id="atque", 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="aliquid", + tracking_link_id="atque", 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="aliquid", + tracking_link_id="atque", 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="aliquid", + tracking_link_id="atque", 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="aliquid", + tracking_link_id="atque", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index a2416179..02f95a8f 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="dolore", + trial_link_id="aperiam", 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="dolore", + trial_link_id="aperiam", 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="dolore", + trial_link_id="aperiam", 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="dolore", + trial_link_id="aperiam", 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="dolore", + trial_link_id="aperiam", 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="dolore", + trial_link_id="aperiam", 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="dolore", + trial_link_id="aperiam", 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="dolore", + trial_link_id="aperiam", 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="commodi", + trial_link_id="eos", 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="commodi", + trial_link_id="eos", 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="commodi", + trial_link_id="eos", 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="commodi", + trial_link_id="eos", 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="dolorum", + trial_link_id="totam", 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="dolorum", + trial_link_id="totam", 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="dolorum", + trial_link_id="totam", 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="dolorum", + trial_link_id="totam", 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="dolorum", + trial_link_id="totam", 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="laudantium", + trial_link_id="minus", 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="laudantium", + trial_link_id="minus", 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="laudantium", + trial_link_id="minus", 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="laudantium", + trial_link_id="minus", 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="laudantium", + trial_link_id="minus", 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="dolore", + trial_link_id="aperiam", 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="dolore", + trial_link_id="aperiam", 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="dolore", + trial_link_id="aperiam", 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="dolore", + trial_link_id="aperiam", 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="dolore", + trial_link_id="aperiam", 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="dolore", + trial_link_id="aperiam", 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="dolore", + trial_link_id="aperiam", 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="dolore", + trial_link_id="aperiam", 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="commodi", + trial_link_id="eos", 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="commodi", + trial_link_id="eos", 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="commodi", + trial_link_id="eos", 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="commodi", + trial_link_id="eos", 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="dolorum", + trial_link_id="totam", 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="dolorum", + trial_link_id="totam", 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="dolorum", + trial_link_id="totam", 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="dolorum", + trial_link_id="totam", 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="dolorum", + trial_link_id="totam", 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="laudantium", + trial_link_id="minus", 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="laudantium", + trial_link_id="minus", 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="laudantium", + trial_link_id="minus", 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="laudantium", + trial_link_id="minus", 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="laudantium", + trial_link_id="minus", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 907903ca..05f42b79 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="jatilzsqsjukxemrc", + name="tnmouzgihegmpuw", ) 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="jatilzsqsjukxemrc", + name="tnmouzgihegmpuw", ) 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="jatilzsqsjukxemrc", + name="tnmouzgihegmpuw", ) 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="jatilzsqsjukxemrc", + name="tnmouzgihegmpuw", ) @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="jatilzsqsjukxemrc", + name="tnmouzgihegmpuw", ) 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="jatilzsqsjukxemrc", + name="tnmouzgihegmpuw", ) 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="jatilzsqsjukxemrc", + name="tnmouzgihegmpuw", ) 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="jatilzsqsjukxemrc", + name="tnmouzgihegmpuw", ) @pytest.mark.skip(reason="Mock server tests are disabled") From d99d328ea9231b173ce3694207f1acb04331322c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 28 Jun 2026 07:12:32 +0000 Subject: [PATCH 108/249] 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 | 48 ++++----- tests/api_resources/test_notifications.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 | 72 ++++++------- tests/api_resources/test_user_lists.py | 16 +-- 15 files changed, 260 insertions(+), 260 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1a2597f5..4c2c2563 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bdbcb71d3890454f9a80554d6e8893125a88a15551731e55b2bd4995e4b981b5.yml -openapi_spec_hash: f49b334718187cf5534314f5389eb412 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1d403080a7564d189c84c4e298c8b638d317fa2ad3f9b9a31ba371cb9e336cca.yml +openapi_spec_hash: 6eb2241404efe84e4c88171f228a7e9a config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 21b80250..7b209908 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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 4e59b8e6..27763c56 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="aspernatur", + list_id="suscipit", 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="aspernatur", + list_id="suscipit", 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="aspernatur", + list_id="suscipit", 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="aspernatur", + list_id="suscipit", 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="aspernatur", + list_id="suscipit", 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="aspernatur", + list_id="suscipit", 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="aspernatur", + list_id="suscipit", 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="aspernatur", + list_id="suscipit", 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="aspernatur", + list_id="suscipit", 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="aspernatur", + list_id="suscipit", 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="aspernatur", + list_id="suscipit", 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="aspernatur", + list_id="suscipit", 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="aspernatur", + list_id="suscipit", 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="aspernatur", + list_id="suscipit", 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="aspernatur", + list_id="suscipit", 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="aspernatur", + list_id="suscipit", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 20d12215..f6759bf6 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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 7549791e..444937ba 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 fc7b1635..2ced6cb5 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 641042a3..4ba2a929 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="praesentium", + path_story_id="eveniet", 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="praesentium", + path_story_id="eveniet", 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="praesentium", + path_story_id="eveniet", 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="praesentium", + path_story_id="eveniet", 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="praesentium", + story_id="eveniet", 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="praesentium", + story_id="eveniet", 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="praesentium", + story_id="eveniet", 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="praesentium", + story_id="eveniet", 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="praesentium", + path_story_id="eveniet", 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="praesentium", + path_story_id="eveniet", 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="praesentium", + path_story_id="eveniet", 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="praesentium", + path_story_id="eveniet", 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="praesentium", + story_id="eveniet", 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="praesentium", + story_id="eveniet", 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="praesentium", + story_id="eveniet", 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="praesentium", + story_id="eveniet", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index cb4f0cfb..2089ac97 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", + "officia", ) 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", + "officia", ) 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", + "officia", ) 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", + "officia", ) 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", + "officia", ) 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", + "officia", ) 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 425c2f23..cd7ee196 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="amet", - auth_type="email_password", - cookies="minus", + auth_id="possimus", + auth_type="mobile_app", + cookies="quam", custom_proxy={ "host": "proxy.example.com", - "password": "!ep)LQQrJ&J", + "password": "35qaP_3", "port": 8080, - "username": "ut", + "username": "blanditiis", }, - email="aiden.okon@example.org", - force_connect=True, - name="dicta", - password="pU80nVzKc#*Mhp'b.*|", - proxy_country="us", - user_agent="illo", - xbc="nulla", + email="lon.bode@example.org", + force_connect=False, + name="minima", + password='8KR" None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="amet", - auth_type="email_password", - cookies="minus", + auth_id="possimus", + auth_type="mobile_app", + cookies="quam", custom_proxy={ "host": "proxy.example.com", - "password": "!ep)LQQrJ&J", + "password": "35qaP_3", "port": 8080, - "username": "ut", + "username": "blanditiis", }, - email="aiden.okon@example.org", - force_connect=True, - name="dicta", - password="pU80nVzKc#*Mhp'b.*|", - proxy_country="us", - user_agent="illo", - xbc="nulla", + email="lon.bode@example.org", + force_connect=False, + name="minima", + password='8KR" None: from_id=123, limit=10, skip_users="all", - type="promotions", + 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="promotions", + 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 3deb2981..0dcfc072 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": ["yfxtanrcxrhcdbsovyywsmv"]}, + filter={"tags": ["rmcyx"]}, 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="laboriosam", + smart_link_id="odio", ) 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="laboriosam", + smart_link_id="odio", 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="laboriosam", + smart_link_id="odio", ) 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="laboriosam", + smart_link_id="odio", ) 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="sit", + smart_link_id="temporibus", ) 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="sit", + smart_link_id="temporibus", 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="sit", + smart_link_id="temporibus", ) 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="sit", + smart_link_id="temporibus", ) 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="similique", + smart_link_id="dicta", ) 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="similique", + smart_link_id="dicta", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="similique", + smart_link_id="dicta", ) assert response.is_closed is True @@ -359,7 +359,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="similique", + smart_link_id="dicta", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="itaque", + smart_link_id="qui", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="itaque", + smart_link_id="qui", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="itaque", + smart_link_id="qui", ) assert response.is_closed is True @@ -412,7 +412,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="itaque", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="placeat", ) assert smart_link is None @@ -442,7 +442,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="placeat", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="placeat", ) assert response.is_closed is True @@ -465,7 +465,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="placeat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="nisi", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="nisi", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="nisi", ) assert response.is_closed is True @@ -517,7 +517,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="nisi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["yfxtanrcxrhcdbsovyywsmv"]}, + filter={"tags": ["rmcyx"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="laboriosam", + smart_link_id="odio", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="laboriosam", + smart_link_id="odio", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="laboriosam", + smart_link_id="odio", ) assert response.is_closed is True @@ -756,7 +756,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="laboriosam", + smart_link_id="odio", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="temporibus", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="temporibus", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="temporibus", ) assert response.is_closed is True @@ -814,7 +814,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="temporibus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="similique", + smart_link_id="dicta", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="similique", + smart_link_id="dicta", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="similique", + smart_link_id="dicta", ) assert response.is_closed is True @@ -873,7 +873,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="similique", + smart_link_id="dicta", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="itaque", + smart_link_id="qui", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="itaque", + smart_link_id="qui", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="itaque", + smart_link_id="qui", ) assert response.is_closed is True @@ -926,7 +926,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="itaque", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="placeat", ) assert smart_link is None @@ -956,7 +956,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="placeat", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="placeat", ) assert response.is_closed is True @@ -979,7 +979,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="placeat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="nisi", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="nisi", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="nisi", ) assert response.is_closed is True @@ -1031,7 +1031,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="nisi", ) 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 2f9543ad..a410c45b 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": "hawccsarr", - "tags": ["skntrnjuamcpwumhagkbxetiy"], + "search": "fuifdhu", + "tags": ["ueyqbyzqkgfsxgf"], }, 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": "plcseb", - "tags": ["xblmclnsrkvrlqorri"], + "search": "afgegvqo", + "tags": ["qyftjvdvkhcdhcksrkayx"], }, 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": "oy", - "tags": ["a"], + "include_smart_links": False, + "search": "brcjpoyxkbslu", + "tags": ["joxarfptn"], }, 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": "zgbijfrgbmqmtobozm", - "tags": ["goqlpgsdfzcoxmmtgtcxybq"], + "search": "ondye", + "tags": ["oui"], }, 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": "hawccsarr", - "tags": ["skntrnjuamcpwumhagkbxetiy"], + "search": "fuifdhu", + "tags": ["ueyqbyzqkgfsxgf"], }, 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": "plcseb", - "tags": ["xblmclnsrkvrlqorri"], + "search": "afgegvqo", + "tags": ["qyftjvdvkhcdhcksrkayx"], }, 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": "oy", - "tags": ["a"], + "include_smart_links": False, + "search": "brcjpoyxkbslu", + "tags": ["joxarfptn"], }, 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": "zgbijfrgbmqmtobozm", - "tags": ["goqlpgsdfzcoxmmtgtcxybq"], + "search": "ondye", + "tags": ["oui"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 198edeab..993db614 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="cumque", + 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="cumque", + 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="cumque", + 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="cumque", + 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="cumque", + 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="atque", + tracking_link_id="assumenda", 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="atque", + tracking_link_id="assumenda", 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="atque", + tracking_link_id="assumenda", 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="atque", + tracking_link_id="assumenda", 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="atque", + tracking_link_id="assumenda", 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="cumque", + 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="cumque", + 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="cumque", + 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="cumque", + 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="cumque", + 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="atque", + tracking_link_id="assumenda", 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="atque", + tracking_link_id="assumenda", 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="atque", + tracking_link_id="assumenda", 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="atque", + tracking_link_id="assumenda", 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="atque", + tracking_link_id="assumenda", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 02f95a8f..c03b873f 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="aperiam", + trial_link_id="aut", 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="aperiam", + trial_link_id="aut", 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="aperiam", + trial_link_id="aut", 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="aperiam", + trial_link_id="aut", 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="aperiam", + trial_link_id="aut", 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="aperiam", + trial_link_id="aut", 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="aperiam", + trial_link_id="aut", 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="aperiam", + trial_link_id="aut", account="", ) @@ -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="totam", + trial_link_id="delectus", 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="totam", + trial_link_id="delectus", 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="totam", + trial_link_id="delectus", 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="totam", + trial_link_id="delectus", 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="totam", + trial_link_id="delectus", 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="aperiam", + trial_link_id="aut", 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="aperiam", + trial_link_id="aut", 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="aperiam", + trial_link_id="aut", 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="aperiam", + trial_link_id="aut", 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="aperiam", + trial_link_id="aut", 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="aperiam", + trial_link_id="aut", 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="aperiam", + trial_link_id="aut", 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="aperiam", + trial_link_id="aut", account="", ) @@ -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="totam", + trial_link_id="delectus", 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="totam", + trial_link_id="delectus", 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="totam", + trial_link_id="delectus", 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="totam", + trial_link_id="delectus", 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="totam", + trial_link_id="delectus", 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + trial_link_id="necessitatibus", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 05f42b79..7cb64153 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="tnmouzgihegmpuw", + name="jvjzgbxdnrmuoyznrxoyq", ) 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="tnmouzgihegmpuw", + name="jvjzgbxdnrmuoyznrxoyq", ) 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="tnmouzgihegmpuw", + name="jvjzgbxdnrmuoyznrxoyq", ) 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="tnmouzgihegmpuw", + name="jvjzgbxdnrmuoyznrxoyq", ) @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="tnmouzgihegmpuw", + name="jvjzgbxdnrmuoyznrxoyq", ) 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="tnmouzgihegmpuw", + name="jvjzgbxdnrmuoyznrxoyq", ) 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="tnmouzgihegmpuw", + name="jvjzgbxdnrmuoyznrxoyq", ) 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="tnmouzgihegmpuw", + name="jvjzgbxdnrmuoyznrxoyq", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 6f8646432b9297b31885ea2912f1325ba86e5949 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 28 Jun 2026 20:12:39 +0000 Subject: [PATCH 109/249] 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_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 +-- 15 files changed, 264 insertions(+), 264 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4c2c2563..a2da2ccd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1d403080a7564d189c84c4e298c8b638d317fa2ad3f9b9a31ba371cb9e336cca.yml -openapi_spec_hash: 6eb2241404efe84e4c88171f228a7e9a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fbc218baac59cd8bd4556b6d047384cbb1cdfabacaa7b7e540c9ba3ec32c7dd3.yml +openapi_spec_hash: 9281920a6c50254efd5b35878429f074 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 7b209908..0f6fe42e 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 27763c56..3fae1838 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="suscipit", + list_id="nemo", 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="suscipit", + list_id="nemo", 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="suscipit", + list_id="nemo", 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="suscipit", + list_id="nemo", 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="suscipit", + list_id="nemo", 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="suscipit", + list_id="nemo", 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="suscipit", + list_id="nemo", 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="suscipit", + list_id="nemo", 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="suscipit", + list_id="nemo", 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="suscipit", + list_id="nemo", 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="suscipit", + list_id="nemo", 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="suscipit", + list_id="nemo", 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="suscipit", + list_id="nemo", 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="suscipit", + list_id="nemo", 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="suscipit", + list_id="nemo", 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="suscipit", + list_id="nemo", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index f6759bf6..f66b90ab 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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="corporis", + 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 444937ba..a62ccbd3 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 2ced6cb5..9c80483e 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 4ba2a929..20605aac 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="eveniet", + path_story_id="laudantium", 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="eveniet", + path_story_id="laudantium", 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="eveniet", + path_story_id="laudantium", 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="eveniet", + path_story_id="laudantium", 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="eveniet", + story_id="laudantium", 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="eveniet", + story_id="laudantium", 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="eveniet", + story_id="laudantium", 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="eveniet", + story_id="laudantium", 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="eveniet", + path_story_id="laudantium", 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="eveniet", + path_story_id="laudantium", 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="eveniet", + path_story_id="laudantium", 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="eveniet", + path_story_id="laudantium", 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="eveniet", + story_id="laudantium", 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="eveniet", + story_id="laudantium", 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="eveniet", + story_id="laudantium", 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="eveniet", + story_id="laudantium", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 2089ac97..e97c67e9 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( - "officia", + "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( - "officia", + "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( - "officia", + "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( - "officia", + "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( - "officia", + "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( - "officia", + "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 cd7ee196..41302bfc 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="possimus", + auth_id="alias", auth_type="mobile_app", - cookies="quam", + cookies="doloremque", custom_proxy={ "host": "proxy.example.com", - "password": "35qaP_3", + "password": "`,tqV/8\\b/MYZ4vQXlBt", "port": 8080, - "username": "blanditiis", + "username": "ducimus", }, - email="lon.bode@example.org", - force_connect=False, - name="minima", - password='8KR" None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="possimus", + auth_id="alias", auth_type="mobile_app", - cookies="quam", + cookies="doloremque", custom_proxy={ "host": "proxy.example.com", - "password": "35qaP_3", + "password": "`,tqV/8\\b/MYZ4vQXlBt", "port": 8080, - "username": "blanditiis", + "username": "ducimus", }, - email="lon.bode@example.org", - force_connect=False, - name="minima", - password='8KR" None: from_id=123, limit=10, skip_users="all", - type="all", + 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="all", + 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 0dcfc072..84ca3035 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": ["rmcyx"]}, + filter={"tags": ["a"]}, 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="odio", + smart_link_id="dolorem", ) 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="odio", + smart_link_id="dolorem", 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="odio", + smart_link_id="dolorem", ) 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="odio", + smart_link_id="dolorem", ) 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="temporibus", + smart_link_id="perferendis", ) 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="temporibus", + smart_link_id="perferendis", 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="temporibus", + smart_link_id="perferendis", ) 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="temporibus", + smart_link_id="perferendis", ) 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="dicta", + 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="dicta", + smart_link_id="est", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="dicta", + smart_link_id="est", ) assert response.is_closed is True @@ -359,7 +359,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="dicta", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="dolore", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="dolore", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="dolore", ) assert response.is_closed is True @@ -412,7 +412,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="dolore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="placeat", + smart_link_id="omnis", ) assert smart_link is None @@ -442,7 +442,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="placeat", + smart_link_id="omnis", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="placeat", + smart_link_id="omnis", ) assert response.is_closed is True @@ -465,7 +465,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="placeat", + smart_link_id="omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="nisi", + smart_link_id="qui", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="nisi", + smart_link_id="qui", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="nisi", + smart_link_id="qui", ) assert response.is_closed is True @@ -517,7 +517,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="nisi", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["rmcyx"]}, + filter={"tags": ["a"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="odio", + smart_link_id="dolorem", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="odio", + smart_link_id="dolorem", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="odio", + smart_link_id="dolorem", ) assert response.is_closed is True @@ -756,7 +756,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="odio", + smart_link_id="dolorem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="temporibus", + smart_link_id="perferendis", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="temporibus", + smart_link_id="perferendis", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="temporibus", + smart_link_id="perferendis", ) assert response.is_closed is True @@ -814,7 +814,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="temporibus", + smart_link_id="perferendis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="dicta", + smart_link_id="est", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="dicta", + smart_link_id="est", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="dicta", + smart_link_id="est", ) assert response.is_closed is True @@ -873,7 +873,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="dicta", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="dolore", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="dolore", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="dolore", ) assert response.is_closed is True @@ -926,7 +926,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="dolore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="placeat", + smart_link_id="omnis", ) assert smart_link is None @@ -956,7 +956,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="placeat", + smart_link_id="omnis", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="placeat", + smart_link_id="omnis", ) assert response.is_closed is True @@ -979,7 +979,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="placeat", + smart_link_id="omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="nisi", + smart_link_id="qui", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="nisi", + smart_link_id="qui", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="nisi", + smart_link_id="qui", ) assert response.is_closed is True @@ -1031,7 +1031,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="nisi", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index a410c45b..e1a26eb6 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": "fuifdhu", - "tags": ["ueyqbyzqkgfsxgf"], + "search": "pqlgomoufwbobfkgbivmwiyk", + "tags": ["cmimlxiaoqnfulvrskuh"], }, 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": "afgegvqo", - "tags": ["qyftjvdvkhcdhcksrkayx"], + "search": "cmp", + "tags": ["cjt"], }, 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": "brcjpoyxkbslu", - "tags": ["joxarfptn"], + "include_smart_links": True, + "search": "dyzpubvcuvjgqekyey", + "tags": ["xtgsdkmqwicki"], }, 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": "ondye", - "tags": ["oui"], + "search": "oj", + "tags": ["eqsvhbtueh"], }, 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": "fuifdhu", - "tags": ["ueyqbyzqkgfsxgf"], + "search": "pqlgomoufwbobfkgbivmwiyk", + "tags": ["cmimlxiaoqnfulvrskuh"], }, 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": "afgegvqo", - "tags": ["qyftjvdvkhcdhcksrkayx"], + "search": "cmp", + "tags": ["cjt"], }, 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": "brcjpoyxkbslu", - "tags": ["joxarfptn"], + "include_smart_links": True, + "search": "dyzpubvcuvjgqekyey", + "tags": ["xtgsdkmqwicki"], }, 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": "ondye", - "tags": ["oui"], + "search": "oj", + "tags": ["eqsvhbtueh"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 993db614..e5d8329d 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="quia", + tracking_link_id="quibusdam", 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="quibusdam", 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="quibusdam", 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="quibusdam", 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="quibusdam", 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="assumenda", + tracking_link_id="dolor", 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="assumenda", + tracking_link_id="dolor", 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="assumenda", + tracking_link_id="dolor", 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="assumenda", + tracking_link_id="dolor", 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="assumenda", + tracking_link_id="dolor", 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="quia", + tracking_link_id="quibusdam", 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="quibusdam", 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="quibusdam", 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="quibusdam", 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="quibusdam", 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="assumenda", + tracking_link_id="dolor", 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="assumenda", + tracking_link_id="dolor", 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="assumenda", + tracking_link_id="dolor", 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="assumenda", + tracking_link_id="dolor", 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="assumenda", + tracking_link_id="dolor", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index c03b873f..f9645f8e 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="aut", + trial_link_id="explicabo", 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="aut", + trial_link_id="explicabo", 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="aut", + trial_link_id="explicabo", 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="aut", + trial_link_id="explicabo", 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="aut", + trial_link_id="explicabo", 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="aut", + trial_link_id="explicabo", 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="aut", + trial_link_id="explicabo", 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="aut", + trial_link_id="explicabo", 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="eos", + trial_link_id="delectus", 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="eos", + trial_link_id="delectus", 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="eos", + trial_link_id="delectus", 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="eos", + trial_link_id="delectus", 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="delectus", + trial_link_id="minima", 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="delectus", + trial_link_id="minima", 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="delectus", + trial_link_id="minima", 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="delectus", + trial_link_id="minima", 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="delectus", + trial_link_id="minima", 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="similique", 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="similique", 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="similique", 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="similique", 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="similique", 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="aut", + trial_link_id="explicabo", 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="aut", + trial_link_id="explicabo", 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="aut", + trial_link_id="explicabo", 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="aut", + trial_link_id="explicabo", 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="aut", + trial_link_id="explicabo", 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="aut", + trial_link_id="explicabo", 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="aut", + trial_link_id="explicabo", 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="aut", + trial_link_id="explicabo", 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="eos", + trial_link_id="delectus", 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="eos", + trial_link_id="delectus", 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="eos", + trial_link_id="delectus", 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="eos", + trial_link_id="delectus", 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="delectus", + trial_link_id="minima", 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="delectus", + trial_link_id="minima", 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="delectus", + trial_link_id="minima", 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="delectus", + trial_link_id="minima", 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="delectus", + trial_link_id="minima", 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="similique", 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="similique", 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="similique", 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="similique", 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="similique", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 7cb64153..a84c4c8b 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="jvjzgbxdnrmuoyznrxoyq", + name="bozarddkkt", ) 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="jvjzgbxdnrmuoyznrxoyq", + name="bozarddkkt", ) 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="jvjzgbxdnrmuoyznrxoyq", + name="bozarddkkt", ) 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="jvjzgbxdnrmuoyznrxoyq", + name="bozarddkkt", ) @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="jvjzgbxdnrmuoyznrxoyq", + name="bozarddkkt", ) 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="jvjzgbxdnrmuoyznrxoyq", + name="bozarddkkt", ) 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="jvjzgbxdnrmuoyznrxoyq", + name="bozarddkkt", ) 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="jvjzgbxdnrmuoyznrxoyq", + name="bozarddkkt", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 6b0bbf8ccd12982f2ff8e53014db7e24dfb2bf83 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 28 Jun 2026 23:12:35 +0000 Subject: [PATCH 110/249] 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 | 36 +++---- tests/api_resources/test_client_sessions.py | 4 +- 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, 254 insertions(+), 254 deletions(-) diff --git a/.stats.yml b/.stats.yml index a2da2ccd..ba068e31 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fbc218baac59cd8bd4556b6d047384cbb1cdfabacaa7b7e540c9ba3ec32c7dd3.yml -openapi_spec_hash: 9281920a6c50254efd5b35878429f074 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9bcfb2d4607141abbb50bda92e53a291407a6a989ce53322e13927ce68ec9da8.yml +openapi_spec_hash: ce2e27b9d334efaf635d76f6afe5aca5 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 0f6fe42e..1ef5bbf4 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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 3fae1838..16248afb 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="nemo", + list_id="ipsum", 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="nemo", + list_id="ipsum", 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="nemo", + list_id="ipsum", 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="nemo", + list_id="ipsum", 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="nemo", + list_id="ipsum", 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="nemo", + list_id="ipsum", 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="nemo", + list_id="ipsum", 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="nemo", + list_id="ipsum", 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="nemo", + list_id="ipsum", 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="nemo", + list_id="ipsum", 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="nemo", + list_id="ipsum", 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="nemo", + list_id="ipsum", 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="nemo", + list_id="ipsum", 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="nemo", + list_id="ipsum", 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="nemo", + list_id="ipsum", 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="nemo", + list_id="ipsum", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index f66b90ab..3557e3cb 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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 a62ccbd3..444937ba 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 20605aac..2f6fa650 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="laudantium", + path_story_id="voluptas", 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="laudantium", + path_story_id="voluptas", 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="laudantium", + path_story_id="voluptas", 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="laudantium", + path_story_id="voluptas", 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="laudantium", + story_id="voluptas", 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="laudantium", + story_id="voluptas", 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="laudantium", + story_id="voluptas", 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="laudantium", + story_id="voluptas", 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="laudantium", + path_story_id="voluptas", 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="laudantium", + path_story_id="voluptas", 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="laudantium", + path_story_id="voluptas", 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="laudantium", + path_story_id="voluptas", 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="laudantium", + story_id="voluptas", 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="laudantium", + story_id="voluptas", 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="laudantium", + story_id="voluptas", 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="laudantium", + story_id="voluptas", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index e97c67e9..a5dc9a19 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", + "saepe", ) 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", + "saepe", ) 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", + "saepe", ) 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", + "saepe", ) 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", + "saepe", ) 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", + "saepe", ) 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 41302bfc..5f81bdee 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="alias", + auth_id="est", auth_type="mobile_app", - cookies="doloremque", + cookies="exercitationem", custom_proxy={ "host": "proxy.example.com", - "password": "`,tqV/8\\b/MYZ4vQXlBt", + "password": 'VqMru"j', "port": 8080, - "username": "ducimus", + "username": "tempore", }, - email="dare.harmon@example.com", + email="qwunsch@example.com", force_connect=True, - name="et", - password="II3q2;MLw+\\Q@CgU", + name="ex", + password="0sGv*@2Xpm[F* None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="alias", + auth_id="est", auth_type="mobile_app", - cookies="doloremque", + cookies="exercitationem", custom_proxy={ "host": "proxy.example.com", - "password": "`,tqV/8\\b/MYZ4vQXlBt", + "password": 'VqMru"j', "port": 8080, - "username": "ducimus", + "username": "tempore", }, - email="dare.harmon@example.com", + email="qwunsch@example.com", force_connect=True, - name="et", - password="II3q2;MLw+\\Q@CgU", + name="ex", + password="0sGv*@2Xpm[F* 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 4d3e426f..1a80b275 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_links.py b/tests/api_resources/test_smart_links.py index 84ca3035..417bc191 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": ["a"]}, + filter={"tags": ["mcgmhuwleigux"]}, 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="dolorem", + smart_link_id="modi", ) 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="dolorem", + smart_link_id="modi", 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="dolorem", + smart_link_id="modi", ) 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="dolorem", + smart_link_id="modi", ) 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="perferendis", + smart_link_id="expedita", ) 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="perferendis", + smart_link_id="expedita", 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="perferendis", + smart_link_id="expedita", ) 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="perferendis", + smart_link_id="expedita", ) 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="et", ) 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="et", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="et", ) assert response.is_closed is True @@ -359,7 +359,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="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="dolore", + smart_link_id="recusandae", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="dolore", + smart_link_id="recusandae", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="dolore", + smart_link_id="recusandae", ) assert response.is_closed is True @@ -412,7 +412,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="dolore", + smart_link_id="recusandae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="omnis", + smart_link_id="ad", ) assert smart_link is None @@ -442,7 +442,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="omnis", + smart_link_id="ad", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="omnis", + smart_link_id="ad", ) assert response.is_closed is True @@ -465,7 +465,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="omnis", + smart_link_id="ad", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="qui", + smart_link_id="facere", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="qui", + smart_link_id="facere", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="qui", + smart_link_id="facere", ) assert response.is_closed is True @@ -517,7 +517,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="qui", + smart_link_id="facere", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["a"]}, + filter={"tags": ["mcgmhuwleigux"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="dolorem", + smart_link_id="modi", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="dolorem", + smart_link_id="modi", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="dolorem", + smart_link_id="modi", ) assert response.is_closed is True @@ -756,7 +756,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="dolorem", + smart_link_id="modi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="perferendis", + smart_link_id="expedita", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="perferendis", + smart_link_id="expedita", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="perferendis", + smart_link_id="expedita", ) assert response.is_closed is True @@ -814,7 +814,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="perferendis", + smart_link_id="expedita", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="et", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="et", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="et", ) assert response.is_closed is True @@ -873,7 +873,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="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="dolore", + smart_link_id="recusandae", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="dolore", + smart_link_id="recusandae", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="dolore", + smart_link_id="recusandae", ) assert response.is_closed is True @@ -926,7 +926,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="dolore", + smart_link_id="recusandae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="omnis", + smart_link_id="ad", ) assert smart_link is None @@ -956,7 +956,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="omnis", + smart_link_id="ad", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="omnis", + smart_link_id="ad", ) assert response.is_closed is True @@ -979,7 +979,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="omnis", + smart_link_id="ad", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="qui", + smart_link_id="facere", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="qui", + smart_link_id="facere", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="qui", + smart_link_id="facere", ) assert response.is_closed is True @@ -1031,7 +1031,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="qui", + smart_link_id="facere", ) 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 e1a26eb6..c93c6fd1 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": "pqlgomoufwbobfkgbivmwiyk", - "tags": ["cmimlxiaoqnfulvrskuh"], + "search": "ghaelxd", + "tags": ["zs"], }, 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": "cmp", - "tags": ["cjt"], + "search": "oxqwtk", + "tags": ["vtc"], }, 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": "dyzpubvcuvjgqekyey", - "tags": ["xtgsdkmqwicki"], + "search": "qcutayayetmvqme", + "tags": ["z"], }, 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": "oj", - "tags": ["eqsvhbtueh"], + "search": "yvwgvkhotpjvxmqxzrdkn", + "tags": ["lxljvtaihyckskvzsfz"], }, 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": "pqlgomoufwbobfkgbivmwiyk", - "tags": ["cmimlxiaoqnfulvrskuh"], + "search": "ghaelxd", + "tags": ["zs"], }, 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": "cmp", - "tags": ["cjt"], + "search": "oxqwtk", + "tags": ["vtc"], }, 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": "dyzpubvcuvjgqekyey", - "tags": ["xtgsdkmqwicki"], + "search": "qcutayayetmvqme", + "tags": ["z"], }, 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": "oj", - "tags": ["eqsvhbtueh"], + "search": "yvwgvkhotpjvxmqxzrdkn", + "tags": ["lxljvtaihyckskvzsfz"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index e5d8329d..f48a7435 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="quibusdam", + 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="quibusdam", + 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="quibusdam", + 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="quibusdam", + 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="quibusdam", + 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="dolor", + tracking_link_id="quasi", 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="dolor", + tracking_link_id="quasi", 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="dolor", + tracking_link_id="quasi", 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="dolor", + tracking_link_id="quasi", 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="dolor", + tracking_link_id="quasi", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="quibusdam", + 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="quibusdam", + 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="quibusdam", + 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="quibusdam", + 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="quibusdam", + 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="dolor", + tracking_link_id="quasi", 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="dolor", + tracking_link_id="quasi", 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="dolor", + tracking_link_id="quasi", 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="dolor", + tracking_link_id="quasi", 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="dolor", + tracking_link_id="quasi", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index f9645f8e..9c25aaa3 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="explicabo", + trial_link_id="impedit", 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="explicabo", + trial_link_id="impedit", 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="explicabo", + trial_link_id="impedit", 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="explicabo", + trial_link_id="impedit", 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="explicabo", + trial_link_id="impedit", 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="explicabo", + trial_link_id="impedit", 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="explicabo", + trial_link_id="impedit", 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="explicabo", + trial_link_id="impedit", 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="delectus", + trial_link_id="alias", 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="delectus", + trial_link_id="alias", 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="delectus", + trial_link_id="alias", 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="delectus", + trial_link_id="alias", 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="similique", + trial_link_id="ex", 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="similique", + trial_link_id="ex", 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="similique", + trial_link_id="ex", 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="similique", + trial_link_id="ex", 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="similique", + trial_link_id="ex", 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="explicabo", + trial_link_id="impedit", 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="explicabo", + trial_link_id="impedit", 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="explicabo", + trial_link_id="impedit", 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="explicabo", + trial_link_id="impedit", 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="explicabo", + trial_link_id="impedit", 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="explicabo", + trial_link_id="impedit", 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="explicabo", + trial_link_id="impedit", 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="explicabo", + trial_link_id="impedit", 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="delectus", + trial_link_id="alias", 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="delectus", + trial_link_id="alias", 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="delectus", + trial_link_id="alias", 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="delectus", + trial_link_id="alias", 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="similique", + trial_link_id="ex", 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="similique", + trial_link_id="ex", 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="similique", + trial_link_id="ex", 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="similique", + trial_link_id="ex", 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="similique", + trial_link_id="ex", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index a84c4c8b..d6cd5749 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="bozarddkkt", + name="l", ) 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="bozarddkkt", + name="l", ) 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="bozarddkkt", + name="l", ) 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="bozarddkkt", + name="l", ) @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="bozarddkkt", + name="l", ) 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="bozarddkkt", + name="l", ) 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="bozarddkkt", + name="l", ) 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="bozarddkkt", + name="l", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 1a4584e4ac241ff185911411b0b56fa2eb73b62c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 00:12:29 +0000 Subject: [PATCH 111/249] 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_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 +-- 15 files changed, 260 insertions(+), 260 deletions(-) diff --git a/.stats.yml b/.stats.yml index ba068e31..bc1ee4e4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9bcfb2d4607141abbb50bda92e53a291407a6a989ce53322e13927ce68ec9da8.yml -openapi_spec_hash: ce2e27b9d334efaf635d76f6afe5aca5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6edaebf302834d01e7497ddc7c365ea564175e865fa4f602945bb6e0fd1f0ace.yml +openapi_spec_hash: ef81dd9ff5441a4380485e8a950d8d8d config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 1ef5bbf4..5fc99543 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="odit", 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="odit", 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="odit", 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="odit", 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="odit", 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="odit", 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="odit", 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="odit", 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="odit", 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="odit", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 16248afb..3fae1838 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="ipsum", + list_id="nemo", 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="ipsum", + list_id="nemo", 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="ipsum", + list_id="nemo", 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="ipsum", + list_id="nemo", 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="ipsum", + list_id="nemo", 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="ipsum", + list_id="nemo", 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="ipsum", + list_id="nemo", 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="ipsum", + list_id="nemo", 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="ipsum", + list_id="nemo", 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="ipsum", + list_id="nemo", 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="ipsum", + list_id="nemo", 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="ipsum", + list_id="nemo", 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="ipsum", + list_id="nemo", 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="ipsum", + list_id="nemo", 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="ipsum", + list_id="nemo", 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="ipsum", + list_id="nemo", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 3557e3cb..685b531f 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="aliquid", + post_id="ea", 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="aliquid", + post_id="ea", 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="aliquid", + post_id="ea", 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="aliquid", + post_id="ea", 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="aliquid", + post_id="ea", 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="aliquid", + post_id="ea", 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="aliquid", + post_id="ea", 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="aliquid", + post_id="ea", 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="aliquid", + post_id="ea", 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="aliquid", + post_id="ea", 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="aliquid", + post_id="ea", 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="aliquid", + post_id="ea", 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="aliquid", + post_id="ea", 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="aliquid", + post_id="ea", 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="aliquid", + post_id="ea", 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="aliquid", + post_id="ea", 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="aliquid", + post_id="ea", 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="aliquid", + post_id="ea", 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="aliquid", + post_id="ea", 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="aliquid", + post_id="ea", 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 444937ba..7549791e 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 2f6fa650..09c67db6 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="voluptas", + path_story_id="consequatur", 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="voluptas", + path_story_id="consequatur", 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="voluptas", + path_story_id="consequatur", 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="voluptas", + path_story_id="consequatur", 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="voluptas", + story_id="consequatur", 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="voluptas", + story_id="consequatur", 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="voluptas", + story_id="consequatur", 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="voluptas", + story_id="consequatur", 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="voluptas", + path_story_id="consequatur", 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="voluptas", + path_story_id="consequatur", 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="voluptas", + path_story_id="consequatur", 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="voluptas", + path_story_id="consequatur", 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="voluptas", + story_id="consequatur", 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="voluptas", + story_id="consequatur", 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="voluptas", + story_id="consequatur", 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="voluptas", + story_id="consequatur", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index a5dc9a19..9725452e 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( - "saepe", + "amet", ) 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( - "saepe", + "amet", ) 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( - "saepe", + "amet", ) 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( - "saepe", + "amet", ) 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( - "saepe", + "amet", ) 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( - "saepe", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 5f81bdee..816cd318 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="exercitationem", + auth_id="illum", + auth_type="raw_data", + cookies="voluptatibus", custom_proxy={ "host": "proxy.example.com", - "password": 'VqMru"j', + "password": " 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="exercitationem", + auth_id="illum", + auth_type="raw_data", + cookies="voluptatibus", custom_proxy={ "host": "proxy.example.com", - "password": 'VqMru"j', + "password": " None: from_id=123, limit=10, skip_users="all", - type="onlyfans", + 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="onlyfans", + 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 65694e23..bd4f6161 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 417bc191..c6ee032c 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": ["mcgmhuwleigux"]}, + filter={"tags": ["ebfimmggbkxamilme"]}, 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="modi", + smart_link_id="consequatur", ) 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="modi", + smart_link_id="consequatur", 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="modi", + smart_link_id="consequatur", ) 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="modi", + smart_link_id="consequatur", ) 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="expedita", + smart_link_id="sit", ) 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="expedita", + smart_link_id="sit", 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="expedita", + smart_link_id="sit", ) 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="expedita", + smart_link_id="sit", ) 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="et", + smart_link_id="id", ) 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="et", + smart_link_id="id", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="id", ) assert response.is_closed is True @@ -359,7 +359,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="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="recusandae", + smart_link_id="necessitatibus", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="recusandae", + smart_link_id="necessitatibus", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="recusandae", + smart_link_id="necessitatibus", ) assert response.is_closed is True @@ -412,7 +412,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="recusandae", + smart_link_id="necessitatibus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="ad", + smart_link_id="accusamus", ) assert smart_link is None @@ -442,7 +442,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="ad", + smart_link_id="accusamus", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="ad", + smart_link_id="accusamus", ) assert response.is_closed is True @@ -465,7 +465,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="ad", + smart_link_id="accusamus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="facere", + smart_link_id="corrupti", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="facere", + smart_link_id="corrupti", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="facere", + smart_link_id="corrupti", ) assert response.is_closed is True @@ -517,7 +517,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="facere", + smart_link_id="corrupti", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["mcgmhuwleigux"]}, + filter={"tags": ["ebfimmggbkxamilme"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="modi", + smart_link_id="consequatur", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="modi", + smart_link_id="consequatur", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="modi", + smart_link_id="consequatur", ) assert response.is_closed is True @@ -756,7 +756,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="modi", + smart_link_id="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="expedita", + smart_link_id="sit", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="expedita", + smart_link_id="sit", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="expedita", + smart_link_id="sit", ) assert response.is_closed is True @@ -814,7 +814,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="expedita", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="id", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="id", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="id", ) assert response.is_closed is True @@ -873,7 +873,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="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="recusandae", + smart_link_id="necessitatibus", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="recusandae", + smart_link_id="necessitatibus", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="recusandae", + smart_link_id="necessitatibus", ) assert response.is_closed is True @@ -926,7 +926,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="recusandae", + smart_link_id="necessitatibus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="ad", + smart_link_id="accusamus", ) assert smart_link is None @@ -956,7 +956,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="ad", + smart_link_id="accusamus", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="ad", + smart_link_id="accusamus", ) assert response.is_closed is True @@ -979,7 +979,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="ad", + smart_link_id="accusamus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="facere", + smart_link_id="corrupti", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="facere", + smart_link_id="corrupti", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="facere", + smart_link_id="corrupti", ) assert response.is_closed is True @@ -1031,7 +1031,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="facere", + smart_link_id="corrupti", ) 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 c93c6fd1..25d67eda 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": "ghaelxd", - "tags": ["zs"], + "search": "ciib", + "tags": ["pfcecfn"], }, 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": "oxqwtk", - "tags": ["vtc"], + "search": "gzogmk", + "tags": ["seovpznexlaftz"], }, 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": "qcutayayetmvqme", - "tags": ["z"], + "include_smart_links": False, + "search": "btcvsliuobmwynhwhjfrdv", + "tags": ["uybwrwwrkkwbnneviwry"], }, 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": "yvwgvkhotpjvxmqxzrdkn", - "tags": ["lxljvtaihyckskvzsfz"], + "search": "fpnjf", + "tags": ["knvvvy"], }, 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": "ghaelxd", - "tags": ["zs"], + "search": "ciib", + "tags": ["pfcecfn"], }, 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": "oxqwtk", - "tags": ["vtc"], + "search": "gzogmk", + "tags": ["seovpznexlaftz"], }, 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": "qcutayayetmvqme", - "tags": ["z"], + "include_smart_links": False, + "search": "btcvsliuobmwynhwhjfrdv", + "tags": ["uybwrwwrkkwbnneviwry"], }, 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": "yvwgvkhotpjvxmqxzrdkn", - "tags": ["lxljvtaihyckskvzsfz"], + "search": "fpnjf", + "tags": ["knvvvy"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index f48a7435..2da87710 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="omnis", + 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="omnis", + 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="omnis", + 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="omnis", + 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="omnis", + 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="quasi", + tracking_link_id="odit", 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="quasi", + tracking_link_id="odit", 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="quasi", + tracking_link_id="odit", 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="quasi", + tracking_link_id="odit", 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="quasi", + tracking_link_id="odit", 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="omnis", + 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="omnis", + 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="omnis", + 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="omnis", + 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="omnis", + 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="quasi", + tracking_link_id="odit", 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="quasi", + tracking_link_id="odit", 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="quasi", + tracking_link_id="odit", 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="quasi", + tracking_link_id="odit", 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="quasi", + tracking_link_id="odit", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 9c25aaa3..0be9f1e7 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="impedit", + trial_link_id="accusamus", 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="impedit", + trial_link_id="accusamus", 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="impedit", + trial_link_id="accusamus", 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="impedit", + trial_link_id="accusamus", 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="impedit", + trial_link_id="accusamus", 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="impedit", + trial_link_id="accusamus", 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="impedit", + trial_link_id="accusamus", 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="impedit", + trial_link_id="accusamus", 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="alias", + 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="alias", + 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="alias", + 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="alias", + 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="aut", + trial_link_id="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="ex", + 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="ex", + 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="ex", + 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="ex", + 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="ex", + 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="impedit", + trial_link_id="accusamus", 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="impedit", + trial_link_id="accusamus", 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="impedit", + trial_link_id="accusamus", 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="impedit", + trial_link_id="accusamus", 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="impedit", + trial_link_id="accusamus", 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="impedit", + trial_link_id="accusamus", 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="impedit", + trial_link_id="accusamus", 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="impedit", + trial_link_id="accusamus", 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="alias", + 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="alias", + 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="alias", + 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="alias", + 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="aut", + trial_link_id="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="ex", + 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="ex", + 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="ex", + 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="ex", + 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="ex", + trial_link_id="assumenda", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index d6cd5749..47d5b89d 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="l", + name="qyvvbzgmvxtcmil", ) 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="l", + name="qyvvbzgmvxtcmil", ) 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="l", + name="qyvvbzgmvxtcmil", ) 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="l", + name="qyvvbzgmvxtcmil", ) @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="l", + name="qyvvbzgmvxtcmil", ) 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="l", + name="qyvvbzgmvxtcmil", ) 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="l", + name="qyvvbzgmvxtcmil", ) 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="l", + name="qyvvbzgmvxtcmil", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 65fd1014fca65692c9c0d1a9960fafea61a0d876 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 01:12:33 +0000 Subject: [PATCH 112/249] 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 | 40 +++---- tests/api_resources/test_client_sessions.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 +-- 14 files changed, 254 insertions(+), 254 deletions(-) diff --git a/.stats.yml b/.stats.yml index bc1ee4e4..7b8381e9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6edaebf302834d01e7497ddc7c365ea564175e865fa4f602945bb6e0fd1f0ace.yml -openapi_spec_hash: ef81dd9ff5441a4380485e8a950d8d8d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-41fc33142b7ae1fc50e5ba0fa9bbb95d93d4b7692f0e8b513fb829be4b5a8497.yml +openapi_spec_hash: 0b1ae00a211204d823550e216f228ab7 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 5fc99543..a1d6eb5a 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="odit", + message_id="quam", 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="odit", + message_id="quam", 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="odit", + message_id="quam", 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="odit", + message_id="quam", 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="odit", + message_id="quam", 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="odit", + message_id="quam", 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="odit", + message_id="quam", 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="odit", + message_id="quam", 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="odit", + message_id="quam", 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="odit", + message_id="quam", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 3fae1838..9170c9fd 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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 685b531f..0950446c 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="ea", + post_id="sit", 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="ea", + post_id="sit", 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="ea", + post_id="sit", 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="ea", + post_id="sit", 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="ea", + post_id="sit", 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="ea", + post_id="sit", 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="ea", + post_id="sit", 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="ea", + post_id="sit", 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="ea", + post_id="sit", 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="ea", + post_id="sit", 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="ea", + post_id="sit", 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="ea", + post_id="sit", 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="ea", + post_id="sit", 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="ea", + post_id="sit", 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="ea", + post_id="sit", 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="ea", + post_id="sit", 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="ea", + post_id="sit", 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="ea", + post_id="sit", 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="ea", + post_id="sit", 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="ea", + post_id="sit", 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 9c80483e..2ced6cb5 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 09c67db6..46294895 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="consequatur", + path_story_id="sed", 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="consequatur", + path_story_id="sed", 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="consequatur", + path_story_id="sed", 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="consequatur", + path_story_id="sed", 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="consequatur", + story_id="sed", 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="consequatur", + story_id="sed", 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="consequatur", + story_id="sed", 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="consequatur", + story_id="sed", 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="consequatur", + path_story_id="sed", 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="consequatur", + path_story_id="sed", 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="consequatur", + path_story_id="sed", 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="consequatur", + path_story_id="sed", 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="consequatur", + story_id="sed", 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="consequatur", + story_id="sed", 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="consequatur", + story_id="sed", 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="consequatur", + story_id="sed", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 9725452e..f805bc53 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( - "amet", + "delectus", ) 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( - "amet", + "delectus", ) 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( - "amet", + "delectus", ) 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( - "amet", + "delectus", ) 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( - "amet", + "delectus", ) 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( - "amet", + "delectus", ) 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 816cd318..ade593db 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="illum", + auth_id="voluptatem", auth_type="raw_data", - cookies="voluptatibus", + cookies="ut", custom_proxy={ "host": "proxy.example.com", - "password": "zSn}sOXo", "port": 8080, - "username": "aliquid", + "username": "nemo", }, - email="eva80@example.org", + email="sstark@example.com", force_connect=False, - name="deleniti", - password="{.;r8}", - proxy_country="uk", - user_agent="voluptatem", - xbc="similique", + name="recusandae", + password="`%3)?VMxJX\\,*X", + proxy_country="us", + user_agent="voluptates", + xbc="eaque", ) 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="illum", + auth_id="voluptatem", auth_type="raw_data", - cookies="voluptatibus", + cookies="ut", custom_proxy={ "host": "proxy.example.com", - "password": "zSn}sOXo", "port": 8080, - "username": "aliquid", + "username": "nemo", }, - email="eva80@example.org", + email="sstark@example.com", force_connect=False, - name="deleniti", - password="{.;r8}", - proxy_country="uk", - user_agent="voluptatem", - xbc="similique", + name="recusandae", + password="`%3)?VMxJX\\,*X", + proxy_country="us", + user_agent="voluptates", + xbc="eaque", ) 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 3597ede6..9249f386 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_smart_links.py b/tests/api_resources/test_smart_links.py index c6ee032c..083c74d1 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": ["ebfimmggbkxamilme"]}, + filter={"tags": ["vubnlrmpedmrhzbkivinv"]}, 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="consequatur", + smart_link_id="id", ) 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="consequatur", + smart_link_id="id", 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="consequatur", + smart_link_id="id", ) 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="consequatur", + smart_link_id="id", ) 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="sit", + smart_link_id="sint", ) 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="sit", + smart_link_id="sint", 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="sit", + smart_link_id="sint", ) 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="sit", + smart_link_id="sint", ) 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="id", + smart_link_id="rem", ) 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="id", + smart_link_id="rem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="id", + smart_link_id="rem", ) assert response.is_closed is True @@ -359,7 +359,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="id", + smart_link_id="rem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="necessitatibus", + smart_link_id="soluta", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="necessitatibus", + smart_link_id="soluta", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="necessitatibus", + smart_link_id="soluta", ) assert response.is_closed is True @@ -412,7 +412,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="necessitatibus", + smart_link_id="soluta", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="quod", ) assert smart_link is None @@ -442,7 +442,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="quod", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="quod", ) assert response.is_closed is True @@ -465,7 +465,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="quod", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="corrupti", + smart_link_id="sit", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="corrupti", + smart_link_id="sit", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="corrupti", + smart_link_id="sit", ) assert response.is_closed is True @@ -517,7 +517,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="corrupti", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["ebfimmggbkxamilme"]}, + filter={"tags": ["vubnlrmpedmrhzbkivinv"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="consequatur", + smart_link_id="id", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="consequatur", + smart_link_id="id", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="consequatur", + smart_link_id="id", ) assert response.is_closed is True @@ -756,7 +756,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="consequatur", + smart_link_id="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="sint", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="sint", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="sint", ) assert response.is_closed is True @@ -814,7 +814,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="sint", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="id", + smart_link_id="rem", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="id", + smart_link_id="rem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="id", + smart_link_id="rem", ) assert response.is_closed is True @@ -873,7 +873,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="id", + smart_link_id="rem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="necessitatibus", + smart_link_id="soluta", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="necessitatibus", + smart_link_id="soluta", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="necessitatibus", + smart_link_id="soluta", ) assert response.is_closed is True @@ -926,7 +926,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="necessitatibus", + smart_link_id="soluta", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="quod", ) assert smart_link is None @@ -956,7 +956,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="quod", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="quod", ) assert response.is_closed is True @@ -979,7 +979,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="quod", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="corrupti", + smart_link_id="sit", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="corrupti", + smart_link_id="sit", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="corrupti", + smart_link_id="sit", ) assert response.is_closed is True @@ -1031,7 +1031,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="corrupti", + smart_link_id="sit", ) 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 25d67eda..9ac0a4bc 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": "ciib", - "tags": ["pfcecfn"], + "search": "uccbiolvllonqnhbtjf", + "tags": ["amizhiluykqv"], }, 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": "gzogmk", - "tags": ["seovpznexlaftz"], + "search": "qmepwajdzxkluorwp", + "tags": ["ru"], }, 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": "btcvsliuobmwynhwhjfrdv", - "tags": ["uybwrwwrkkwbnneviwry"], + "search": "k", + "tags": ["tetsngdezmp"], }, 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": "fpnjf", - "tags": ["knvvvy"], + "search": "grbdxesapbticrexxhfyfqnrt", + "tags": ["bc"], }, 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": "ciib", - "tags": ["pfcecfn"], + "search": "uccbiolvllonqnhbtjf", + "tags": ["amizhiluykqv"], }, 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": "gzogmk", - "tags": ["seovpznexlaftz"], + "search": "qmepwajdzxkluorwp", + "tags": ["ru"], }, 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": "btcvsliuobmwynhwhjfrdv", - "tags": ["uybwrwwrkkwbnneviwry"], + "search": "k", + "tags": ["tetsngdezmp"], }, 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": "fpnjf", - "tags": ["knvvvy"], + "search": "grbdxesapbticrexxhfyfqnrt", + "tags": ["bc"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 2da87710..6cdb6b19 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="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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="a", + tracking_link_id="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="odit", + tracking_link_id="aspernatur", 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="odit", + tracking_link_id="aspernatur", 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="odit", + tracking_link_id="aspernatur", 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="odit", + tracking_link_id="aspernatur", 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="odit", + tracking_link_id="aspernatur", 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="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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="a", + tracking_link_id="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="odit", + tracking_link_id="aspernatur", 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="odit", + tracking_link_id="aspernatur", 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="odit", + tracking_link_id="aspernatur", 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="odit", + tracking_link_id="aspernatur", 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="odit", + tracking_link_id="aspernatur", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 0be9f1e7..0f37e3e4 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="dolorum", + 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="dolorum", + 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="dolorum", + 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="dolorum", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="assumenda", + trial_link_id="veritatis", 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="veritatis", 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="veritatis", 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="veritatis", 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="veritatis", 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="accusamus", + 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="dolorum", + 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="dolorum", + 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="dolorum", + 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="dolorum", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="assumenda", + trial_link_id="veritatis", 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="veritatis", 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="veritatis", 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="veritatis", 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="veritatis", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 47d5b89d..fd2a37b2 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="qyvvbzgmvxtcmil", + name="rncxyzxvzzbtzjnh", ) 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="qyvvbzgmvxtcmil", + name="rncxyzxvzzbtzjnh", ) 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="qyvvbzgmvxtcmil", + name="rncxyzxvzzbtzjnh", ) 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="qyvvbzgmvxtcmil", + name="rncxyzxvzzbtzjnh", ) @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="qyvvbzgmvxtcmil", + name="rncxyzxvzzbtzjnh", ) 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="qyvvbzgmvxtcmil", + name="rncxyzxvzzbtzjnh", ) 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="qyvvbzgmvxtcmil", + name="rncxyzxvzzbtzjnh", ) 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="qyvvbzgmvxtcmil", + name="rncxyzxvzzbtzjnh", ) @pytest.mark.skip(reason="Mock server tests are disabled") From f07fda75461b72f717dbea6aecb141f63153afd6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 02:12:46 +0000 Subject: [PATCH 113/249] 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 | 40 +++---- tests/api_resources/test_notifications.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 +-- 15 files changed, 258 insertions(+), 258 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7b8381e9..c1db3d7e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-41fc33142b7ae1fc50e5ba0fa9bbb95d93d4b7692f0e8b513fb829be4b5a8497.yml -openapi_spec_hash: 0b1ae00a211204d823550e216f228ab7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fb9f9d5e5ad2501171fdfd7f9a376828fb22d884612e3a9830ef0496c0a53085.yml +openapi_spec_hash: 7f1e13ff1d8baca0021b4bb8e91570bc config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index a1d6eb5a..f49aae5f 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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 9170c9fd..283ca8bb 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 0950446c..1e3a045e 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="sit", + post_id="inventore", 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="sit", + post_id="inventore", 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="sit", + post_id="inventore", 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="sit", + post_id="inventore", 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="sit", + post_id="inventore", 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="sit", + post_id="inventore", 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="sit", + post_id="inventore", 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="sit", + post_id="inventore", 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="sit", + post_id="inventore", 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="sit", + post_id="inventore", 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="sit", + post_id="inventore", 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="sit", + post_id="inventore", 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="sit", + post_id="inventore", 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="sit", + post_id="inventore", 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="sit", + post_id="inventore", 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="sit", + post_id="inventore", 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="sit", + post_id="inventore", 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="sit", + post_id="inventore", 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="sit", + post_id="inventore", 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="sit", + post_id="inventore", 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 7549791e..444937ba 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 9664075f..544df889 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 46294895..727a523e 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="sed", + path_story_id="quaerat", 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="sed", + path_story_id="quaerat", 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="sed", + path_story_id="quaerat", 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="sed", + path_story_id="quaerat", 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="sed", + story_id="quaerat", 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="sed", + story_id="quaerat", 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="sed", + story_id="quaerat", 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="sed", + story_id="quaerat", 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="sed", + path_story_id="quaerat", 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="sed", + path_story_id="quaerat", 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="sed", + path_story_id="quaerat", 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="sed", + path_story_id="quaerat", 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="sed", + story_id="quaerat", 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="sed", + story_id="quaerat", 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="sed", + story_id="quaerat", 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="sed", + story_id="quaerat", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index f805bc53..e12e80ca 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( - "delectus", + "non", ) 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( - "delectus", + "non", ) 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( - "delectus", + "non", ) 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( - "delectus", + "non", ) 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( - "delectus", + "non", ) 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( - "delectus", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index ade593db..17ce5330 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="voluptatem", + auth_id="sint", auth_type="raw_data", - cookies="ut", + cookies="doloribus", custom_proxy={ "host": "proxy.example.com", - "password": "fppD$M}!r_>zSn}sOXo", + "password": ":s15sX(j'$Vo:-N", "port": 8080, - "username": "nemo", + "username": "vitae", }, - email="sstark@example.com", + email="cruickshank.helga@example.org", force_connect=False, - name="recusandae", - password="`%3)?VMxJX\\,*X", - proxy_country="us", - user_agent="voluptates", - xbc="eaque", + name="labore", + password="V%Gu!\\{S&y9dMc.bK", + proxy_country="uk", + user_agent="impedit", + 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="voluptatem", + auth_id="sint", auth_type="raw_data", - cookies="ut", + cookies="doloribus", custom_proxy={ "host": "proxy.example.com", - "password": "fppD$M}!r_>zSn}sOXo", + "password": ":s15sX(j'$Vo:-N", "port": 8080, - "username": "nemo", + "username": "vitae", }, - email="sstark@example.com", + email="cruickshank.helga@example.org", force_connect=False, - name="recusandae", - password="`%3)?VMxJX\\,*X", - proxy_country="us", - user_agent="voluptates", - xbc="eaque", + name="labore", + password="V%Gu!\\{S&y9dMc.bK", + proxy_country="uk", + user_agent="impedit", + xbc="qui", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 4d3e426f..b2158856 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="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="mentions", + 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 083c74d1..b2a065de 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": ["vubnlrmpedmrhzbkivinv"]}, + filter={"tags": ["limardggdipgb"]}, 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="id", + smart_link_id="voluptas", ) 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="id", + smart_link_id="voluptas", 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="id", + smart_link_id="voluptas", ) 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="id", + smart_link_id="voluptas", ) 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="sint", + smart_link_id="impedit", ) 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="sint", + smart_link_id="impedit", 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="sint", + smart_link_id="impedit", ) 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="sint", + smart_link_id="impedit", ) 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="rem", + smart_link_id="aut", ) 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="rem", + smart_link_id="aut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="rem", + smart_link_id="aut", ) assert response.is_closed is True @@ -359,7 +359,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="rem", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="soluta", + smart_link_id="omnis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="soluta", + smart_link_id="omnis", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="soluta", + smart_link_id="omnis", ) assert response.is_closed is True @@ -412,7 +412,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="soluta", + smart_link_id="omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="quod", + smart_link_id="inventore", ) assert smart_link is None @@ -442,7 +442,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="quod", + smart_link_id="inventore", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="quod", + smart_link_id="inventore", ) assert response.is_closed is True @@ -465,7 +465,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="quod", + smart_link_id="inventore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="sit", + smart_link_id="nesciunt", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="sit", + smart_link_id="nesciunt", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="sit", + smart_link_id="nesciunt", ) assert response.is_closed is True @@ -517,7 +517,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="sit", + smart_link_id="nesciunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["vubnlrmpedmrhzbkivinv"]}, + filter={"tags": ["limardggdipgb"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="voluptas", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="voluptas", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="voluptas", ) assert response.is_closed is True @@ -756,7 +756,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="voluptas", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="impedit", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="impedit", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="impedit", ) assert response.is_closed is True @@ -814,7 +814,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="impedit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="rem", + smart_link_id="aut", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="rem", + smart_link_id="aut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="rem", + smart_link_id="aut", ) assert response.is_closed is True @@ -873,7 +873,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="rem", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="soluta", + smart_link_id="omnis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="soluta", + smart_link_id="omnis", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="soluta", + smart_link_id="omnis", ) assert response.is_closed is True @@ -926,7 +926,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="soluta", + smart_link_id="omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="quod", + smart_link_id="inventore", ) assert smart_link is None @@ -956,7 +956,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="quod", + smart_link_id="inventore", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="quod", + smart_link_id="inventore", ) assert response.is_closed is True @@ -979,7 +979,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="quod", + smart_link_id="inventore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="sit", + smart_link_id="nesciunt", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="sit", + smart_link_id="nesciunt", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="sit", + smart_link_id="nesciunt", ) assert response.is_closed is True @@ -1031,7 +1031,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="sit", + 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 9ac0a4bc..8826d969 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": "uccbiolvllonqnhbtjf", - "tags": ["amizhiluykqv"], + "search": "vcrck", + "tags": ["pyjspjnydyebxoeqzcye"], }, 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": "qmepwajdzxkluorwp", - "tags": ["ru"], + "search": "o", + "tags": ["hiloey"], }, 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": "k", - "tags": ["tetsngdezmp"], + "search": "hbkzitofrhjmmfzxktzq", + "tags": ["vlaoptosjy"], }, 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": "grbdxesapbticrexxhfyfqnrt", - "tags": ["bc"], + "include_smart_links": False, + "search": "jfazqeqlwbmwqoho", + "tags": ["efidwjftlwbmbsqxwaonyort"], }, 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": "uccbiolvllonqnhbtjf", - "tags": ["amizhiluykqv"], + "search": "vcrck", + "tags": ["pyjspjnydyebxoeqzcye"], }, 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": "qmepwajdzxkluorwp", - "tags": ["ru"], + "search": "o", + "tags": ["hiloey"], }, 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": "k", - "tags": ["tetsngdezmp"], + "search": "hbkzitofrhjmmfzxktzq", + "tags": ["vlaoptosjy"], }, 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": "grbdxesapbticrexxhfyfqnrt", - "tags": ["bc"], + "include_smart_links": False, + "search": "jfazqeqlwbmwqoho", + "tags": ["efidwjftlwbmbsqxwaonyort"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 6cdb6b19..373c01ff 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="labore", + tracking_link_id="laborum", 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="labore", + tracking_link_id="laborum", 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="labore", + tracking_link_id="laborum", 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="labore", + tracking_link_id="laborum", 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="labore", + tracking_link_id="laborum", 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="magni", + tracking_link_id="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="labore", + tracking_link_id="laborum", 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="labore", + tracking_link_id="laborum", 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="labore", + tracking_link_id="laborum", 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="labore", + tracking_link_id="laborum", 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="labore", + tracking_link_id="laborum", 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + tracking_link_id="similique", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 0f37e3e4..05e3ab7f 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="ab", 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="ab", 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="ab", 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="ab", 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="ab", 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="ab", 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="ab", 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="ab", 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="totam", 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="totam", 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="totam", 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="totam", 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="numquam", 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="numquam", 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="numquam", 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="numquam", 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="numquam", 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="veritatis", + trial_link_id="amet", 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="veritatis", + trial_link_id="amet", 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="veritatis", + trial_link_id="amet", 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="veritatis", + trial_link_id="amet", 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="veritatis", + trial_link_id="amet", 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="ab", 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="ab", 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="ab", 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="ab", 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="ab", 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="ab", 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="ab", 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="ab", 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="totam", 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="totam", 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="totam", 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="totam", 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="numquam", 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="numquam", 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="numquam", 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="numquam", 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="numquam", 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="veritatis", + trial_link_id="amet", 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="veritatis", + trial_link_id="amet", 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="veritatis", + trial_link_id="amet", 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="veritatis", + trial_link_id="amet", 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="veritatis", + trial_link_id="amet", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index fd2a37b2..452b476b 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="rncxyzxvzzbtzjnh", + name="dkfievxarwrqrvhkjhyszlmq", ) 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="rncxyzxvzzbtzjnh", + name="dkfievxarwrqrvhkjhyszlmq", ) 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="rncxyzxvzzbtzjnh", + name="dkfievxarwrqrvhkjhyszlmq", ) 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="rncxyzxvzzbtzjnh", + name="dkfievxarwrqrvhkjhyszlmq", ) @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="rncxyzxvzzbtzjnh", + name="dkfievxarwrqrvhkjhyszlmq", ) 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="rncxyzxvzzbtzjnh", + name="dkfievxarwrqrvhkjhyszlmq", ) 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="rncxyzxvzzbtzjnh", + name="dkfievxarwrqrvhkjhyszlmq", ) 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="rncxyzxvzzbtzjnh", + name="dkfievxarwrqrvhkjhyszlmq", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 7d8cf8d441a41fd773f832e787da2a17fe97bb5d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 13:12:41 +0000 Subject: [PATCH 114/249] 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 | 36 ++++---- 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 | 84 +++++++++--------- 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 ++-- 18 files changed, 258 insertions(+), 258 deletions(-) diff --git a/.stats.yml b/.stats.yml index c1db3d7e..eea0a299 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fb9f9d5e5ad2501171fdfd7f9a376828fb22d884612e3a9830ef0496c0a53085.yml -openapi_spec_hash: 7f1e13ff1d8baca0021b4bb8e91570bc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-16a788073ba16516c1c9b94363ff6c5692c58ec8d64d320af55b47246dfbba02.yml +openapi_spec_hash: 0979a1cebc7a24f6b02ec9ee8db31756 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index f49aae5f..5f2477bf 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 283ca8bb..3f828857 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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 1e3a045e..0d70ffc7 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + post_id="aut", 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 444937ba..aa735c97 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 2ced6cb5..fc7b1635 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 544df889..9664075f 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 727a523e..1050b62d 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + story_id="sunt", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index e12e80ca..72a161f7 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( - "non", + "harum", ) 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( - "non", + "harum", ) 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( - "non", + "harum", ) 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( - "non", + "harum", ) 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( - "non", + "harum", ) 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( - "non", + "harum", ) 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 17ce5330..2fa62fbb 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="sint", + auth_id="veniam", auth_type="raw_data", - cookies="doloribus", + cookies="molestias", custom_proxy={ "host": "proxy.example.com", - "password": ":s15sX(j'$Vo:-N", + "password": '\\[?U$/a+mzJ;Utaz"', "port": 8080, - "username": "vitae", + "username": "saepe", }, - email="cruickshank.helga@example.org", + email="maggio.nickolas@example.net", force_connect=False, - name="labore", - password="V%Gu!\\{S&y9dMc.bK", + name="ipsum", + password='"6\\.)BN)02D/=U[4!/?', proxy_country="uk", - user_agent="impedit", - xbc="qui", + user_agent="consequatur", + 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="sint", + auth_id="veniam", auth_type="raw_data", - cookies="doloribus", + cookies="molestias", custom_proxy={ "host": "proxy.example.com", - "password": ":s15sX(j'$Vo:-N", + "password": '\\[?U$/a+mzJ;Utaz"', "port": 8080, - "username": "vitae", + "username": "saepe", }, - email="cruickshank.helga@example.org", + email="maggio.nickolas@example.net", force_connect=False, - name="labore", - password="V%Gu!\\{S&y9dMc.bK", + name="ipsum", + password='"6\\.)BN)02D/=U[4!/?', proxy_country="uk", - user_agent="impedit", - xbc="qui", + user_agent="consequatur", + xbc="nihil", ) 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 9249f386..3597ede6 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 b2158856..4fb0fa41 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 bd4f6161..65694e23 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 b2a065de..1bcd4143 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": ["limardggdipgb"]}, + filter={"tags": ["qlgyohvkyubxhllfzudgndey"]}, 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="voluptas", + smart_link_id="odio", ) 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="voluptas", + smart_link_id="odio", 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="voluptas", + smart_link_id="odio", ) 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="voluptas", + smart_link_id="odio", ) 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="impedit", + smart_link_id="quia", ) 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="impedit", + smart_link_id="quia", 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="impedit", + smart_link_id="quia", ) 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="impedit", + smart_link_id="quia", ) 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="aut", + smart_link_id="id", ) 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="aut", + smart_link_id="id", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="id", ) assert response.is_closed is True @@ -359,7 +359,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="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="omnis", + smart_link_id="consequatur", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="omnis", + smart_link_id="consequatur", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="omnis", + smart_link_id="consequatur", ) assert response.is_closed is True @@ -412,7 +412,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="omnis", + smart_link_id="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="sunt", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="sunt", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="sunt", ) assert response.is_closed is True @@ -517,7 +517,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="sunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["limardggdipgb"]}, + filter={"tags": ["qlgyohvkyubxhllfzudgndey"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="voluptas", + smart_link_id="odio", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="voluptas", + smart_link_id="odio", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="voluptas", + smart_link_id="odio", ) assert response.is_closed is True @@ -756,7 +756,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="voluptas", + smart_link_id="odio", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="impedit", + smart_link_id="quia", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="impedit", + smart_link_id="quia", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="impedit", + smart_link_id="quia", ) assert response.is_closed is True @@ -814,7 +814,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="impedit", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="id", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="id", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="id", ) assert response.is_closed is True @@ -873,7 +873,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="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="omnis", + smart_link_id="consequatur", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="omnis", + smart_link_id="consequatur", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="omnis", + smart_link_id="consequatur", ) assert response.is_closed is True @@ -926,7 +926,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="omnis", + smart_link_id="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="sunt", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="sunt", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="sunt", ) assert response.is_closed is True @@ -1031,7 +1031,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="sunt", ) 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 8826d969..c1a02a80 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": "vcrck", - "tags": ["pyjspjnydyebxoeqzcye"], + "search": "xoigwhrixlqipkjfpelpidgf", + "tags": ["bqzadbm"], }, 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": "o", - "tags": ["hiloey"], + "search": "pogwymgrlxtyfmebtgbfujqh", + "tags": ["scwyulymsxzpjblmsgpx"], }, 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": "hbkzitofrhjmmfzxktzq", - "tags": ["vlaoptosjy"], + "search": "nyy", + "tags": ["hyb"], }, 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": "jfazqeqlwbmwqoho", - "tags": ["efidwjftlwbmbsqxwaonyort"], + "search": "amdhyacbfvgt", + "tags": ["jtetzvfcmxiv"], }, 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": "vcrck", - "tags": ["pyjspjnydyebxoeqzcye"], + "search": "xoigwhrixlqipkjfpelpidgf", + "tags": ["bqzadbm"], }, 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": "o", - "tags": ["hiloey"], + "search": "pogwymgrlxtyfmebtgbfujqh", + "tags": ["scwyulymsxzpjblmsgpx"], }, 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": "hbkzitofrhjmmfzxktzq", - "tags": ["vlaoptosjy"], + "search": "nyy", + "tags": ["hyb"], }, 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": "jfazqeqlwbmwqoho", - "tags": ["efidwjftlwbmbsqxwaonyort"], + "search": "amdhyacbfvgt", + "tags": ["jtetzvfcmxiv"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 373c01ff..97cb00dd 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="voluptas", + tracking_link_id="voluptatem", 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="voluptas", + tracking_link_id="voluptatem", 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="voluptas", + tracking_link_id="voluptatem", 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="voluptas", + tracking_link_id="voluptatem", 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="voluptas", + tracking_link_id="voluptatem", 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="voluptas", + tracking_link_id="voluptatem", 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="voluptas", + tracking_link_id="voluptatem", 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="voluptas", + tracking_link_id="voluptatem", 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="laborum", + 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="laborum", + 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="laborum", + 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="laborum", + 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="laborum", + 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="est", 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="est", 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="est", 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="est", 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="est", 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="voluptas", + tracking_link_id="voluptatem", 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="voluptas", + tracking_link_id="voluptatem", 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="voluptas", + tracking_link_id="voluptatem", 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="voluptas", + tracking_link_id="voluptatem", 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="voluptas", + tracking_link_id="voluptatem", 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="voluptas", + tracking_link_id="voluptatem", 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="voluptas", + tracking_link_id="voluptatem", 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="voluptas", + tracking_link_id="voluptatem", 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="laborum", + 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="laborum", + 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="laborum", + 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="laborum", + 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="laborum", + 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="est", 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="est", 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="est", 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="est", 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="est", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 05e3ab7f..8701c4a3 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="ab", + trial_link_id="sit", 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="ab", + trial_link_id="sit", 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="ab", + trial_link_id="sit", 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="ab", + trial_link_id="sit", 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="ab", + trial_link_id="sit", 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="ab", + trial_link_id="sit", 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="ab", + trial_link_id="sit", 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="ab", + trial_link_id="sit", 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="totam", + trial_link_id="repudiandae", 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="totam", + trial_link_id="repudiandae", 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="totam", + trial_link_id="repudiandae", 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="totam", + trial_link_id="repudiandae", 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="numquam", + trial_link_id="itaque", 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="numquam", + trial_link_id="itaque", 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="numquam", + trial_link_id="itaque", 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="numquam", + trial_link_id="itaque", 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="numquam", + trial_link_id="itaque", 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="amet", + trial_link_id="fuga", 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="amet", + trial_link_id="fuga", 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="amet", + trial_link_id="fuga", 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="amet", + trial_link_id="fuga", 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="amet", + trial_link_id="fuga", 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="ab", + trial_link_id="sit", 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="ab", + trial_link_id="sit", 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="ab", + trial_link_id="sit", 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="ab", + trial_link_id="sit", 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="ab", + trial_link_id="sit", 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="ab", + trial_link_id="sit", 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="ab", + trial_link_id="sit", 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="ab", + trial_link_id="sit", 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="totam", + trial_link_id="repudiandae", 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="totam", + trial_link_id="repudiandae", 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="totam", + trial_link_id="repudiandae", 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="totam", + trial_link_id="repudiandae", 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="numquam", + trial_link_id="itaque", 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="numquam", + trial_link_id="itaque", 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="numquam", + trial_link_id="itaque", 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="numquam", + trial_link_id="itaque", 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="numquam", + trial_link_id="itaque", 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="amet", + trial_link_id="fuga", 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="amet", + trial_link_id="fuga", 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="amet", + trial_link_id="fuga", 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="amet", + trial_link_id="fuga", 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="amet", + trial_link_id="fuga", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 452b476b..4a91ea78 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="dkfievxarwrqrvhkjhyszlmq", + name="onuqvylagve", ) 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="dkfievxarwrqrvhkjhyszlmq", + name="onuqvylagve", ) 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="dkfievxarwrqrvhkjhyszlmq", + name="onuqvylagve", ) 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="dkfievxarwrqrvhkjhyszlmq", + name="onuqvylagve", ) @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="dkfievxarwrqrvhkjhyszlmq", + name="onuqvylagve", ) 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="dkfievxarwrqrvhkjhyszlmq", + name="onuqvylagve", ) 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="dkfievxarwrqrvhkjhyszlmq", + name="onuqvylagve", ) 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="dkfievxarwrqrvhkjhyszlmq", + name="onuqvylagve", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 3093ab5168081988522eaae6afc8aab54e525b0c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 14:12:31 +0000 Subject: [PATCH 115/249] 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 | 100 +++++++++--------- 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, 266 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index eea0a299..355dd922 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-16a788073ba16516c1c9b94363ff6c5692c58ec8d64d320af55b47246dfbba02.yml -openapi_spec_hash: 0979a1cebc7a24f6b02ec9ee8db31756 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c362b16c4c91a1f25e0196b5a2d9d38841e09bc76e3ce1dfbea4655e6fac5df3.yml +openapi_spec_hash: acad0512767076850dd5411b4178746e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 5f2477bf..7f34f504 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="atque", + message_id="asperiores", 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="atque", + message_id="asperiores", 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="atque", + message_id="asperiores", 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="atque", + message_id="asperiores", 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="atque", + message_id="asperiores", 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="atque", + message_id="asperiores", 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="atque", + message_id="asperiores", 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="atque", + message_id="asperiores", 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="atque", + message_id="asperiores", 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="atque", + message_id="asperiores", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 3f828857..6631565c 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 0d70ffc7..0950446c 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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 aa735c97..7549791e 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075f..544df889 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 1050b62d..68e21a61 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 72a161f7..5e31d2e0 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( - "harum", + "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( - "harum", + "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( - "harum", + "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( - "harum", + "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( - "harum", + "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( - "harum", + "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 2fa62fbb..5ef0d151 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="veniam", + auth_id="tenetur", auth_type="raw_data", - cookies="molestias", + cookies="officiis", custom_proxy={ "host": "proxy.example.com", - "password": '\\[?U$/a+mzJ;Utaz"', + "password": "D{?Q?@`T|pcs)K", "port": 8080, - "username": "saepe", + "username": "nostrum", }, - email="maggio.nickolas@example.net", - force_connect=False, - name="ipsum", - password='"6\\.)BN)02D/=U[4!/?', - proxy_country="uk", - user_agent="consequatur", - xbc="nihil", + email="rickey.langworth@example.com", + force_connect=True, + name="repellat", + password="L0ryieZQ0cX=qnyE", + proxy_country="us", + user_agent="earum", + xbc="molestias", ) 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="veniam", + auth_id="tenetur", auth_type="raw_data", - cookies="molestias", + cookies="officiis", custom_proxy={ "host": "proxy.example.com", - "password": '\\[?U$/a+mzJ;Utaz"', + "password": "D{?Q?@`T|pcs)K", "port": 8080, - "username": "saepe", + "username": "nostrum", }, - email="maggio.nickolas@example.net", - force_connect=False, - name="ipsum", - password='"6\\.)BN)02D/=U[4!/?', - proxy_country="uk", - user_agent="consequatur", - xbc="nihil", + email="rickey.langworth@example.com", + force_connect=True, + name="repellat", + password="L0ryieZQ0cX=qnyE", + proxy_country="us", + user_agent="earum", + xbc="molestias", ) 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 3597ede6..9249f386 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 4fb0fa41..583d8ad4 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_profiles.py b/tests/api_resources/test_profiles.py index 65694e23..bd4f6161 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 1bcd4143..9e661b45 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": ["qlgyohvkyubxhllfzudgndey"]}, + filter={"tags": ["wu"]}, 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="odio", + smart_link_id="temporibus", ) 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="odio", + smart_link_id="temporibus", 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="odio", + smart_link_id="temporibus", ) 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="odio", + smart_link_id="temporibus", ) 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="quia", + smart_link_id="omnis", ) 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="quia", + smart_link_id="omnis", 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="quia", + smart_link_id="omnis", ) 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="quia", + smart_link_id="omnis", ) 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="id", + smart_link_id="assumenda", ) 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="id", + smart_link_id="assumenda", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="id", + smart_link_id="assumenda", ) assert response.is_closed is True @@ -359,7 +359,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="id", + smart_link_id="assumenda", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="consequatur", + smart_link_id="velit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="consequatur", + smart_link_id="velit", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="consequatur", + smart_link_id="velit", ) assert response.is_closed is True @@ -412,7 +412,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="consequatur", + smart_link_id="velit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="inventore", + smart_link_id="molestiae", ) assert smart_link is None @@ -442,7 +442,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="inventore", + smart_link_id="molestiae", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="inventore", + smart_link_id="molestiae", ) assert response.is_closed is True @@ -465,7 +465,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="inventore", + smart_link_id="molestiae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="sunt", + smart_link_id="exercitationem", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="sunt", + smart_link_id="exercitationem", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="sunt", + smart_link_id="exercitationem", ) assert response.is_closed is True @@ -517,7 +517,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="sunt", + smart_link_id="exercitationem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["qlgyohvkyubxhllfzudgndey"]}, + filter={"tags": ["wu"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="odio", + smart_link_id="temporibus", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="odio", + smart_link_id="temporibus", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="odio", + smart_link_id="temporibus", ) assert response.is_closed is True @@ -756,7 +756,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="odio", + smart_link_id="temporibus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="quia", + smart_link_id="omnis", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="quia", + smart_link_id="omnis", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="quia", + smart_link_id="omnis", ) assert response.is_closed is True @@ -814,7 +814,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="quia", + smart_link_id="omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="id", + smart_link_id="assumenda", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="id", + smart_link_id="assumenda", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="id", + smart_link_id="assumenda", ) assert response.is_closed is True @@ -873,7 +873,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="id", + smart_link_id="assumenda", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="consequatur", + smart_link_id="velit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="consequatur", + smart_link_id="velit", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="consequatur", + smart_link_id="velit", ) assert response.is_closed is True @@ -926,7 +926,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="consequatur", + smart_link_id="velit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="inventore", + smart_link_id="molestiae", ) assert smart_link is None @@ -956,7 +956,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="inventore", + smart_link_id="molestiae", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="inventore", + smart_link_id="molestiae", ) assert response.is_closed is True @@ -979,7 +979,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="inventore", + smart_link_id="molestiae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="sunt", + smart_link_id="exercitationem", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="sunt", + smart_link_id="exercitationem", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="sunt", + smart_link_id="exercitationem", ) assert response.is_closed is True @@ -1031,7 +1031,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="sunt", + smart_link_id="exercitationem", ) 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 c1a02a80..f26f3195 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": "xoigwhrixlqipkjfpelpidgf", - "tags": ["bqzadbm"], + "search": "bvxy", + "tags": ["hppivllsoygvdmftrrigl"], }, 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": "pogwymgrlxtyfmebtgbfujqh", - "tags": ["scwyulymsxzpjblmsgpx"], + "search": "n", + "tags": ["yxo"], }, 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": "nyy", - "tags": ["hyb"], + "include_smart_links": True, + "search": "vymbfhfuyeidzday", + "tags": ["dixecgghogfzjgbsxkfqa"], }, 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": "amdhyacbfvgt", - "tags": ["jtetzvfcmxiv"], + "include_smart_links": True, + "search": "bftuhjs", + "tags": ["denfdxoyzrurhimmao"], }, 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": "xoigwhrixlqipkjfpelpidgf", - "tags": ["bqzadbm"], + "search": "bvxy", + "tags": ["hppivllsoygvdmftrrigl"], }, 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": "pogwymgrlxtyfmebtgbfujqh", - "tags": ["scwyulymsxzpjblmsgpx"], + "search": "n", + "tags": ["yxo"], }, 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": "nyy", - "tags": ["hyb"], + "include_smart_links": True, + "search": "vymbfhfuyeidzday", + "tags": ["dixecgghogfzjgbsxkfqa"], }, 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": "amdhyacbfvgt", - "tags": ["jtetzvfcmxiv"], + "include_smart_links": True, + "search": "bftuhjs", + "tags": ["denfdxoyzrurhimmao"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 97cb00dd..6db1e0e2 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="voluptatem", + tracking_link_id="possimus", 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="voluptatem", + tracking_link_id="possimus", 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="voluptatem", + tracking_link_id="possimus", 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="voluptatem", + tracking_link_id="possimus", 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="voluptatem", + tracking_link_id="possimus", 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="voluptatem", + tracking_link_id="possimus", 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="voluptatem", + tracking_link_id="possimus", 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="voluptatem", + tracking_link_id="possimus", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="est", + tracking_link_id="fugit", 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="est", + tracking_link_id="fugit", 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="est", + tracking_link_id="fugit", 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="est", + tracking_link_id="fugit", 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="est", + tracking_link_id="fugit", 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="voluptatem", + tracking_link_id="possimus", 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="voluptatem", + tracking_link_id="possimus", 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="voluptatem", + tracking_link_id="possimus", 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="voluptatem", + tracking_link_id="possimus", 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="voluptatem", + tracking_link_id="possimus", 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="voluptatem", + tracking_link_id="possimus", 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="voluptatem", + tracking_link_id="possimus", 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="voluptatem", + tracking_link_id="possimus", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="est", + tracking_link_id="fugit", 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="est", + tracking_link_id="fugit", 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="est", + tracking_link_id="fugit", 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="est", + tracking_link_id="fugit", 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="est", + tracking_link_id="fugit", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 8701c4a3..42f97423 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="sit", + trial_link_id="cupiditate", 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="sit", + trial_link_id="cupiditate", 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="sit", + trial_link_id="cupiditate", 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="sit", + trial_link_id="cupiditate", 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="sit", + trial_link_id="cupiditate", 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="sit", + trial_link_id="cupiditate", 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="sit", + trial_link_id="cupiditate", 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="sit", + trial_link_id="cupiditate", 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="repudiandae", + trial_link_id="officia", 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="repudiandae", + trial_link_id="officia", 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="repudiandae", + trial_link_id="officia", 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="repudiandae", + trial_link_id="officia", 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="itaque", + 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="itaque", + 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="itaque", + 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="itaque", + 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="itaque", + 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="fuga", + trial_link_id="temporibus", 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="fuga", + trial_link_id="temporibus", 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="fuga", + trial_link_id="temporibus", 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="fuga", + trial_link_id="temporibus", 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="fuga", + trial_link_id="temporibus", 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="sit", + trial_link_id="cupiditate", 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="sit", + trial_link_id="cupiditate", 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="sit", + trial_link_id="cupiditate", 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="sit", + trial_link_id="cupiditate", 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="sit", + trial_link_id="cupiditate", 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="sit", + trial_link_id="cupiditate", 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="sit", + trial_link_id="cupiditate", 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="sit", + trial_link_id="cupiditate", 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="repudiandae", + trial_link_id="officia", 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="repudiandae", + trial_link_id="officia", 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="repudiandae", + trial_link_id="officia", 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="repudiandae", + trial_link_id="officia", 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="itaque", + 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="itaque", + 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="itaque", + 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="itaque", + 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="itaque", + 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="fuga", + trial_link_id="temporibus", 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="fuga", + trial_link_id="temporibus", 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="fuga", + trial_link_id="temporibus", 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="fuga", + trial_link_id="temporibus", 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="fuga", + trial_link_id="temporibus", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 4a91ea78..8494d61e 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="onuqvylagve", + name="osxlwxky", ) 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="onuqvylagve", + name="osxlwxky", ) 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="onuqvylagve", + name="osxlwxky", ) 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="onuqvylagve", + name="osxlwxky", ) @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="onuqvylagve", + name="osxlwxky", ) 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="onuqvylagve", + name="osxlwxky", ) 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="onuqvylagve", + name="osxlwxky", ) 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="onuqvylagve", + name="osxlwxky", ) @pytest.mark.skip(reason="Mock server tests are disabled") From a2f1e64f365be407a6b3b5267e293f808fa684e1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 21:12:31 +0000 Subject: [PATCH 116/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/chats/chats.py | 8 +- .../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_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 +-- 18 files changed, 276 insertions(+), 276 deletions(-) diff --git a/.stats.yml b/.stats.yml index 355dd922..5600fdc5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c362b16c4c91a1f25e0196b5a2d9d38841e09bc76e3ce1dfbea4655e6fac5df3.yml -openapi_spec_hash: acad0512767076850dd5411b4178746e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ba677834a77b7edbbb9db2198f9297c2942d93c12673447320404fbef92e1332.yml +openapi_spec_hash: 175ed099358f51d83318b341aa6d8e15 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/chats/chats.py b/src/onlyfansapi/resources/chats/chats.py index 2e50426d..1a6591bf 100644 --- a/src/onlyfansapi/resources/chats/chats.py +++ b/src/onlyfansapi/resources/chats/chats.py @@ -399,8 +399,8 @@ def start_typing( ) -> ChatStartTypingResponse: """ Calling this endpoint will show the target fan a "Model is typing..." note in - the chat for ~4 seconds. If you want to continue showing the indicator call this - endpoint multiple times. Free - no credits charged. + the chat for ~4 seconds. Duplicate calls for the same account and chat are + coalesced during that window. Args: extra_headers: Send extra headers @@ -811,8 +811,8 @@ async def start_typing( ) -> ChatStartTypingResponse: """ Calling this endpoint will show the target fan a "Model is typing..." note in - the chat for ~4 seconds. If you want to continue showing the indicator call this - endpoint multiple times. Free - no credits charged. + the chat for ~4 seconds. Duplicate calls for the same account and chat are + coalesced during that window. Args: extra_headers: Send extra headers diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 7f34f504..b9c52e92 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="asperiores", + message_id="reiciendis", 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="asperiores", + message_id="reiciendis", 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="asperiores", + message_id="reiciendis", 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="asperiores", + message_id="reiciendis", 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="asperiores", + message_id="reiciendis", 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="asperiores", + message_id="reiciendis", 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="asperiores", + message_id="reiciendis", 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="asperiores", + message_id="reiciendis", 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="asperiores", + message_id="reiciendis", 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="asperiores", + message_id="reiciendis", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 6631565c..79e2a0fd 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="optio", + list_id="corrupti", 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="optio", + list_id="corrupti", 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="optio", + list_id="corrupti", 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="optio", + list_id="corrupti", 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="optio", + list_id="corrupti", 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="optio", + list_id="corrupti", 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="optio", + list_id="corrupti", 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="optio", + list_id="corrupti", 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="optio", + list_id="corrupti", 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="optio", + list_id="corrupti", 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="optio", + list_id="corrupti", 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="optio", + list_id="corrupti", 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="optio", + list_id="corrupti", 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="optio", + list_id="corrupti", 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="optio", + list_id="corrupti", 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="optio", + list_id="corrupti", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 0950446c..0d70ffc7 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + post_id="aut", 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 7549791e..a62ccbd3 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index fc7b1635..2ced6cb5 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 544df889..9664075f 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 68e21a61..36521a4f 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="adipisci", + path_story_id="veniam", 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="adipisci", + path_story_id="veniam", 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="adipisci", + path_story_id="veniam", 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="adipisci", + path_story_id="veniam", 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="adipisci", + story_id="veniam", 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="adipisci", + story_id="veniam", 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="adipisci", + story_id="veniam", 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="adipisci", + story_id="veniam", 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="adipisci", + path_story_id="veniam", 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="adipisci", + path_story_id="veniam", 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="adipisci", + path_story_id="veniam", 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="adipisci", + path_story_id="veniam", 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="adipisci", + story_id="veniam", 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="adipisci", + story_id="veniam", 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="adipisci", + story_id="veniam", 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="adipisci", + story_id="veniam", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 5e31d2e0..abc984fe 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", + "nesciunt", ) 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", + "nesciunt", ) 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", + "nesciunt", ) 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", + "nesciunt", ) 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", + "nesciunt", ) 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", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 5ef0d151..30ba80a9 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="tenetur", - auth_type="raw_data", - cookies="officiis", + auth_id="temporibus", + auth_type="mobile_app", + cookies="debitis", custom_proxy={ "host": "proxy.example.com", - "password": "D{?Q?@`T|pcs)K", + "password": ",0=XQnN^I3qj@;", "port": 8080, - "username": "nostrum", + "username": "consequatur", }, - email="rickey.langworth@example.com", - force_connect=True, - name="repellat", - password="L0ryieZQ0cX=qnyE", - proxy_country="us", - user_agent="earum", - xbc="molestias", + email="kale.buckridge@example.net", + force_connect=False, + name="ea", + password="D@CR;Yx0", + proxy_country="uk", + user_agent="iste", + 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="tenetur", - auth_type="raw_data", - cookies="officiis", + auth_id="temporibus", + auth_type="mobile_app", + cookies="debitis", custom_proxy={ "host": "proxy.example.com", - "password": "D{?Q?@`T|pcs)K", + "password": ",0=XQnN^I3qj@;", "port": 8080, - "username": "nostrum", + "username": "consequatur", }, - email="rickey.langworth@example.com", - force_connect=True, - name="repellat", - password="L0ryieZQ0cX=qnyE", - proxy_country="us", - user_agent="earum", - xbc="molestias", + email="kale.buckridge@example.net", + force_connect=False, + name="ea", + password="D@CR;Yx0", + proxy_country="uk", + user_agent="iste", + 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 583d8ad4..bea1ef2e 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="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="all", + 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 bd4f6161..65694e23 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 9e661b45..d67c3cc8 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": ["wu"]}, + filter={"tags": ["xlzlsyghkpsikqorgvrolj"]}, 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="temporibus", + smart_link_id="provident", ) 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="temporibus", + smart_link_id="provident", 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="temporibus", + smart_link_id="provident", ) 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="temporibus", + smart_link_id="provident", ) 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="omnis", + smart_link_id="veritatis", ) 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="omnis", + smart_link_id="veritatis", 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="omnis", + smart_link_id="veritatis", ) 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="omnis", + smart_link_id="veritatis", ) 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="assumenda", + smart_link_id="ut", ) 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="assumenda", + smart_link_id="ut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="assumenda", + smart_link_id="ut", ) assert response.is_closed is True @@ -359,7 +359,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="assumenda", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="velit", + smart_link_id="rerum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="velit", + smart_link_id="rerum", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="velit", + smart_link_id="rerum", ) assert response.is_closed is True @@ -412,7 +412,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="velit", + smart_link_id="rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="molestiae", + smart_link_id="voluptatem", ) assert smart_link is None @@ -442,7 +442,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="molestiae", + smart_link_id="voluptatem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="molestiae", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -465,7 +465,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="molestiae", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="exercitationem", + smart_link_id="repudiandae", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="exercitationem", + smart_link_id="repudiandae", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="exercitationem", + smart_link_id="repudiandae", ) assert response.is_closed is True @@ -517,7 +517,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="exercitationem", + smart_link_id="repudiandae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["wu"]}, + filter={"tags": ["xlzlsyghkpsikqorgvrolj"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="temporibus", + smart_link_id="provident", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="temporibus", + smart_link_id="provident", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="temporibus", + smart_link_id="provident", ) assert response.is_closed is True @@ -756,7 +756,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="temporibus", + smart_link_id="provident", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="omnis", + smart_link_id="veritatis", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="omnis", + smart_link_id="veritatis", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="omnis", + smart_link_id="veritatis", ) assert response.is_closed is True @@ -814,7 +814,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="omnis", + smart_link_id="veritatis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="assumenda", + smart_link_id="ut", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="assumenda", + smart_link_id="ut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="assumenda", + smart_link_id="ut", ) assert response.is_closed is True @@ -873,7 +873,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="assumenda", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="velit", + smart_link_id="rerum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="velit", + smart_link_id="rerum", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="velit", + smart_link_id="rerum", ) assert response.is_closed is True @@ -926,7 +926,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="velit", + smart_link_id="rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="molestiae", + smart_link_id="voluptatem", ) assert smart_link is None @@ -956,7 +956,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="molestiae", + smart_link_id="voluptatem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="molestiae", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -979,7 +979,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="molestiae", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="exercitationem", + smart_link_id="repudiandae", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="exercitationem", + smart_link_id="repudiandae", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="exercitationem", + smart_link_id="repudiandae", ) assert response.is_closed is True @@ -1031,7 +1031,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="exercitationem", + smart_link_id="repudiandae", ) 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 f26f3195..0323e180 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": "bvxy", - "tags": ["hppivllsoygvdmftrrigl"], + "search": "gkkparqdnqbbzdpu", + "tags": ["uzpxhebijjiwm"], }, 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": "n", - "tags": ["yxo"], + "search": "rnwlxbjnndveebrjz", + "tags": ["ys"], }, 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": "vymbfhfuyeidzday", - "tags": ["dixecgghogfzjgbsxkfqa"], + "search": "vcejrliddz", + "tags": ["rnlgcpritojjogsaj"], }, 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": "bftuhjs", - "tags": ["denfdxoyzrurhimmao"], + "include_smart_links": False, + "search": "mxtpfklmpmm", + "tags": ["jiblwvpsobnyanpia"], }, 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": "bvxy", - "tags": ["hppivllsoygvdmftrrigl"], + "search": "gkkparqdnqbbzdpu", + "tags": ["uzpxhebijjiwm"], }, 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": "n", - "tags": ["yxo"], + "search": "rnwlxbjnndveebrjz", + "tags": ["ys"], }, 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": "vymbfhfuyeidzday", - "tags": ["dixecgghogfzjgbsxkfqa"], + "search": "vcejrliddz", + "tags": ["rnlgcpritojjogsaj"], }, 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": "bftuhjs", - "tags": ["denfdxoyzrurhimmao"], + "include_smart_links": False, + "search": "mxtpfklmpmm", + "tags": ["jiblwvpsobnyanpia"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 6db1e0e2..82869653 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="possimus", + tracking_link_id="expedita", 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="possimus", + tracking_link_id="expedita", 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="possimus", + tracking_link_id="expedita", 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="possimus", + tracking_link_id="expedita", 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="possimus", + tracking_link_id="expedita", 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="possimus", + tracking_link_id="expedita", 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="possimus", + tracking_link_id="expedita", 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="possimus", + tracking_link_id="expedita", 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="autem", + tracking_link_id="nihil", 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="autem", + tracking_link_id="nihil", 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="autem", + tracking_link_id="nihil", 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="autem", + tracking_link_id="nihil", 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="autem", + tracking_link_id="nihil", 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="fugit", + tracking_link_id="delectus", 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="fugit", + tracking_link_id="delectus", 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="fugit", + tracking_link_id="delectus", 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="fugit", + tracking_link_id="delectus", 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="fugit", + tracking_link_id="delectus", 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="possimus", + tracking_link_id="expedita", 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="possimus", + tracking_link_id="expedita", 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="possimus", + tracking_link_id="expedita", 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="possimus", + tracking_link_id="expedita", 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="possimus", + tracking_link_id="expedita", 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="possimus", + tracking_link_id="expedita", 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="possimus", + tracking_link_id="expedita", 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="possimus", + tracking_link_id="expedita", 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="autem", + tracking_link_id="nihil", 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="autem", + tracking_link_id="nihil", 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="autem", + tracking_link_id="nihil", 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="autem", + tracking_link_id="nihil", 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="autem", + tracking_link_id="nihil", 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="fugit", + tracking_link_id="delectus", 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="fugit", + tracking_link_id="delectus", 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="fugit", + tracking_link_id="delectus", 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="fugit", + tracking_link_id="delectus", 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="fugit", + tracking_link_id="delectus", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 42f97423..8c2c5c6c 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="cupiditate", + trial_link_id="perferendis", 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="cupiditate", + trial_link_id="perferendis", 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="cupiditate", + trial_link_id="perferendis", 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="cupiditate", + trial_link_id="perferendis", 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="cupiditate", + trial_link_id="perferendis", 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="cupiditate", + trial_link_id="perferendis", 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="cupiditate", + trial_link_id="perferendis", 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="cupiditate", + trial_link_id="perferendis", 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="officia", + trial_link_id="cum", 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="officia", + trial_link_id="cum", 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="officia", + trial_link_id="cum", 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="officia", + trial_link_id="cum", 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="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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="temporibus", + trial_link_id="neque", 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="temporibus", + trial_link_id="neque", 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="temporibus", + trial_link_id="neque", 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="temporibus", + trial_link_id="neque", 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="temporibus", + trial_link_id="neque", 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="cupiditate", + trial_link_id="perferendis", 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="cupiditate", + trial_link_id="perferendis", 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="cupiditate", + trial_link_id="perferendis", 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="cupiditate", + trial_link_id="perferendis", 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="cupiditate", + trial_link_id="perferendis", 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="cupiditate", + trial_link_id="perferendis", 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="cupiditate", + trial_link_id="perferendis", 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="cupiditate", + trial_link_id="perferendis", 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="officia", + trial_link_id="cum", 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="officia", + trial_link_id="cum", 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="officia", + trial_link_id="cum", 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="officia", + trial_link_id="cum", 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="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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="temporibus", + trial_link_id="neque", 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="temporibus", + trial_link_id="neque", 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="temporibus", + trial_link_id="neque", 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="temporibus", + trial_link_id="neque", 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="temporibus", + trial_link_id="neque", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 8494d61e..514d913e 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="osxlwxky", + name="qgzlijdsm", ) 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="osxlwxky", + name="qgzlijdsm", ) 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="osxlwxky", + name="qgzlijdsm", ) 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="osxlwxky", + name="qgzlijdsm", ) @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="osxlwxky", + name="qgzlijdsm", ) 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="osxlwxky", + name="qgzlijdsm", ) 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="osxlwxky", + name="qgzlijdsm", ) 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="osxlwxky", + name="qgzlijdsm", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 0e5181b69361214e8a78e5ca7c3f915b2ea57aec Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 02:12:39 +0000 Subject: [PATCH 117/249] 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 | 84 +++++++++--------- 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, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5600fdc5..20e15a3b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ba677834a77b7edbbb9db2198f9297c2942d93c12673447320404fbef92e1332.yml -openapi_spec_hash: 175ed099358f51d83318b341aa6d8e15 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-50f1f80bb06b4a7a9c4cf853b7d4c6eda291f60b515e38ac6ac9e03611853ffe.yml +openapi_spec_hash: 32df5b526d06f339131c411cbf4aaebe config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index b9c52e92..568cd400 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="reiciendis", + message_id="facere", 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="reiciendis", + message_id="facere", 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="reiciendis", + message_id="facere", 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="reiciendis", + message_id="facere", 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="reiciendis", + message_id="facere", 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="reiciendis", + message_id="facere", 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="reiciendis", + message_id="facere", 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="reiciendis", + message_id="facere", 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="reiciendis", + message_id="facere", 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="reiciendis", + message_id="facere", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 79e2a0fd..2b790c57 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="corrupti", + list_id="perferendis", 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="corrupti", + list_id="perferendis", 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="corrupti", + list_id="perferendis", 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="corrupti", + list_id="perferendis", 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="corrupti", + list_id="perferendis", 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="corrupti", + list_id="perferendis", 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="corrupti", + list_id="perferendis", 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="corrupti", + list_id="perferendis", 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="corrupti", + list_id="perferendis", 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="corrupti", + list_id="perferendis", 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="corrupti", + list_id="perferendis", 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="corrupti", + list_id="perferendis", 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="corrupti", + list_id="perferendis", 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="corrupti", + list_id="perferendis", 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="corrupti", + list_id="perferendis", 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="corrupti", + list_id="perferendis", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 0d70ffc7..4785a9cf 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="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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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 a62ccbd3..444937ba 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 2ced6cb5..9c80483e 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 36521a4f..1a9b0948 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + story_id="blanditiis", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index abc984fe..055f9d16 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( - "nesciunt", + "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( - "nesciunt", + "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( - "nesciunt", + "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( - "nesciunt", + "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( - "nesciunt", + "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( - "nesciunt", + "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 30ba80a9..a141da3f 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="temporibus", - auth_type="mobile_app", - cookies="debitis", + auth_id="sit", + auth_type="email_password", + cookies="perferendis", custom_proxy={ "host": "proxy.example.com", - "password": ",0=XQnN^I3qj@;", + "password": "%' None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="temporibus", - auth_type="mobile_app", - cookies="debitis", + auth_id="sit", + auth_type="email_password", + cookies="perferendis", custom_proxy={ "host": "proxy.example.com", - "password": ",0=XQnN^I3qj@;", + "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 bea1ef2e..4fb0fa41 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="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="tags", + 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 65694e23..bd4f6161 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 d67c3cc8..620d3379 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": ["xlzlsyghkpsikqorgvrolj"]}, + filter={"tags": ["akfkidqyvlsefd"]}, 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="provident", + smart_link_id="adipisci", ) 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="provident", + smart_link_id="adipisci", 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="provident", + smart_link_id="adipisci", ) 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="provident", + smart_link_id="adipisci", ) 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="veritatis", + smart_link_id="et", ) 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="veritatis", + smart_link_id="et", 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="veritatis", + smart_link_id="et", ) 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="veritatis", + smart_link_id="et", ) 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="ut", + smart_link_id="voluptates", ) 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="ut", + smart_link_id="voluptates", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="ut", + smart_link_id="voluptates", ) assert response.is_closed is True @@ -359,7 +359,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="ut", + smart_link_id="voluptates", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="rerum", + smart_link_id="iure", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="rerum", + smart_link_id="iure", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="rerum", + smart_link_id="iure", ) assert response.is_closed is True @@ -412,7 +412,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="rerum", + smart_link_id="iure", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="voluptatem", + smart_link_id="tempora", ) assert smart_link is None @@ -442,7 +442,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="voluptatem", + smart_link_id="tempora", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="voluptatem", + smart_link_id="tempora", ) assert response.is_closed is True @@ -465,7 +465,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="voluptatem", + smart_link_id="tempora", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["xlzlsyghkpsikqorgvrolj"]}, + filter={"tags": ["akfkidqyvlsefd"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="provident", + smart_link_id="adipisci", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="provident", + smart_link_id="adipisci", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="provident", + smart_link_id="adipisci", ) assert response.is_closed is True @@ -756,7 +756,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="provident", + smart_link_id="adipisci", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="veritatis", + smart_link_id="et", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="veritatis", + smart_link_id="et", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="veritatis", + smart_link_id="et", ) assert response.is_closed is True @@ -814,7 +814,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="veritatis", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="ut", + smart_link_id="voluptates", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="ut", + smart_link_id="voluptates", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="ut", + smart_link_id="voluptates", ) assert response.is_closed is True @@ -873,7 +873,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="ut", + smart_link_id="voluptates", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="rerum", + smart_link_id="iure", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="rerum", + smart_link_id="iure", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="rerum", + smart_link_id="iure", ) assert response.is_closed is True @@ -926,7 +926,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="rerum", + smart_link_id="iure", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="voluptatem", + smart_link_id="tempora", ) assert smart_link is None @@ -956,7 +956,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="voluptatem", + smart_link_id="tempora", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="voluptatem", + smart_link_id="tempora", ) assert response.is_closed is True @@ -979,7 +979,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="voluptatem", + smart_link_id="tempora", ) 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 0323e180..907a0c98 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": "gkkparqdnqbbzdpu", - "tags": ["uzpxhebijjiwm"], + "search": "tbmjy", + "tags": ["nndozxyctbkhihivquxcyujr"], }, 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": "rnwlxbjnndveebrjz", - "tags": ["ys"], + "search": "dwoplciqifokdizdb", + "tags": ["mtqenc"], }, 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": "vcejrliddz", - "tags": ["rnlgcpritojjogsaj"], + "include_smart_links": False, + "search": "cjmmocxazpsqisdrbajtapjit", + "tags": ["lhbymbozrrqflwjufezjokyfw"], }, 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": "mxtpfklmpmm", - "tags": ["jiblwvpsobnyanpia"], + "search": "nmnnhsrzdvqqrdde", + "tags": ["ibvtb"], }, 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": "gkkparqdnqbbzdpu", - "tags": ["uzpxhebijjiwm"], + "search": "tbmjy", + "tags": ["nndozxyctbkhihivquxcyujr"], }, 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": "rnwlxbjnndveebrjz", - "tags": ["ys"], + "search": "dwoplciqifokdizdb", + "tags": ["mtqenc"], }, 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": "vcejrliddz", - "tags": ["rnlgcpritojjogsaj"], + "include_smart_links": False, + "search": "cjmmocxazpsqisdrbajtapjit", + "tags": ["lhbymbozrrqflwjufezjokyfw"], }, 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": "mxtpfklmpmm", - "tags": ["jiblwvpsobnyanpia"], + "search": "nmnnhsrzdvqqrdde", + "tags": ["ibvtb"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 82869653..921255bf 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="expedita", + tracking_link_id="sapiente", 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="expedita", + tracking_link_id="sapiente", 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="expedita", + tracking_link_id="sapiente", 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="expedita", + tracking_link_id="sapiente", 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="expedita", + tracking_link_id="sapiente", 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="expedita", + tracking_link_id="sapiente", 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="expedita", + tracking_link_id="sapiente", 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="expedita", + tracking_link_id="sapiente", 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="nihil", + tracking_link_id="enim", 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="nihil", + tracking_link_id="enim", 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="nihil", + tracking_link_id="enim", 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="nihil", + tracking_link_id="enim", 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="nihil", + tracking_link_id="enim", 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="delectus", + tracking_link_id="sit", 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="delectus", + tracking_link_id="sit", 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="delectus", + tracking_link_id="sit", 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="delectus", + tracking_link_id="sit", 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="delectus", + tracking_link_id="sit", 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="expedita", + tracking_link_id="sapiente", 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="expedita", + tracking_link_id="sapiente", 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="expedita", + tracking_link_id="sapiente", 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="expedita", + tracking_link_id="sapiente", 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="expedita", + tracking_link_id="sapiente", 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="expedita", + tracking_link_id="sapiente", 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="expedita", + tracking_link_id="sapiente", 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="expedita", + tracking_link_id="sapiente", 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="nihil", + tracking_link_id="enim", 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="nihil", + tracking_link_id="enim", 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="nihil", + tracking_link_id="enim", 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="nihil", + tracking_link_id="enim", 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="nihil", + tracking_link_id="enim", 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="delectus", + tracking_link_id="sit", 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="delectus", + tracking_link_id="sit", 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="delectus", + tracking_link_id="sit", 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="delectus", + tracking_link_id="sit", 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="delectus", + tracking_link_id="sit", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 8c2c5c6c..fa9bef38 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="cum", + trial_link_id="eum", 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="cum", + trial_link_id="eum", 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="cum", + trial_link_id="eum", 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="cum", + trial_link_id="eum", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="neque", + trial_link_id="aliquid", 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="neque", + trial_link_id="aliquid", 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="neque", + trial_link_id="aliquid", 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="neque", + trial_link_id="aliquid", 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="neque", + trial_link_id="aliquid", 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="cum", + trial_link_id="eum", 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="cum", + trial_link_id="eum", 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="cum", + trial_link_id="eum", 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="cum", + trial_link_id="eum", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="neque", + trial_link_id="aliquid", 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="neque", + trial_link_id="aliquid", 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="neque", + trial_link_id="aliquid", 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="neque", + trial_link_id="aliquid", 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="neque", + trial_link_id="aliquid", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 514d913e..bdd58091 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="qgzlijdsm", + name="uobdhgqjbtzxkujlpqul", ) 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="qgzlijdsm", + name="uobdhgqjbtzxkujlpqul", ) 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="qgzlijdsm", + name="uobdhgqjbtzxkujlpqul", ) 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="qgzlijdsm", + name="uobdhgqjbtzxkujlpqul", ) @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="qgzlijdsm", + name="uobdhgqjbtzxkujlpqul", ) 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="qgzlijdsm", + name="uobdhgqjbtzxkujlpqul", ) 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="qgzlijdsm", + name="uobdhgqjbtzxkujlpqul", ) 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="qgzlijdsm", + name="uobdhgqjbtzxkujlpqul", ) @pytest.mark.skip(reason="Mock server tests are disabled") From ece2e64dec3f9356b351d1862a1f22871a528970 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 03:12:37 +0000 Subject: [PATCH 118/249] 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 | 100 +++++++++--------- 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, 270 insertions(+), 270 deletions(-) diff --git a/.stats.yml b/.stats.yml index 20e15a3b..cd0b02d0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-50f1f80bb06b4a7a9c4cf853b7d4c6eda291f60b515e38ac6ac9e03611853ffe.yml -openapi_spec_hash: 32df5b526d06f339131c411cbf4aaebe +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-211916b41fb641f03be1798452dd51c74ce89cb98cbc94e5c3028162e2c92c0a.yml +openapi_spec_hash: e6bb03676d1715259a7e0d6a1fe83f3e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 568cd400..1425657c 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="facere", + 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="facere", + 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="facere", + 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="facere", + 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="facere", + 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="facere", + 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="facere", + 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="facere", + 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="facere", + 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="facere", + 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 2b790c57..91ddbf7c 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="perferendis", + list_id="nulla", 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="perferendis", + list_id="nulla", 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="perferendis", + list_id="nulla", 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="perferendis", + list_id="nulla", 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="perferendis", + list_id="nulla", 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="perferendis", + list_id="nulla", 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="perferendis", + list_id="nulla", 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="perferendis", + list_id="nulla", 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="perferendis", + list_id="nulla", 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="perferendis", + list_id="nulla", 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="perferendis", + list_id="nulla", 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="perferendis", + list_id="nulla", 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="perferendis", + list_id="nulla", 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="perferendis", + list_id="nulla", 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="perferendis", + list_id="nulla", 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="perferendis", + list_id="nulla", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 4785a9cf..03a44325 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="cum", 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="cum", 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="cum", 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="cum", 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="cum", 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="cum", 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="cum", 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="cum", 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="cum", 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="cum", 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="cum", 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="cum", 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="cum", 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="cum", 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="cum", 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="cum", 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="cum", 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="cum", 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="cum", 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="cum", 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 444937ba..aa735c97 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 9c80483e..2ced6cb5 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075f..544df889 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 1a9b0948..980ead1d 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", 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="optio", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 055f9d16..1b2c85b9 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", + "vitae", ) 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", + "vitae", ) 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", + "vitae", ) 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", + "vitae", ) 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", + "vitae", ) 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", + "vitae", ) 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 a141da3f..26681e89 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="sit", - auth_type="email_password", - cookies="perferendis", + auth_id="voluptatibus", + auth_type="raw_data", + 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="sit", - auth_type="email_password", - cookies="perferendis", + auth_id="voluptatibus", + auth_type="raw_data", + cookies="dolores", custom_proxy={ "host": "proxy.example.com", - "password": "%' None: from_id=123, limit=10, skip_users="all", - type="subscriptions", + 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="subscriptions", + 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 620d3379..66565060 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": ["akfkidqyvlsefd"]}, + filter={"tags": ["dusrkqfbasitipzqzaxa"]}, 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="adipisci", + smart_link_id="in", ) 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="adipisci", + smart_link_id="in", 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="adipisci", + smart_link_id="in", ) 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="adipisci", + smart_link_id="in", ) 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="et", + smart_link_id="nulla", ) 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="et", + smart_link_id="nulla", 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="et", + smart_link_id="nulla", ) 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="et", + smart_link_id="nulla", ) 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="voluptates", + smart_link_id="doloribus", ) 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="voluptates", + smart_link_id="doloribus", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="doloribus", ) assert response.is_closed is True @@ -359,7 +359,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="doloribus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="iure", + smart_link_id="aut", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="iure", + smart_link_id="aut", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="iure", + smart_link_id="aut", ) assert response.is_closed is True @@ -412,7 +412,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="iure", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="tempora", + smart_link_id="cumque", ) assert smart_link is None @@ -442,7 +442,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="tempora", + smart_link_id="cumque", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="tempora", + smart_link_id="cumque", ) assert response.is_closed is True @@ -465,7 +465,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="tempora", + smart_link_id="cumque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="repudiandae", + smart_link_id="perferendis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="repudiandae", + smart_link_id="perferendis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="repudiandae", + smart_link_id="perferendis", ) assert response.is_closed is True @@ -517,7 +517,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="repudiandae", + smart_link_id="perferendis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["akfkidqyvlsefd"]}, + filter={"tags": ["dusrkqfbasitipzqzaxa"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="adipisci", + smart_link_id="in", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="adipisci", + smart_link_id="in", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="adipisci", + smart_link_id="in", ) assert response.is_closed is True @@ -756,7 +756,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="adipisci", + smart_link_id="in", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="et", + smart_link_id="nulla", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="et", + smart_link_id="nulla", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="et", + smart_link_id="nulla", ) assert response.is_closed is True @@ -814,7 +814,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="et", + smart_link_id="nulla", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="doloribus", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="doloribus", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="doloribus", ) assert response.is_closed is True @@ -873,7 +873,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="doloribus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="iure", + smart_link_id="aut", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="iure", + smart_link_id="aut", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="iure", + smart_link_id="aut", ) assert response.is_closed is True @@ -926,7 +926,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="iure", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="tempora", + smart_link_id="cumque", ) assert smart_link is None @@ -956,7 +956,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="tempora", + smart_link_id="cumque", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="tempora", + smart_link_id="cumque", ) assert response.is_closed is True @@ -979,7 +979,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="tempora", + smart_link_id="cumque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="repudiandae", + smart_link_id="perferendis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="repudiandae", + smart_link_id="perferendis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="repudiandae", + smart_link_id="perferendis", ) assert response.is_closed is True @@ -1031,7 +1031,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="repudiandae", + 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 907a0c98..182c7927 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": "tbmjy", - "tags": ["nndozxyctbkhihivquxcyujr"], + "search": "thkanlaztkfpxhqwebdviuzje", + "tags": ["f"], }, 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": "dwoplciqifokdizdb", - "tags": ["mtqenc"], + "search": "iowu", + "tags": ["sreejcmkmjzemczvnhvehr"], }, 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": "cjmmocxazpsqisdrbajtapjit", - "tags": ["lhbymbozrrqflwjufezjokyfw"], + "include_smart_links": True, + "search": "lnysvjloufknk", + "tags": ["dofjoxiw"], }, 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": "nmnnhsrzdvqqrdde", - "tags": ["ibvtb"], + "include_smart_links": True, + "search": "thdqoj", + "tags": ["sbvipdfqapqnocltsyrfvhlw"], }, 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": "tbmjy", - "tags": ["nndozxyctbkhihivquxcyujr"], + "search": "thkanlaztkfpxhqwebdviuzje", + "tags": ["f"], }, 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": "dwoplciqifokdizdb", - "tags": ["mtqenc"], + "search": "iowu", + "tags": ["sreejcmkmjzemczvnhvehr"], }, 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": "cjmmocxazpsqisdrbajtapjit", - "tags": ["lhbymbozrrqflwjufezjokyfw"], + "include_smart_links": True, + "search": "lnysvjloufknk", + "tags": ["dofjoxiw"], }, 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": "nmnnhsrzdvqqrdde", - "tags": ["ibvtb"], + "include_smart_links": True, + "search": "thdqoj", + "tags": ["sbvipdfqapqnocltsyrfvhlw"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 921255bf..7bd8a265 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="sapiente", + tracking_link_id="suscipit", 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="sapiente", + tracking_link_id="suscipit", 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="sapiente", + tracking_link_id="suscipit", 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="sapiente", + tracking_link_id="suscipit", 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="sapiente", + tracking_link_id="suscipit", 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="sapiente", + tracking_link_id="suscipit", 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="sapiente", + tracking_link_id="suscipit", 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="sapiente", + tracking_link_id="suscipit", 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="sit", + tracking_link_id="eius", 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="sit", + tracking_link_id="eius", 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="sit", + tracking_link_id="eius", 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="sit", + tracking_link_id="eius", 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="sit", + tracking_link_id="eius", 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="sapiente", + tracking_link_id="suscipit", 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="sapiente", + tracking_link_id="suscipit", 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="sapiente", + tracking_link_id="suscipit", 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="sapiente", + tracking_link_id="suscipit", 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="sapiente", + tracking_link_id="suscipit", 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="sapiente", + tracking_link_id="suscipit", 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="sapiente", + tracking_link_id="suscipit", 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="sapiente", + tracking_link_id="suscipit", 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="sit", + tracking_link_id="eius", 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="sit", + tracking_link_id="eius", 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="sit", + tracking_link_id="eius", 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="sit", + tracking_link_id="eius", 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="sit", + tracking_link_id="eius", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index fa9bef38..20d7efb6 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="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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="eum", + trial_link_id="rerum", 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="eum", + trial_link_id="rerum", 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="eum", + trial_link_id="rerum", 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="eum", + trial_link_id="rerum", 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="quaerat", + trial_link_id="eos", 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="quaerat", + trial_link_id="eos", 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="quaerat", + trial_link_id="eos", 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="quaerat", + trial_link_id="eos", 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="quaerat", + trial_link_id="eos", 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="aliquid", + 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="aliquid", + 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="aliquid", + 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="aliquid", + 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="aliquid", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="eum", + trial_link_id="rerum", 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="eum", + trial_link_id="rerum", 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="eum", + trial_link_id="rerum", 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="eum", + trial_link_id="rerum", 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="quaerat", + trial_link_id="eos", 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="quaerat", + trial_link_id="eos", 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="quaerat", + trial_link_id="eos", 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="quaerat", + trial_link_id="eos", 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="quaerat", + trial_link_id="eos", 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="aliquid", + 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="aliquid", + 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="aliquid", + 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="aliquid", + 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="aliquid", + trial_link_id="aut", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index bdd58091..9f98e39a 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="uobdhgqjbtzxkujlpqul", + name="hxodkcv", ) 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="uobdhgqjbtzxkujlpqul", + name="hxodkcv", ) 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="uobdhgqjbtzxkujlpqul", + name="hxodkcv", ) 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="uobdhgqjbtzxkujlpqul", + name="hxodkcv", ) @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="uobdhgqjbtzxkujlpqul", + name="hxodkcv", ) 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="uobdhgqjbtzxkujlpqul", + name="hxodkcv", ) 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="uobdhgqjbtzxkujlpqul", + name="hxodkcv", ) 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="uobdhgqjbtzxkujlpqul", + name="hxodkcv", ) @pytest.mark.skip(reason="Mock server tests are disabled") From d4ea3a356bab292a092a599f4a4fd7394ae149e1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 11:12:38 +0000 Subject: [PATCH 119/249] 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_smart_links.py | 100 +++++++++--------- 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, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index cd0b02d0..2a1bbe8f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-211916b41fb641f03be1798452dd51c74ce89cb98cbc94e5c3028162e2c92c0a.yml -openapi_spec_hash: e6bb03676d1715259a7e0d6a1fe83f3e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7b36c6524b681f544d107b99f986fab95be59c44d09e9e8b038fb1a34f81f259.yml +openapi_spec_hash: 8fafe5c33d355fb94bcf8fdc170624c0 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 1425657c..5b6fcdfc 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="eius", 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="eius", 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="eius", 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="eius", 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="eius", 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="eius", 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="eius", 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="eius", 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="eius", 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="eius", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 91ddbf7c..8c83f1ad 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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 03a44325..aa580327 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="cum", + post_id="dolores", 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="cum", + post_id="dolores", 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="cum", + post_id="dolores", 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="cum", + post_id="dolores", 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="cum", + post_id="dolores", 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="cum", + post_id="dolores", 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="cum", + post_id="dolores", 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="cum", + post_id="dolores", 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="cum", + post_id="dolores", 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="cum", + post_id="dolores", 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="cum", + post_id="dolores", 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="cum", + post_id="dolores", 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="cum", + post_id="dolores", 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="cum", + post_id="dolores", 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="cum", + post_id="dolores", 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="cum", + post_id="dolores", 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="cum", + post_id="dolores", 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="cum", + post_id="dolores", 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="cum", + post_id="dolores", 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="cum", + post_id="dolores", 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 aa735c97..a62ccbd3 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 980ead1d..8ef4a51d 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="optio", + path_story_id="tempore", 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="optio", + path_story_id="tempore", 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="optio", + path_story_id="tempore", 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="optio", + path_story_id="tempore", 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="optio", + story_id="tempore", 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="optio", + story_id="tempore", 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="optio", + story_id="tempore", 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="optio", + story_id="tempore", 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="optio", + path_story_id="tempore", 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="optio", + path_story_id="tempore", 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="optio", + path_story_id="tempore", 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="optio", + path_story_id="tempore", 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="optio", + story_id="tempore", 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="optio", + story_id="tempore", 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="optio", + story_id="tempore", 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="optio", + story_id="tempore", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 1b2c85b9..650aef2a 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( - "vitae", + "nihil", ) 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( - "vitae", + "nihil", ) 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( - "vitae", + "nihil", ) 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( - "vitae", + "nihil", ) 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( - "vitae", + "nihil", ) 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( - "vitae", + "nihil", ) 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 26681e89..1e2ee0c3 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="voluptatibus", - auth_type="raw_data", - cookies="dolores", + auth_id="quia", + auth_type="email_password", + cookies="iste", custom_proxy={ "host": "proxy.example.com", - "password": "L1E- None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="voluptatibus", - auth_type="raw_data", - cookies="dolores", + auth_id="quia", + auth_type="email_password", + cookies="iste", custom_proxy={ "host": "proxy.example.com", - "password": "L1E- None: from_id=123, limit=10, skip_users="all", - type="likes", + 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="likes", + 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 66565060..76f01e9a 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": ["dusrkqfbasitipzqzaxa"]}, + filter={"tags": ["iu"]}, 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="in", + smart_link_id="reiciendis", ) 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="in", + smart_link_id="reiciendis", 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="in", + smart_link_id="reiciendis", ) 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="in", + smart_link_id="reiciendis", ) 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="nulla", + smart_link_id="quos", ) 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="nulla", + smart_link_id="quos", 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="nulla", + smart_link_id="quos", ) 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="nulla", + smart_link_id="quos", ) 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="doloribus", + smart_link_id="delectus", ) 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="doloribus", + smart_link_id="delectus", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="doloribus", + smart_link_id="delectus", ) assert response.is_closed is True @@ -359,7 +359,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="doloribus", + smart_link_id="delectus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="quia", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="quia", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="quia", ) assert response.is_closed is True @@ -412,7 +412,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="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="cumque", + smart_link_id="non", ) assert smart_link is None @@ -442,7 +442,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="cumque", + smart_link_id="non", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="cumque", + smart_link_id="non", ) assert response.is_closed is True @@ -465,7 +465,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="cumque", + smart_link_id="non", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="autem", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="autem", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="autem", ) assert response.is_closed is True @@ -517,7 +517,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="autem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["dusrkqfbasitipzqzaxa"]}, + filter={"tags": ["iu"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="reiciendis", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="reiciendis", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="reiciendis", ) assert response.is_closed is True @@ -756,7 +756,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="reiciendis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="nulla", + smart_link_id="quos", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="nulla", + smart_link_id="quos", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="nulla", + smart_link_id="quos", ) assert response.is_closed is True @@ -814,7 +814,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="nulla", + smart_link_id="quos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="doloribus", + smart_link_id="delectus", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="doloribus", + smart_link_id="delectus", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="doloribus", + smart_link_id="delectus", ) assert response.is_closed is True @@ -873,7 +873,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="doloribus", + smart_link_id="delectus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="quia", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="quia", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="quia", ) assert response.is_closed is True @@ -926,7 +926,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="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="cumque", + smart_link_id="non", ) assert smart_link is None @@ -956,7 +956,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="cumque", + smart_link_id="non", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="cumque", + smart_link_id="non", ) assert response.is_closed is True @@ -979,7 +979,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="cumque", + smart_link_id="non", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="autem", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="autem", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="autem", ) assert response.is_closed is True @@ -1031,7 +1031,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="autem", ) 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 182c7927..aad81f2c 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": "thkanlaztkfpxhqwebdviuzje", - "tags": ["f"], + "search": "upndcsdcezu", + "tags": ["zptntggzxfpdjhb"], }, 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": "iowu", - "tags": ["sreejcmkmjzemczvnhvehr"], + "search": "ldglhhqvqags", + "tags": ["bskbjoppb"], }, 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": "lnysvjloufknk", - "tags": ["dofjoxiw"], + "include_smart_links": False, + "search": "xmzhtnpafsw", + "tags": ["wtgblhglaoyhakzwxmeotto"], }, 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": "thdqoj", - "tags": ["sbvipdfqapqnocltsyrfvhlw"], + "include_smart_links": False, + "search": "wgivqpfyduskwctwvkoj", + "tags": ["klmgtwoxkkjwkqdqxmfc"], }, 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": "thkanlaztkfpxhqwebdviuzje", - "tags": ["f"], + "search": "upndcsdcezu", + "tags": ["zptntggzxfpdjhb"], }, 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": "iowu", - "tags": ["sreejcmkmjzemczvnhvehr"], + "search": "ldglhhqvqags", + "tags": ["bskbjoppb"], }, 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": "lnysvjloufknk", - "tags": ["dofjoxiw"], + "include_smart_links": False, + "search": "xmzhtnpafsw", + "tags": ["wtgblhglaoyhakzwxmeotto"], }, 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": "thdqoj", - "tags": ["sbvipdfqapqnocltsyrfvhlw"], + "include_smart_links": False, + "search": "wgivqpfyduskwctwvkoj", + "tags": ["klmgtwoxkkjwkqdqxmfc"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 7bd8a265..34ac6e98 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="suscipit", + tracking_link_id="tenetur", 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="suscipit", + tracking_link_id="tenetur", 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="suscipit", + tracking_link_id="tenetur", 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="suscipit", + tracking_link_id="tenetur", 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="suscipit", + tracking_link_id="tenetur", 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="suscipit", + tracking_link_id="tenetur", 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="suscipit", + tracking_link_id="tenetur", 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="suscipit", + tracking_link_id="tenetur", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="eius", + tracking_link_id="doloremque", 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="eius", + tracking_link_id="doloremque", 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="eius", + tracking_link_id="doloremque", 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="eius", + tracking_link_id="doloremque", 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="eius", + tracking_link_id="doloremque", 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="suscipit", + tracking_link_id="tenetur", 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="suscipit", + tracking_link_id="tenetur", 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="suscipit", + tracking_link_id="tenetur", 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="suscipit", + tracking_link_id="tenetur", 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="suscipit", + tracking_link_id="tenetur", 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="suscipit", + tracking_link_id="tenetur", 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="suscipit", + tracking_link_id="tenetur", 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="suscipit", + tracking_link_id="tenetur", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="eius", + tracking_link_id="doloremque", 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="eius", + tracking_link_id="doloremque", 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="eius", + tracking_link_id="doloremque", 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="eius", + tracking_link_id="doloremque", 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="eius", + tracking_link_id="doloremque", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 20d7efb6..24caea50 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="voluptatibus", 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="voluptatibus", 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="voluptatibus", 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="voluptatibus", 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="voluptatibus", 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="voluptatibus", 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="voluptatibus", 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="voluptatibus", 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="eos", + trial_link_id="ea", 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="eos", + trial_link_id="ea", 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="eos", + trial_link_id="ea", 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="eos", + trial_link_id="ea", 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="eos", + trial_link_id="ea", 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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="voluptatibus", 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="voluptatibus", 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="voluptatibus", 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="voluptatibus", 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="voluptatibus", 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="voluptatibus", 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="voluptatibus", 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="voluptatibus", 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="eos", + trial_link_id="ea", 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="eos", + trial_link_id="ea", 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="eos", + trial_link_id="ea", 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="eos", + trial_link_id="ea", 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="eos", + trial_link_id="ea", 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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="sunt", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 9f98e39a..13b37cc2 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="hxodkcv", + name="epycx", ) 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="hxodkcv", + name="epycx", ) 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="hxodkcv", + name="epycx", ) 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="hxodkcv", + name="epycx", ) @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="hxodkcv", + name="epycx", ) 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="hxodkcv", + name="epycx", ) 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="hxodkcv", + name="epycx", ) 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="hxodkcv", + name="epycx", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 690697fed189cd6acc18c9bf40164729e13d5344 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 14:12:38 +0000 Subject: [PATCH 120/249] 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 | 40 +++---- 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 +-- 14 files changed, 254 insertions(+), 254 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2a1bbe8f..d7f990df 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7b36c6524b681f544d107b99f986fab95be59c44d09e9e8b038fb1a34f81f259.yml -openapi_spec_hash: 8fafe5c33d355fb94bcf8fdc170624c0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1f93b6a0a3af44bb6a0b7894a345bca4b5091fdbe2025521703812008dea1c5f.yml +openapi_spec_hash: f4561e05b56c2dacb2d7c5e61b7f10b3 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 5b6fcdfc..4bd7f9af 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="eius", + message_id="doloribus", 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="eius", + message_id="doloribus", 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="eius", + message_id="doloribus", 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="eius", + message_id="doloribus", 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="eius", + message_id="doloribus", 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="eius", + message_id="doloribus", 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="eius", + message_id="doloribus", 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="eius", + message_id="doloribus", 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="eius", + message_id="doloribus", 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="eius", + message_id="doloribus", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 8c83f1ad..9f9b1937 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="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="autem", + 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="autem", + 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="autem", + 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="autem", + 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="autem", + 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="autem", + 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="autem", + 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="autem", + 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="autem", + 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="autem", + 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="autem", + 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="autem", + 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="autem", + 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="autem", + 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="autem", + 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 aa580327..c2104903 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="dolores", + post_id="animi", 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="dolores", + post_id="animi", 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="dolores", + post_id="animi", 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="dolores", + post_id="animi", 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="dolores", + post_id="animi", 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="dolores", + post_id="animi", 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="dolores", + post_id="animi", 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="dolores", + post_id="animi", 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="dolores", + post_id="animi", 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="dolores", + post_id="animi", 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="dolores", + post_id="animi", 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="dolores", + post_id="animi", 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="dolores", + post_id="animi", 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="dolores", + post_id="animi", 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="dolores", + post_id="animi", 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="dolores", + post_id="animi", 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="dolores", + post_id="animi", 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="dolores", + post_id="animi", 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="dolores", + post_id="animi", 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="dolores", + post_id="animi", 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 2ced6cb5..b5f3d61a 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 8ef4a51d..ea214c23 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="tempore", + path_story_id="tempora", 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="tempore", + path_story_id="tempora", 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="tempore", + path_story_id="tempora", 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="tempore", + path_story_id="tempora", 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="tempore", + story_id="tempora", 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="tempore", + story_id="tempora", 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="tempore", + story_id="tempora", 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="tempore", + story_id="tempora", 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="tempore", + path_story_id="tempora", 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="tempore", + path_story_id="tempora", 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="tempore", + path_story_id="tempora", 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="tempore", + path_story_id="tempora", 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="tempore", + story_id="tempora", 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="tempore", + story_id="tempora", 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="tempore", + story_id="tempora", 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="tempore", + story_id="tempora", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 650aef2a..0b8f88f0 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( - "nihil", + "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( - "nihil", + "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( - "nihil", + "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( - "nihil", + "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( - "nihil", + "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( - "nihil", + "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 1e2ee0c3..983f20a3 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="quia", - auth_type="email_password", - cookies="iste", + auth_id="ut", + auth_type="raw_data", + cookies="aut", custom_proxy={ "host": "proxy.example.com", - "password": "Nn'xm0BsZ7m.Epi9", + "password": "PV]t%g^e8c>p", "port": 8080, - "username": "officiis", + "username": "fuga", }, - email="wisozk.berta@example.org", + email="felicia.conroy@example.org", force_connect=False, - name="ullam", - password="Hs{MV8MQ|89", + name="libero", + password=";I>RKQ8FaS;I2'~a'", proxy_country="uk", - user_agent="at", - xbc="voluptate", + user_agent="sit", + xbc="sint", ) 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="quia", - auth_type="email_password", - cookies="iste", + auth_id="ut", + auth_type="raw_data", + cookies="aut", custom_proxy={ "host": "proxy.example.com", - "password": "Nn'xm0BsZ7m.Epi9", + "password": "PV]t%g^e8c>p", "port": 8080, - "username": "officiis", + "username": "fuga", }, - email="wisozk.berta@example.org", + email="felicia.conroy@example.org", force_connect=False, - name="ullam", - password="Hs{MV8MQ|89", + name="libero", + password=";I>RKQ8FaS;I2'~a'", proxy_country="uk", - user_agent="at", - xbc="voluptate", + user_agent="sit", + xbc="sint", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 1a80b275..280e3de9 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="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="onlyfans", + 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 76f01e9a..08563c72 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": ["iu"]}, + filter={"tags": ["gin"]}, 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="reiciendis", + smart_link_id="nemo", ) 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="reiciendis", + smart_link_id="nemo", 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="reiciendis", + smart_link_id="nemo", ) 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="reiciendis", + smart_link_id="nemo", ) 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="quos", + smart_link_id="qui", ) 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="quos", + smart_link_id="qui", 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="quos", + smart_link_id="qui", ) 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="quos", + smart_link_id="qui", ) 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="delectus", + smart_link_id="facilis", ) 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="delectus", + smart_link_id="facilis", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="facilis", ) assert response.is_closed is True @@ -359,7 +359,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="facilis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="quia", + smart_link_id="dolor", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="quia", + smart_link_id="dolor", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="quia", + smart_link_id="dolor", ) assert response.is_closed is True @@ -412,7 +412,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="quia", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="similique", ) assert smart_link is None @@ -442,7 +442,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="similique", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="similique", ) assert response.is_closed is True @@ -465,7 +465,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="similique", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="autem", + smart_link_id="aut", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="autem", + smart_link_id="aut", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="autem", + smart_link_id="aut", ) assert response.is_closed is True @@ -517,7 +517,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="autem", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["iu"]}, + filter={"tags": ["gin"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="reiciendis", + smart_link_id="nemo", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="reiciendis", + smart_link_id="nemo", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="reiciendis", + smart_link_id="nemo", ) assert response.is_closed is True @@ -756,7 +756,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="reiciendis", + smart_link_id="nemo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="qui", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="qui", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="qui", ) assert response.is_closed is True @@ -814,7 +814,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="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="facilis", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="facilis", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="facilis", ) assert response.is_closed is True @@ -873,7 +873,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="facilis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="quia", + smart_link_id="dolor", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="quia", + smart_link_id="dolor", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="quia", + smart_link_id="dolor", ) assert response.is_closed is True @@ -926,7 +926,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="quia", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="similique", ) assert smart_link is None @@ -956,7 +956,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="similique", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="similique", ) assert response.is_closed is True @@ -979,7 +979,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="similique", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="autem", + smart_link_id="aut", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="autem", + smart_link_id="aut", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="autem", + smart_link_id="aut", ) assert response.is_closed is True @@ -1031,7 +1031,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="autem", + 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 aad81f2c..4fc06600 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": "upndcsdcezu", - "tags": ["zptntggzxfpdjhb"], + "search": "fzvyjyffyixayro", + "tags": ["kudf"], }, 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": "ldglhhqvqags", - "tags": ["bskbjoppb"], + "search": "fjvvltkdstgdpzaoustlzrigr", + "tags": ["sixzytvhcohvwfagwocjmeo"], }, 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": "xmzhtnpafsw", - "tags": ["wtgblhglaoyhakzwxmeotto"], + "search": "sukquuqcovvfqx", + "tags": ["duuhboypon"], }, 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": "wgivqpfyduskwctwvkoj", - "tags": ["klmgtwoxkkjwkqdqxmfc"], + "search": "ebnpvj", + "tags": ["hcrogwbsrbxamht"], }, 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": "upndcsdcezu", - "tags": ["zptntggzxfpdjhb"], + "search": "fzvyjyffyixayro", + "tags": ["kudf"], }, 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": "ldglhhqvqags", - "tags": ["bskbjoppb"], + "search": "fjvvltkdstgdpzaoustlzrigr", + "tags": ["sixzytvhcohvwfagwocjmeo"], }, 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": "xmzhtnpafsw", - "tags": ["wtgblhglaoyhakzwxmeotto"], + "search": "sukquuqcovvfqx", + "tags": ["duuhboypon"], }, 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": "wgivqpfyduskwctwvkoj", - "tags": ["klmgtwoxkkjwkqdqxmfc"], + "search": "ebnpvj", + "tags": ["hcrogwbsrbxamht"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 34ac6e98..0a5d32f2 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="tenetur", + tracking_link_id="adipisci", 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="tenetur", + tracking_link_id="adipisci", 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="tenetur", + tracking_link_id="adipisci", 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="tenetur", + tracking_link_id="adipisci", 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="tenetur", + tracking_link_id="adipisci", 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="tenetur", + tracking_link_id="adipisci", 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="tenetur", + tracking_link_id="adipisci", 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="tenetur", + tracking_link_id="adipisci", 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="doloremque", + tracking_link_id="repellendus", 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="doloremque", + tracking_link_id="repellendus", 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="doloremque", + tracking_link_id="repellendus", 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="doloremque", + tracking_link_id="repellendus", 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="doloremque", + tracking_link_id="repellendus", 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="tenetur", + tracking_link_id="adipisci", 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="tenetur", + tracking_link_id="adipisci", 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="tenetur", + tracking_link_id="adipisci", 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="tenetur", + tracking_link_id="adipisci", 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="tenetur", + tracking_link_id="adipisci", 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="tenetur", + tracking_link_id="adipisci", 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="tenetur", + tracking_link_id="adipisci", 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="tenetur", + tracking_link_id="adipisci", 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="doloremque", + tracking_link_id="repellendus", 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="doloremque", + tracking_link_id="repellendus", 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="doloremque", + tracking_link_id="repellendus", 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="doloremque", + tracking_link_id="repellendus", 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="doloremque", + tracking_link_id="repellendus", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 24caea50..b9b9edf3 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="voluptatibus", + trial_link_id="fugit", 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="voluptatibus", + trial_link_id="fugit", 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="voluptatibus", + trial_link_id="fugit", 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="voluptatibus", + trial_link_id="fugit", 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="voluptatibus", + trial_link_id="fugit", 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="voluptatibus", + trial_link_id="fugit", 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="voluptatibus", + trial_link_id="fugit", 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="voluptatibus", + trial_link_id="fugit", 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="error", 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="error", 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="error", 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="error", 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="ea", + trial_link_id="nostrum", 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="ea", + trial_link_id="nostrum", 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="ea", + trial_link_id="nostrum", 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="ea", + trial_link_id="nostrum", 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="ea", + trial_link_id="nostrum", 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="sunt", + trial_link_id="voluptatibus", 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="sunt", + trial_link_id="voluptatibus", 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="sunt", + trial_link_id="voluptatibus", 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="sunt", + trial_link_id="voluptatibus", 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="sunt", + trial_link_id="voluptatibus", 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="voluptatibus", + trial_link_id="fugit", 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="voluptatibus", + trial_link_id="fugit", 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="voluptatibus", + trial_link_id="fugit", 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="voluptatibus", + trial_link_id="fugit", 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="voluptatibus", + trial_link_id="fugit", 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="voluptatibus", + trial_link_id="fugit", 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="voluptatibus", + trial_link_id="fugit", 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="voluptatibus", + trial_link_id="fugit", 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="error", 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="error", 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="error", 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="error", 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="ea", + trial_link_id="nostrum", 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="ea", + trial_link_id="nostrum", 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="ea", + trial_link_id="nostrum", 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="ea", + trial_link_id="nostrum", 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="ea", + trial_link_id="nostrum", 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="sunt", + trial_link_id="voluptatibus", 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="sunt", + trial_link_id="voluptatibus", 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="sunt", + trial_link_id="voluptatibus", 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="sunt", + trial_link_id="voluptatibus", 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="sunt", + trial_link_id="voluptatibus", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 13b37cc2..8b8de010 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="epycx", + name="qanyatag", ) 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="epycx", + name="qanyatag", ) 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="epycx", + name="qanyatag", ) 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="epycx", + name="qanyatag", ) @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="epycx", + name="qanyatag", ) 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="epycx", + name="qanyatag", ) 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="epycx", + name="qanyatag", ) 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="epycx", + name="qanyatag", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 9ff85c92011773ac85fd43a9c8fed24f1d09ed69 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 15:12:32 +0000 Subject: [PATCH 121/249] 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 | 40 +++---- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index d7f990df..f78f2367 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1f93b6a0a3af44bb6a0b7894a345bca4b5091fdbe2025521703812008dea1c5f.yml -openapi_spec_hash: f4561e05b56c2dacb2d7c5e61b7f10b3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8224d0f290595f1cc612a44cb14745189d03b5c3b6e93f525739336177a54a80.yml +openapi_spec_hash: 68b73188bf77a00227de2e20a5f71743 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 4bd7f9af..9273750f 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="doloribus", + message_id="dolor", 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="doloribus", + message_id="dolor", 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="doloribus", + message_id="dolor", 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="doloribus", + message_id="dolor", 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="doloribus", + message_id="dolor", 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="doloribus", + message_id="dolor", 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="doloribus", + message_id="dolor", 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="doloribus", + message_id="dolor", 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="doloribus", + message_id="dolor", 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="doloribus", + message_id="dolor", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 9f9b1937..126fe602 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="modi", 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="modi", 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="modi", 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="modi", 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="modi", 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="modi", 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="modi", 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="modi", 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="modi", 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="modi", 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="modi", 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="modi", 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="modi", 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="modi", 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="modi", 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="modi", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index c2104903..8912b788 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="animi", + post_id="repellat", 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="animi", + post_id="repellat", 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="animi", + post_id="repellat", 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="animi", + post_id="repellat", 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="animi", + post_id="repellat", 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="animi", + post_id="repellat", 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="animi", + post_id="repellat", 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="animi", + post_id="repellat", 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="animi", + post_id="repellat", 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="animi", + post_id="repellat", 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="animi", + post_id="repellat", 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="animi", + post_id="repellat", 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="animi", + post_id="repellat", 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="animi", + post_id="repellat", 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="animi", + post_id="repellat", 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="animi", + post_id="repellat", 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="animi", + post_id="repellat", 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="animi", + post_id="repellat", 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="animi", + post_id="repellat", 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="animi", + post_id="repellat", 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 a62ccbd3..7549791e 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 ea214c23..506c2ed9 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + story_id="et", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 0b8f88f0..871b7ba7 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", + "nulla", ) 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", + "nulla", ) 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", + "nulla", ) 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", + "nulla", ) 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", + "nulla", ) 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", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 983f20a3..442ccef1 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="aut", + auth_id="adipisci", + auth_type="email_password", + cookies="nobis", custom_proxy={ "host": "proxy.example.com", - "password": "PV]t%g^e8c>p", + "password": "iMAw[^Dh", "port": 8080, - "username": "fuga", + "username": "eius", }, - email="felicia.conroy@example.org", + email="tavares.parisian@example.com", force_connect=False, - name="libero", - password=";I>RKQ8FaS;I2'~a'", + name="qui", + password='p:FIuSeR"V:V!j0\\%c', proxy_country="uk", - user_agent="sit", - xbc="sint", + user_agent="iusto", + xbc="facere", ) 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="aut", + auth_id="adipisci", + auth_type="email_password", + cookies="nobis", custom_proxy={ "host": "proxy.example.com", - "password": "PV]t%g^e8c>p", + "password": "iMAw[^Dh", "port": 8080, - "username": "fuga", + "username": "eius", }, - email="felicia.conroy@example.org", + email="tavares.parisian@example.com", force_connect=False, - name="libero", - password=";I>RKQ8FaS;I2'~a'", + name="qui", + password='p:FIuSeR"V:V!j0\\%c', proxy_country="uk", - user_agent="sit", - xbc="sint", + user_agent="iusto", + xbc="facere", ) 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 3597ede6..9249f386 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 280e3de9..583d8ad4 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="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="comments", + 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 08563c72..9b9062f8 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": ["gin"]}, + filter={"tags": ["zmdxdgbreiuypwiaj"]}, 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="nemo", + smart_link_id="harum", ) 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="nemo", + smart_link_id="harum", 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="nemo", + smart_link_id="harum", ) 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="nemo", + smart_link_id="harum", ) 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="qui", + smart_link_id="odit", ) 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="qui", + smart_link_id="odit", 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="qui", + smart_link_id="odit", ) 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="qui", + smart_link_id="odit", ) 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="facilis", + smart_link_id="vel", ) 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="facilis", + smart_link_id="vel", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="facilis", + smart_link_id="vel", ) assert response.is_closed is True @@ -359,7 +359,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="facilis", + smart_link_id="vel", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="dolor", + smart_link_id="repudiandae", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="dolor", + smart_link_id="repudiandae", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="dolor", + smart_link_id="repudiandae", ) assert response.is_closed is True @@ -412,7 +412,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="dolor", + smart_link_id="repudiandae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="similique", + smart_link_id="dignissimos", ) assert smart_link is None @@ -442,7 +442,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="similique", + smart_link_id="dignissimos", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="similique", + smart_link_id="dignissimos", ) assert response.is_closed is True @@ -465,7 +465,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="similique", + smart_link_id="dignissimos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="animi", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="animi", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="animi", ) assert response.is_closed is True @@ -517,7 +517,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="animi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["gin"]}, + filter={"tags": ["zmdxdgbreiuypwiaj"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="nemo", + smart_link_id="harum", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="nemo", + smart_link_id="harum", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="nemo", + smart_link_id="harum", ) assert response.is_closed is True @@ -756,7 +756,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="nemo", + smart_link_id="harum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="odit", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="odit", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="odit", ) assert response.is_closed is True @@ -814,7 +814,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="odit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="facilis", + smart_link_id="vel", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="facilis", + smart_link_id="vel", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="facilis", + smart_link_id="vel", ) assert response.is_closed is True @@ -873,7 +873,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="facilis", + smart_link_id="vel", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="dolor", + smart_link_id="repudiandae", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="dolor", + smart_link_id="repudiandae", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="dolor", + smart_link_id="repudiandae", ) assert response.is_closed is True @@ -926,7 +926,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="dolor", + smart_link_id="repudiandae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="similique", + smart_link_id="dignissimos", ) assert smart_link is None @@ -956,7 +956,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="similique", + smart_link_id="dignissimos", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="similique", + smart_link_id="dignissimos", ) assert response.is_closed is True @@ -979,7 +979,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="similique", + smart_link_id="dignissimos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="animi", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="animi", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="animi", ) assert response.is_closed is True @@ -1031,7 +1031,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="animi", ) 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 4fc06600..19476a31 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": "fzvyjyffyixayro", - "tags": ["kudf"], + "search": "aritwfubzrkbnbvvw", + "tags": ["d"], }, 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": "fjvvltkdstgdpzaoustlzrigr", - "tags": ["sixzytvhcohvwfagwocjmeo"], + "search": "ibyqclqvuyigoa", + "tags": ["ylgwykubcyykyxk"], }, 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": "sukquuqcovvfqx", - "tags": ["duuhboypon"], + "include_smart_links": True, + "search": "nvpekdmg", + "tags": ["aalrcwsb"], }, 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": "ebnpvj", - "tags": ["hcrogwbsrbxamht"], + "include_smart_links": True, + "search": "lhgpyppovvzddmjw", + "tags": ["zrgcbhgjevbtmuzgxnra"], }, 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": "fzvyjyffyixayro", - "tags": ["kudf"], + "search": "aritwfubzrkbnbvvw", + "tags": ["d"], }, 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": "fjvvltkdstgdpzaoustlzrigr", - "tags": ["sixzytvhcohvwfagwocjmeo"], + "search": "ibyqclqvuyigoa", + "tags": ["ylgwykubcyykyxk"], }, 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": "sukquuqcovvfqx", - "tags": ["duuhboypon"], + "include_smart_links": True, + "search": "nvpekdmg", + "tags": ["aalrcwsb"], }, 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": "ebnpvj", - "tags": ["hcrogwbsrbxamht"], + "include_smart_links": True, + "search": "lhgpyppovvzddmjw", + "tags": ["zrgcbhgjevbtmuzgxnra"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 0a5d32f2..0cca4f15 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="adipisci", + 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="adipisci", + 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="adipisci", + 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="adipisci", + 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="adipisci", + 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="adipisci", + 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="adipisci", + 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="adipisci", + 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="esse", + tracking_link_id="excepturi", 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="excepturi", 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="excepturi", 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="excepturi", 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="excepturi", 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="adipisci", + 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="adipisci", + 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="adipisci", + 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="adipisci", + 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="adipisci", + 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="adipisci", + 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="adipisci", + 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="adipisci", + 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="esse", + tracking_link_id="excepturi", 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="excepturi", 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="excepturi", 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="excepturi", 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="excepturi", 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + tracking_link_id="tempore", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index b9b9edf3..5d400d76 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="fugit", + trial_link_id="eaque", 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="fugit", + trial_link_id="eaque", 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="fugit", + trial_link_id="eaque", 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="fugit", + trial_link_id="eaque", 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="fugit", + trial_link_id="eaque", 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="fugit", + trial_link_id="eaque", 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="fugit", + trial_link_id="eaque", 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="fugit", + trial_link_id="eaque", 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="error", + trial_link_id="eaque", 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="error", + trial_link_id="eaque", 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="error", + trial_link_id="eaque", 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="error", + trial_link_id="eaque", 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="nostrum", + 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="nostrum", + 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="nostrum", + 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="nostrum", + 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="nostrum", + 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="voluptatibus", + trial_link_id="qui", 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="voluptatibus", + trial_link_id="qui", 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="voluptatibus", + trial_link_id="qui", 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="voluptatibus", + trial_link_id="qui", 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="voluptatibus", + trial_link_id="qui", 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="fugit", + trial_link_id="eaque", 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="fugit", + trial_link_id="eaque", 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="fugit", + trial_link_id="eaque", 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="fugit", + trial_link_id="eaque", 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="fugit", + trial_link_id="eaque", 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="fugit", + trial_link_id="eaque", 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="fugit", + trial_link_id="eaque", 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="fugit", + trial_link_id="eaque", 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="error", + trial_link_id="eaque", 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="error", + trial_link_id="eaque", 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="error", + trial_link_id="eaque", 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="error", + trial_link_id="eaque", 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="nostrum", + 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="nostrum", + 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="nostrum", + 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="nostrum", + 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="nostrum", + 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="voluptatibus", + trial_link_id="qui", 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="voluptatibus", + trial_link_id="qui", 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="voluptatibus", + trial_link_id="qui", 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="voluptatibus", + trial_link_id="qui", 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="voluptatibus", + trial_link_id="qui", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 8b8de010..7a731849 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="qanyatag", + name="rdnrixfusibd", ) 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="qanyatag", + name="rdnrixfusibd", ) 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="qanyatag", + name="rdnrixfusibd", ) 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="qanyatag", + name="rdnrixfusibd", ) @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="qanyatag", + name="rdnrixfusibd", ) 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="qanyatag", + name="rdnrixfusibd", ) 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="qanyatag", + name="rdnrixfusibd", ) 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="qanyatag", + name="rdnrixfusibd", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 14e54524baf40026eae7cad18828f9e9a9246522 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 17:12:32 +0000 Subject: [PATCH 122/249] 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 | 40 +++---- 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 | 68 ++++++------ tests/api_resources/test_user_lists.py | 16 +-- 15 files changed, 248 insertions(+), 248 deletions(-) diff --git a/.stats.yml b/.stats.yml index f78f2367..1e965c94 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8224d0f290595f1cc612a44cb14745189d03b5c3b6e93f525739336177a54a80.yml -openapi_spec_hash: 68b73188bf77a00227de2e20a5f71743 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6786de10c7755940102162422e0fc9f70007d21547f12cf6343bd97d208d1747.yml +openapi_spec_hash: cec6460a00df1ee2aa6eee064e79020b config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 9273750f..49240792 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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 126fe602..962377d4 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="modi", + list_id="similique", 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="modi", + list_id="similique", 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="modi", + list_id="similique", 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="modi", + list_id="similique", 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="modi", + list_id="similique", 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="modi", + list_id="similique", 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="modi", + list_id="similique", 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="modi", + list_id="similique", 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="modi", + list_id="similique", 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="modi", + list_id="similique", 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="modi", + list_id="similique", 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="modi", + list_id="similique", 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="modi", + list_id="similique", 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="modi", + list_id="similique", 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="modi", + list_id="similique", 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="modi", + list_id="similique", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 8912b788..c7066f7e 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="repellat", + post_id="illum", 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="repellat", + post_id="illum", 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="repellat", + post_id="illum", 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="repellat", + post_id="illum", 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="repellat", + post_id="illum", 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="repellat", + post_id="illum", 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="repellat", + post_id="illum", 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="repellat", + post_id="illum", 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="repellat", + post_id="illum", 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="repellat", + post_id="illum", 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="repellat", + post_id="illum", 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="repellat", + post_id="illum", 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="repellat", + post_id="illum", 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="repellat", + post_id="illum", 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="repellat", + post_id="illum", 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="repellat", + post_id="illum", 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="repellat", + post_id="illum", 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="repellat", + post_id="illum", 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="repellat", + post_id="illum", 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="repellat", + post_id="illum", 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 b5f3d61a..2ced6cb5 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 506c2ed9..44e9daf5 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="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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + story_id="unde", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 871b7ba7..49b922c5 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( - "nulla", + "sunt", ) 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( - "nulla", + "sunt", ) 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( - "nulla", + "sunt", ) 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( - "nulla", + "sunt", ) 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( - "nulla", + "sunt", ) 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( - "nulla", + "sunt", ) 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 442ccef1..b853f159 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="adipisci", + auth_id="molestias", auth_type="email_password", - cookies="nobis", + cookies="doloremque", custom_proxy={ "host": "proxy.example.com", - "password": "iMAw[^Dh", + "password": 'Zk None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="adipisci", + auth_id="molestias", auth_type="email_password", - cookies="nobis", + cookies="doloremque", custom_proxy={ "host": "proxy.example.com", - "password": "iMAw[^Dh", + "password": 'Zk None: from_id=123, limit=10, skip_users="all", - type="all", + 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="all", + type="likes", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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 9b9062f8..d657bcef 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": ["zmdxdgbreiuypwiaj"]}, + filter={"tags": ["vkycd"]}, 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="harum", + smart_link_id="necessitatibus", ) 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="harum", + smart_link_id="necessitatibus", 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="harum", + smart_link_id="necessitatibus", ) 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="harum", + smart_link_id="necessitatibus", ) 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="odit", + smart_link_id="facilis", ) 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="odit", + smart_link_id="facilis", 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="odit", + smart_link_id="facilis", ) 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="odit", + smart_link_id="facilis", ) 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="vel", + smart_link_id="nisi", ) 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="vel", + smart_link_id="nisi", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="vel", + smart_link_id="nisi", ) assert response.is_closed is True @@ -359,7 +359,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="vel", + smart_link_id="nisi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="totam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="totam", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="totam", ) assert response.is_closed is True @@ -412,7 +412,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="totam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="dignissimos", + smart_link_id="tempore", ) assert smart_link is None @@ -442,7 +442,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="dignissimos", + smart_link_id="tempore", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="dignissimos", + smart_link_id="tempore", ) assert response.is_closed is True @@ -465,7 +465,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="dignissimos", + smart_link_id="tempore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="animi", + smart_link_id="aut", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="animi", + smart_link_id="aut", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="animi", + smart_link_id="aut", ) assert response.is_closed is True @@ -517,7 +517,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="animi", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["zmdxdgbreiuypwiaj"]}, + filter={"tags": ["vkycd"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="harum", + smart_link_id="necessitatibus", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="harum", + smart_link_id="necessitatibus", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="harum", + smart_link_id="necessitatibus", ) assert response.is_closed is True @@ -756,7 +756,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="harum", + smart_link_id="necessitatibus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="odit", + smart_link_id="facilis", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="odit", + smart_link_id="facilis", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="odit", + smart_link_id="facilis", ) assert response.is_closed is True @@ -814,7 +814,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="odit", + smart_link_id="facilis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="vel", + smart_link_id="nisi", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="vel", + smart_link_id="nisi", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="vel", + smart_link_id="nisi", ) assert response.is_closed is True @@ -873,7 +873,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="vel", + smart_link_id="nisi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="totam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="totam", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="totam", ) assert response.is_closed is True @@ -926,7 +926,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="totam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="dignissimos", + smart_link_id="tempore", ) assert smart_link is None @@ -956,7 +956,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="dignissimos", + smart_link_id="tempore", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="dignissimos", + smart_link_id="tempore", ) assert response.is_closed is True @@ -979,7 +979,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="dignissimos", + smart_link_id="tempore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="animi", + smart_link_id="aut", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="animi", + smart_link_id="aut", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="animi", + smart_link_id="aut", ) assert response.is_closed is True @@ -1031,7 +1031,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="animi", + 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 19476a31..458958e9 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": "aritwfubzrkbnbvvw", - "tags": ["d"], + "search": "mua", + "tags": ["ojutlnpupihmbwmkpq"], }, 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": "ibyqclqvuyigoa", - "tags": ["ylgwykubcyykyxk"], + "search": "zkqewkdzcxle", + "tags": ["gmolmlhhehcvkqr"], }, 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": "nvpekdmg", - "tags": ["aalrcwsb"], + "include_smart_links": False, + "search": "xfwobrobnremporagaqyzxu", + "tags": ["pvyzqfu"], }, 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": "lhgpyppovvzddmjw", - "tags": ["zrgcbhgjevbtmuzgxnra"], + "search": "kuaytopguhqkav", + "tags": ["bdnfwiujsisxksfhsbk"], }, 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": "aritwfubzrkbnbvvw", - "tags": ["d"], + "search": "mua", + "tags": ["ojutlnpupihmbwmkpq"], }, 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": "ibyqclqvuyigoa", - "tags": ["ylgwykubcyykyxk"], + "search": "zkqewkdzcxle", + "tags": ["gmolmlhhehcvkqr"], }, 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": "nvpekdmg", - "tags": ["aalrcwsb"], + "include_smart_links": False, + "search": "xfwobrobnremporagaqyzxu", + "tags": ["pvyzqfu"], }, 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": "lhgpyppovvzddmjw", - "tags": ["zrgcbhgjevbtmuzgxnra"], + "search": "kuaytopguhqkav", + "tags": ["bdnfwiujsisxksfhsbk"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 0cca4f15..40c9fea9 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="excepturi", + tracking_link_id="aut", 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="excepturi", + tracking_link_id="aut", 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="excepturi", + tracking_link_id="aut", 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="excepturi", + tracking_link_id="aut", 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="excepturi", + tracking_link_id="aut", 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="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="tempore", + 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="tempore", + 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="tempore", + 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="tempore", + 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="excepturi", + tracking_link_id="aut", 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="excepturi", + tracking_link_id="aut", 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="excepturi", + tracking_link_id="aut", 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="excepturi", + tracking_link_id="aut", 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="excepturi", + tracking_link_id="aut", 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="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="tempore", + 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="tempore", + 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="tempore", + 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="tempore", + tracking_link_id="ex", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 5d400d76..4d67e091 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="eaque", + trial_link_id="aliquid", 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="eaque", + trial_link_id="aliquid", 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="eaque", + trial_link_id="aliquid", 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="eaque", + trial_link_id="aliquid", 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="eaque", + trial_link_id="aliquid", 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="eaque", + trial_link_id="aliquid", 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="eaque", + trial_link_id="aliquid", 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="eaque", + trial_link_id="aliquid", 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="eaque", + trial_link_id="ratione", 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="eaque", + trial_link_id="ratione", 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="eaque", + trial_link_id="ratione", 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="eaque", + trial_link_id="ratione", account="", limit=10, offset=0, @@ -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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="eaque", + trial_link_id="aliquid", 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="eaque", + trial_link_id="aliquid", 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="eaque", + trial_link_id="aliquid", 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="eaque", + trial_link_id="aliquid", 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="eaque", + trial_link_id="aliquid", 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="eaque", + trial_link_id="aliquid", 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="eaque", + trial_link_id="aliquid", 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="eaque", + trial_link_id="aliquid", 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="eaque", + trial_link_id="ratione", 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="eaque", + trial_link_id="ratione", 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="eaque", + trial_link_id="ratione", 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="eaque", + trial_link_id="ratione", account="", limit=10, offset=0, @@ -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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + trial_link_id="aut", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 7a731849..0895132d 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="rdnrixfusibd", + name="nzhbjgzbhk", ) 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="rdnrixfusibd", + name="nzhbjgzbhk", ) 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="rdnrixfusibd", + name="nzhbjgzbhk", ) 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="rdnrixfusibd", + name="nzhbjgzbhk", ) @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="rdnrixfusibd", + name="nzhbjgzbhk", ) 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="rdnrixfusibd", + name="nzhbjgzbhk", ) 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="rdnrixfusibd", + name="nzhbjgzbhk", ) 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="rdnrixfusibd", + name="nzhbjgzbhk", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 96068ce6fe8c0fa94b475877815cc8c1670a48b3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 18:12:29 +0000 Subject: [PATCH 123/249] 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 | 100 +++++++++--------- 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, 270 insertions(+), 270 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1e965c94..e5138b83 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6786de10c7755940102162422e0fc9f70007d21547f12cf6343bd97d208d1747.yml -openapi_spec_hash: cec6460a00df1ee2aa6eee064e79020b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-92022c3895f0a70c61ed6ddfba512fbdb157a0ad81f85d800106698ba4113992.yml +openapi_spec_hash: 5d633bc1379bec65ccfc4270093f7703 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 49240792..10cfa2e6 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="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="doloremque", + 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="doloremque", + 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="doloremque", + 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="doloremque", + 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="doloremque", + 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="doloremque", + 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="doloremque", + 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="doloremque", + 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="doloremque", + 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 962377d4..6ff0e4c1 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="similique", + list_id="cumque", 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="similique", + list_id="cumque", 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="similique", + list_id="cumque", 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="similique", + list_id="cumque", 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="similique", + list_id="cumque", 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="similique", + list_id="cumque", 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="similique", + list_id="cumque", 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="similique", + list_id="cumque", 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="similique", + list_id="cumque", 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="similique", + list_id="cumque", 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="similique", + list_id="cumque", 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="similique", + list_id="cumque", 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="similique", + list_id="cumque", 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="similique", + list_id="cumque", 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="similique", + list_id="cumque", 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="similique", + list_id="cumque", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index c7066f7e..e4c41a54 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="illum", + post_id="pariatur", 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="illum", + post_id="pariatur", 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="illum", + post_id="pariatur", 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="illum", + post_id="pariatur", 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="illum", + post_id="pariatur", 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="illum", + post_id="pariatur", 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="illum", + post_id="pariatur", 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="illum", + post_id="pariatur", 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="illum", + post_id="pariatur", 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="illum", + post_id="pariatur", 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="illum", + post_id="pariatur", 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="illum", + post_id="pariatur", 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="illum", + post_id="pariatur", 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="illum", + post_id="pariatur", 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="illum", + post_id="pariatur", 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="illum", + post_id="pariatur", 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="illum", + post_id="pariatur", 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="illum", + post_id="pariatur", 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="illum", + post_id="pariatur", 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="illum", + post_id="pariatur", 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 7549791e..444937ba 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 2ced6cb5..b5f3d61a 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 9664075f..544df889 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 44e9daf5..57974b57 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="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="unde", + 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="unde", + 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="unde", + 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="unde", + 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="unde", + 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="unde", + 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="unde", + 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="unde", + 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="unde", + 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="unde", + 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="unde", + 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="unde", + 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="unde", + 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="unde", + 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="unde", + story_id="quod", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 49b922c5..80ac8179 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( - "sunt", + "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( - "sunt", + "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( - "sunt", + "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( - "sunt", + "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( - "sunt", + "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( - "sunt", + "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 b853f159..08ea1e67 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="molestias", - auth_type="email_password", - cookies="doloremque", + auth_id="culpa", + auth_type="mobile_app", + cookies="impedit", custom_proxy={ "host": "proxy.example.com", - "password": 'Zk None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="molestias", - auth_type="email_password", - cookies="doloremque", + auth_id="culpa", + auth_type="mobile_app", + cookies="impedit", custom_proxy={ "host": "proxy.example.com", - "password": 'Zk None: from_id=123, limit=10, skip_users="all", - type="likes", + 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="likes", + 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 65694e23..bd4f6161 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 d657bcef..ada460a5 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": ["vkycd"]}, + filter={"tags": ["lo"]}, 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="necessitatibus", + smart_link_id="dignissimos", ) 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="necessitatibus", + smart_link_id="dignissimos", 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="necessitatibus", + smart_link_id="dignissimos", ) 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="necessitatibus", + smart_link_id="dignissimos", ) 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="facilis", + smart_link_id="laudantium", ) 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="facilis", + smart_link_id="laudantium", 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="facilis", + smart_link_id="laudantium", ) 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="facilis", + smart_link_id="laudantium", ) 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="nisi", + smart_link_id="deleniti", ) 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="nisi", + smart_link_id="deleniti", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="deleniti", ) assert response.is_closed is True @@ -359,7 +359,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="deleniti", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="eum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="eum", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="eum", ) assert response.is_closed is True @@ -412,7 +412,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="eum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="tempore", + smart_link_id="veniam", ) assert smart_link is None @@ -442,7 +442,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="tempore", + smart_link_id="veniam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="tempore", + smart_link_id="veniam", ) assert response.is_closed is True @@ -465,7 +465,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="tempore", + smart_link_id="veniam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="beatae", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="beatae", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="beatae", ) assert response.is_closed is True @@ -517,7 +517,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="beatae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["vkycd"]}, + filter={"tags": ["lo"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="necessitatibus", + smart_link_id="dignissimos", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="necessitatibus", + smart_link_id="dignissimos", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="necessitatibus", + smart_link_id="dignissimos", ) assert response.is_closed is True @@ -756,7 +756,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="necessitatibus", + smart_link_id="dignissimos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="laudantium", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="laudantium", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="laudantium", ) assert response.is_closed is True @@ -814,7 +814,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="laudantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="deleniti", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="deleniti", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="deleniti", ) assert response.is_closed is True @@ -873,7 +873,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="deleniti", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="eum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="eum", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="eum", ) assert response.is_closed is True @@ -926,7 +926,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="eum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="tempore", + smart_link_id="veniam", ) assert smart_link is None @@ -956,7 +956,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="tempore", + smart_link_id="veniam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="tempore", + smart_link_id="veniam", ) assert response.is_closed is True @@ -979,7 +979,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="tempore", + smart_link_id="veniam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="beatae", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="beatae", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="beatae", ) assert response.is_closed is True @@ -1031,7 +1031,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="beatae", ) 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 458958e9..3aba98f9 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": "mua", - "tags": ["ojutlnpupihmbwmkpq"], + "search": "kezyxjahqelufyzbscm", + "tags": ["uqjaocwdxiufewaosa"], }, 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": "zkqewkdzcxle", - "tags": ["gmolmlhhehcvkqr"], + "search": "guwtayqskkznpcfm", + "tags": ["ccpmsv"], }, 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": "xfwobrobnremporagaqyzxu", - "tags": ["pvyzqfu"], + "include_smart_links": True, + "search": "xna", + "tags": ["buapshlq"], }, 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": "kuaytopguhqkav", - "tags": ["bdnfwiujsisxksfhsbk"], + "include_smart_links": False, + "search": "yzdllaucivdljmwr", + "tags": ["otuujen"], }, 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": "mua", - "tags": ["ojutlnpupihmbwmkpq"], + "search": "kezyxjahqelufyzbscm", + "tags": ["uqjaocwdxiufewaosa"], }, 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": "zkqewkdzcxle", - "tags": ["gmolmlhhehcvkqr"], + "search": "guwtayqskkznpcfm", + "tags": ["ccpmsv"], }, 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": "xfwobrobnremporagaqyzxu", - "tags": ["pvyzqfu"], + "include_smart_links": True, + "search": "xna", + "tags": ["buapshlq"], }, 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": "kuaytopguhqkav", - "tags": ["bdnfwiujsisxksfhsbk"], + "include_smart_links": False, + "search": "yzdllaucivdljmwr", + "tags": ["otuujen"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 40c9fea9..4f520509 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="fugit", + 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="fugit", + 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="fugit", + 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="fugit", + 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="fugit", + 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="fugit", + 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="fugit", + 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="fugit", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="ex", + 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="ex", + 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="ex", + 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="ex", + 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="ex", + 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="fugit", + 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="fugit", + 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="fugit", + 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="fugit", + 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="fugit", + 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="fugit", + 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="fugit", + 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="fugit", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="ex", + 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="ex", + 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="ex", + 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="ex", + 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="ex", + tracking_link_id="beatae", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 4d67e091..e645c9ef 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="aliquid", + trial_link_id="odio", 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="aliquid", + trial_link_id="odio", 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="aliquid", + trial_link_id="odio", 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="aliquid", + trial_link_id="odio", 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="aliquid", + trial_link_id="odio", 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="aliquid", + trial_link_id="odio", 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="aliquid", + trial_link_id="odio", 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="aliquid", + trial_link_id="odio", 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="ratione", + trial_link_id="sit", 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="ratione", + trial_link_id="sit", 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="ratione", + trial_link_id="sit", 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="ratione", + trial_link_id="sit", 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="numquam", 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="numquam", 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="numquam", 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="numquam", 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="numquam", 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="illum", 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="illum", 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="illum", 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="illum", 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="illum", 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="aliquid", + trial_link_id="odio", 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="aliquid", + trial_link_id="odio", 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="aliquid", + trial_link_id="odio", 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="aliquid", + trial_link_id="odio", 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="aliquid", + trial_link_id="odio", 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="aliquid", + trial_link_id="odio", 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="aliquid", + trial_link_id="odio", 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="aliquid", + trial_link_id="odio", 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="ratione", + trial_link_id="sit", 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="ratione", + trial_link_id="sit", 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="ratione", + trial_link_id="sit", 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="ratione", + trial_link_id="sit", 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="numquam", 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="numquam", 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="numquam", 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="numquam", 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="numquam", 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="illum", 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="illum", 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="illum", 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="illum", 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="illum", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 0895132d..1c454fe6 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="nzhbjgzbhk", + name="yaggbqcjoupimfeahlecakl", ) 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="nzhbjgzbhk", + name="yaggbqcjoupimfeahlecakl", ) 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="nzhbjgzbhk", + name="yaggbqcjoupimfeahlecakl", ) 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="nzhbjgzbhk", + name="yaggbqcjoupimfeahlecakl", ) @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="nzhbjgzbhk", + name="yaggbqcjoupimfeahlecakl", ) 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="nzhbjgzbhk", + name="yaggbqcjoupimfeahlecakl", ) 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="nzhbjgzbhk", + name="yaggbqcjoupimfeahlecakl", ) 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="nzhbjgzbhk", + name="yaggbqcjoupimfeahlecakl", ) @pytest.mark.skip(reason="Mock server tests are disabled") From a822c221e7d433bf7f36f2f608ec6ee2f4212fff Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 20:12:38 +0000 Subject: [PATCH 124/249] 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 | 40 +++---- tests/api_resources/test_notifications.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 +-- 13 files changed, 248 insertions(+), 248 deletions(-) diff --git a/.stats.yml b/.stats.yml index e5138b83..b634669c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-92022c3895f0a70c61ed6ddfba512fbdb157a0ad81f85d800106698ba4113992.yml -openapi_spec_hash: 5d633bc1379bec65ccfc4270093f7703 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-37b7959d91616cabf71fdc1661155c132919dbabb7f3d5c7e64427fe37b494bb.yml +openapi_spec_hash: a0fa6f8d80e3da0142334fdf75149107 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 10cfa2e6..cf951c48 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="mollitia", 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="mollitia", 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="mollitia", 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="mollitia", 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="mollitia", 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="mollitia", 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="mollitia", 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="mollitia", 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="mollitia", 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="mollitia", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 6ff0e4c1..977841df 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="cumque", + list_id="omnis", 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="cumque", + list_id="omnis", 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="cumque", + list_id="omnis", 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="cumque", + list_id="omnis", 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="cumque", + list_id="omnis", 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="cumque", + list_id="omnis", 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="cumque", + list_id="omnis", 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="cumque", + list_id="omnis", 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="cumque", + list_id="omnis", 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="cumque", + list_id="omnis", 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="cumque", + list_id="omnis", 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="cumque", + list_id="omnis", 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="cumque", + list_id="omnis", 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="cumque", + list_id="omnis", 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="cumque", + list_id="omnis", 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="cumque", + list_id="omnis", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index e4c41a54..5181ca06 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="pariatur", + post_id="cumque", 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="pariatur", + post_id="cumque", 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="pariatur", + post_id="cumque", 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="pariatur", + post_id="cumque", 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="pariatur", + post_id="cumque", 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="pariatur", + post_id="cumque", 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="pariatur", + post_id="cumque", 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="pariatur", + post_id="cumque", 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="pariatur", + post_id="cumque", 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="pariatur", + post_id="cumque", 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="pariatur", + post_id="cumque", 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="pariatur", + post_id="cumque", 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="pariatur", + post_id="cumque", 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="pariatur", + post_id="cumque", 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="pariatur", + post_id="cumque", 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="pariatur", + post_id="cumque", 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="pariatur", + post_id="cumque", 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="pariatur", + post_id="cumque", 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="pariatur", + post_id="cumque", 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="pariatur", + post_id="cumque", account="", ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 57974b57..c5c04e44 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="esse", 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="esse", 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="esse", 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="esse", 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="esse", 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="esse", 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="esse", 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="esse", 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="esse", 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="esse", 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="esse", 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="esse", 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="esse", 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="esse", 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="esse", 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="esse", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 80ac8179..ed1872b4 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", + "pariatur", ) 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", + "pariatur", ) 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", + "pariatur", ) 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", + "pariatur", ) 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", + "pariatur", ) 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", + "pariatur", ) 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 08ea1e67..631b4a37 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="culpa", + auth_id="earum", auth_type="mobile_app", - cookies="impedit", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "@2`(9W", + "password": "sK#rgl2,g{bs-p", "port": 8080, - "username": "aut", + "username": "rem", }, - email="elvie96@example.net", - force_connect=True, - name="explicabo", - password="4Z6e1d{0zh8T", + email="wstanton@example.net", + force_connect=False, + name="voluptas", + password="/|N&Aw]NBu|j6}*", proxy_country="uk", - user_agent="accusantium", - xbc="velit", + user_agent="qui", + xbc="odio", ) 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="culpa", + auth_id="earum", auth_type="mobile_app", - cookies="impedit", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "@2`(9W", + "password": "sK#rgl2,g{bs-p", "port": 8080, - "username": "aut", + "username": "rem", }, - email="elvie96@example.net", - force_connect=True, - name="explicabo", - password="4Z6e1d{0zh8T", + email="wstanton@example.net", + force_connect=False, + name="voluptas", + password="/|N&Aw]NBu|j6}*", proxy_country="uk", - user_agent="accusantium", - xbc="velit", + user_agent="qui", + xbc="odio", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 0f3980c1..583d8ad4 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="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="tips", + 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 ada460a5..c396e552 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": ["lo"]}, + filter={"tags": ["rtzcloqpgbelm"]}, 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="dignissimos", + smart_link_id="et", ) 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="dignissimos", + smart_link_id="et", 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="dignissimos", + smart_link_id="et", ) 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="dignissimos", + smart_link_id="et", ) 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="laudantium", + smart_link_id="pariatur", ) 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="laudantium", + smart_link_id="pariatur", 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="laudantium", + smart_link_id="pariatur", ) 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="laudantium", + smart_link_id="pariatur", ) 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="deleniti", + smart_link_id="ut", ) 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="deleniti", + smart_link_id="ut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="ut", ) assert response.is_closed is True @@ -359,7 +359,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="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="eum", + smart_link_id="temporibus", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="eum", + smart_link_id="temporibus", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="eum", + smart_link_id="temporibus", ) assert response.is_closed is True @@ -412,7 +412,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="eum", + smart_link_id="temporibus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="aut", ) assert smart_link is None @@ -442,7 +442,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="aut", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="aut", ) assert response.is_closed is True @@ -465,7 +465,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="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="beatae", + smart_link_id="tempore", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="beatae", + smart_link_id="tempore", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="beatae", + smart_link_id="tempore", ) assert response.is_closed is True @@ -517,7 +517,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="beatae", + smart_link_id="tempore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["lo"]}, + filter={"tags": ["rtzcloqpgbelm"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="dignissimos", + smart_link_id="et", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="dignissimos", + smart_link_id="et", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="dignissimos", + smart_link_id="et", ) assert response.is_closed is True @@ -756,7 +756,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="dignissimos", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="laudantium", + smart_link_id="pariatur", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="laudantium", + smart_link_id="pariatur", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="laudantium", + smart_link_id="pariatur", ) assert response.is_closed is True @@ -814,7 +814,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="laudantium", + smart_link_id="pariatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="ut", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="ut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="ut", ) assert response.is_closed is True @@ -873,7 +873,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="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="eum", + smart_link_id="temporibus", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="eum", + smart_link_id="temporibus", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="eum", + smart_link_id="temporibus", ) assert response.is_closed is True @@ -926,7 +926,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="eum", + smart_link_id="temporibus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="aut", ) assert smart_link is None @@ -956,7 +956,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="aut", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="aut", ) assert response.is_closed is True @@ -979,7 +979,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="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="beatae", + smart_link_id="tempore", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="beatae", + smart_link_id="tempore", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="beatae", + smart_link_id="tempore", ) assert response.is_closed is True @@ -1031,7 +1031,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="beatae", + smart_link_id="tempore", ) 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 3aba98f9..c0c7bdb3 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": "kezyxjahqelufyzbscm", - "tags": ["uqjaocwdxiufewaosa"], + "search": "ezkrclvairc", + "tags": ["ryjvcsbjnwvp"], }, 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": "guwtayqskkznpcfm", - "tags": ["ccpmsv"], + "search": "r", + "tags": ["f"], }, 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": "xna", - "tags": ["buapshlq"], + "include_smart_links": False, + "search": "sez", + "tags": ["qa"], }, 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": "yzdllaucivdljmwr", - "tags": ["otuujen"], + "search": "llzklsqgikxcsh", + "tags": ["sowlcdzyrved"], }, 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": "kezyxjahqelufyzbscm", - "tags": ["uqjaocwdxiufewaosa"], + "search": "ezkrclvairc", + "tags": ["ryjvcsbjnwvp"], }, 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": "guwtayqskkznpcfm", - "tags": ["ccpmsv"], + "search": "r", + "tags": ["f"], }, 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": "xna", - "tags": ["buapshlq"], + "include_smart_links": False, + "search": "sez", + "tags": ["qa"], }, 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": "yzdllaucivdljmwr", - "tags": ["otuujen"], + "search": "llzklsqgikxcsh", + "tags": ["sowlcdzyrved"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 4f520509..bde18909 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="rerum", + tracking_link_id="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + tracking_link_id="facilis", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index e645c9ef..5e7fde38 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="odio", + trial_link_id="sed", 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="odio", + trial_link_id="sed", 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="odio", + trial_link_id="sed", 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="odio", + trial_link_id="sed", 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="odio", + trial_link_id="sed", 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="odio", + trial_link_id="sed", 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="odio", + trial_link_id="sed", 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="odio", + trial_link_id="sed", 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="sit", + trial_link_id="atque", 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="sit", + trial_link_id="atque", 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="sit", + trial_link_id="atque", 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="sit", + trial_link_id="atque", 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="numquam", + trial_link_id="nemo", 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="numquam", + trial_link_id="nemo", 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="numquam", + trial_link_id="nemo", 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="numquam", + trial_link_id="nemo", 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="numquam", + trial_link_id="nemo", 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="odio", + trial_link_id="sed", 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="odio", + trial_link_id="sed", 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="odio", + trial_link_id="sed", 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="odio", + trial_link_id="sed", 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="odio", + trial_link_id="sed", 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="odio", + trial_link_id="sed", 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="odio", + trial_link_id="sed", 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="odio", + trial_link_id="sed", 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="sit", + trial_link_id="atque", 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="sit", + trial_link_id="atque", 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="sit", + trial_link_id="atque", 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="sit", + trial_link_id="atque", 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="numquam", + trial_link_id="nemo", 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="numquam", + trial_link_id="nemo", 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="numquam", + trial_link_id="nemo", 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="numquam", + trial_link_id="nemo", 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="numquam", + trial_link_id="nemo", 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + trial_link_id="aut", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 1c454fe6..73f20117 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="yaggbqcjoupimfeahlecakl", + name="ompcjcdz", ) 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="yaggbqcjoupimfeahlecakl", + name="ompcjcdz", ) 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="yaggbqcjoupimfeahlecakl", + name="ompcjcdz", ) 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="yaggbqcjoupimfeahlecakl", + name="ompcjcdz", ) @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="yaggbqcjoupimfeahlecakl", + name="ompcjcdz", ) 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="yaggbqcjoupimfeahlecakl", + name="ompcjcdz", ) 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="yaggbqcjoupimfeahlecakl", + name="ompcjcdz", ) 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="yaggbqcjoupimfeahlecakl", + name="ompcjcdz", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 84ef257f42d7c15262dc63d5869e9b48b8f1d62b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2026 14:12:35 +0000 Subject: [PATCH 125/249] 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_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, 266 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index b634669c..d6093b69 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-37b7959d91616cabf71fdc1661155c132919dbabb7f3d5c7e64427fe37b494bb.yml -openapi_spec_hash: a0fa6f8d80e3da0142334fdf75149107 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d9d5d63bf50cefcd1b34b0db850b5ba424342e6a1282e5ac9fc818ffdb871125.yml +openapi_spec_hash: 79a68d37405538eed9538c7014f48c08 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index cf951c48..ef5dfe06 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="mollitia", + message_id="perspiciatis", 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="mollitia", + message_id="perspiciatis", 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="mollitia", + message_id="perspiciatis", 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="mollitia", + message_id="perspiciatis", 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="mollitia", + message_id="perspiciatis", 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="mollitia", + message_id="perspiciatis", 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="mollitia", + message_id="perspiciatis", 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="mollitia", + message_id="perspiciatis", 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="mollitia", + message_id="perspiciatis", 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="mollitia", + message_id="perspiciatis", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 977841df..e44b782d 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="omnis", + list_id="error", 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="omnis", + list_id="error", 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="omnis", + list_id="error", 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="omnis", + list_id="error", 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="omnis", + list_id="error", 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="omnis", + list_id="error", 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="omnis", + list_id="error", 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="omnis", + list_id="error", 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="omnis", + list_id="error", 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="omnis", + list_id="error", 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="omnis", + list_id="error", 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="omnis", + list_id="error", 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="omnis", + list_id="error", 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="omnis", + list_id="error", 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="omnis", + list_id="error", 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="omnis", + list_id="error", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 5181ca06..a5fa7504 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="cumque", + post_id="nostrum", 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="cumque", + post_id="nostrum", 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="cumque", + post_id="nostrum", 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="cumque", + post_id="nostrum", 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="cumque", + post_id="nostrum", 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="cumque", + post_id="nostrum", 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="cumque", + post_id="nostrum", 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="cumque", + post_id="nostrum", 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="cumque", + post_id="nostrum", 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="cumque", + post_id="nostrum", 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="cumque", + post_id="nostrum", 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="cumque", + post_id="nostrum", 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="cumque", + post_id="nostrum", 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="cumque", + post_id="nostrum", 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="cumque", + post_id="nostrum", 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="cumque", + post_id="nostrum", 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="cumque", + post_id="nostrum", 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="cumque", + post_id="nostrum", 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="cumque", + post_id="nostrum", 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="cumque", + post_id="nostrum", 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 b5f3d61a..fc7b1635 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 544df889..9664075f 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 c5c04e44..09c67db6 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="esse", + path_story_id="consequatur", 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="esse", + path_story_id="consequatur", 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="esse", + path_story_id="consequatur", 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="esse", + path_story_id="consequatur", 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="esse", + story_id="consequatur", 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="esse", + story_id="consequatur", 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="esse", + story_id="consequatur", 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="esse", + story_id="consequatur", 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="esse", + path_story_id="consequatur", 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="esse", + path_story_id="consequatur", 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="esse", + path_story_id="consequatur", 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="esse", + path_story_id="consequatur", 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="esse", + story_id="consequatur", 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="esse", + story_id="consequatur", 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="esse", + story_id="consequatur", 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="esse", + story_id="consequatur", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index ed1872b4..650aef2a 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( - "pariatur", + "nihil", ) 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( - "pariatur", + "nihil", ) 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( - "pariatur", + "nihil", ) 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( - "pariatur", + "nihil", ) 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( - "pariatur", + "nihil", ) 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( - "pariatur", + "nihil", ) 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 631b4a37..ae6bfd87 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_type="mobile_app", - cookies="et", + auth_id="et", + auth_type="raw_data", + cookies="id", custom_proxy={ "host": "proxy.example.com", - "password": "sK#rgl2,g{bs-p", + "password": "5Wr!(laxjhj8Zkx", "port": 8080, - "username": "rem", + "username": "earum", }, - email="wstanton@example.net", - force_connect=False, - name="voluptas", - password="/|N&Aw]NBu|j6}*", - proxy_country="uk", - user_agent="qui", - xbc="odio", + email="cmoore@example.com", + force_connect=True, + name="sapiente", + password="~zcsRQCy\\3.dC$Og", + proxy_country="us", + user_agent="blanditiis", + 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="earum", - auth_type="mobile_app", - cookies="et", + auth_id="et", + auth_type="raw_data", + cookies="id", custom_proxy={ "host": "proxy.example.com", - "password": "sK#rgl2,g{bs-p", + "password": "5Wr!(laxjhj8Zkx", "port": 8080, - "username": "rem", + "username": "earum", }, - email="wstanton@example.net", - force_connect=False, - name="voluptas", - password="/|N&Aw]NBu|j6}*", - proxy_country="uk", - user_agent="qui", - xbc="odio", + email="cmoore@example.com", + force_connect=True, + name="sapiente", + password="~zcsRQCy\\3.dC$Og", + proxy_country="us", + user_agent="blanditiis", + 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 9249f386..3597ede6 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 583d8ad4..280e3de9 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="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="all", + 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 bd4f6161..65694e23 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 c396e552..d4d7dae3 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": ["rtzcloqpgbelm"]}, + filter={"tags": ["awghpuvyu"]}, 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="et", + smart_link_id="quo", ) 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="et", + smart_link_id="quo", 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="et", + smart_link_id="quo", ) 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="et", + smart_link_id="quo", ) 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="pariatur", + smart_link_id="autem", ) 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="pariatur", + smart_link_id="autem", 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="pariatur", + smart_link_id="autem", ) 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="pariatur", + smart_link_id="autem", ) 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="ut", + smart_link_id="iste", ) 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="ut", + smart_link_id="iste", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="ut", + smart_link_id="iste", ) assert response.is_closed is True @@ -359,7 +359,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="ut", + smart_link_id="iste", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="temporibus", + smart_link_id="est", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="temporibus", + smart_link_id="est", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="temporibus", + smart_link_id="est", ) assert response.is_closed is True @@ -412,7 +412,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="temporibus", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="ea", ) assert smart_link is None @@ -442,7 +442,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="ea", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="ea", ) assert response.is_closed is True @@ -465,7 +465,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="ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="tempore", + smart_link_id="eos", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="tempore", + smart_link_id="eos", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="tempore", + smart_link_id="eos", ) assert response.is_closed is True @@ -517,7 +517,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="tempore", + smart_link_id="eos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["rtzcloqpgbelm"]}, + filter={"tags": ["awghpuvyu"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="quo", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="quo", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="quo", ) assert response.is_closed is True @@ -756,7 +756,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="quo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="autem", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="autem", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="autem", ) assert response.is_closed is True @@ -814,7 +814,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="autem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="ut", + smart_link_id="iste", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="ut", + smart_link_id="iste", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="ut", + smart_link_id="iste", ) assert response.is_closed is True @@ -873,7 +873,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="ut", + smart_link_id="iste", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="temporibus", + smart_link_id="est", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="temporibus", + smart_link_id="est", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="temporibus", + smart_link_id="est", ) assert response.is_closed is True @@ -926,7 +926,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="temporibus", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="ea", ) assert smart_link is None @@ -956,7 +956,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="ea", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="ea", ) assert response.is_closed is True @@ -979,7 +979,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="ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="tempore", + smart_link_id="eos", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="tempore", + smart_link_id="eos", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="tempore", + smart_link_id="eos", ) assert response.is_closed is True @@ -1031,7 +1031,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="tempore", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index c0c7bdb3..849680c4 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": "ezkrclvairc", - "tags": ["ryjvcsbjnwvp"], + "search": "xuenuwhvxbujssvahpjnnj", + "tags": ["msonrwvulasku"], }, 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": "r", - "tags": ["f"], + "search": "utawtycz", + "tags": ["btjc"], }, 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": "sez", - "tags": ["qa"], + "search": "flz", + "tags": ["ltcnlmyjccgagtejsbqd"], }, 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": "llzklsqgikxcsh", - "tags": ["sowlcdzyrved"], + "include_smart_links": True, + "search": "rjxsohtuxaiarzaiduaxn", + "tags": ["shuoaegvxfvekkqxiym"], }, 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": "ezkrclvairc", - "tags": ["ryjvcsbjnwvp"], + "search": "xuenuwhvxbujssvahpjnnj", + "tags": ["msonrwvulasku"], }, 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": "r", - "tags": ["f"], + "search": "utawtycz", + "tags": ["btjc"], }, 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": "sez", - "tags": ["qa"], + "search": "flz", + "tags": ["ltcnlmyjccgagtejsbqd"], }, 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": "llzklsqgikxcsh", - "tags": ["sowlcdzyrved"], + "include_smart_links": True, + "search": "rjxsohtuxaiarzaiduaxn", + "tags": ["shuoaegvxfvekkqxiym"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index bde18909..cb6bdbdd 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="repudiandae", + tracking_link_id="sed", 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="repudiandae", + tracking_link_id="sed", 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="repudiandae", + tracking_link_id="sed", 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="repudiandae", + tracking_link_id="sed", 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="repudiandae", + tracking_link_id="sed", 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="repudiandae", + tracking_link_id="sed", 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="repudiandae", + tracking_link_id="sed", 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="repudiandae", + tracking_link_id="sed", 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="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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="repudiandae", + tracking_link_id="sed", 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="repudiandae", + tracking_link_id="sed", 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="repudiandae", + tracking_link_id="sed", 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="repudiandae", + tracking_link_id="sed", 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="repudiandae", + tracking_link_id="sed", 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="repudiandae", + tracking_link_id="sed", 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="repudiandae", + tracking_link_id="sed", 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="repudiandae", + tracking_link_id="sed", 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="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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + tracking_link_id="eos", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 5e7fde38..251966c3 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="sed", + trial_link_id="pariatur", 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="sed", + trial_link_id="pariatur", 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="sed", + trial_link_id="pariatur", 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="sed", + trial_link_id="pariatur", 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="sed", + trial_link_id="pariatur", 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="sed", + trial_link_id="pariatur", 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="sed", + trial_link_id="pariatur", 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="sed", + trial_link_id="pariatur", 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="atque", + trial_link_id="quia", 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="atque", + trial_link_id="quia", 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="atque", + trial_link_id="quia", 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="atque", + trial_link_id="quia", 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="aut", + trial_link_id="officiis", 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="officiis", 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="officiis", 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="officiis", 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="officiis", 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="sed", + trial_link_id="pariatur", 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="sed", + trial_link_id="pariatur", 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="sed", + trial_link_id="pariatur", 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="sed", + trial_link_id="pariatur", 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="sed", + trial_link_id="pariatur", 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="sed", + trial_link_id="pariatur", 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="sed", + trial_link_id="pariatur", 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="sed", + trial_link_id="pariatur", 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="atque", + trial_link_id="quia", 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="atque", + trial_link_id="quia", 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="atque", + trial_link_id="quia", 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="atque", + trial_link_id="quia", 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="aut", + trial_link_id="officiis", 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="officiis", 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="officiis", 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="officiis", 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="officiis", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 73f20117..0a1eb65f 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="ompcjcdz", + name="eqactykwchrcapniluklxuxge", ) 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="ompcjcdz", + name="eqactykwchrcapniluklxuxge", ) 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="ompcjcdz", + name="eqactykwchrcapniluklxuxge", ) 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="ompcjcdz", + name="eqactykwchrcapniluklxuxge", ) @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="ompcjcdz", + name="eqactykwchrcapniluklxuxge", ) 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="ompcjcdz", + name="eqactykwchrcapniluklxuxge", ) 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="ompcjcdz", + name="eqactykwchrcapniluklxuxge", ) 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="ompcjcdz", + name="eqactykwchrcapniluklxuxge", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 6fd0c3711c712c47f78cae2359ee20eca694e26f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 2 Jul 2026 00:12:38 +0000 Subject: [PATCH 126/249] 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 | 48 ++++----- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.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 | 72 ++++++------- tests/api_resources/test_user_lists.py | 16 +-- 16 files changed, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index d6093b69..21f3b894 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d9d5d63bf50cefcd1b34b0db850b5ba424342e6a1282e5ac9fc818ffdb871125.yml -openapi_spec_hash: 79a68d37405538eed9538c7014f48c08 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e7f2df49856fb570f5681770ba02623bf433297181ed53576538e20ff1dcee36.yml +openapi_spec_hash: 5926300bb0ec7adf349ccb731647bce9 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index ef5dfe06..6efc6a83 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="perspiciatis", + 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="perspiciatis", + 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="perspiciatis", + 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="perspiciatis", + 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="perspiciatis", + 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="perspiciatis", + 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="perspiciatis", + 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="perspiciatis", + 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="perspiciatis", + 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="perspiciatis", + 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 e44b782d..f6545352 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="error", + list_id="odit", 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="error", + list_id="odit", 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="error", + list_id="odit", 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="error", + list_id="odit", 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="error", + list_id="odit", 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="error", + list_id="odit", 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="error", + list_id="odit", 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="error", + list_id="odit", 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="error", + list_id="odit", 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="error", + list_id="odit", 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="error", + list_id="odit", 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="error", + list_id="odit", 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="error", + list_id="odit", 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="error", + list_id="odit", 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="error", + list_id="odit", 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="error", + list_id="odit", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index a5fa7504..5c0e7b6d 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="nostrum", + post_id="officiis", 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="nostrum", + post_id="officiis", 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="nostrum", + post_id="officiis", 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="nostrum", + post_id="officiis", 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="nostrum", + post_id="officiis", 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="nostrum", + post_id="officiis", 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="nostrum", + post_id="officiis", 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="nostrum", + post_id="officiis", 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="nostrum", + post_id="officiis", 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="nostrum", + post_id="officiis", 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="nostrum", + post_id="officiis", 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="nostrum", + post_id="officiis", 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="nostrum", + post_id="officiis", 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="nostrum", + post_id="officiis", 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="nostrum", + post_id="officiis", 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="nostrum", + post_id="officiis", 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="nostrum", + post_id="officiis", 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="nostrum", + post_id="officiis", 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="nostrum", + post_id="officiis", 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="nostrum", + post_id="officiis", 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 444937ba..aa735c97 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 fc7b1635..9c80483e 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 09c67db6..ddd9b439 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="consequatur", + path_story_id="eos", 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="consequatur", + path_story_id="eos", 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="consequatur", + path_story_id="eos", 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="consequatur", + path_story_id="eos", 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="consequatur", + story_id="eos", 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="consequatur", + story_id="eos", 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="consequatur", + story_id="eos", 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="consequatur", + story_id="eos", 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="consequatur", + path_story_id="eos", 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="consequatur", + path_story_id="eos", 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="consequatur", + path_story_id="eos", 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="consequatur", + path_story_id="eos", 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="consequatur", + story_id="eos", 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="consequatur", + story_id="eos", 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="consequatur", + story_id="eos", 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="consequatur", + story_id="eos", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 650aef2a..90792391 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( - "nihil", + "fugit", ) 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( - "nihil", + "fugit", ) 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( - "nihil", + "fugit", ) 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( - "nihil", + "fugit", ) 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( - "nihil", + "fugit", ) 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( - "nihil", + "fugit", ) 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 ae6bfd87..af34e4e0 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_type="raw_data", - cookies="id", + auth_id="ut", + auth_type="email_password", + cookies="ducimus", custom_proxy={ "host": "proxy.example.com", - "password": "5Wr!(laxjhj8Zkx", + "password": "#wpJs],[sf", "port": 8080, - "username": "earum", + "username": "ducimus", }, - email="cmoore@example.com", - force_connect=True, - name="sapiente", - password="~zcsRQCy\\3.dC$Og", - proxy_country="us", - user_agent="blanditiis", - xbc="soluta", + email="murphy.berniece@example.org", + force_connect=False, + name="et", + password="}z/h07JoUwi", + proxy_country="uk", + user_agent="voluptatem", + xbc="velit", ) 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_type="raw_data", - cookies="id", + auth_id="ut", + auth_type="email_password", + cookies="ducimus", custom_proxy={ "host": "proxy.example.com", - "password": "5Wr!(laxjhj8Zkx", + "password": "#wpJs],[sf", "port": 8080, - "username": "earum", + "username": "ducimus", }, - email="cmoore@example.com", - force_connect=True, - name="sapiente", - password="~zcsRQCy\\3.dC$Og", - proxy_country="us", - user_agent="blanditiis", - xbc="soluta", + email="murphy.berniece@example.org", + force_connect=False, + name="et", + password="}z/h07JoUwi", + proxy_country="uk", + user_agent="voluptatem", + xbc="velit", ) 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 3597ede6..9249f386 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 280e3de9..413a2df6 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="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="comments", + 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 d4d7dae3..a6108878 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": ["awghpuvyu"]}, + filter={"tags": ["znicjggw"]}, 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="quo", + smart_link_id="voluptas", ) 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="quo", + smart_link_id="voluptas", 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="quo", + smart_link_id="voluptas", ) 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="quo", + smart_link_id="voluptas", ) 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="autem", + smart_link_id="aut", ) 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="autem", + smart_link_id="aut", 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="autem", + smart_link_id="aut", ) 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="autem", + smart_link_id="aut", ) 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="iste", + smart_link_id="quisquam", ) 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="iste", + smart_link_id="quisquam", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="iste", + smart_link_id="quisquam", ) assert response.is_closed is True @@ -359,7 +359,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="iste", + smart_link_id="quisquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="molestiae", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="molestiae", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="molestiae", ) assert response.is_closed is True @@ -412,7 +412,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="molestiae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="ea", + smart_link_id="occaecati", ) assert smart_link is None @@ -442,7 +442,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="ea", + smart_link_id="occaecati", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="ea", + smart_link_id="occaecati", ) assert response.is_closed is True @@ -465,7 +465,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="ea", + smart_link_id="occaecati", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="eos", + smart_link_id="est", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="eos", + smart_link_id="est", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="eos", + smart_link_id="est", ) assert response.is_closed is True @@ -517,7 +517,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="eos", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["awghpuvyu"]}, + filter={"tags": ["znicjggw"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="quo", + smart_link_id="voluptas", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="quo", + smart_link_id="voluptas", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="quo", + smart_link_id="voluptas", ) assert response.is_closed is True @@ -756,7 +756,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="quo", + smart_link_id="voluptas", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="autem", + smart_link_id="aut", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="autem", + smart_link_id="aut", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="autem", + smart_link_id="aut", ) assert response.is_closed is True @@ -814,7 +814,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="autem", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="iste", + smart_link_id="quisquam", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="iste", + smart_link_id="quisquam", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="iste", + smart_link_id="quisquam", ) assert response.is_closed is True @@ -873,7 +873,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="iste", + smart_link_id="quisquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="molestiae", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="molestiae", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="molestiae", ) assert response.is_closed is True @@ -926,7 +926,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="molestiae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="ea", + smart_link_id="occaecati", ) assert smart_link is None @@ -956,7 +956,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="ea", + smart_link_id="occaecati", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="ea", + smart_link_id="occaecati", ) assert response.is_closed is True @@ -979,7 +979,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="ea", + smart_link_id="occaecati", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="eos", + smart_link_id="est", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="eos", + smart_link_id="est", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="eos", + smart_link_id="est", ) assert response.is_closed is True @@ -1031,7 +1031,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="eos", + 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 849680c4..82a59b40 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": "xuenuwhvxbujssvahpjnnj", - "tags": ["msonrwvulasku"], + "search": "dmekmsoneozgzmtwt", + "tags": ["adwv"], }, 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": "utawtycz", - "tags": ["btjc"], + "search": "zubcbzud", + "tags": ["xabdaemdbhafx"], }, 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": "flz", - "tags": ["ltcnlmyjccgagtejsbqd"], + "include_smart_links": True, + "search": "liuwiybzbzudq", + "tags": ["btm"], }, 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": "rjxsohtuxaiarzaiduaxn", - "tags": ["shuoaegvxfvekkqxiym"], + "search": "tnba", + "tags": ["zhwxinjagfbamzqsua"], }, 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": "xuenuwhvxbujssvahpjnnj", - "tags": ["msonrwvulasku"], + "search": "dmekmsoneozgzmtwt", + "tags": ["adwv"], }, 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": "utawtycz", - "tags": ["btjc"], + "search": "zubcbzud", + "tags": ["xabdaemdbhafx"], }, 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": "flz", - "tags": ["ltcnlmyjccgagtejsbqd"], + "include_smart_links": True, + "search": "liuwiybzbzudq", + "tags": ["btm"], }, 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": "rjxsohtuxaiarzaiduaxn", - "tags": ["shuoaegvxfvekkqxiym"], + "search": "tnba", + "tags": ["zhwxinjagfbamzqsua"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index cb6bdbdd..72d078f0 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="sed", + tracking_link_id="dolor", 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="sed", + tracking_link_id="dolor", 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="sed", + tracking_link_id="dolor", 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="sed", + tracking_link_id="dolor", 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="sed", + tracking_link_id="dolor", 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="sed", + tracking_link_id="dolor", 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="sed", + tracking_link_id="dolor", 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="sed", + tracking_link_id="dolor", 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="id", 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="id", 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="id", 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="id", 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="id", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="sed", + tracking_link_id="dolor", 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="sed", + tracking_link_id="dolor", 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="sed", + tracking_link_id="dolor", 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="sed", + tracking_link_id="dolor", 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="sed", + tracking_link_id="dolor", 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="sed", + tracking_link_id="dolor", 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="sed", + tracking_link_id="dolor", 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="sed", + tracking_link_id="dolor", 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="id", 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="id", 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="id", 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="id", 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="id", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 251966c3..f85320f5 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="pariatur", + trial_link_id="velit", 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="pariatur", + trial_link_id="velit", 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="pariatur", + trial_link_id="velit", 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="pariatur", + trial_link_id="velit", 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="pariatur", + trial_link_id="velit", 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="pariatur", + trial_link_id="velit", 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="pariatur", + trial_link_id="velit", 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="pariatur", + trial_link_id="velit", account="", ) @@ -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="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="possimus", + 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="possimus", + 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="possimus", + 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="possimus", + 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="officiis", + trial_link_id="dicta", 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="officiis", + trial_link_id="dicta", 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="officiis", + trial_link_id="dicta", 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="officiis", + trial_link_id="dicta", 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="officiis", + trial_link_id="dicta", 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="pariatur", + trial_link_id="velit", 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="pariatur", + trial_link_id="velit", 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="pariatur", + trial_link_id="velit", 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="pariatur", + trial_link_id="velit", 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="pariatur", + trial_link_id="velit", 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="pariatur", + trial_link_id="velit", 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="pariatur", + trial_link_id="velit", 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="pariatur", + trial_link_id="velit", account="", ) @@ -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="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="possimus", + 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="possimus", + 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="possimus", + 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="possimus", + 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="officiis", + trial_link_id="dicta", 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="officiis", + trial_link_id="dicta", 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="officiis", + trial_link_id="dicta", 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="officiis", + trial_link_id="dicta", 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="officiis", + trial_link_id="dicta", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 0a1eb65f..2c5e0c8b 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="eqactykwchrcapniluklxuxge", + name="udnsehgcxslin", ) 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="eqactykwchrcapniluklxuxge", + name="udnsehgcxslin", ) 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="eqactykwchrcapniluklxuxge", + name="udnsehgcxslin", ) 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="eqactykwchrcapniluklxuxge", + name="udnsehgcxslin", ) @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="eqactykwchrcapniluklxuxge", + name="udnsehgcxslin", ) 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="eqactykwchrcapniluklxuxge", + name="udnsehgcxslin", ) 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="eqactykwchrcapniluklxuxge", + name="udnsehgcxslin", ) 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="eqactykwchrcapniluklxuxge", + name="udnsehgcxslin", ) @pytest.mark.skip(reason="Mock server tests are disabled") From c4b4d347ddc13bf7ef358f1953a145aef07c6785 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 2 Jul 2026 14:12:35 +0000 Subject: [PATCH 127/249] 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 | 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 21f3b894..1508c564 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e7f2df49856fb570f5681770ba02623bf433297181ed53576538e20ff1dcee36.yml -openapi_spec_hash: 5926300bb0ec7adf349ccb731647bce9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f9f26ec780a5b5d055151220115a6c41e79aed9e29a8b971845623f8d1ef69b4.yml +openapi_spec_hash: 2851986c92d9cc1692647aaa697e7620 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 6efc6a83..6504e0c1 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index f6545352..15dbe2ac 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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 5c0e7b6d..bfa9708b 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="officiis", + post_id="ipsa", 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="officiis", + post_id="ipsa", 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="officiis", + post_id="ipsa", 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="officiis", + post_id="ipsa", 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="officiis", + post_id="ipsa", 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="officiis", + post_id="ipsa", 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="officiis", + post_id="ipsa", 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="officiis", + post_id="ipsa", 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="officiis", + post_id="ipsa", 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="officiis", + post_id="ipsa", 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="officiis", + post_id="ipsa", 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="officiis", + post_id="ipsa", 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="officiis", + post_id="ipsa", 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="officiis", + post_id="ipsa", 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="officiis", + post_id="ipsa", 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="officiis", + post_id="ipsa", 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="officiis", + post_id="ipsa", 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="officiis", + post_id="ipsa", 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="officiis", + post_id="ipsa", 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="officiis", + post_id="ipsa", 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 9c80483e..fc7b1635 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 9664075f..544df889 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 ddd9b439..0ad56d28 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="eos", + path_story_id="dolorem", 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="eos", + path_story_id="dolorem", 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="eos", + path_story_id="dolorem", 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="eos", + path_story_id="dolorem", 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="eos", + story_id="dolorem", 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="eos", + story_id="dolorem", 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="eos", + story_id="dolorem", 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="eos", + story_id="dolorem", 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="eos", + path_story_id="dolorem", 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="eos", + path_story_id="dolorem", 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="eos", + path_story_id="dolorem", 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="eos", + path_story_id="dolorem", 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="eos", + story_id="dolorem", 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="eos", + story_id="dolorem", 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="eos", + story_id="dolorem", 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="eos", + story_id="dolorem", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 90792391..772c9036 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( - "fugit", + "facere", ) 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( - "fugit", + "facere", ) 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( - "fugit", + "facere", ) 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( - "fugit", + "facere", ) 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( - "fugit", + "facere", ) 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( - "fugit", + "facere", ) 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 af34e4e0..6eec5f8f 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="ducimus", + auth_id="eum", + auth_type="mobile_app", + cookies="asperiores", custom_proxy={ "host": "proxy.example.com", - "password": "#wpJs],[sf", + "password": "2.]kmr@4", "port": 8080, "username": "ducimus", }, - email="murphy.berniece@example.org", - force_connect=False, - name="et", - password="}z/h07JoUwi", - proxy_country="uk", - user_agent="voluptatem", - xbc="velit", + email="omari.swift@example.net", + force_connect=True, + name="est", + password="y|(]SwZB", + proxy_country="us", + user_agent="optio", + xbc="dolores", ) 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="ducimus", + auth_id="eum", + auth_type="mobile_app", + cookies="asperiores", custom_proxy={ "host": "proxy.example.com", - "password": "#wpJs],[sf", + "password": "2.]kmr@4", "port": 8080, "username": "ducimus", }, - email="murphy.berniece@example.org", - force_connect=False, - name="et", - password="}z/h07JoUwi", - proxy_country="uk", - user_agent="voluptatem", - xbc="velit", + email="omari.swift@example.net", + force_connect=True, + name="est", + password="y|(]SwZB", + proxy_country="us", + user_agent="optio", + xbc="dolores", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 413a2df6..1a80b275 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="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="likes", + 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 a6108878..e6d0a0c3 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": ["znicjggw"]}, + filter={"tags": ["rfffjodmgrynlbqxbeupshng"]}, 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="voluptas", + smart_link_id="aut", ) 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="voluptas", + smart_link_id="aut", 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="voluptas", + smart_link_id="aut", ) 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="voluptas", + smart_link_id="aut", ) 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="aut", + smart_link_id="porro", ) 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="aut", + smart_link_id="porro", 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="aut", + smart_link_id="porro", ) 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="aut", + smart_link_id="porro", ) 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="quisquam", + smart_link_id="ut", ) 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="quisquam", + smart_link_id="ut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="ut", ) assert response.is_closed is True @@ -359,7 +359,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="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="molestiae", + smart_link_id="sit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="molestiae", + smart_link_id="sit", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="molestiae", + smart_link_id="sit", ) assert response.is_closed is True @@ -412,7 +412,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="molestiae", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="occaecati", + smart_link_id="error", ) assert smart_link is None @@ -442,7 +442,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="occaecati", + smart_link_id="error", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="occaecati", + smart_link_id="error", ) assert response.is_closed is True @@ -465,7 +465,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="occaecati", + smart_link_id="error", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="explicabo", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="explicabo", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="explicabo", ) assert response.is_closed is True @@ -517,7 +517,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="explicabo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["znicjggw"]}, + filter={"tags": ["rfffjodmgrynlbqxbeupshng"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="voluptas", + smart_link_id="aut", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="voluptas", + smart_link_id="aut", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="voluptas", + smart_link_id="aut", ) assert response.is_closed is True @@ -756,7 +756,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="voluptas", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="aut", + smart_link_id="porro", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="aut", + smart_link_id="porro", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="aut", + smart_link_id="porro", ) assert response.is_closed is True @@ -814,7 +814,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="aut", + smart_link_id="porro", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="ut", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="ut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="ut", ) assert response.is_closed is True @@ -873,7 +873,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="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="molestiae", + smart_link_id="sit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="molestiae", + smart_link_id="sit", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="molestiae", + smart_link_id="sit", ) assert response.is_closed is True @@ -926,7 +926,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="molestiae", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="occaecati", + smart_link_id="error", ) assert smart_link is None @@ -956,7 +956,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="occaecati", + smart_link_id="error", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="occaecati", + smart_link_id="error", ) assert response.is_closed is True @@ -979,7 +979,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="occaecati", + smart_link_id="error", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="explicabo", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="explicabo", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="explicabo", ) assert response.is_closed is True @@ -1031,7 +1031,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="explicabo", ) 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 82a59b40..e9f01223 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": "dmekmsoneozgzmtwt", - "tags": ["adwv"], + "search": "lsyvky", + "tags": ["vk"], }, 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": "zubcbzud", - "tags": ["xabdaemdbhafx"], + "search": "kezkvfjdmkuctfwzw", + "tags": ["mxddijxeexrthc"], }, 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": "liuwiybzbzudq", - "tags": ["btm"], + "search": "gfglvgipaeukmzfuoax", + "tags": ["ahpymnadgsdkl"], }, 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": "tnba", - "tags": ["zhwxinjagfbamzqsua"], + "search": "zrtuu", + "tags": ["xscubtn"], }, 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": "dmekmsoneozgzmtwt", - "tags": ["adwv"], + "search": "lsyvky", + "tags": ["vk"], }, 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": "zubcbzud", - "tags": ["xabdaemdbhafx"], + "search": "kezkvfjdmkuctfwzw", + "tags": ["mxddijxeexrthc"], }, 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": "liuwiybzbzudq", - "tags": ["btm"], + "search": "gfglvgipaeukmzfuoax", + "tags": ["ahpymnadgsdkl"], }, 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": "tnba", - "tags": ["zhwxinjagfbamzqsua"], + "search": "zrtuu", + "tags": ["xscubtn"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 72d078f0..5dcf6604 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="dolor", + tracking_link_id="aut", 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="dolor", + tracking_link_id="aut", 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="dolor", + tracking_link_id="aut", 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="dolor", + tracking_link_id="aut", 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="dolor", + tracking_link_id="aut", 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="dolor", + tracking_link_id="aut", 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="dolor", + tracking_link_id="aut", 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="dolor", + tracking_link_id="aut", 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="id", + tracking_link_id="cumque", 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="id", + tracking_link_id="cumque", 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="id", + tracking_link_id="cumque", 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="id", + tracking_link_id="cumque", 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="id", + tracking_link_id="cumque", 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="dolor", + tracking_link_id="aut", 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="dolor", + tracking_link_id="aut", 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="dolor", + tracking_link_id="aut", 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="dolor", + tracking_link_id="aut", 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="dolor", + tracking_link_id="aut", 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="dolor", + tracking_link_id="aut", 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="dolor", + tracking_link_id="aut", 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="dolor", + tracking_link_id="aut", 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="id", + tracking_link_id="cumque", 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="id", + tracking_link_id="cumque", 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="id", + tracking_link_id="cumque", 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="id", + tracking_link_id="cumque", 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="id", + tracking_link_id="cumque", 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + tracking_link_id="et", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index f85320f5..bc234c17 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="velit", + trial_link_id="occaecati", 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="velit", + trial_link_id="occaecati", 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="velit", + trial_link_id="occaecati", 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="velit", + trial_link_id="occaecati", 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="velit", + trial_link_id="occaecati", 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="velit", + trial_link_id="occaecati", 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="velit", + trial_link_id="occaecati", 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="velit", + trial_link_id="occaecati", 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="quia", + trial_link_id="totam", 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="quia", + trial_link_id="totam", 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="quia", + trial_link_id="totam", 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="quia", + trial_link_id="totam", 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="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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="dicta", + trial_link_id="molestiae", 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="dicta", + trial_link_id="molestiae", 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="dicta", + trial_link_id="molestiae", 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="dicta", + trial_link_id="molestiae", 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="dicta", + trial_link_id="molestiae", 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="velit", + trial_link_id="occaecati", 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="velit", + trial_link_id="occaecati", 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="velit", + trial_link_id="occaecati", 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="velit", + trial_link_id="occaecati", 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="velit", + trial_link_id="occaecati", 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="velit", + trial_link_id="occaecati", 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="velit", + trial_link_id="occaecati", 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="velit", + trial_link_id="occaecati", 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="quia", + trial_link_id="totam", 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="quia", + trial_link_id="totam", 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="quia", + trial_link_id="totam", 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="quia", + trial_link_id="totam", 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="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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="dicta", + trial_link_id="molestiae", 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="dicta", + trial_link_id="molestiae", 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="dicta", + trial_link_id="molestiae", 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="dicta", + trial_link_id="molestiae", 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="dicta", + trial_link_id="molestiae", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 2c5e0c8b..e09c11de 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="udnsehgcxslin", + name="gywjwzxefgamgvfdabtaduc", ) 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="udnsehgcxslin", + name="gywjwzxefgamgvfdabtaduc", ) 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="udnsehgcxslin", + name="gywjwzxefgamgvfdabtaduc", ) 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="udnsehgcxslin", + name="gywjwzxefgamgvfdabtaduc", ) @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="udnsehgcxslin", + name="gywjwzxefgamgvfdabtaduc", ) 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="udnsehgcxslin", + name="gywjwzxefgamgvfdabtaduc", ) 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="udnsehgcxslin", + name="gywjwzxefgamgvfdabtaduc", ) 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="udnsehgcxslin", + name="gywjwzxefgamgvfdabtaduc", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 3ef2bad1be2bb4fcef4f65dde2d5704384a821c3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 2 Jul 2026 17:12:34 +0000 Subject: [PATCH 128/249] 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_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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, 274 insertions(+), 274 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1508c564..4da7c8cc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f9f26ec780a5b5d055151220115a6c41e79aed9e29a8b971845623f8d1ef69b4.yml -openapi_spec_hash: 2851986c92d9cc1692647aaa697e7620 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-db22d3a24274437f622494a5ef55439e6467a466ea57e2c781c0c7c9f4faeb20.yml +openapi_spec_hash: 4c3759b23a8d2f35a845f84780bde2ca config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 6504e0c1..5845b49a 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="dignissimos", + message_id="delectus", 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="dignissimos", + message_id="delectus", 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="dignissimos", + message_id="delectus", 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="dignissimos", + message_id="delectus", 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="dignissimos", + message_id="delectus", 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="dignissimos", + message_id="delectus", 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="dignissimos", + message_id="delectus", 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="dignissimos", + message_id="delectus", 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="dignissimos", + message_id="delectus", 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="dignissimos", + message_id="delectus", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 15dbe2ac..3f828857 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="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="nam", + 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="nam", + 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="nam", + 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="nam", + 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="nam", + 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="nam", + 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="nam", + 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="nam", + 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="nam", + 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="nam", + 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="nam", + 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="nam", + 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="nam", + 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="nam", + 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="nam", + 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 bfa9708b..6e87d33b 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="ipsa", + post_id="debitis", 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="ipsa", + post_id="debitis", 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="ipsa", + post_id="debitis", 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="ipsa", + post_id="debitis", 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="ipsa", + post_id="debitis", 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="ipsa", + post_id="debitis", 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="ipsa", + post_id="debitis", 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="ipsa", + post_id="debitis", 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="ipsa", + post_id="debitis", 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="ipsa", + post_id="debitis", 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="ipsa", + post_id="debitis", 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="ipsa", + post_id="debitis", 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="ipsa", + post_id="debitis", 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="ipsa", + post_id="debitis", 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="ipsa", + post_id="debitis", 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="ipsa", + post_id="debitis", 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="ipsa", + post_id="debitis", 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="ipsa", + post_id="debitis", 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="ipsa", + post_id="debitis", 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="ipsa", + post_id="debitis", 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 aa735c97..7549791e 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 fc7b1635..2ced6cb5 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 544df889..9664075f 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 0ad56d28..e4dffdf3 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="dolorem", + path_story_id="a", 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="dolorem", + path_story_id="a", 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="dolorem", + path_story_id="a", 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="dolorem", + path_story_id="a", 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="dolorem", + story_id="a", 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="dolorem", + story_id="a", 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="dolorem", + story_id="a", 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="dolorem", + story_id="a", 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="dolorem", + path_story_id="a", 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="dolorem", + path_story_id="a", 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="dolorem", + path_story_id="a", 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="dolorem", + path_story_id="a", 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="dolorem", + story_id="a", 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="dolorem", + story_id="a", 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="dolorem", + story_id="a", 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="dolorem", + story_id="a", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 772c9036..ca2c75e8 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( - "facere", + "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( - "facere", + "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( - "facere", + "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( - "facere", + "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( - "facere", + "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( - "facere", + "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 6eec5f8f..0a1d22a1 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="eum", - auth_type="mobile_app", - cookies="asperiores", + auth_id="quia", + auth_type="email_password", + cookies="minima", custom_proxy={ "host": "proxy.example.com", - "password": "2.]kmr@4", + "password": "FG3J/,zkL{n'zOE", "port": 8080, - "username": "ducimus", + "username": "error", }, - email="omari.swift@example.net", - force_connect=True, - name="est", - password="y|(]SwZB", - proxy_country="us", - user_agent="optio", - xbc="dolores", + email="goodwin.mireille@example.net", + force_connect=False, + name="minima", + password="nd0q%`d4AA", + proxy_country="uk", + user_agent="aliquam", + 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="eum", - auth_type="mobile_app", - cookies="asperiores", + auth_id="quia", + auth_type="email_password", + cookies="minima", custom_proxy={ "host": "proxy.example.com", - "password": "2.]kmr@4", + "password": "FG3J/,zkL{n'zOE", "port": 8080, - "username": "ducimus", + "username": "error", }, - email="omari.swift@example.net", - force_connect=True, - name="est", - password="y|(]SwZB", - proxy_country="us", - user_agent="optio", - xbc="dolores", + email="goodwin.mireille@example.net", + force_connect=False, + name="minima", + password="nd0q%`d4AA", + proxy_country="uk", + user_agent="aliquam", + xbc="non", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 1a80b275..bea1ef2e 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="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="onlyfans", + 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 65694e23..bd4f6161 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 e6d0a0c3..6fc45f50 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": ["rfffjodmgrynlbqxbeupshng"]}, + filter={"tags": ["irqyfqgxbprwbvkssk"]}, 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="aut", + smart_link_id="laboriosam", ) 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="aut", + smart_link_id="laboriosam", 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="aut", + smart_link_id="laboriosam", ) 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="aut", + smart_link_id="laboriosam", ) 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="porro", + smart_link_id="commodi", ) 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="porro", + smart_link_id="commodi", 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="porro", + smart_link_id="commodi", ) 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="porro", + smart_link_id="commodi", ) 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="ut", + smart_link_id="quod", ) 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="ut", + smart_link_id="quod", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="ut", + smart_link_id="quod", ) assert response.is_closed is True @@ -359,7 +359,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="ut", + smart_link_id="quod", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="quo", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="quo", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="quo", ) assert response.is_closed is True @@ -412,7 +412,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="quo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="error", + smart_link_id="qui", ) assert smart_link is None @@ -442,7 +442,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="error", + smart_link_id="qui", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="error", + smart_link_id="qui", ) assert response.is_closed is True @@ -465,7 +465,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="error", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="explicabo", + smart_link_id="consequuntur", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="explicabo", + smart_link_id="consequuntur", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="explicabo", + smart_link_id="consequuntur", ) assert response.is_closed is True @@ -517,7 +517,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="explicabo", + smart_link_id="consequuntur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["rfffjodmgrynlbqxbeupshng"]}, + filter={"tags": ["irqyfqgxbprwbvkssk"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="laboriosam", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="laboriosam", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="laboriosam", ) assert response.is_closed is True @@ -756,7 +756,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="laboriosam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="porro", + smart_link_id="commodi", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="porro", + smart_link_id="commodi", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="porro", + smart_link_id="commodi", ) assert response.is_closed is True @@ -814,7 +814,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="porro", + smart_link_id="commodi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="ut", + smart_link_id="quod", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="ut", + smart_link_id="quod", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="ut", + smart_link_id="quod", ) assert response.is_closed is True @@ -873,7 +873,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="ut", + smart_link_id="quod", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="quo", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="quo", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="quo", ) assert response.is_closed is True @@ -926,7 +926,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="quo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="error", + smart_link_id="qui", ) assert smart_link is None @@ -956,7 +956,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="error", + smart_link_id="qui", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="error", + smart_link_id="qui", ) assert response.is_closed is True @@ -979,7 +979,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="error", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="explicabo", + smart_link_id="consequuntur", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="explicabo", + smart_link_id="consequuntur", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="explicabo", + smart_link_id="consequuntur", ) assert response.is_closed is True @@ -1031,7 +1031,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="explicabo", + smart_link_id="consequuntur", ) 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 e9f01223..46085b19 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": "lsyvky", - "tags": ["vk"], + "search": "vovqiymkppi", + "tags": ["efyvmbfqiucxzfkhmtbmrpy"], }, 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": "kezkvfjdmkuctfwzw", - "tags": ["mxddijxeexrthc"], + "search": "muxdebgyxdxkovxdiiek", + "tags": ["hgczueoyghgoigiciekqz"], }, 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": "gfglvgipaeukmzfuoax", - "tags": ["ahpymnadgsdkl"], + "include_smart_links": False, + "search": "zjpoqjmvvtelrmnqqewrj", + "tags": ["ik"], }, 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": "zrtuu", - "tags": ["xscubtn"], + "include_smart_links": False, + "search": "okxgjs", + "tags": ["hzemgeof"], }, 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": "lsyvky", - "tags": ["vk"], + "search": "vovqiymkppi", + "tags": ["efyvmbfqiucxzfkhmtbmrpy"], }, 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": "kezkvfjdmkuctfwzw", - "tags": ["mxddijxeexrthc"], + "search": "muxdebgyxdxkovxdiiek", + "tags": ["hgczueoyghgoigiciekqz"], }, 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": "gfglvgipaeukmzfuoax", - "tags": ["ahpymnadgsdkl"], + "include_smart_links": False, + "search": "zjpoqjmvvtelrmnqqewrj", + "tags": ["ik"], }, 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": "zrtuu", - "tags": ["xscubtn"], + "include_smart_links": False, + "search": "okxgjs", + "tags": ["hzemgeof"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 5dcf6604..69447d3d 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="aut", + tracking_link_id="voluptate", 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="aut", + tracking_link_id="voluptate", 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="aut", + tracking_link_id="voluptate", 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="aut", + tracking_link_id="voluptate", 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="aut", + tracking_link_id="voluptate", 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="aut", + tracking_link_id="voluptate", 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="aut", + tracking_link_id="voluptate", 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="aut", + tracking_link_id="voluptate", 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="cumque", + tracking_link_id="facilis", 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="cumque", + tracking_link_id="facilis", 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="cumque", + tracking_link_id="facilis", 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="cumque", + tracking_link_id="facilis", 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="cumque", + tracking_link_id="facilis", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="aut", + tracking_link_id="voluptate", 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="aut", + tracking_link_id="voluptate", 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="aut", + tracking_link_id="voluptate", 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="aut", + tracking_link_id="voluptate", 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="aut", + tracking_link_id="voluptate", 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="aut", + tracking_link_id="voluptate", 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="aut", + tracking_link_id="voluptate", 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="aut", + tracking_link_id="voluptate", 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="cumque", + tracking_link_id="facilis", 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="cumque", + tracking_link_id="facilis", 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="cumque", + tracking_link_id="facilis", 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="cumque", + tracking_link_id="facilis", 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="cumque", + tracking_link_id="facilis", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index bc234c17..ba0202c5 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="totam", + trial_link_id="fugit", 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="totam", + trial_link_id="fugit", 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="totam", + trial_link_id="fugit", 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="totam", + trial_link_id="fugit", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="molestiae", + 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="molestiae", + 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="molestiae", + 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="molestiae", + 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="molestiae", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="totam", + trial_link_id="fugit", 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="totam", + trial_link_id="fugit", 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="totam", + trial_link_id="fugit", 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="totam", + trial_link_id="fugit", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="molestiae", + 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="molestiae", + 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="molestiae", + 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="molestiae", + 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="molestiae", + trial_link_id="nihil", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index e09c11de..733ccd95 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="gywjwzxefgamgvfdabtaduc", + name="tlbsw", ) 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="gywjwzxefgamgvfdabtaduc", + name="tlbsw", ) 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="gywjwzxefgamgvfdabtaduc", + name="tlbsw", ) 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="gywjwzxefgamgvfdabtaduc", + name="tlbsw", ) @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="gywjwzxefgamgvfdabtaduc", + name="tlbsw", ) 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="gywjwzxefgamgvfdabtaduc", + name="tlbsw", ) 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="gywjwzxefgamgvfdabtaduc", + name="tlbsw", ) 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="gywjwzxefgamgvfdabtaduc", + name="tlbsw", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 4830eddc35ed953f5730edf979b5c0db75ccb082 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 2 Jul 2026 18:12:37 +0000 Subject: [PATCH 129/249] feat(api): api update --- .stats.yml | 4 +- .../profitability_get_history_response.py | 40 +++++-- ...rofitability_get_profitability_response.py | 44 +++++--- .../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_smart_links.py | 100 +++++++++--------- 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 +-- 18 files changed, 332 insertions(+), 288 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4da7c8cc..645041be 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-db22d3a24274437f622494a5ef55439e6467a466ea57e2c781c0c7c9f4faeb20.yml -openapi_spec_hash: 4c3759b23a8d2f35a845f84780bde2ca +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-df3df2d21b0960c95367dfab60a292d58a801db828021ab6fb20e551c6d97c76.yml +openapi_spec_hash: e72bafc63b49547ac7fa3c00a26ffa70 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/types/analytics/financial/profitability_get_history_response.py b/src/onlyfansapi/types/analytics/financial/profitability_get_history_response.py index bca137b8..7fa2af0d 100644 --- a/src/onlyfansapi/types/analytics/financial/profitability_get_history_response.py +++ b/src/onlyfansapi/types/analytics/financial/profitability_get_history_response.py @@ -1,25 +1,49 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import List, Optional -from typing_extensions import TypeAlias + +from pydantic import Field as FieldInfo from ...._models import BaseModel -__all__ = ["ProfitabilityGetHistoryResponse", "ProfitabilityGetHistoryResponseItem"] +__all__ = ["ProfitabilityGetHistoryResponse", "Data"] + + +class Data(BaseModel): + active_milestones: Optional[str] = FieldInfo(alias="activeMilestones", default=None) + + agency_earnings: Optional[str] = FieldInfo(alias="agencyEarnings", default=None) + + commission_amount: Optional[str] = FieldInfo(alias="commissionAmount", default=None) + + commission_rate: Optional[str] = FieldInfo(alias="commissionRate", default=None) + costs: Optional[List[object]] = None -class ProfitabilityGetHistoryResponseItem(BaseModel): - gross_revenue: Optional[float] = None + creator_name: Optional[str] = FieldInfo(alias="creatorName", default=None) - margin: Optional[float] = None + has_commission_for_period: Optional[bool] = FieldInfo(alias="hasCommissionForPeriod", default=None) + + has_costs_for_period: Optional[bool] = FieldInfo(alias="hasCostsForPeriod", default=None) + + margin_percentage: Optional[str] = FieldInfo(alias="marginPercentage", default=None) month: Optional[int] = None - net_revenue: Optional[float] = None + only_fans_user_id: Optional[int] = FieldInfo(alias="onlyFansUserId", default=None) + + profit: Optional[str] = None + + projected_net: Optional[str] = FieldInfo(alias="projectedNet", default=None) + + rate_periods: Optional[List[object]] = FieldInfo(alias="ratePeriods", default=None) + + referral_note: Optional[str] = FieldInfo(alias="referralNote", default=None) - profit: Optional[float] = None + total_costs: Optional[str] = FieldInfo(alias="totalCosts", default=None) year: Optional[int] = None -ProfitabilityGetHistoryResponse: TypeAlias = List[ProfitabilityGetHistoryResponseItem] +class ProfitabilityGetHistoryResponse(BaseModel): + data: Optional[List[Data]] = None diff --git a/src/onlyfansapi/types/analytics/financial/profitability_get_profitability_response.py b/src/onlyfansapi/types/analytics/financial/profitability_get_profitability_response.py index 9670755f..8cacbcc4 100644 --- a/src/onlyfansapi/types/analytics/financial/profitability_get_profitability_response.py +++ b/src/onlyfansapi/types/analytics/financial/profitability_get_profitability_response.py @@ -1,29 +1,49 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import List, Optional -from typing_extensions import TypeAlias + +from pydantic import Field as FieldInfo from ...._models import BaseModel -__all__ = ["ProfitabilityGetProfitabilityResponse", "ProfitabilityGetProfitabilityResponseItem"] +__all__ = ["ProfitabilityGetProfitabilityResponse", "Data"] + + +class Data(BaseModel): + active_milestones: Optional[str] = FieldInfo(alias="activeMilestones", default=None) + + agency_earnings: Optional[str] = FieldInfo(alias="agencyEarnings", default=None) + + commission_amount: Optional[str] = FieldInfo(alias="commissionAmount", default=None) + + commission_rate: Optional[str] = FieldInfo(alias="commissionRate", default=None) + + costs: Optional[List[object]] = None + + creator_name: Optional[str] = FieldInfo(alias="creatorName", default=None) + + has_commission_for_period: Optional[bool] = FieldInfo(alias="hasCommissionForPeriod", default=None) + + has_costs_for_period: Optional[bool] = FieldInfo(alias="hasCostsForPeriod", default=None) + margin_percentage: Optional[str] = FieldInfo(alias="marginPercentage", default=None) -class ProfitabilityGetProfitabilityResponseItem(BaseModel): - commission: Optional[float] = None + month: Optional[int] = None - creator_id: Optional[int] = None + only_fans_user_id: Optional[int] = FieldInfo(alias="onlyFansUserId", default=None) - gross_revenue: Optional[float] = None + profit: Optional[str] = None - margin: Optional[float] = None + projected_net: Optional[str] = FieldInfo(alias="projectedNet", default=None) - name: Optional[str] = None + rate_periods: Optional[List[object]] = FieldInfo(alias="ratePeriods", default=None) - net_revenue: Optional[float] = None + referral_note: Optional[str] = FieldInfo(alias="referralNote", default=None) - profit: Optional[float] = None + total_costs: Optional[str] = FieldInfo(alias="totalCosts", default=None) - total_costs: Optional[float] = None + year: Optional[int] = None -ProfitabilityGetProfitabilityResponse: TypeAlias = List[ProfitabilityGetProfitabilityResponseItem] +class ProfitabilityGetProfitabilityResponse(BaseModel): + data: Optional[List[Data]] = None diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 5845b49a..441328b4 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="delectus", + message_id="pariatur", 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="delectus", + message_id="pariatur", 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="delectus", + message_id="pariatur", 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="delectus", + message_id="pariatur", 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="delectus", + message_id="pariatur", 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="delectus", + message_id="pariatur", 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="delectus", + message_id="pariatur", 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="delectus", + message_id="pariatur", 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="delectus", + message_id="pariatur", 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="delectus", + message_id="pariatur", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 3f828857..370ff897 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="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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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 6e87d33b..f66b90ab 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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="debitis", + 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 7549791e..a62ccbd3 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 2ced6cb5..9c80483e 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 9664075f..544df889 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 e4dffdf3..24f0aca1 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="a", + path_story_id="commodi", 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="a", + path_story_id="commodi", 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="a", + path_story_id="commodi", 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="a", + path_story_id="commodi", 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="a", + story_id="commodi", 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="a", + story_id="commodi", 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="a", + story_id="commodi", 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="a", + story_id="commodi", 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="a", + path_story_id="commodi", 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="a", + path_story_id="commodi", 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="a", + path_story_id="commodi", 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="a", + path_story_id="commodi", 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="a", + story_id="commodi", 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="a", + story_id="commodi", 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="a", + story_id="commodi", 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="a", + story_id="commodi", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index ca2c75e8..761219e8 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", + "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( - "id", + "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( - "id", + "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( - "id", + "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( - "id", + "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( - "id", + "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 0a1d22a1..e3bd6f47 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="quia", - auth_type="email_password", - cookies="minima", + auth_id="nostrum", + auth_type="raw_data", + cookies="natus", custom_proxy={ "host": "proxy.example.com", - "password": "FG3J/,zkL{n'zOE", + "password": "Xgxz%3*G@ft\\sxeQ", "port": 8080, - "username": "error", + "username": "aut", }, - email="goodwin.mireille@example.net", + email="pamela.gutmann@example.org", force_connect=False, - name="minima", - password="nd0q%`d4AA", + name="consectetur", + password="J:`9N$E.-c=y_\\;B0'", proxy_country="uk", - user_agent="aliquam", - xbc="non", + user_agent="harum", + xbc="voluptas", ) 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="quia", - auth_type="email_password", - cookies="minima", + auth_id="nostrum", + auth_type="raw_data", + cookies="natus", custom_proxy={ "host": "proxy.example.com", - "password": "FG3J/,zkL{n'zOE", + "password": "Xgxz%3*G@ft\\sxeQ", "port": 8080, - "username": "error", + "username": "aut", }, - email="goodwin.mireille@example.net", + email="pamela.gutmann@example.org", force_connect=False, - name="minima", - password="nd0q%`d4AA", + name="consectetur", + password="J:`9N$E.-c=y_\\;B0'", proxy_country="uk", - user_agent="aliquam", - xbc="non", + user_agent="harum", + xbc="voluptas", ) 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 9249f386..3597ede6 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_smart_links.py b/tests/api_resources/test_smart_links.py index 6fc45f50..4fd9d5fb 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": ["irqyfqgxbprwbvkssk"]}, + filter={"tags": ["ifazqmdmus"]}, 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="laboriosam", + smart_link_id="est", ) 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="laboriosam", + smart_link_id="est", 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="laboriosam", + smart_link_id="est", ) 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="laboriosam", + smart_link_id="est", ) 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="commodi", + smart_link_id="laudantium", ) 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="commodi", + smart_link_id="laudantium", 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="commodi", + smart_link_id="laudantium", ) 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="commodi", + smart_link_id="laudantium", ) 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="quod", + smart_link_id="aut", ) 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="quod", + smart_link_id="aut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="quod", + smart_link_id="aut", ) assert response.is_closed is True @@ -359,7 +359,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="quod", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="ratione", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="ratione", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="ratione", ) assert response.is_closed is True @@ -412,7 +412,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="ratione", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="architecto", ) assert smart_link is None @@ -442,7 +442,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="architecto", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="architecto", ) assert response.is_closed is True @@ -465,7 +465,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="architecto", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="consequuntur", + smart_link_id="praesentium", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="consequuntur", + smart_link_id="praesentium", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="consequuntur", + smart_link_id="praesentium", ) assert response.is_closed is True @@ -517,7 +517,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="consequuntur", + smart_link_id="praesentium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["irqyfqgxbprwbvkssk"]}, + filter={"tags": ["ifazqmdmus"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="laboriosam", + smart_link_id="est", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="laboriosam", + smart_link_id="est", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="laboriosam", + smart_link_id="est", ) assert response.is_closed is True @@ -756,7 +756,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="laboriosam", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="commodi", + smart_link_id="laudantium", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="commodi", + smart_link_id="laudantium", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="commodi", + smart_link_id="laudantium", ) assert response.is_closed is True @@ -814,7 +814,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="commodi", + smart_link_id="laudantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="quod", + smart_link_id="aut", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="quod", + smart_link_id="aut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="quod", + smart_link_id="aut", ) assert response.is_closed is True @@ -873,7 +873,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="quod", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="ratione", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="ratione", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="ratione", ) assert response.is_closed is True @@ -926,7 +926,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="ratione", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="architecto", ) assert smart_link is None @@ -956,7 +956,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="architecto", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="architecto", ) assert response.is_closed is True @@ -979,7 +979,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="architecto", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="consequuntur", + smart_link_id="praesentium", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="consequuntur", + smart_link_id="praesentium", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="consequuntur", + smart_link_id="praesentium", ) assert response.is_closed is True @@ -1031,7 +1031,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="consequuntur", + smart_link_id="praesentium", ) 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 46085b19..1e033810 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": "vovqiymkppi", - "tags": ["efyvmbfqiucxzfkhmtbmrpy"], + "search": "uvnykxuyycfpixfxei", + "tags": ["cdme"], }, 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": "muxdebgyxdxkovxdiiek", - "tags": ["hgczueoyghgoigiciekqz"], + "search": "doj", + "tags": ["glccocyklmxwbgirnjqjz"], }, 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": "zjpoqjmvvtelrmnqqewrj", - "tags": ["ik"], + "include_smart_links": True, + "search": "ljktiktsfnlizmajj", + "tags": ["lqgwx"], }, 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": "okxgjs", - "tags": ["hzemgeof"], + "include_smart_links": True, + "search": "ansypeqmnuoans", + "tags": ["veqjottrdkmkhru"], }, 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": "vovqiymkppi", - "tags": ["efyvmbfqiucxzfkhmtbmrpy"], + "search": "uvnykxuyycfpixfxei", + "tags": ["cdme"], }, 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": "muxdebgyxdxkovxdiiek", - "tags": ["hgczueoyghgoigiciekqz"], + "search": "doj", + "tags": ["glccocyklmxwbgirnjqjz"], }, 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": "zjpoqjmvvtelrmnqqewrj", - "tags": ["ik"], + "include_smart_links": True, + "search": "ljktiktsfnlizmajj", + "tags": ["lqgwx"], }, 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": "okxgjs", - "tags": ["hzemgeof"], + "include_smart_links": True, + "search": "ansypeqmnuoans", + "tags": ["veqjottrdkmkhru"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 69447d3d..731354e1 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="voluptate", + tracking_link_id="quam", 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="voluptate", + tracking_link_id="quam", 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="voluptate", + tracking_link_id="quam", 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="voluptate", + tracking_link_id="quam", 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="voluptate", + tracking_link_id="quam", 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="voluptate", + tracking_link_id="quam", 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="voluptate", + tracking_link_id="quam", 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="voluptate", + tracking_link_id="quam", 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="facilis", + tracking_link_id="distinctio", 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="facilis", + tracking_link_id="distinctio", 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="facilis", + tracking_link_id="distinctio", 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="facilis", + tracking_link_id="distinctio", 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="facilis", + tracking_link_id="distinctio", 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="voluptatem", + tracking_link_id="aut", 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="voluptatem", + tracking_link_id="aut", 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="voluptatem", + tracking_link_id="aut", 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="voluptatem", + tracking_link_id="aut", 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="voluptatem", + tracking_link_id="aut", 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="voluptate", + tracking_link_id="quam", 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="voluptate", + tracking_link_id="quam", 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="voluptate", + tracking_link_id="quam", 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="voluptate", + tracking_link_id="quam", 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="voluptate", + tracking_link_id="quam", 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="voluptate", + tracking_link_id="quam", 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="voluptate", + tracking_link_id="quam", 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="voluptate", + tracking_link_id="quam", 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="facilis", + tracking_link_id="distinctio", 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="facilis", + tracking_link_id="distinctio", 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="facilis", + tracking_link_id="distinctio", 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="facilis", + tracking_link_id="distinctio", 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="facilis", + tracking_link_id="distinctio", 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="voluptatem", + tracking_link_id="aut", 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="voluptatem", + tracking_link_id="aut", 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="voluptatem", + tracking_link_id="aut", 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="voluptatem", + tracking_link_id="aut", 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="voluptatem", + tracking_link_id="aut", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index ba0202c5..4ded1eb7 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="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="fugit", + 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="fugit", + 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="fugit", + 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="fugit", + 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="iste", + trial_link_id="ex", 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="iste", + trial_link_id="ex", 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="iste", + trial_link_id="ex", 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="iste", + trial_link_id="ex", 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="iste", + trial_link_id="ex", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="fugit", + 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="fugit", + 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="fugit", + 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="fugit", + 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="iste", + trial_link_id="ex", 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="iste", + trial_link_id="ex", 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="iste", + trial_link_id="ex", 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="iste", + trial_link_id="ex", 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="iste", + trial_link_id="ex", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="dolores", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 733ccd95..a6618ab3 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="tlbsw", + name="nmumzwtdvnkxvqlpzaa", ) 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="tlbsw", + name="nmumzwtdvnkxvqlpzaa", ) 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="tlbsw", + name="nmumzwtdvnkxvqlpzaa", ) 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="tlbsw", + name="nmumzwtdvnkxvqlpzaa", ) @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="tlbsw", + name="nmumzwtdvnkxvqlpzaa", ) 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="tlbsw", + name="nmumzwtdvnkxvqlpzaa", ) 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="tlbsw", + name="nmumzwtdvnkxvqlpzaa", ) 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="tlbsw", + name="nmumzwtdvnkxvqlpzaa", ) @pytest.mark.skip(reason="Mock server tests are disabled") From c11f180fe2c833e9ad40434312cfe47447be8dfb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Jul 2026 10:12:43 +0000 Subject: [PATCH 130/249] 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_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index 645041be..4bb61de3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-df3df2d21b0960c95367dfab60a292d58a801db828021ab6fb20e551c6d97c76.yml -openapi_spec_hash: e72bafc63b49547ac7fa3c00a26ffa70 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a6de91af3f73af8863fd57ea222f6242aaff9bae1796722d77795ac528da4567.yml +openapi_spec_hash: 2ac12ef0cc0bbc15d545e03e00f227b4 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 441328b4..242d6aa8 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="pariatur", + message_id="rerum", 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="pariatur", + message_id="rerum", 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="pariatur", + message_id="rerum", 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="pariatur", + message_id="rerum", 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="pariatur", + message_id="rerum", 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="pariatur", + message_id="rerum", 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="pariatur", + message_id="rerum", 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="pariatur", + message_id="rerum", 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="pariatur", + message_id="rerum", 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="pariatur", + message_id="rerum", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 370ff897..7b917ac6 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="praesentium", 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="praesentium", 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="praesentium", 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="praesentium", 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="praesentium", 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="praesentium", 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="praesentium", 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="praesentium", 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="praesentium", 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="praesentium", 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="praesentium", 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="praesentium", 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="praesentium", 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="praesentium", 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="praesentium", 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="praesentium", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index f66b90ab..9c963293 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="quod", 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="quod", 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="quod", 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="quod", 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="quod", 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="quod", 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="quod", 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="quod", 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="quod", 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="quod", 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="quod", 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="quod", 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="quod", 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="quod", 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="quod", 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="quod", 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="quod", 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="quod", 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="quod", 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="quod", 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 a62ccbd3..444937ba 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 9c80483e..b5f3d61a 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 24f0aca1..4ab12a6d 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="commodi", + path_story_id="voluptatibus", 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="commodi", + path_story_id="voluptatibus", 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="commodi", + path_story_id="voluptatibus", 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="commodi", + path_story_id="voluptatibus", 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="commodi", + story_id="voluptatibus", 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="commodi", + story_id="voluptatibus", 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="commodi", + story_id="voluptatibus", 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="commodi", + story_id="voluptatibus", 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="commodi", + path_story_id="voluptatibus", 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="commodi", + path_story_id="voluptatibus", 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="commodi", + path_story_id="voluptatibus", 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="commodi", + path_story_id="voluptatibus", 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="commodi", + story_id="voluptatibus", 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="commodi", + story_id="voluptatibus", 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="commodi", + story_id="voluptatibus", 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="commodi", + story_id="voluptatibus", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 761219e8..f9765ad6 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( - "perspiciatis", + "eligendi", ) 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( - "perspiciatis", + "eligendi", ) 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( - "perspiciatis", + "eligendi", ) 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( - "perspiciatis", + "eligendi", ) 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( - "perspiciatis", + "eligendi", ) 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( - "perspiciatis", + "eligendi", ) 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 e3bd6f47..95a8704e 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="nostrum", + auth_id="dolorem", auth_type="raw_data", - cookies="natus", + cookies="excepturi", custom_proxy={ "host": "proxy.example.com", - "password": "Xgxz%3*G@ft\\sxeQ", + "password": "@RLY.x+tyBQ$# None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="nostrum", + auth_id="dolorem", auth_type="raw_data", - cookies="natus", + cookies="excepturi", custom_proxy={ "host": "proxy.example.com", - "password": "Xgxz%3*G@ft\\sxeQ", + "password": "@RLY.x+tyBQ$# 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 bea1ef2e..583d8ad4 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="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="tags", + 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 4fd9d5fb..049009c1 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": ["ifazqmdmus"]}, + filter={"tags": ["hnjlkqbolsfydrzabzxijhajz"]}, 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="est", + smart_link_id="aperiam", ) 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="est", + smart_link_id="aperiam", 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="est", + smart_link_id="aperiam", ) 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="est", + smart_link_id="aperiam", ) 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="laudantium", + smart_link_id="rem", ) 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="laudantium", + smart_link_id="rem", 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="laudantium", + smart_link_id="rem", ) 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="laudantium", + smart_link_id="rem", ) 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="aut", + smart_link_id="maiores", ) 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="aut", + smart_link_id="maiores", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="maiores", ) assert response.is_closed is True @@ -359,7 +359,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="maiores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="ratione", + smart_link_id="eum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="ratione", + smart_link_id="eum", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="ratione", + smart_link_id="eum", ) assert response.is_closed is True @@ -412,7 +412,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="ratione", + smart_link_id="eum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="architecto", + smart_link_id="dignissimos", ) assert smart_link is None @@ -442,7 +442,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="architecto", + smart_link_id="dignissimos", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="architecto", + smart_link_id="dignissimos", ) assert response.is_closed is True @@ -465,7 +465,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="architecto", + smart_link_id="dignissimos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="praesentium", + smart_link_id="in", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="praesentium", + smart_link_id="in", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="praesentium", + smart_link_id="in", ) assert response.is_closed is True @@ -517,7 +517,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="praesentium", + smart_link_id="in", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["ifazqmdmus"]}, + filter={"tags": ["hnjlkqbolsfydrzabzxijhajz"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="est", + smart_link_id="aperiam", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="est", + smart_link_id="aperiam", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="est", + smart_link_id="aperiam", ) assert response.is_closed is True @@ -756,7 +756,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="est", + smart_link_id="aperiam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="laudantium", + smart_link_id="rem", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="laudantium", + smart_link_id="rem", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="laudantium", + smart_link_id="rem", ) assert response.is_closed is True @@ -814,7 +814,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="laudantium", + smart_link_id="rem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="maiores", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="maiores", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="maiores", ) assert response.is_closed is True @@ -873,7 +873,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="maiores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="ratione", + smart_link_id="eum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="ratione", + smart_link_id="eum", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="ratione", + smart_link_id="eum", ) assert response.is_closed is True @@ -926,7 +926,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="ratione", + smart_link_id="eum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="architecto", + smart_link_id="dignissimos", ) assert smart_link is None @@ -956,7 +956,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="architecto", + smart_link_id="dignissimos", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="architecto", + smart_link_id="dignissimos", ) assert response.is_closed is True @@ -979,7 +979,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="architecto", + smart_link_id="dignissimos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="praesentium", + smart_link_id="in", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="praesentium", + smart_link_id="in", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="praesentium", + smart_link_id="in", ) assert response.is_closed is True @@ -1031,7 +1031,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="praesentium", + smart_link_id="in", ) 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 1e033810..6dbfd5d7 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": "uvnykxuyycfpixfxei", - "tags": ["cdme"], + "search": "lfsiefurrvcynghrnxlx", + "tags": ["bc"], }, 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": "doj", - "tags": ["glccocyklmxwbgirnjqjz"], + "search": "on", + "tags": ["nmthojbcyg"], }, 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": "ljktiktsfnlizmajj", - "tags": ["lqgwx"], + "include_smart_links": False, + "search": "vtehvguybsdfhqvbv", + "tags": ["bjqpzg"], }, 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": "ansypeqmnuoans", - "tags": ["veqjottrdkmkhru"], + "include_smart_links": False, + "search": "jwxxqkphhwutjsp", + "tags": ["nycajqp"], }, 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": "uvnykxuyycfpixfxei", - "tags": ["cdme"], + "search": "lfsiefurrvcynghrnxlx", + "tags": ["bc"], }, 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": "doj", - "tags": ["glccocyklmxwbgirnjqjz"], + "search": "on", + "tags": ["nmthojbcyg"], }, 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": "ljktiktsfnlizmajj", - "tags": ["lqgwx"], + "include_smart_links": False, + "search": "vtehvguybsdfhqvbv", + "tags": ["bjqpzg"], }, 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": "ansypeqmnuoans", - "tags": ["veqjottrdkmkhru"], + "include_smart_links": False, + "search": "jwxxqkphhwutjsp", + "tags": ["nycajqp"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 731354e1..e161ae5a 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="aut", + tracking_link_id="saepe", 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="aut", + tracking_link_id="saepe", 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="aut", + tracking_link_id="saepe", 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="aut", + tracking_link_id="saepe", 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="aut", + tracking_link_id="saepe", 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="aut", + tracking_link_id="saepe", 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="aut", + tracking_link_id="saepe", 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="aut", + tracking_link_id="saepe", 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="aut", + tracking_link_id="saepe", 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="aut", + tracking_link_id="saepe", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 4ded1eb7..b44bd313 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="consequatur", + trial_link_id="enim", 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="consequatur", + trial_link_id="enim", 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="consequatur", + trial_link_id="enim", 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="consequatur", + trial_link_id="enim", 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="consequatur", + trial_link_id="enim", 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="consequatur", + trial_link_id="enim", 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="consequatur", + trial_link_id="enim", 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="consequatur", + trial_link_id="enim", 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="animi", 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="animi", 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="animi", 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="animi", 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="ex", + trial_link_id="hic", 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="ex", + trial_link_id="hic", 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="ex", + trial_link_id="hic", 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="ex", + trial_link_id="hic", 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="ex", + trial_link_id="hic", 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="dolores", + trial_link_id="quis", 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="dolores", + trial_link_id="quis", 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="dolores", + trial_link_id="quis", 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="dolores", + trial_link_id="quis", 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="dolores", + trial_link_id="quis", 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="consequatur", + trial_link_id="enim", 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="consequatur", + trial_link_id="enim", 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="consequatur", + trial_link_id="enim", 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="consequatur", + trial_link_id="enim", 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="consequatur", + trial_link_id="enim", 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="consequatur", + trial_link_id="enim", 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="consequatur", + trial_link_id="enim", 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="consequatur", + trial_link_id="enim", 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="animi", 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="animi", 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="animi", 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="animi", 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="ex", + trial_link_id="hic", 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="ex", + trial_link_id="hic", 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="ex", + trial_link_id="hic", 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="ex", + trial_link_id="hic", 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="ex", + trial_link_id="hic", 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="dolores", + trial_link_id="quis", 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="dolores", + trial_link_id="quis", 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="dolores", + trial_link_id="quis", 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="dolores", + trial_link_id="quis", 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="dolores", + trial_link_id="quis", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index a6618ab3..0e29cc80 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="nmumzwtdvnkxvqlpzaa", + name="htdcodgwijmafuwwjfqlx", ) 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="nmumzwtdvnkxvqlpzaa", + name="htdcodgwijmafuwwjfqlx", ) 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="nmumzwtdvnkxvqlpzaa", + name="htdcodgwijmafuwwjfqlx", ) 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="nmumzwtdvnkxvqlpzaa", + name="htdcodgwijmafuwwjfqlx", ) @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="nmumzwtdvnkxvqlpzaa", + name="htdcodgwijmafuwwjfqlx", ) 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="nmumzwtdvnkxvqlpzaa", + name="htdcodgwijmafuwwjfqlx", ) 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="nmumzwtdvnkxvqlpzaa", + name="htdcodgwijmafuwwjfqlx", ) 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="nmumzwtdvnkxvqlpzaa", + name="htdcodgwijmafuwwjfqlx", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 7c99e2a1cc79d09a7d53d4c68237af06e4e4d1ab Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Jul 2026 12:12:37 +0000 Subject: [PATCH 131/249] 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_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, 272 insertions(+), 272 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4bb61de3..fb649295 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a6de91af3f73af8863fd57ea222f6242aaff9bae1796722d77795ac528da4567.yml -openapi_spec_hash: 2ac12ef0cc0bbc15d545e03e00f227b4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8809a2f22eacb6c1d1a475f96f366f011f0724c71956369ac529eb2f94ad6c4b.yml +openapi_spec_hash: b09778c7e838ae9365b3f581f21d1f41 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 242d6aa8..441328b4 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="rerum", + message_id="pariatur", 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="rerum", + message_id="pariatur", 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="rerum", + message_id="pariatur", 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="rerum", + message_id="pariatur", 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="rerum", + message_id="pariatur", 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="rerum", + message_id="pariatur", 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="rerum", + message_id="pariatur", 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="rerum", + message_id="pariatur", 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="rerum", + message_id="pariatur", 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="rerum", + message_id="pariatur", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 7b917ac6..6b96ca6d 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="praesentium", + list_id="eius", 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="praesentium", + list_id="eius", 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="praesentium", + list_id="eius", 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="praesentium", + list_id="eius", 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="praesentium", + list_id="eius", 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="praesentium", + list_id="eius", 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="praesentium", + list_id="eius", 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="praesentium", + list_id="eius", 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="praesentium", + list_id="eius", 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="praesentium", + list_id="eius", 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="praesentium", + list_id="eius", 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="praesentium", + list_id="eius", 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="praesentium", + list_id="eius", 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="praesentium", + list_id="eius", 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="praesentium", + list_id="eius", 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="praesentium", + list_id="eius", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 9c963293..4b5f2461 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="quod", + 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="quod", + 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="quod", + 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="quod", + 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="quod", + 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="quod", + 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="quod", + 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="quod", + 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="quod", + 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="quod", + 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="quod", + 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="quod", + 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="quod", + 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="quod", + 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="quod", + 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="quod", + 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="quod", + 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="quod", + 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="quod", + 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="quod", + post_id="commodi", 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 444937ba..a62ccbd3 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 b5f3d61a..9c80483e 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 4ab12a6d..7804d780 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="voluptatibus", + path_story_id="quis", 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="voluptatibus", + path_story_id="quis", 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="voluptatibus", + path_story_id="quis", 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="voluptatibus", + path_story_id="quis", 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="voluptatibus", + story_id="quis", 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="voluptatibus", + story_id="quis", 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="voluptatibus", + story_id="quis", 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="voluptatibus", + story_id="quis", 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="voluptatibus", + path_story_id="quis", 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="voluptatibus", + path_story_id="quis", 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="voluptatibus", + path_story_id="quis", 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="voluptatibus", + path_story_id="quis", 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="voluptatibus", + story_id="quis", 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="voluptatibus", + story_id="quis", 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="voluptatibus", + story_id="quis", 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="voluptatibus", + story_id="quis", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index f9765ad6..3fd0e53a 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( - "eligendi", + "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( - "eligendi", + "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( - "eligendi", + "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( - "eligendi", + "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( - "eligendi", + "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( - "eligendi", + "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 95a8704e..1aa7ccbf 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="excepturi", + auth_id="expedita", + auth_type="email_password", + cookies="saepe", custom_proxy={ "host": "proxy.example.com", - "password": "@RLY.x+tyBQ$# 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="excepturi", + auth_id="expedita", + auth_type="email_password", + cookies="saepe", custom_proxy={ "host": "proxy.example.com", - "password": "@RLY.x+tyBQ$# 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 583d8ad4..aaff3bff 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="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="all", + 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 049009c1..01b758fa 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": ["hnjlkqbolsfydrzabzxijhajz"]}, + filter={"tags": ["uzzyieuxdrpz"]}, 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="aperiam", + smart_link_id="rerum", ) 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="aperiam", + smart_link_id="rerum", 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="aperiam", + smart_link_id="rerum", ) 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="aperiam", + smart_link_id="rerum", ) 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="maiores", + smart_link_id="hic", ) 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="maiores", + smart_link_id="hic", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="maiores", + smart_link_id="hic", ) assert response.is_closed is True @@ -359,7 +359,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="maiores", + smart_link_id="hic", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="eum", + smart_link_id="cupiditate", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="eum", + smart_link_id="cupiditate", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="eum", + smart_link_id="cupiditate", ) assert response.is_closed is True @@ -412,7 +412,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="eum", + smart_link_id="cupiditate", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="dignissimos", + smart_link_id="vero", ) assert smart_link is None @@ -442,7 +442,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="dignissimos", + smart_link_id="vero", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="dignissimos", + smart_link_id="vero", ) assert response.is_closed is True @@ -465,7 +465,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="dignissimos", + smart_link_id="vero", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="in", + smart_link_id="fugiat", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="in", + smart_link_id="fugiat", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="in", + smart_link_id="fugiat", ) assert response.is_closed is True @@ -517,7 +517,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="in", + smart_link_id="fugiat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["hnjlkqbolsfydrzabzxijhajz"]}, + filter={"tags": ["uzzyieuxdrpz"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="rerum", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="rerum", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="rerum", ) assert response.is_closed is True @@ -756,7 +756,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="rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="rem", + smart_link_id="laborum", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="rem", + smart_link_id="laborum", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="rem", + smart_link_id="laborum", ) assert response.is_closed is True @@ -814,7 +814,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="rem", + smart_link_id="laborum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="maiores", + smart_link_id="hic", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="maiores", + smart_link_id="hic", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="maiores", + smart_link_id="hic", ) assert response.is_closed is True @@ -873,7 +873,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="maiores", + smart_link_id="hic", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="eum", + smart_link_id="cupiditate", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="eum", + smart_link_id="cupiditate", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="eum", + smart_link_id="cupiditate", ) assert response.is_closed is True @@ -926,7 +926,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="eum", + smart_link_id="cupiditate", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="dignissimos", + smart_link_id="vero", ) assert smart_link is None @@ -956,7 +956,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="dignissimos", + smart_link_id="vero", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="dignissimos", + smart_link_id="vero", ) assert response.is_closed is True @@ -979,7 +979,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="dignissimos", + smart_link_id="vero", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="in", + smart_link_id="fugiat", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="in", + smart_link_id="fugiat", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="in", + smart_link_id="fugiat", ) assert response.is_closed is True @@ -1031,7 +1031,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="in", + smart_link_id="fugiat", ) 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 6dbfd5d7..702d9f90 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": "lfsiefurrvcynghrnxlx", - "tags": ["bc"], + "search": "bgzvedyuafqan", + "tags": ["bagik"], }, 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": "on", - "tags": ["nmthojbcyg"], + "search": "hefyto", + "tags": ["ljpwknign"], }, 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": "vtehvguybsdfhqvbv", - "tags": ["bjqpzg"], + "include_smart_links": True, + "search": "qvbuxnxubzsdpbg", + "tags": ["dplio"], }, 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": "jwxxqkphhwutjsp", - "tags": ["nycajqp"], + "search": "aiuuwknjwlf", + "tags": ["ydqzbz"], }, 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": "lfsiefurrvcynghrnxlx", - "tags": ["bc"], + "search": "bgzvedyuafqan", + "tags": ["bagik"], }, 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": "on", - "tags": ["nmthojbcyg"], + "search": "hefyto", + "tags": ["ljpwknign"], }, 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": "vtehvguybsdfhqvbv", - "tags": ["bjqpzg"], + "include_smart_links": True, + "search": "qvbuxnxubzsdpbg", + "tags": ["dplio"], }, 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": "jwxxqkphhwutjsp", - "tags": ["nycajqp"], + "search": "aiuuwknjwlf", + "tags": ["ydqzbz"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index e161ae5a..f0375332 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="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="perferendis", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="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="voluptate", + 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="voluptate", + 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="voluptate", + 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="voluptate", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="perferendis", + 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="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="voluptate", + 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="voluptate", + 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="voluptate", + 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="voluptate", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + tracking_link_id="et", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index b44bd313..88e46bab 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="enim", + trial_link_id="minima", 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="enim", + trial_link_id="minima", 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="enim", + trial_link_id="minima", 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="enim", + trial_link_id="minima", 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="enim", + trial_link_id="minima", 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="enim", + trial_link_id="minima", 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="enim", + trial_link_id="minima", 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="enim", + trial_link_id="minima", 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="animi", + trial_link_id="odit", 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="animi", + trial_link_id="odit", 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="animi", + trial_link_id="odit", 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="animi", + trial_link_id="odit", 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="hic", + trial_link_id="at", 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="hic", + trial_link_id="at", 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="hic", + trial_link_id="at", 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="hic", + trial_link_id="at", 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="hic", + trial_link_id="at", 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="enim", + trial_link_id="minima", 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="enim", + trial_link_id="minima", 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="enim", + trial_link_id="minima", 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="enim", + trial_link_id="minima", 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="enim", + trial_link_id="minima", 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="enim", + trial_link_id="minima", 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="enim", + trial_link_id="minima", 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="enim", + trial_link_id="minima", 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="animi", + trial_link_id="odit", 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="animi", + trial_link_id="odit", 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="animi", + trial_link_id="odit", 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="animi", + trial_link_id="odit", 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="hic", + trial_link_id="at", 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="hic", + trial_link_id="at", 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="hic", + trial_link_id="at", 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="hic", + trial_link_id="at", 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="hic", + trial_link_id="at", 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + trial_link_id="voluptatem", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 0e29cc80..7dcc9e7a 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="htdcodgwijmafuwwjfqlx", + name="oiico", ) 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="htdcodgwijmafuwwjfqlx", + name="oiico", ) 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="htdcodgwijmafuwwjfqlx", + name="oiico", ) 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="htdcodgwijmafuwwjfqlx", + name="oiico", ) @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="htdcodgwijmafuwwjfqlx", + name="oiico", ) 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="htdcodgwijmafuwwjfqlx", + name="oiico", ) 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="htdcodgwijmafuwwjfqlx", + name="oiico", ) 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="htdcodgwijmafuwwjfqlx", + name="oiico", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 310137122207eeb85389095d4d26dc2555333c2e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Jul 2026 14:12:37 +0000 Subject: [PATCH 132/249] 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_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 +-- 16 files changed, 266 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index fb649295..a2a66737 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8809a2f22eacb6c1d1a475f96f366f011f0724c71956369ac529eb2f94ad6c4b.yml -openapi_spec_hash: b09778c7e838ae9365b3f581f21d1f41 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-790de70d78e57caccf1b1ef1151aa5a82963727bf6ea4e7287789acf1d8d85a9.yml +openapi_spec_hash: 4b8feb0d572721a94946567b88cb8afe config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 441328b4..b2a2cea5 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="pariatur", + message_id="iste", 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="pariatur", + message_id="iste", 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="pariatur", + message_id="iste", 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="pariatur", + message_id="iste", 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="pariatur", + message_id="iste", 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="pariatur", + message_id="iste", 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="pariatur", + message_id="iste", 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="pariatur", + message_id="iste", 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="pariatur", + message_id="iste", 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="pariatur", + message_id="iste", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 6b96ca6d..2839c7ba 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="eius", + list_id="minima", 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="eius", + list_id="minima", 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="eius", + list_id="minima", 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="eius", + list_id="minima", 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="eius", + list_id="minima", 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="eius", + list_id="minima", 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="eius", + list_id="minima", 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="eius", + list_id="minima", 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="eius", + list_id="minima", 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="eius", + list_id="minima", 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="eius", + list_id="minima", 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="eius", + list_id="minima", 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="eius", + list_id="minima", 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="eius", + list_id="minima", 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="eius", + list_id="minima", 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="eius", + list_id="minima", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 4b5f2461..d809aa5d 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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 a62ccbd3..7549791e 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 9c80483e..b5f3d61a 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 7804d780..ffcd9662 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="quis", + path_story_id="assumenda", 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="quis", + path_story_id="assumenda", 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="quis", + path_story_id="assumenda", 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="quis", + path_story_id="assumenda", 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="quis", + story_id="assumenda", 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="quis", + story_id="assumenda", 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="quis", + story_id="assumenda", 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="quis", + story_id="assumenda", 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="quis", + path_story_id="assumenda", 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="quis", + path_story_id="assumenda", 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="quis", + path_story_id="assumenda", 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="quis", + path_story_id="assumenda", 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="quis", + story_id="assumenda", 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="quis", + story_id="assumenda", 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="quis", + story_id="assumenda", 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="quis", + story_id="assumenda", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 3fd0e53a..52ed4812 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", + "accusantium", ) 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", + "accusantium", ) 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", + "accusantium", ) 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", + "accusantium", ) 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", + "accusantium", ) 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", + "accusantium", ) 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 1aa7ccbf..ddaca3ad 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="expedita", - auth_type="email_password", - cookies="saepe", + auth_id="nihil", + auth_type="mobile_app", + cookies="tempora", custom_proxy={ "host": "proxy.example.com", - "password": "M\\4{AU", + "password": "-1<#rH}nlU", "port": 8080, - "username": "tenetur", + "username": "iusto", }, - email="reagan.schuster@example.com", + email="garnett.barrows@example.com", force_connect=True, - name="sint", - password="M5lT]&U$( None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="expedita", - auth_type="email_password", - cookies="saepe", + auth_id="nihil", + auth_type="mobile_app", + cookies="tempora", custom_proxy={ "host": "proxy.example.com", - "password": "M\\4{AU", + "password": "-1<#rH}nlU", "port": 8080, - "username": "tenetur", + "username": "iusto", }, - email="reagan.schuster@example.com", + email="garnett.barrows@example.com", force_connect=True, - name="sint", - password="M5lT]&U$( 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 aaff3bff..1a80b275 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 01b758fa..30749e88 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": ["uzzyieuxdrpz"]}, + filter={"tags": ["dumjavgorgzqadiajzhnq"]}, 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="rerum", + smart_link_id="quas", ) 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="rerum", + smart_link_id="quas", 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="rerum", + smart_link_id="quas", ) 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="rerum", + smart_link_id="quas", ) 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="libero", ) 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="libero", 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="libero", ) 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="libero", ) 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="hic", + smart_link_id="aut", ) 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="hic", + smart_link_id="aut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="hic", + smart_link_id="aut", ) assert response.is_closed is True @@ -359,7 +359,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="hic", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="cupiditate", + smart_link_id="nesciunt", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="cupiditate", + smart_link_id="nesciunt", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="cupiditate", + smart_link_id="nesciunt", ) assert response.is_closed is True @@ -412,7 +412,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="cupiditate", + smart_link_id="nesciunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="vero", + smart_link_id="corrupti", ) assert smart_link is None @@ -442,7 +442,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="vero", + smart_link_id="corrupti", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="vero", + smart_link_id="corrupti", ) assert response.is_closed is True @@ -465,7 +465,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="vero", + smart_link_id="corrupti", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="fugiat", + smart_link_id="dolor", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="fugiat", + smart_link_id="dolor", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="fugiat", + smart_link_id="dolor", ) assert response.is_closed is True @@ -517,7 +517,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="fugiat", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["uzzyieuxdrpz"]}, + filter={"tags": ["dumjavgorgzqadiajzhnq"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="rerum", + smart_link_id="quas", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="rerum", + smart_link_id="quas", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="rerum", + smart_link_id="quas", ) assert response.is_closed is True @@ -756,7 +756,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="rerum", + smart_link_id="quas", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="libero", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="libero", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="libero", ) assert response.is_closed is True @@ -814,7 +814,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="libero", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="hic", + smart_link_id="aut", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="hic", + smart_link_id="aut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="hic", + smart_link_id="aut", ) assert response.is_closed is True @@ -873,7 +873,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="hic", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="cupiditate", + smart_link_id="nesciunt", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="cupiditate", + smart_link_id="nesciunt", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="cupiditate", + smart_link_id="nesciunt", ) assert response.is_closed is True @@ -926,7 +926,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="cupiditate", + smart_link_id="nesciunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="vero", + smart_link_id="corrupti", ) assert smart_link is None @@ -956,7 +956,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="vero", + smart_link_id="corrupti", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="vero", + smart_link_id="corrupti", ) assert response.is_closed is True @@ -979,7 +979,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="vero", + smart_link_id="corrupti", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="fugiat", + smart_link_id="dolor", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="fugiat", + smart_link_id="dolor", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="fugiat", + smart_link_id="dolor", ) assert response.is_closed is True @@ -1031,7 +1031,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="fugiat", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index 702d9f90..7b07726e 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": "bgzvedyuafqan", - "tags": ["bagik"], + "search": "lcn", + "tags": ["isnrugtcjjmd"], }, 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": "hefyto", - "tags": ["ljpwknign"], + "search": "qdz", + "tags": ["mwvsksbyxlxrpr"], }, 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": "qvbuxnxubzsdpbg", - "tags": ["dplio"], + "search": "drjkypjewgnkbgjjzhku", + "tags": ["smj"], }, 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": "aiuuwknjwlf", - "tags": ["ydqzbz"], + "search": "mqogfunifwdyxvm", + "tags": ["usobskospdpbjjwntimglfyok"], }, 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": "bgzvedyuafqan", - "tags": ["bagik"], + "search": "lcn", + "tags": ["isnrugtcjjmd"], }, 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": "hefyto", - "tags": ["ljpwknign"], + "search": "qdz", + "tags": ["mwvsksbyxlxrpr"], }, 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": "qvbuxnxubzsdpbg", - "tags": ["dplio"], + "search": "drjkypjewgnkbgjjzhku", + "tags": ["smj"], }, 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": "aiuuwknjwlf", - "tags": ["ydqzbz"], + "search": "mqogfunifwdyxvm", + "tags": ["usobskospdpbjjwntimglfyok"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index f0375332..f834519f 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="libero", 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="libero", 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="libero", 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="libero", 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="libero", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="libero", 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="libero", 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="libero", 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="libero", 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="libero", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 88e46bab..62f8a0a3 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="odit", + trial_link_id="eveniet", 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="odit", + trial_link_id="eveniet", 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="odit", + trial_link_id="eveniet", 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="odit", + trial_link_id="eveniet", 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="at", + trial_link_id="amet", 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="at", + trial_link_id="amet", 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="at", + trial_link_id="amet", 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="at", + trial_link_id="amet", 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="at", + trial_link_id="amet", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="odit", + trial_link_id="eveniet", 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="odit", + trial_link_id="eveniet", 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="odit", + trial_link_id="eveniet", 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="odit", + trial_link_id="eveniet", 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="at", + trial_link_id="amet", 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="at", + trial_link_id="amet", 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="at", + trial_link_id="amet", 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="at", + trial_link_id="amet", 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="at", + trial_link_id="amet", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 7dcc9e7a..02e3dce4 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="oiico", + name="ogsfb", ) 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="oiico", + name="ogsfb", ) 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="oiico", + name="ogsfb", ) 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="oiico", + name="ogsfb", ) @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="oiico", + name="ogsfb", ) 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="oiico", + name="ogsfb", ) 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="oiico", + name="ogsfb", ) 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="oiico", + name="ogsfb", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 7d8523acbc7171c2bf2af963f457f242d86e5119 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Jul 2026 15:12:43 +0000 Subject: [PATCH 133/249] 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_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 +-- 13 files changed, 254 insertions(+), 254 deletions(-) diff --git a/.stats.yml b/.stats.yml index a2a66737..18993918 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-790de70d78e57caccf1b1ef1151aa5a82963727bf6ea4e7287789acf1d8d85a9.yml -openapi_spec_hash: 4b8feb0d572721a94946567b88cb8afe +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-449434682caaf52a89773dfbc4930ffcc6cf9eddffc0b3785731e6604317b133.yml +openapi_spec_hash: 38821a96365df106cd24d3db013d5e28 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index b2a2cea5..2f795f42 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="iste", + message_id="nihil", 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="iste", + message_id="nihil", 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="iste", + message_id="nihil", 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="iste", + message_id="nihil", 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="iste", + message_id="nihil", 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="iste", + message_id="nihil", 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="iste", + message_id="nihil", 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="iste", + message_id="nihil", 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="iste", + message_id="nihil", 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="iste", + message_id="nihil", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 2839c7ba..406ca503 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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="minima", + 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 d809aa5d..4b5f2461 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + post_id="commodi", 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 7549791e..a62ccbd3 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/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index ffcd9662..27eb1dfa 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="assumenda", + path_story_id="numquam", 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="assumenda", + path_story_id="numquam", 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="assumenda", + path_story_id="numquam", 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="assumenda", + path_story_id="numquam", 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="assumenda", + story_id="numquam", 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="assumenda", + story_id="numquam", 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="assumenda", + story_id="numquam", 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="assumenda", + story_id="numquam", 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="assumenda", + path_story_id="numquam", 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="assumenda", + path_story_id="numquam", 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="assumenda", + path_story_id="numquam", 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="assumenda", + path_story_id="numquam", 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="assumenda", + story_id="numquam", 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="assumenda", + story_id="numquam", 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="assumenda", + story_id="numquam", 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="assumenda", + story_id="numquam", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 52ed4812..d42d8179 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( - "accusantium", + "eum", ) 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( - "accusantium", + "eum", ) 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( - "accusantium", + "eum", ) 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( - "accusantium", + "eum", ) 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( - "accusantium", + "eum", ) 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( - "accusantium", + "eum", ) 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 ddaca3ad..8d3d1b7d 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="nihil", - auth_type="mobile_app", - cookies="tempora", + auth_id="voluptatem", + auth_type="email_password", + cookies="quod", custom_proxy={ "host": "proxy.example.com", - "password": "-1<#rH}nlU", + "password": "v$Vg9ikk|'0@", "port": 8080, - "username": "iusto", + "username": "autem", }, - email="garnett.barrows@example.com", + email="ivolkman@example.com", force_connect=True, - name="aliquam", - password="sU7R-Mu%", + name="cupiditate", + password='^Qu8P{2,j1D+@1-"X', proxy_country="uk", - user_agent="sed", - xbc="debitis", + user_agent="dolorem", + xbc="velit", ) 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="nihil", - auth_type="mobile_app", - cookies="tempora", + auth_id="voluptatem", + auth_type="email_password", + cookies="quod", custom_proxy={ "host": "proxy.example.com", - "password": "-1<#rH}nlU", + "password": "v$Vg9ikk|'0@", "port": 8080, - "username": "iusto", + "username": "autem", }, - email="garnett.barrows@example.com", + email="ivolkman@example.com", force_connect=True, - name="aliquam", - password="sU7R-Mu%", + name="cupiditate", + password='^Qu8P{2,j1D+@1-"X', proxy_country="uk", - user_agent="sed", - xbc="debitis", + user_agent="dolorem", + xbc="velit", ) 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 30749e88..016613d7 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": ["dumjavgorgzqadiajzhnq"]}, + filter={"tags": ["dwmlkue"]}, 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="quas", + smart_link_id="voluptate", ) 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="quas", + smart_link_id="voluptate", 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="quas", + smart_link_id="voluptate", ) 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="quas", + smart_link_id="voluptate", ) 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="libero", + smart_link_id="provident", ) 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="libero", + smart_link_id="provident", 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="libero", + smart_link_id="provident", ) 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="libero", + smart_link_id="provident", ) 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="aut", + smart_link_id="saepe", ) 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="aut", + smart_link_id="saepe", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="saepe", ) assert response.is_closed is True @@ -359,7 +359,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="saepe", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="nesciunt", + smart_link_id="illum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="nesciunt", + smart_link_id="illum", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="nesciunt", + smart_link_id="illum", ) assert response.is_closed is True @@ -412,7 +412,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="nesciunt", + smart_link_id="illum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="corrupti", + smart_link_id="commodi", ) assert smart_link is None @@ -442,7 +442,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="corrupti", + smart_link_id="commodi", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="corrupti", + smart_link_id="commodi", ) assert response.is_closed is True @@ -465,7 +465,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="corrupti", + smart_link_id="commodi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="dolor", + smart_link_id="magni", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="dolor", + smart_link_id="magni", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="dolor", + smart_link_id="magni", ) assert response.is_closed is True @@ -517,7 +517,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="dolor", + smart_link_id="magni", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["dumjavgorgzqadiajzhnq"]}, + filter={"tags": ["dwmlkue"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="quas", + smart_link_id="voluptate", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="quas", + smart_link_id="voluptate", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="quas", + smart_link_id="voluptate", ) assert response.is_closed is True @@ -756,7 +756,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="quas", + smart_link_id="voluptate", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="libero", + smart_link_id="provident", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="libero", + smart_link_id="provident", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="libero", + smart_link_id="provident", ) assert response.is_closed is True @@ -814,7 +814,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="libero", + smart_link_id="provident", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="saepe", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="saepe", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="saepe", ) assert response.is_closed is True @@ -873,7 +873,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="saepe", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="nesciunt", + smart_link_id="illum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="nesciunt", + smart_link_id="illum", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="nesciunt", + smart_link_id="illum", ) assert response.is_closed is True @@ -926,7 +926,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="nesciunt", + smart_link_id="illum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="corrupti", + smart_link_id="commodi", ) assert smart_link is None @@ -956,7 +956,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="corrupti", + smart_link_id="commodi", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="corrupti", + smart_link_id="commodi", ) assert response.is_closed is True @@ -979,7 +979,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="corrupti", + smart_link_id="commodi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="dolor", + smart_link_id="magni", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="dolor", + smart_link_id="magni", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="dolor", + smart_link_id="magni", ) assert response.is_closed is True @@ -1031,7 +1031,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="dolor", + 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 7b07726e..01de30c4 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": "lcn", - "tags": ["isnrugtcjjmd"], + "search": "smdudglbxksek", + "tags": ["bawxxztnngcfobqyumku"], }, 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": "qdz", - "tags": ["mwvsksbyxlxrpr"], + "search": "ewyyavldnzgv", + "tags": ["ccljupkkkykypsq"], }, 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": "drjkypjewgnkbgjjzhku", - "tags": ["smj"], + "search": "iyvchomehmp", + "tags": ["sfjmo"], }, 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": "mqogfunifwdyxvm", - "tags": ["usobskospdpbjjwntimglfyok"], + "include_smart_links": True, + "search": "dxhva", + "tags": ["tkoilvgbketcdcfqzsmrkbekw"], }, 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": "lcn", - "tags": ["isnrugtcjjmd"], + "search": "smdudglbxksek", + "tags": ["bawxxztnngcfobqyumku"], }, 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": "qdz", - "tags": ["mwvsksbyxlxrpr"], + "search": "ewyyavldnzgv", + "tags": ["ccljupkkkykypsq"], }, 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": "drjkypjewgnkbgjjzhku", - "tags": ["smj"], + "search": "iyvchomehmp", + "tags": ["sfjmo"], }, 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": "mqogfunifwdyxvm", - "tags": ["usobskospdpbjjwntimglfyok"], + "include_smart_links": True, + "search": "dxhva", + "tags": ["tkoilvgbketcdcfqzsmrkbekw"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index f834519f..2b0d4667 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="aut", + tracking_link_id="eos", 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="aut", + tracking_link_id="eos", 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="aut", + tracking_link_id="eos", 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="aut", + tracking_link_id="eos", 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="aut", + tracking_link_id="eos", 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="aut", + tracking_link_id="eos", 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="aut", + tracking_link_id="eos", 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="aut", + tracking_link_id="eos", 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="libero", + tracking_link_id="rem", 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="libero", + tracking_link_id="rem", 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="libero", + tracking_link_id="rem", 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="libero", + tracking_link_id="rem", 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="libero", + tracking_link_id="rem", 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="aut", + tracking_link_id="eos", 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="aut", + tracking_link_id="eos", 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="aut", + tracking_link_id="eos", 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="aut", + tracking_link_id="eos", 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="aut", + tracking_link_id="eos", 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="aut", + tracking_link_id="eos", 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="aut", + tracking_link_id="eos", 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="aut", + tracking_link_id="eos", 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="libero", + tracking_link_id="rem", 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="libero", + tracking_link_id="rem", 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="libero", + tracking_link_id="rem", 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="libero", + tracking_link_id="rem", 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="libero", + tracking_link_id="rem", 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + tracking_link_id="eos", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 62f8a0a3..4ff56a66 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="eveniet", + trial_link_id="corrupti", 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="eveniet", + trial_link_id="corrupti", 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="eveniet", + trial_link_id="corrupti", 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="eveniet", + trial_link_id="corrupti", 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="amet", + trial_link_id="deserunt", 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="amet", + trial_link_id="deserunt", 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="amet", + trial_link_id="deserunt", 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="amet", + trial_link_id="deserunt", 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="amet", + trial_link_id="deserunt", 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="atque", + trial_link_id="soluta", 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="atque", + trial_link_id="soluta", 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="atque", + trial_link_id="soluta", 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="atque", + trial_link_id="soluta", 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="atque", + trial_link_id="soluta", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="eveniet", + trial_link_id="corrupti", 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="eveniet", + trial_link_id="corrupti", 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="eveniet", + trial_link_id="corrupti", 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="eveniet", + trial_link_id="corrupti", 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="amet", + trial_link_id="deserunt", 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="amet", + trial_link_id="deserunt", 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="amet", + trial_link_id="deserunt", 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="amet", + trial_link_id="deserunt", 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="amet", + trial_link_id="deserunt", 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="atque", + trial_link_id="soluta", 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="atque", + trial_link_id="soluta", 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="atque", + trial_link_id="soluta", 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="atque", + trial_link_id="soluta", 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="atque", + trial_link_id="soluta", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 02e3dce4..8bdcba47 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="ogsfb", + name="vkysvpdrzwhehatlqyipyw", ) 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="ogsfb", + name="vkysvpdrzwhehatlqyipyw", ) 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="ogsfb", + name="vkysvpdrzwhehatlqyipyw", ) 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="ogsfb", + name="vkysvpdrzwhehatlqyipyw", ) @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="ogsfb", + name="vkysvpdrzwhehatlqyipyw", ) 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="ogsfb", + name="vkysvpdrzwhehatlqyipyw", ) 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="ogsfb", + name="vkysvpdrzwhehatlqyipyw", ) 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="ogsfb", + name="vkysvpdrzwhehatlqyipyw", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 2e11f3feabcda807f76fedc5ac8ad70db68ab4d0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Jul 2026 20:12:37 +0000 Subject: [PATCH 134/249] 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 | 100 +++++++++--------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 52 ++++----- 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 18993918..be1a8f1f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-449434682caaf52a89773dfbc4930ffcc6cf9eddffc0b3785731e6604317b133.yml -openapi_spec_hash: 38821a96365df106cd24d3db013d5e28 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2113cdeca9384b46bb6ebef5497bb2d5168355bafedf33f58c858cd59b06b8eb.yml +openapi_spec_hash: e54f6a1f5cd2f16827363e46da00a0e4 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 2f795f42..ce398661 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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 406ca503..cb6bd90f 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", 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="adipisci", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 4b5f2461..8912b788 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="repellat", 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="repellat", 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="repellat", 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="repellat", 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="repellat", 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="repellat", 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="repellat", 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="repellat", 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="repellat", 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="repellat", 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="repellat", 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="repellat", 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="repellat", 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="repellat", 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="repellat", 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="repellat", 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="repellat", 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="repellat", 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="repellat", 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="repellat", 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 a62ccbd3..aa735c97 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index b5f3d61a..9c80483e 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 27eb1dfa..3c270c97 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="numquam", + path_story_id="tenetur", 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="numquam", + path_story_id="tenetur", 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="numquam", + path_story_id="tenetur", 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="numquam", + path_story_id="tenetur", 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="numquam", + story_id="tenetur", 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="numquam", + story_id="tenetur", 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="numquam", + story_id="tenetur", 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="numquam", + story_id="tenetur", 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="numquam", + path_story_id="tenetur", 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="numquam", + path_story_id="tenetur", 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="numquam", + path_story_id="tenetur", 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="numquam", + path_story_id="tenetur", 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="numquam", + story_id="tenetur", 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="numquam", + story_id="tenetur", 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="numquam", + story_id="tenetur", 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="numquam", + story_id="tenetur", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index d42d8179..7db58d64 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( - "eum", + "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( - "eum", + "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( - "eum", + "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( - "eum", + "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( - "eum", + "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( - "eum", + "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 8d3d1b7d..dc1587f1 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="voluptatem", + auth_id="nam", auth_type="email_password", - cookies="quod", + cookies="deserunt", custom_proxy={ "host": "proxy.example.com", - "password": "v$Vg9ikk|'0@", + "password": "S=Q6rzb>wK3)=6c}<", "port": 8080, - "username": "autem", + "username": "neque", }, - email="ivolkman@example.com", - force_connect=True, - name="cupiditate", - password='^Qu8P{2,j1D+@1-"X', + email="ortiz.terrence@example.org", + force_connect=False, + name="vitae", + password="oU", proxy_country="uk", - user_agent="dolorem", - xbc="velit", + user_agent="suscipit", + 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="voluptatem", + auth_id="nam", auth_type="email_password", - cookies="quod", + cookies="deserunt", custom_proxy={ "host": "proxy.example.com", - "password": "v$Vg9ikk|'0@", + "password": "S=Q6rzb>wK3)=6c}<", "port": 8080, - "username": "autem", + "username": "neque", }, - email="ivolkman@example.com", - force_connect=True, - name="cupiditate", - password='^Qu8P{2,j1D+@1-"X', + email="ortiz.terrence@example.org", + force_connect=False, + name="vitae", + password="oU", proxy_country="uk", - user_agent="dolorem", - xbc="velit", + user_agent="suscipit", + xbc="qui", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 1a80b275..280e3de9 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="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="onlyfans", + 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 bd4f6161..65694e23 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 016613d7..4d552b7e 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": ["dwmlkue"]}, + filter={"tags": ["nuulinzkdfnjebev"]}, 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="voluptate", + smart_link_id="quae", ) 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="voluptate", + smart_link_id="quae", 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="voluptate", + smart_link_id="quae", ) 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="voluptate", + smart_link_id="quae", ) 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="provident", + smart_link_id="tempore", ) 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="provident", + smart_link_id="tempore", 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="provident", + smart_link_id="tempore", ) 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="provident", + smart_link_id="tempore", ) 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="saepe", + smart_link_id="velit", ) 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="saepe", + smart_link_id="velit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="velit", ) assert response.is_closed is True @@ -359,7 +359,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="velit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="illum", + smart_link_id="provident", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="illum", + smart_link_id="provident", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="illum", + smart_link_id="provident", ) assert response.is_closed is True @@ -412,7 +412,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="illum", + smart_link_id="provident", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="commodi", + smart_link_id="ut", ) assert smart_link is None @@ -442,7 +442,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="commodi", + smart_link_id="ut", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="commodi", + smart_link_id="ut", ) assert response.is_closed is True @@ -465,7 +465,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="commodi", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="est", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="est", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="est", ) assert response.is_closed is True @@ -517,7 +517,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="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["dwmlkue"]}, + filter={"tags": ["nuulinzkdfnjebev"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="quae", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="quae", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="quae", ) assert response.is_closed is True @@ -756,7 +756,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="quae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="provident", + smart_link_id="tempore", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="provident", + smart_link_id="tempore", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="provident", + smart_link_id="tempore", ) assert response.is_closed is True @@ -814,7 +814,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="provident", + smart_link_id="tempore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="velit", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="velit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="velit", ) assert response.is_closed is True @@ -873,7 +873,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="velit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="illum", + smart_link_id="provident", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="illum", + smart_link_id="provident", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="illum", + smart_link_id="provident", ) assert response.is_closed is True @@ -926,7 +926,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="illum", + smart_link_id="provident", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="commodi", + smart_link_id="ut", ) assert smart_link is None @@ -956,7 +956,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="commodi", + smart_link_id="ut", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="commodi", + smart_link_id="ut", ) assert response.is_closed is True @@ -979,7 +979,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="commodi", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="est", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="est", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="est", ) assert response.is_closed is True @@ -1031,7 +1031,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="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 01de30c4..8b58e680 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": "smdudglbxksek", - "tags": ["bawxxztnngcfobqyumku"], + "search": "zeosipgtyo", + "tags": ["lsmdosyvftinmhq"], }, 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": "ewyyavldnzgv", - "tags": ["ccljupkkkykypsq"], + "search": "eelxzkspcaofefqwcygmsy", + "tags": ["wtfbicqdcikunwuaxmyxwio"], }, 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": "iyvchomehmp", - "tags": ["sfjmo"], + "search": "shpttsuxm", + "tags": ["ykhsarrezjzzrog"], }, 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": "dxhva", - "tags": ["tkoilvgbketcdcfqzsmrkbekw"], + "include_smart_links": False, + "search": "fplzzbsyuysj", + "tags": ["pxrnsifuubasqwgmc"], }, 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": "smdudglbxksek", - "tags": ["bawxxztnngcfobqyumku"], + "search": "zeosipgtyo", + "tags": ["lsmdosyvftinmhq"], }, 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": "ewyyavldnzgv", - "tags": ["ccljupkkkykypsq"], + "search": "eelxzkspcaofefqwcygmsy", + "tags": ["wtfbicqdcikunwuaxmyxwio"], }, 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": "iyvchomehmp", - "tags": ["sfjmo"], + "search": "shpttsuxm", + "tags": ["ykhsarrezjzzrog"], }, 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": "dxhva", - "tags": ["tkoilvgbketcdcfqzsmrkbekw"], + "include_smart_links": False, + "search": "fplzzbsyuysj", + "tags": ["pxrnsifuubasqwgmc"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 2b0d4667..cda95cb7 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="eos", + tracking_link_id="iusto", 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="eos", + tracking_link_id="iusto", 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="eos", + tracking_link_id="iusto", 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="eos", + tracking_link_id="iusto", 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="eos", + tracking_link_id="iusto", 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="eos", + tracking_link_id="iusto", 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="eos", + tracking_link_id="iusto", 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="eos", + tracking_link_id="iusto", 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="eos", + tracking_link_id="iusto", 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="eos", + tracking_link_id="iusto", 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="eos", + tracking_link_id="iusto", 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="eos", + tracking_link_id="iusto", 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="eos", + tracking_link_id="iusto", 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="eos", + tracking_link_id="iusto", 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="eos", + tracking_link_id="ab", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 4ff56a66..b0f52b37 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="corrupti", + 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="corrupti", + 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="corrupti", + 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="corrupti", + 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="deserunt", + trial_link_id="et", 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="deserunt", + trial_link_id="et", 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="deserunt", + trial_link_id="et", 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="deserunt", + trial_link_id="et", 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="deserunt", + trial_link_id="et", 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="soluta", + 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="soluta", + 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="soluta", + 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="soluta", + 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="soluta", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="corrupti", + 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="corrupti", + 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="corrupti", + 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="corrupti", + 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="deserunt", + trial_link_id="et", 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="deserunt", + trial_link_id="et", 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="deserunt", + trial_link_id="et", 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="deserunt", + trial_link_id="et", 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="deserunt", + trial_link_id="et", 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="soluta", + 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="soluta", + 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="soluta", + 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="soluta", + 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="soluta", + trial_link_id="ut", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 8bdcba47..1a71d3b6 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="vkysvpdrzwhehatlqyipyw", + name="eaihc", ) 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="vkysvpdrzwhehatlqyipyw", + name="eaihc", ) 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="vkysvpdrzwhehatlqyipyw", + name="eaihc", ) 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="vkysvpdrzwhehatlqyipyw", + name="eaihc", ) @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="vkysvpdrzwhehatlqyipyw", + name="eaihc", ) 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="vkysvpdrzwhehatlqyipyw", + name="eaihc", ) 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="vkysvpdrzwhehatlqyipyw", + name="eaihc", ) 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="vkysvpdrzwhehatlqyipyw", + name="eaihc", ) @pytest.mark.skip(reason="Mock server tests are disabled") From f3f6a7de15830eabbd9ad57d5edd600a444872cb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Jul 2026 21:12:35 +0000 Subject: [PATCH 135/249] 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_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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, 270 insertions(+), 270 deletions(-) diff --git a/.stats.yml b/.stats.yml index be1a8f1f..baf83e2c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2113cdeca9384b46bb6ebef5497bb2d5168355bafedf33f58c858cd59b06b8eb.yml -openapi_spec_hash: e54f6a1f5cd2f16827363e46da00a0e4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6fc9beff8a858c9347e86bd8ea67a7748aeb90592f809411d06283deb32d5057.yml +openapi_spec_hash: a1de5cd20fd285745e197f410847e4cb config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index ce398661..bac3b029 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index cb6bd90f..de76d677 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="adipisci", + list_id="hic", 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="adipisci", + list_id="hic", 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="adipisci", + list_id="hic", 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="adipisci", + list_id="hic", 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="adipisci", + list_id="hic", 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="adipisci", + list_id="hic", 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="adipisci", + list_id="hic", 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="adipisci", + list_id="hic", 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="adipisci", + list_id="hic", 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="adipisci", + list_id="hic", 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="adipisci", + list_id="hic", 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="adipisci", + list_id="hic", 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="adipisci", + list_id="hic", 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="adipisci", + list_id="hic", 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="adipisci", + list_id="hic", 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="adipisci", + list_id="hic", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 8912b788..76a3b99e 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="repellat", + post_id="neque", 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="repellat", + post_id="neque", 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="repellat", + post_id="neque", 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="repellat", + post_id="neque", 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="repellat", + post_id="neque", 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="repellat", + post_id="neque", 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="repellat", + post_id="neque", 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="repellat", + post_id="neque", 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="repellat", + post_id="neque", 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="repellat", + post_id="neque", 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="repellat", + post_id="neque", 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="repellat", + post_id="neque", 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="repellat", + post_id="neque", 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="repellat", + post_id="neque", 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="repellat", + post_id="neque", 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="repellat", + post_id="neque", 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="repellat", + post_id="neque", 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="repellat", + post_id="neque", 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="repellat", + post_id="neque", 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="repellat", + post_id="neque", 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 aa735c97..7549791e 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 9c80483e..b5f3d61a 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 3c270c97..7804d780 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="tenetur", + path_story_id="quis", 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="tenetur", + path_story_id="quis", 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="tenetur", + path_story_id="quis", 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="tenetur", + path_story_id="quis", 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="tenetur", + story_id="quis", 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="tenetur", + story_id="quis", 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="tenetur", + story_id="quis", 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="tenetur", + story_id="quis", 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="tenetur", + path_story_id="quis", 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="tenetur", + path_story_id="quis", 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="tenetur", + path_story_id="quis", 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="tenetur", + path_story_id="quis", 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="tenetur", + story_id="quis", 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="tenetur", + story_id="quis", 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="tenetur", + story_id="quis", 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="tenetur", + story_id="quis", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 7db58d64..c98fd673 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", + "corrupti", ) 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", + "corrupti", ) 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", + "corrupti", ) 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", + "corrupti", ) 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", + "corrupti", ) 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", + "corrupti", ) 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 dc1587f1..e0df20e7 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="nam", - auth_type="email_password", - cookies="deserunt", + auth_id="rerum", + auth_type="raw_data", + cookies="saepe", custom_proxy={ "host": "proxy.example.com", - "password": "S=Q6rzb>wK3)=6c}<", + "password": 'R`K#"Op+VleNh%', "port": 8080, - "username": "neque", + "username": "aperiam", }, - email="ortiz.terrence@example.org", + email="alisa.luettgen@example.net", force_connect=False, - name="vitae", - password="oU", - proxy_country="uk", - user_agent="suscipit", - xbc="qui", + name="modi", + password=":9Op[pj|h\\", + proxy_country="us", + user_agent="qui", + xbc="autem", ) 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="nam", - auth_type="email_password", - cookies="deserunt", + auth_id="rerum", + auth_type="raw_data", + cookies="saepe", custom_proxy={ "host": "proxy.example.com", - "password": "S=Q6rzb>wK3)=6c}<", + "password": 'R`K#"Op+VleNh%', "port": 8080, - "username": "neque", + "username": "aperiam", }, - email="ortiz.terrence@example.org", + email="alisa.luettgen@example.net", force_connect=False, - name="vitae", - password="oU", - proxy_country="uk", - user_agent="suscipit", - xbc="qui", + name="modi", + password=":9Op[pj|h\\", + proxy_country="us", + user_agent="qui", + xbc="autem", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 280e3de9..583d8ad4 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="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="comments", + type="all", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e23..bd4f6161 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 4d552b7e..ad88a649 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": ["nuulinzkdfnjebev"]}, + filter={"tags": ["mjceuhgkmjyk"]}, 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="quae", + smart_link_id="est", ) 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="quae", + smart_link_id="est", 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="quae", + smart_link_id="est", ) 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="quae", + smart_link_id="est", ) 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="tempore", + smart_link_id="qui", ) 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="tempore", + smart_link_id="qui", 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="tempore", + smart_link_id="qui", ) 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="tempore", + smart_link_id="qui", ) 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="velit", + smart_link_id="fugiat", ) 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="velit", + smart_link_id="fugiat", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="velit", + smart_link_id="fugiat", ) assert response.is_closed is True @@ -359,7 +359,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="velit", + smart_link_id="fugiat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="exercitationem", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="exercitationem", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="exercitationem", ) assert response.is_closed is True @@ -412,7 +412,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="exercitationem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="vitae", ) assert smart_link is None @@ -442,7 +442,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="vitae", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="vitae", ) assert response.is_closed is True @@ -465,7 +465,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="vitae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="ab", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="ab", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="ab", ) assert response.is_closed is True @@ -517,7 +517,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="ab", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["nuulinzkdfnjebev"]}, + filter={"tags": ["mjceuhgkmjyk"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="quae", + smart_link_id="est", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="quae", + smart_link_id="est", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="quae", + smart_link_id="est", ) assert response.is_closed is True @@ -756,7 +756,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="quae", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="tempore", + smart_link_id="qui", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="tempore", + smart_link_id="qui", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="tempore", + smart_link_id="qui", ) assert response.is_closed is True @@ -814,7 +814,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="tempore", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="velit", + smart_link_id="fugiat", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="velit", + smart_link_id="fugiat", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="velit", + smart_link_id="fugiat", ) assert response.is_closed is True @@ -873,7 +873,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="velit", + smart_link_id="fugiat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="exercitationem", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="exercitationem", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="exercitationem", ) assert response.is_closed is True @@ -926,7 +926,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="exercitationem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="vitae", ) assert smart_link is None @@ -956,7 +956,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="vitae", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="vitae", ) assert response.is_closed is True @@ -979,7 +979,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="vitae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="ab", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="ab", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="ab", ) assert response.is_closed is True @@ -1031,7 +1031,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="ab", ) 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 8b58e680..ae5efd67 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": "zeosipgtyo", - "tags": ["lsmdosyvftinmhq"], + "search": "xehkujvpuck", + "tags": ["vhrhlezggm"], }, 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": "eelxzkspcaofefqwcygmsy", - "tags": ["wtfbicqdcikunwuaxmyxwio"], + "search": "oaklaggmgvlhqwyp", + "tags": ["givvevuvwjnxjxpfszm"], }, 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": "shpttsuxm", - "tags": ["ykhsarrezjzzrog"], + "include_smart_links": False, + "search": "ydazswfltlkzfhtfrycwrb", + "tags": ["anzamlssjaybes"], }, 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": "fplzzbsyuysj", - "tags": ["pxrnsifuubasqwgmc"], + "include_smart_links": True, + "search": "vebyzyqiutqchl", + "tags": ["eyetdiw"], }, 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": "zeosipgtyo", - "tags": ["lsmdosyvftinmhq"], + "search": "xehkujvpuck", + "tags": ["vhrhlezggm"], }, 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": "eelxzkspcaofefqwcygmsy", - "tags": ["wtfbicqdcikunwuaxmyxwio"], + "search": "oaklaggmgvlhqwyp", + "tags": ["givvevuvwjnxjxpfszm"], }, 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": "shpttsuxm", - "tags": ["ykhsarrezjzzrog"], + "include_smart_links": False, + "search": "ydazswfltlkzfhtfrycwrb", + "tags": ["anzamlssjaybes"], }, 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": "fplzzbsyuysj", - "tags": ["pxrnsifuubasqwgmc"], + "include_smart_links": True, + "search": "vebyzyqiutqchl", + "tags": ["eyetdiw"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index cda95cb7..c530c75e 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="iusto", + tracking_link_id="aut", 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="iusto", + tracking_link_id="aut", 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="iusto", + tracking_link_id="aut", 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="iusto", + tracking_link_id="aut", 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="iusto", + tracking_link_id="aut", 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="iusto", + tracking_link_id="aut", 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="iusto", + tracking_link_id="aut", 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="iusto", + tracking_link_id="aut", 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="rem", + tracking_link_id="iure", 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="rem", + tracking_link_id="iure", 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="rem", + tracking_link_id="iure", 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="rem", + tracking_link_id="iure", 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="rem", + tracking_link_id="iure", 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="impedit", 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="impedit", 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="impedit", 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="impedit", 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="impedit", 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="iusto", + tracking_link_id="aut", 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="iusto", + tracking_link_id="aut", 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="iusto", + tracking_link_id="aut", 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="iusto", + tracking_link_id="aut", 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="iusto", + tracking_link_id="aut", 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="iusto", + tracking_link_id="aut", 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="iusto", + tracking_link_id="aut", 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="iusto", + tracking_link_id="aut", 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="rem", + tracking_link_id="iure", 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="rem", + tracking_link_id="iure", 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="rem", + tracking_link_id="iure", 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="rem", + tracking_link_id="iure", 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="rem", + tracking_link_id="iure", 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="impedit", 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="impedit", 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="impedit", 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="impedit", 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="impedit", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index b0f52b37..a1b3c9a7 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="doloremque", 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="doloremque", 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="doloremque", 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="doloremque", 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="doloremque", 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="doloremque", 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="doloremque", 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="doloremque", 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="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="aut", + 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="aut", + 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="aut", + 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="et", + trial_link_id="suscipit", 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="et", + trial_link_id="suscipit", 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="et", + trial_link_id="suscipit", 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="et", + trial_link_id="suscipit", 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="et", + trial_link_id="suscipit", 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="non", + trial_link_id="doloremque", 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="doloremque", 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="doloremque", 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="doloremque", 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="doloremque", 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="doloremque", 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="doloremque", 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="doloremque", 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="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="aut", + 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="aut", + 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="aut", + 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="et", + trial_link_id="suscipit", 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="et", + trial_link_id="suscipit", 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="et", + trial_link_id="suscipit", 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="et", + trial_link_id="suscipit", 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="et", + trial_link_id="suscipit", 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + trial_link_id="cumque", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 1a71d3b6..5b6f2165 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="eaihc", + name="p", ) 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="eaihc", + name="p", ) 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="eaihc", + name="p", ) 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="eaihc", + name="p", ) @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="eaihc", + name="p", ) 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="eaihc", + name="p", ) 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="eaihc", + name="p", ) 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="eaihc", + name="p", ) @pytest.mark.skip(reason="Mock server tests are disabled") From d69001b11519fca2f88a08610e4c11f462b10690 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 4 Jul 2026 00:12:34 +0000 Subject: [PATCH 136/249] 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 | 48 ++++----- 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 +-- 16 files changed, 270 insertions(+), 270 deletions(-) diff --git a/.stats.yml b/.stats.yml index baf83e2c..644b6746 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6fc9beff8a858c9347e86bd8ea67a7748aeb90592f809411d06283deb32d5057.yml -openapi_spec_hash: a1de5cd20fd285745e197f410847e4cb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f3ae566c4414fa1028a893ffcb915ec516454172ad6f1a170104c435c1db0680.yml +openapi_spec_hash: 21082d6b6aa024f4394dfe9fceb8d803 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index bac3b029..cbe09155 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="nisi", + message_id="sit", 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="nisi", + message_id="sit", 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="nisi", + message_id="sit", 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="nisi", + message_id="sit", 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="nisi", + message_id="sit", 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="nisi", + message_id="sit", 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="nisi", + message_id="sit", 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="nisi", + message_id="sit", 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="nisi", + message_id="sit", 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="nisi", + message_id="sit", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index de76d677..faa12f9d 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 76a3b99e..6431515e 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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="neque", + 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 7549791e..a62ccbd3 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index b5f3d61a..2ced6cb5 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 7804d780..bc183588 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="quis", + path_story_id="id", 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="quis", + path_story_id="id", 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="quis", + path_story_id="id", 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="quis", + path_story_id="id", 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="quis", + story_id="id", 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="quis", + story_id="id", 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="quis", + story_id="id", 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="quis", + story_id="id", 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="quis", + path_story_id="id", 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="quis", + path_story_id="id", 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="quis", + path_story_id="id", 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="quis", + path_story_id="id", 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="quis", + story_id="id", 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="quis", + story_id="id", 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="quis", + story_id="id", 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="quis", + story_id="id", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index c98fd673..0cbfcb97 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( - "corrupti", + "quam", ) 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( - "corrupti", + "quam", ) 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( - "corrupti", + "quam", ) 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( - "corrupti", + "quam", ) 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( - "corrupti", + "quam", ) 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( - "corrupti", + "quam", ) 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 e0df20e7..540270f7 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="rerum", - auth_type="raw_data", - cookies="saepe", + auth_id="quod", + auth_type="email_password", + cookies="velit", custom_proxy={ "host": "proxy.example.com", - "password": 'R`K#"Op+VleNh%', + "password": 'GIU.^&p[j"@My011b', "port": 8080, - "username": "aperiam", + "username": "nihil", }, - email="alisa.luettgen@example.net", - force_connect=False, - name="modi", - password=":9Op[pj|h\\", - proxy_country="us", - user_agent="qui", - xbc="autem", + email="tremblay.nikki@example.org", + force_connect=True, + name="dolor", + password="y<8yCz{kd;<`", + proxy_country="uk", + user_agent="enim", + xbc="at", ) 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="rerum", - auth_type="raw_data", - cookies="saepe", + auth_id="quod", + auth_type="email_password", + cookies="velit", custom_proxy={ "host": "proxy.example.com", - "password": 'R`K#"Op+VleNh%', + "password": 'GIU.^&p[j"@My011b', "port": 8080, - "username": "aperiam", + "username": "nihil", }, - email="alisa.luettgen@example.net", - force_connect=False, - name="modi", - password=":9Op[pj|h\\", - proxy_country="us", - user_agent="qui", - xbc="autem", + email="tremblay.nikki@example.org", + force_connect=True, + name="dolor", + password="y<8yCz{kd;<`", + proxy_country="uk", + user_agent="enim", + xbc="at", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 583d8ad4..1a80b275 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="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="all", + type="onlyfans", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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 ad88a649..1f17dede 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": ["mjceuhgkmjyk"]}, + filter={"tags": ["kyngcygdw"]}, 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="est", + smart_link_id="id", ) 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="est", + smart_link_id="id", 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="est", + smart_link_id="id", ) 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="est", + smart_link_id="id", ) 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="qui", + smart_link_id="rerum", ) 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="qui", + smart_link_id="rerum", 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="qui", + smart_link_id="rerum", ) 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="qui", + smart_link_id="rerum", ) 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="fugiat", + smart_link_id="deleniti", ) 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="fugiat", + smart_link_id="deleniti", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="deleniti", ) assert response.is_closed is True @@ -359,7 +359,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="deleniti", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="exercitationem", + smart_link_id="qui", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="exercitationem", + smart_link_id="qui", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="exercitationem", + smart_link_id="qui", ) assert response.is_closed is True @@ -412,7 +412,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="exercitationem", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="quia", ) assert smart_link is None @@ -442,7 +442,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="quia", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="quia", ) assert response.is_closed is True @@ -465,7 +465,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="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="ab", + smart_link_id="dolor", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="ab", + smart_link_id="dolor", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="ab", + smart_link_id="dolor", ) assert response.is_closed is True @@ -517,7 +517,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="ab", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["mjceuhgkmjyk"]}, + filter={"tags": ["kyngcygdw"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="est", + smart_link_id="id", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="est", + smart_link_id="id", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="est", + smart_link_id="id", ) assert response.is_closed is True @@ -756,7 +756,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="est", + smart_link_id="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="rerum", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="rerum", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="rerum", ) assert response.is_closed is True @@ -814,7 +814,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="rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="deleniti", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="deleniti", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="deleniti", ) assert response.is_closed is True @@ -873,7 +873,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="deleniti", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="exercitationem", + smart_link_id="qui", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="exercitationem", + smart_link_id="qui", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="exercitationem", + smart_link_id="qui", ) assert response.is_closed is True @@ -926,7 +926,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="exercitationem", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="quia", ) assert smart_link is None @@ -956,7 +956,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="quia", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="quia", ) assert response.is_closed is True @@ -979,7 +979,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="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="ab", + smart_link_id="dolor", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="ab", + smart_link_id="dolor", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="ab", + smart_link_id="dolor", ) assert response.is_closed is True @@ -1031,7 +1031,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="ab", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index ae5efd67..f8285231 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": "xehkujvpuck", - "tags": ["vhrhlezggm"], + "search": "xrqkpllqexke", + "tags": ["oscimdiwpfjw"], }, 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": "oaklaggmgvlhqwyp", - "tags": ["givvevuvwjnxjxpfszm"], + "search": "xcoohqmdvsmmq", + "tags": ["wvcfrmhksjlnua"], }, 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": "ydazswfltlkzfhtfrycwrb", - "tags": ["anzamlssjaybes"], + "search": "zrcuwzkr", + "tags": ["ymtnvckrjpkoysibcmp"], }, 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": "vebyzyqiutqchl", - "tags": ["eyetdiw"], + "include_smart_links": False, + "search": "bdblwpdohhbonqsep", + "tags": ["dewiirfhjjaakeexrwgzwnzi"], }, 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": "xehkujvpuck", - "tags": ["vhrhlezggm"], + "search": "xrqkpllqexke", + "tags": ["oscimdiwpfjw"], }, 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": "oaklaggmgvlhqwyp", - "tags": ["givvevuvwjnxjxpfszm"], + "search": "xcoohqmdvsmmq", + "tags": ["wvcfrmhksjlnua"], }, 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": "ydazswfltlkzfhtfrycwrb", - "tags": ["anzamlssjaybes"], + "search": "zrcuwzkr", + "tags": ["ymtnvckrjpkoysibcmp"], }, 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": "vebyzyqiutqchl", - "tags": ["eyetdiw"], + "include_smart_links": False, + "search": "bdblwpdohhbonqsep", + "tags": ["dewiirfhjjaakeexrwgzwnzi"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index c530c75e..2894f0c0 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + tracking_link_id="ut", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index a1b3c9a7..ad275f92 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="doloremque", + trial_link_id="minima", 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="doloremque", + trial_link_id="minima", 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="doloremque", + trial_link_id="minima", 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="doloremque", + trial_link_id="minima", 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="doloremque", + trial_link_id="minima", 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="doloremque", + trial_link_id="minima", 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="doloremque", + trial_link_id="minima", 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="doloremque", + trial_link_id="minima", 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="provident", 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="provident", 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="provident", 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="provident", 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="suscipit", + trial_link_id="saepe", 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="suscipit", + trial_link_id="saepe", 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="suscipit", + trial_link_id="saepe", 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="suscipit", + trial_link_id="saepe", 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="suscipit", + trial_link_id="saepe", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="doloremque", + trial_link_id="minima", 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="doloremque", + trial_link_id="minima", 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="doloremque", + trial_link_id="minima", 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="doloremque", + trial_link_id="minima", 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="doloremque", + trial_link_id="minima", 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="doloremque", + trial_link_id="minima", 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="doloremque", + trial_link_id="minima", 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="doloremque", + trial_link_id="minima", 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="provident", 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="provident", 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="provident", 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="provident", 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="suscipit", + trial_link_id="saepe", 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="suscipit", + trial_link_id="saepe", 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="suscipit", + trial_link_id="saepe", 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="suscipit", + trial_link_id="saepe", 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="suscipit", + trial_link_id="saepe", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 5b6f2165..13bb706a 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="p", + name="fhjkiwheanjlohprqewg", ) 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="p", + name="fhjkiwheanjlohprqewg", ) 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="p", + name="fhjkiwheanjlohprqewg", ) 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="p", + name="fhjkiwheanjlohprqewg", ) @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="p", + name="fhjkiwheanjlohprqewg", ) 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="p", + name="fhjkiwheanjlohprqewg", ) 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="p", + name="fhjkiwheanjlohprqewg", ) 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="p", + name="fhjkiwheanjlohprqewg", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 64e03259d17d1f27f44ae4ab2d8ee3cba744677b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 4 Jul 2026 01:12:42 +0000 Subject: [PATCH 137/249] 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 | 36 +++---- 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 | 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 +-- 18 files changed, 266 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index 644b6746..3175e75b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f3ae566c4414fa1028a893ffcb915ec516454172ad6f1a170104c435c1db0680.yml -openapi_spec_hash: 21082d6b6aa024f4394dfe9fceb8d803 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ab19a29f011d8e3f0906a7677daba1145b83b3febe89057b6041674a9190b9c4.yml +openapi_spec_hash: b1f6250a95965cf76e7e2f8a0842117c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index cbe09155..1b405953 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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 faa12f9d..e3f73447 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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="quam", + 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 6431515e..f374e50d 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="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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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="distinctio", + 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 a62ccbd3..444937ba 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 2ced6cb5..b5f3d61a 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 9664075f..544df889 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 bc183588..430d968b 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="id", + path_story_id="velit", 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="id", + path_story_id="velit", 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="id", + path_story_id="velit", 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="id", + path_story_id="velit", 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="id", + story_id="velit", 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="id", + story_id="velit", 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="id", + story_id="velit", 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="id", + story_id="velit", 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="id", + path_story_id="velit", 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="id", + path_story_id="velit", 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="id", + path_story_id="velit", 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="id", + path_story_id="velit", 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="id", + story_id="velit", 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="id", + story_id="velit", 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="id", + story_id="velit", 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="id", + story_id="velit", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 0cbfcb97..04c760b7 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( - "quam", + "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( - "quam", + "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( - "quam", + "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( - "quam", + "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( - "quam", + "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( - "quam", + "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 540270f7..81f3e4fc 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="quod", + auth_id="fugiat", auth_type="email_password", - cookies="velit", + cookies="temporibus", custom_proxy={ "host": "proxy.example.com", - "password": 'GIU.^&p[j"@My011b', + "password": ":gRU9(LD", "port": 8080, - "username": "nihil", + "username": "eius", }, - email="tremblay.nikki@example.org", + email="pouros.prudence@example.com", force_connect=True, - name="dolor", - password="y<8yCz{kd;<`", - proxy_country="uk", + name="culpa", + password=">SS.oMD{@>znrYN6X", + proxy_country="us", user_agent="enim", - xbc="at", + 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="quod", + auth_id="fugiat", auth_type="email_password", - cookies="velit", + cookies="temporibus", custom_proxy={ "host": "proxy.example.com", - "password": 'GIU.^&p[j"@My011b', + "password": ":gRU9(LD", "port": 8080, - "username": "nihil", + "username": "eius", }, - email="tremblay.nikki@example.org", + email="pouros.prudence@example.com", force_connect=True, - name="dolor", - password="y<8yCz{kd;<`", - proxy_country="uk", + name="culpa", + password=">SS.oMD{@>znrYN6X", + proxy_country="us", user_agent="enim", - xbc="at", + xbc="et", ) 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 9249f386..3597ede6 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 1a80b275..aaff3bff 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="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="onlyfans", + 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 65694e23..bd4f6161 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 1f17dede..a7d47054 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": ["kyngcygdw"]}, + filter={"tags": ["ossetkjhuotstignjgjlwhbz"]}, 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="id", + smart_link_id="est", ) 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="id", + smart_link_id="est", 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="id", + smart_link_id="est", ) 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="id", + smart_link_id="est", ) 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="rerum", + smart_link_id="eum", ) 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="rerum", + smart_link_id="eum", 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="rerum", + smart_link_id="eum", ) 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="rerum", + smart_link_id="eum", ) 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="deleniti", + smart_link_id="suscipit", ) 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="deleniti", + smart_link_id="suscipit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="suscipit", ) assert response.is_closed is True @@ -359,7 +359,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="suscipit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="sit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="sit", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="sit", ) assert response.is_closed is True @@ -412,7 +412,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="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="quia", + smart_link_id="molestiae", ) assert smart_link is None @@ -442,7 +442,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="quia", + smart_link_id="molestiae", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="quia", + smart_link_id="molestiae", ) assert response.is_closed is True @@ -465,7 +465,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="quia", + smart_link_id="molestiae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="dolor", + smart_link_id="sint", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="dolor", + smart_link_id="sint", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="dolor", + smart_link_id="sint", ) assert response.is_closed is True @@ -517,7 +517,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="dolor", + smart_link_id="sint", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["kyngcygdw"]}, + filter={"tags": ["ossetkjhuotstignjgjlwhbz"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="est", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="est", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="est", ) assert response.is_closed is True @@ -756,7 +756,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="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="eum", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="eum", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="eum", ) assert response.is_closed is True @@ -814,7 +814,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="eum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="suscipit", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="suscipit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="suscipit", ) assert response.is_closed is True @@ -873,7 +873,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="suscipit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="sit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="sit", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="sit", ) assert response.is_closed is True @@ -926,7 +926,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="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="quia", + smart_link_id="molestiae", ) assert smart_link is None @@ -956,7 +956,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="quia", + smart_link_id="molestiae", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="quia", + smart_link_id="molestiae", ) assert response.is_closed is True @@ -979,7 +979,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="quia", + smart_link_id="molestiae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="dolor", + smart_link_id="sint", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="dolor", + smart_link_id="sint", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="dolor", + smart_link_id="sint", ) assert response.is_closed is True @@ -1031,7 +1031,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="dolor", + 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 f8285231..5f1574e5 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": "xrqkpllqexke", - "tags": ["oscimdiwpfjw"], + "search": "sgcevdwtlxxhatwvjxaibpfdy", + "tags": ["sdebeujhtcdwnfdrcct"], }, 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": "xcoohqmdvsmmq", - "tags": ["wvcfrmhksjlnua"], + "search": "ezegkmxb", + "tags": ["asugaxfzjnv"], }, 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": "zrcuwzkr", - "tags": ["ymtnvckrjpkoysibcmp"], + "search": "qqnopxgatjjlgcdudhg", + "tags": ["dabmmucryyxpty"], }, 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": "bdblwpdohhbonqsep", - "tags": ["dewiirfhjjaakeexrwgzwnzi"], + "search": "weuaciegwzguboon", + "tags": ["eotdpygomekxm"], }, 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": "xrqkpllqexke", - "tags": ["oscimdiwpfjw"], + "search": "sgcevdwtlxxhatwvjxaibpfdy", + "tags": ["sdebeujhtcdwnfdrcct"], }, 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": "xcoohqmdvsmmq", - "tags": ["wvcfrmhksjlnua"], + "search": "ezegkmxb", + "tags": ["asugaxfzjnv"], }, 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": "zrcuwzkr", - "tags": ["ymtnvckrjpkoysibcmp"], + "search": "qqnopxgatjjlgcdudhg", + "tags": ["dabmmucryyxpty"], }, 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": "bdblwpdohhbonqsep", - "tags": ["dewiirfhjjaakeexrwgzwnzi"], + "search": "weuaciegwzguboon", + "tags": ["eotdpygomekxm"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 2894f0c0..c07a37d9 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="totam", 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="totam", 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="totam", 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="totam", 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="totam", 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="tempora", 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="tempora", 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="tempora", 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="tempora", 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="tempora", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="totam", 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="totam", 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="totam", 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="totam", 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="totam", 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="tempora", 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="tempora", 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="tempora", 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="tempora", 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="tempora", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index ad275f92..26a81616 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="minima", + trial_link_id="saepe", 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="minima", + trial_link_id="saepe", 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="minima", + trial_link_id="saepe", 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="minima", + trial_link_id="saepe", 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="minima", + trial_link_id="saepe", 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="minima", + trial_link_id="saepe", 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="minima", + trial_link_id="saepe", 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="minima", + trial_link_id="saepe", 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="provident", + 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="provident", + 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="provident", + 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="provident", + 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="saepe", + trial_link_id="blanditiis", 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="saepe", + trial_link_id="blanditiis", 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="saepe", + trial_link_id="blanditiis", 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="saepe", + trial_link_id="blanditiis", 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="saepe", + trial_link_id="blanditiis", 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="vel", + trial_link_id="tenetur", 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="vel", + trial_link_id="tenetur", 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="vel", + trial_link_id="tenetur", 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="vel", + trial_link_id="tenetur", 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="vel", + trial_link_id="tenetur", 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="minima", + trial_link_id="saepe", 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="minima", + trial_link_id="saepe", 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="minima", + trial_link_id="saepe", 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="minima", + trial_link_id="saepe", 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="minima", + trial_link_id="saepe", 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="minima", + trial_link_id="saepe", 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="minima", + trial_link_id="saepe", 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="minima", + trial_link_id="saepe", 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="provident", + 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="provident", + 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="provident", + 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="provident", + 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="saepe", + trial_link_id="blanditiis", 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="saepe", + trial_link_id="blanditiis", 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="saepe", + trial_link_id="blanditiis", 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="saepe", + trial_link_id="blanditiis", 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="saepe", + trial_link_id="blanditiis", 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="vel", + trial_link_id="tenetur", 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="vel", + trial_link_id="tenetur", 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="vel", + trial_link_id="tenetur", 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="vel", + trial_link_id="tenetur", 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="vel", + trial_link_id="tenetur", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 13bb706a..9161c026 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="fhjkiwheanjlohprqewg", + name="ob", ) 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="fhjkiwheanjlohprqewg", + name="ob", ) 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="fhjkiwheanjlohprqewg", + name="ob", ) 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="fhjkiwheanjlohprqewg", + name="ob", ) @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="fhjkiwheanjlohprqewg", + name="ob", ) 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="fhjkiwheanjlohprqewg", + name="ob", ) 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="fhjkiwheanjlohprqewg", + name="ob", ) 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="fhjkiwheanjlohprqewg", + name="ob", ) @pytest.mark.skip(reason="Mock server tests are disabled") From c29e6e299fcae1882ba3a1982ad8996a0e29aa24 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 4 Jul 2026 13:12:41 +0000 Subject: [PATCH 138/249] 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_smart_links.py | 100 +++++++++--------- 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, 270 insertions(+), 270 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3175e75b..b0c31cbc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ab19a29f011d8e3f0906a7677daba1145b83b3febe89057b6041674a9190b9c4.yml -openapi_spec_hash: b1f6250a95965cf76e7e2f8a0842117c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-55cdaa0ad1e4bd209425dcec759d308f8b90a0ce7c84f29386c3125b332e9cb5.yml +openapi_spec_hash: 99b6d39f7f2e7536c159d9abdb111540 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 1b405953..0c12a4fe 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="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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="eum", + 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 e3f73447..b5417354 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="voluptatum", 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="voluptatum", 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="voluptatum", 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="voluptatum", 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="voluptatum", 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="voluptatum", 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="voluptatum", 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="voluptatum", 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="voluptatum", 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="voluptatum", 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="voluptatum", 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="voluptatum", 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="voluptatum", 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="voluptatum", 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="voluptatum", 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="voluptatum", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index f374e50d..c16bd37c 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="et", + post_id="in", 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="et", + post_id="in", 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="et", + post_id="in", 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="et", + post_id="in", 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="et", + post_id="in", 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="et", + post_id="in", 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="et", + post_id="in", 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="et", + post_id="in", 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="et", + post_id="in", 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="et", + post_id="in", 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="et", + post_id="in", 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="et", + post_id="in", 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="et", + post_id="in", 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="et", + post_id="in", 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="et", + post_id="in", 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="et", + post_id="in", 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="et", + post_id="in", 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="et", + post_id="in", 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="et", + post_id="in", 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="et", + post_id="in", 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 444937ba..a62ccbd3 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 b5f3d61a..fc7b1635 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/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 430d968b..6fafed6b 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="velit", + path_story_id="sequi", 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="velit", + path_story_id="sequi", 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="velit", + path_story_id="sequi", 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="velit", + path_story_id="sequi", 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="velit", + story_id="sequi", 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="velit", + story_id="sequi", 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="velit", + story_id="sequi", 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="velit", + story_id="sequi", 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="velit", + path_story_id="sequi", 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="velit", + path_story_id="sequi", 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="velit", + path_story_id="sequi", 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="velit", + path_story_id="sequi", 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="velit", + story_id="sequi", 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="velit", + story_id="sequi", 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="velit", + story_id="sequi", 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="velit", + story_id="sequi", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 04c760b7..5e31d2e0 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", + "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( - "dignissimos", + "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( - "dignissimos", + "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( - "dignissimos", + "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( - "dignissimos", + "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( - "dignissimos", + "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 81f3e4fc..5d41bd0f 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="fugiat", - auth_type="email_password", - cookies="temporibus", + auth_id="consequatur", + auth_type="raw_data", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": ":gRU9(LD", + "password": "t#E3fDccC)0@{mu]Z8", "port": 8080, - "username": "eius", + "username": "explicabo", }, - email="pouros.prudence@example.com", - force_connect=True, - name="culpa", - password=">SS.oMD{@>znrYN6X", + email="stanton.neha@example.com", + force_connect=False, + name="est", + password='[:H>2"BVnU=7(SjQWeX', proxy_country="us", - user_agent="enim", - xbc="et", + user_agent="repellendus", + xbc="ducimus", ) 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="fugiat", - auth_type="email_password", - cookies="temporibus", + auth_id="consequatur", + auth_type="raw_data", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": ":gRU9(LD", + "password": "t#E3fDccC)0@{mu]Z8", "port": 8080, - "username": "eius", + "username": "explicabo", }, - email="pouros.prudence@example.com", - force_connect=True, - name="culpa", - password=">SS.oMD{@>znrYN6X", + email="stanton.neha@example.com", + force_connect=False, + name="est", + password='[:H>2"BVnU=7(SjQWeX', proxy_country="us", - user_agent="enim", - xbc="et", + user_agent="repellendus", + xbc="ducimus", ) 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 3597ede6..9249f386 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 aaff3bff..280e3de9 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 a7d47054..07c5899f 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": ["ossetkjhuotstignjgjlwhbz"]}, + filter={"tags": ["weeqekzah"]}, 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="est", + smart_link_id="eos", ) 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="est", + smart_link_id="eos", 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="est", + smart_link_id="eos", ) 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="est", + smart_link_id="eos", ) 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="eum", + smart_link_id="dolorem", ) 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="eum", + smart_link_id="dolorem", 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="eum", + smart_link_id="dolorem", ) 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="eum", + smart_link_id="dolorem", ) 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="suscipit", + smart_link_id="nihil", ) 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="suscipit", + smart_link_id="nihil", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="suscipit", + smart_link_id="nihil", ) assert response.is_closed is True @@ -359,7 +359,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="suscipit", + smart_link_id="nihil", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="saepe", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="saepe", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="saepe", ) assert response.is_closed is True @@ -412,7 +412,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="saepe", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="molestiae", + smart_link_id="unde", ) assert smart_link is None @@ -442,7 +442,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="molestiae", + smart_link_id="unde", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="molestiae", + smart_link_id="unde", ) assert response.is_closed is True @@ -465,7 +465,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="molestiae", + smart_link_id="unde", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="repudiandae", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="repudiandae", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="repudiandae", ) assert response.is_closed is True @@ -517,7 +517,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="repudiandae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["ossetkjhuotstignjgjlwhbz"]}, + filter={"tags": ["weeqekzah"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="est", + smart_link_id="eos", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="est", + smart_link_id="eos", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="est", + smart_link_id="eos", ) assert response.is_closed is True @@ -756,7 +756,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="est", + smart_link_id="eos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="dolorem", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="dolorem", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="dolorem", ) assert response.is_closed is True @@ -814,7 +814,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="dolorem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="suscipit", + smart_link_id="nihil", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="suscipit", + smart_link_id="nihil", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="suscipit", + smart_link_id="nihil", ) assert response.is_closed is True @@ -873,7 +873,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="suscipit", + smart_link_id="nihil", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="saepe", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="saepe", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="saepe", ) assert response.is_closed is True @@ -926,7 +926,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="saepe", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="molestiae", + smart_link_id="unde", ) assert smart_link is None @@ -956,7 +956,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="molestiae", + smart_link_id="unde", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="molestiae", + smart_link_id="unde", ) assert response.is_closed is True @@ -979,7 +979,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="molestiae", + smart_link_id="unde", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="repudiandae", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="repudiandae", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="repudiandae", ) assert response.is_closed is True @@ -1031,7 +1031,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="repudiandae", ) 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 5f1574e5..04b5533c 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": "sgcevdwtlxxhatwvjxaibpfdy", - "tags": ["sdebeujhtcdwnfdrcct"], + "search": "jfywmhayxiqql", + "tags": ["ufhotbctjnyksnrkofvlsscwq"], }, 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": "ezegkmxb", - "tags": ["asugaxfzjnv"], + "search": "ghqfrboqcacempsku", + "tags": ["xofjzcayjwhuzawc"], }, 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": "qqnopxgatjjlgcdudhg", - "tags": ["dabmmucryyxpty"], + "include_smart_links": True, + "search": "wmbnwxkzaekf", + "tags": ["hmnggdozmphwm"], }, 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": "weuaciegwzguboon", - "tags": ["eotdpygomekxm"], + "include_smart_links": True, + "search": "fgwveocb", + "tags": ["nqhllxmvpk"], }, 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": "sgcevdwtlxxhatwvjxaibpfdy", - "tags": ["sdebeujhtcdwnfdrcct"], + "search": "jfywmhayxiqql", + "tags": ["ufhotbctjnyksnrkofvlsscwq"], }, 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": "ezegkmxb", - "tags": ["asugaxfzjnv"], + "search": "ghqfrboqcacempsku", + "tags": ["xofjzcayjwhuzawc"], }, 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": "qqnopxgatjjlgcdudhg", - "tags": ["dabmmucryyxpty"], + "include_smart_links": True, + "search": "wmbnwxkzaekf", + "tags": ["hmnggdozmphwm"], }, 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": "weuaciegwzguboon", - "tags": ["eotdpygomekxm"], + "include_smart_links": True, + "search": "fgwveocb", + "tags": ["nqhllxmvpk"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index c07a37d9..6081a864 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="totam", + tracking_link_id="id", 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="totam", + tracking_link_id="id", 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="totam", + tracking_link_id="id", 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="totam", + tracking_link_id="id", 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="totam", + tracking_link_id="id", 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="totam", + tracking_link_id="id", 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="totam", + tracking_link_id="id", 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="totam", + tracking_link_id="id", 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="totam", + tracking_link_id="id", 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="totam", + tracking_link_id="id", 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + tracking_link_id="amet", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 26a81616..849801f1 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="blanditiis", + trial_link_id="ipsa", 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="blanditiis", + trial_link_id="ipsa", 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="blanditiis", + trial_link_id="ipsa", 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="blanditiis", + trial_link_id="ipsa", 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="blanditiis", + trial_link_id="ipsa", 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="tenetur", + trial_link_id="velit", 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="tenetur", + trial_link_id="velit", 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="tenetur", + trial_link_id="velit", 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="tenetur", + trial_link_id="velit", 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="tenetur", + trial_link_id="velit", 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="blanditiis", + trial_link_id="ipsa", 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="blanditiis", + trial_link_id="ipsa", 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="blanditiis", + trial_link_id="ipsa", 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="blanditiis", + trial_link_id="ipsa", 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="blanditiis", + trial_link_id="ipsa", 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="tenetur", + trial_link_id="velit", 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="tenetur", + trial_link_id="velit", 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="tenetur", + trial_link_id="velit", 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="tenetur", + trial_link_id="velit", 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="tenetur", + trial_link_id="velit", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 9161c026..a9c796dd 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="ob", + name="jsbiwmhmhmgpdsdgzvjektvlb", ) 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="ob", + name="jsbiwmhmhmgpdsdgzvjektvlb", ) 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="ob", + name="jsbiwmhmhmgpdsdgzvjektvlb", ) 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="ob", + name="jsbiwmhmhmgpdsdgzvjektvlb", ) @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="ob", + name="jsbiwmhmhmgpdsdgzvjektvlb", ) 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="ob", + name="jsbiwmhmhmgpdsdgzvjektvlb", ) 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="ob", + name="jsbiwmhmhmgpdsdgzvjektvlb", ) 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="ob", + name="jsbiwmhmhmgpdsdgzvjektvlb", ) @pytest.mark.skip(reason="Mock server tests are disabled") From f557b2178e60a8d96edbabe78099094198240c1c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 4 Jul 2026 15:12:38 +0000 Subject: [PATCH 139/249] 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_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 +-- 16 files changed, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index b0c31cbc..dff0bf46 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-55cdaa0ad1e4bd209425dcec759d308f8b90a0ce7c84f29386c3125b332e9cb5.yml -openapi_spec_hash: 99b6d39f7f2e7536c159d9abdb111540 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9f339e5c45287fb09efe3d8a5f09083c691304506fc18333e3edb7937303de7e.yml +openapi_spec_hash: 85b99a47df41db8e0b8309066f06a919 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 0c12a4fe..ce398661 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="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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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 b5417354..cd43c0b0 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="voluptatum", + 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="voluptatum", + 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="voluptatum", + 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="voluptatum", + 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="voluptatum", + 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="voluptatum", + 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="voluptatum", + 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="voluptatum", + 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="voluptatum", + 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="voluptatum", + 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="voluptatum", + 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="voluptatum", + 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="voluptatum", + 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="voluptatum", + 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="voluptatum", + 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="voluptatum", + 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 c16bd37c..cea7d5d2 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="in", + 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="in", + 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="in", + 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="in", + 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="in", + 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="in", + 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="in", + 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="in", + 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="in", + 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="in", + 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="in", + 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="in", + 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="in", + 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="in", + 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="in", + 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="in", + 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="in", + 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="in", + 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="in", + 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="in", + post_id="excepturi", 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 a62ccbd3..aa735c97 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 6fafed6b..6510636b 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="sequi", + path_story_id="cumque", 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="sequi", + path_story_id="cumque", 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="sequi", + path_story_id="cumque", 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="sequi", + path_story_id="cumque", 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="sequi", + story_id="cumque", 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="sequi", + story_id="cumque", 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="sequi", + story_id="cumque", 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="sequi", + story_id="cumque", 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="sequi", + path_story_id="cumque", 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="sequi", + path_story_id="cumque", 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="sequi", + path_story_id="cumque", 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="sequi", + path_story_id="cumque", 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="sequi", + story_id="cumque", 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="sequi", + story_id="cumque", 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="sequi", + story_id="cumque", 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="sequi", + story_id="cumque", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 5e31d2e0..b3410f74 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", + "deserunt", ) 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", + "deserunt", ) 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", + "deserunt", ) 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", + "deserunt", ) 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", + "deserunt", ) 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", + "deserunt", ) 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 5d41bd0f..43069b11 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="consequatur", - auth_type="raw_data", - cookies="et", + auth_id="eius", + auth_type="email_password", + cookies="quidem", custom_proxy={ "host": "proxy.example.com", - "password": "t#E3fDccC)0@{mu]Z8", + "password": '"|iUPDaEy>', "port": 8080, - "username": "explicabo", + "username": "perspiciatis", }, - email="stanton.neha@example.com", + email="vhoppe@example.com", force_connect=False, - name="est", - password='[:H>2"BVnU=7(SjQWeX', - proxy_country="us", - user_agent="repellendus", - xbc="ducimus", + name="aspernatur", + password="D?Su)H[yB~", + proxy_country="uk", + user_agent="quo", + xbc="est", ) 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="consequatur", - auth_type="raw_data", - cookies="et", + auth_id="eius", + auth_type="email_password", + cookies="quidem", custom_proxy={ "host": "proxy.example.com", - "password": "t#E3fDccC)0@{mu]Z8", + "password": '"|iUPDaEy>', "port": 8080, - "username": "explicabo", + "username": "perspiciatis", }, - email="stanton.neha@example.com", + email="vhoppe@example.com", force_connect=False, - name="est", - password='[:H>2"BVnU=7(SjQWeX', - proxy_country="us", - user_agent="repellendus", - xbc="ducimus", + name="aspernatur", + password="D?Su)H[yB~", + proxy_country="uk", + user_agent="quo", + xbc="est", ) 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 9249f386..3597ede6 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 280e3de9..1a80b275 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="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="comments", + type="onlyfans", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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 07c5899f..9523e202 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": ["weeqekzah"]}, + filter={"tags": ["srlztyyeqdwhsykdpit"]}, 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="eos", + smart_link_id="nulla", ) 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="eos", + smart_link_id="nulla", 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="eos", + smart_link_id="nulla", ) 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="eos", + smart_link_id="nulla", ) 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="dolorem", + smart_link_id="unde", ) 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="dolorem", + smart_link_id="unde", 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="dolorem", + smart_link_id="unde", ) 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="dolorem", + smart_link_id="unde", ) 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="nihil", + smart_link_id="praesentium", ) 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="nihil", + smart_link_id="praesentium", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="nihil", + smart_link_id="praesentium", ) assert response.is_closed is True @@ -359,7 +359,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="nihil", + smart_link_id="praesentium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="saepe", + smart_link_id="minima", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="saepe", + smart_link_id="minima", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="saepe", + smart_link_id="minima", ) assert response.is_closed is True @@ -412,7 +412,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="saepe", + smart_link_id="minima", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="unde", + smart_link_id="nihil", ) assert smart_link is None @@ -442,7 +442,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="unde", + smart_link_id="nihil", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="unde", + smart_link_id="nihil", ) assert response.is_closed is True @@ -465,7 +465,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="unde", + smart_link_id="nihil", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="repudiandae", + smart_link_id="culpa", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="repudiandae", + smart_link_id="culpa", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="repudiandae", + smart_link_id="culpa", ) assert response.is_closed is True @@ -517,7 +517,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="repudiandae", + smart_link_id="culpa", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["weeqekzah"]}, + filter={"tags": ["srlztyyeqdwhsykdpit"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="nulla", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="nulla", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="nulla", ) assert response.is_closed is True @@ -756,7 +756,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="nulla", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="dolorem", + smart_link_id="unde", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="dolorem", + smart_link_id="unde", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="dolorem", + smart_link_id="unde", ) assert response.is_closed is True @@ -814,7 +814,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="dolorem", + smart_link_id="unde", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="nihil", + smart_link_id="praesentium", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="nihil", + smart_link_id="praesentium", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="nihil", + smart_link_id="praesentium", ) assert response.is_closed is True @@ -873,7 +873,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="nihil", + smart_link_id="praesentium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="saepe", + smart_link_id="minima", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="saepe", + smart_link_id="minima", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="saepe", + smart_link_id="minima", ) assert response.is_closed is True @@ -926,7 +926,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="saepe", + smart_link_id="minima", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="unde", + smart_link_id="nihil", ) assert smart_link is None @@ -956,7 +956,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="unde", + smart_link_id="nihil", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="unde", + smart_link_id="nihil", ) assert response.is_closed is True @@ -979,7 +979,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="unde", + smart_link_id="nihil", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="repudiandae", + smart_link_id="culpa", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="repudiandae", + smart_link_id="culpa", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="repudiandae", + smart_link_id="culpa", ) assert response.is_closed is True @@ -1031,7 +1031,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="repudiandae", + smart_link_id="culpa", ) 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 04b5533c..b5dadf9e 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": "jfywmhayxiqql", - "tags": ["ufhotbctjnyksnrkofvlsscwq"], + "search": "qkgqdysjsopcjyedimbpp", + "tags": ["bcvrjspj"], }, 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": "ghqfrboqcacempsku", - "tags": ["xofjzcayjwhuzawc"], + "search": "idozrktnrhiu", + "tags": ["pbxvwvmulwaa"], }, 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": "wmbnwxkzaekf", - "tags": ["hmnggdozmphwm"], + "search": "j", + "tags": ["chjaswnpbbiix"], }, 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": "fgwveocb", - "tags": ["nqhllxmvpk"], + "include_smart_links": False, + "search": "nbwsioouzswvxm", + "tags": ["yuzenoilusa"], }, 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": "jfywmhayxiqql", - "tags": ["ufhotbctjnyksnrkofvlsscwq"], + "search": "qkgqdysjsopcjyedimbpp", + "tags": ["bcvrjspj"], }, 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": "ghqfrboqcacempsku", - "tags": ["xofjzcayjwhuzawc"], + "search": "idozrktnrhiu", + "tags": ["pbxvwvmulwaa"], }, 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": "wmbnwxkzaekf", - "tags": ["hmnggdozmphwm"], + "search": "j", + "tags": ["chjaswnpbbiix"], }, 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": "fgwveocb", - "tags": ["nqhllxmvpk"], + "include_smart_links": False, + "search": "nbwsioouzswvxm", + "tags": ["yuzenoilusa"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 6081a864..b1a526a0 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="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="amet", + 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="amet", + 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="amet", + 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="amet", + 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="amet", + 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="quo", + tracking_link_id="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="consequatur", 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="amet", + 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="amet", + 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="amet", + 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="amet", + 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="amet", + tracking_link_id="optio", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 849801f1..7e0fa9ef 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="voluptas", + trial_link_id="omnis", 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="voluptas", + trial_link_id="omnis", 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="voluptas", + trial_link_id="omnis", 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="voluptas", + trial_link_id="omnis", 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="ipsa", + trial_link_id="provident", 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="ipsa", + trial_link_id="provident", 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="ipsa", + trial_link_id="provident", 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="ipsa", + trial_link_id="provident", 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="ipsa", + trial_link_id="provident", 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="velit", + trial_link_id="tenetur", 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="velit", + trial_link_id="tenetur", 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="velit", + trial_link_id="tenetur", 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="velit", + trial_link_id="tenetur", 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="velit", + trial_link_id="tenetur", 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="voluptas", + trial_link_id="omnis", 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="voluptas", + trial_link_id="omnis", 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="voluptas", + trial_link_id="omnis", 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="voluptas", + trial_link_id="omnis", 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="ipsa", + trial_link_id="provident", 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="ipsa", + trial_link_id="provident", 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="ipsa", + trial_link_id="provident", 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="ipsa", + trial_link_id="provident", 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="ipsa", + trial_link_id="provident", 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="velit", + trial_link_id="tenetur", 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="velit", + trial_link_id="tenetur", 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="velit", + trial_link_id="tenetur", 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="velit", + trial_link_id="tenetur", 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="velit", + trial_link_id="tenetur", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index a9c796dd..1c532831 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="jsbiwmhmhmgpdsdgzvjektvlb", + name="gemvvbac", ) 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="jsbiwmhmhmgpdsdgzvjektvlb", + name="gemvvbac", ) 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="jsbiwmhmhmgpdsdgzvjektvlb", + name="gemvvbac", ) 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="jsbiwmhmhmgpdsdgzvjektvlb", + name="gemvvbac", ) @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="jsbiwmhmhmgpdsdgzvjektvlb", + name="gemvvbac", ) 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="jsbiwmhmhmgpdsdgzvjektvlb", + name="gemvvbac", ) 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="jsbiwmhmhmgpdsdgzvjektvlb", + name="gemvvbac", ) 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="jsbiwmhmhmgpdsdgzvjektvlb", + name="gemvvbac", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 0742c6b01b8ee727616da3c71232bdb71dc28a7d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 4 Jul 2026 22:12:34 +0000 Subject: [PATCH 140/249] 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 | 40 +++---- 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 +-- 16 files changed, 260 insertions(+), 260 deletions(-) diff --git a/.stats.yml b/.stats.yml index dff0bf46..14115211 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9f339e5c45287fb09efe3d8a5f09083c691304506fc18333e3edb7937303de7e.yml -openapi_spec_hash: 85b99a47df41db8e0b8309066f06a919 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-041a63ef5b46c0ac8494c91741d40d223505b8508dd1ddfad5bb094f37ec5d3c.yml +openapi_spec_hash: 119decd3feb8e728852f058160f93787 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index ce398661..0e0ef550 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="minus", 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="minus", 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="minus", 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="minus", 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="minus", 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="minus", 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="minus", 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="minus", 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="minus", 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="minus", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index cd43c0b0..9f9b1937 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="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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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 cea7d5d2..fc6b6607 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="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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + post_id="doloremque", 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 aa735c97..a62ccbd3 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 6510636b..24a0e36e 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="cumque", + path_story_id="magnam", 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="cumque", + path_story_id="magnam", 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="cumque", + path_story_id="magnam", 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="cumque", + path_story_id="magnam", 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="cumque", + story_id="magnam", 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="cumque", + story_id="magnam", 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="cumque", + story_id="magnam", 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="cumque", + story_id="magnam", 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="cumque", + path_story_id="magnam", 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="cumque", + path_story_id="magnam", 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="cumque", + path_story_id="magnam", 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="cumque", + path_story_id="magnam", 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="cumque", + story_id="magnam", 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="cumque", + story_id="magnam", 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="cumque", + story_id="magnam", 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="cumque", + story_id="magnam", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index b3410f74..858c6412 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( - "deserunt", + "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( - "deserunt", + "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( - "deserunt", + "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( - "deserunt", + "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( - "deserunt", + "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( - "deserunt", + "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 43069b11..23253e0f 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="eius", + auth_id="est", auth_type="email_password", - cookies="quidem", + cookies="atque", custom_proxy={ "host": "proxy.example.com", - "password": '"|iUPDaEy>', + "password": "un+UA:", "port": 8080, - "username": "perspiciatis", + "username": "est", }, - email="vhoppe@example.com", + email="rolfson.brandy@example.org", force_connect=False, - name="aspernatur", - password="D?Su)H[yB~", - proxy_country="uk", - user_agent="quo", - xbc="est", + name="hic", + password="G'9RK'zGfah+C5BZ+", + proxy_country="us", + user_agent="nisi", + xbc="assumenda", ) 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="eius", + auth_id="est", auth_type="email_password", - cookies="quidem", + cookies="atque", custom_proxy={ "host": "proxy.example.com", - "password": '"|iUPDaEy>', + "password": "un+UA:", "port": 8080, - "username": "perspiciatis", + "username": "est", }, - email="vhoppe@example.com", + email="rolfson.brandy@example.org", force_connect=False, - name="aspernatur", - password="D?Su)H[yB~", - proxy_country="uk", - user_agent="quo", - xbc="est", + name="hic", + password="G'9RK'zGfah+C5BZ+", + proxy_country="us", + user_agent="nisi", + xbc="assumenda", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 1a80b275..b2158856 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="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="onlyfans", + 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 65694e23..bd4f6161 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 9523e202..c884d539 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": ["srlztyyeqdwhsykdpit"]}, + filter={"tags": ["sisjksqcwa"]}, 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="nulla", + smart_link_id="corrupti", ) 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="nulla", + smart_link_id="corrupti", 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="nulla", + smart_link_id="corrupti", ) 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="nulla", + smart_link_id="corrupti", ) 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="distinctio", ) 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="distinctio", 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="distinctio", ) 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="distinctio", ) 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="praesentium", + smart_link_id="ut", ) 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="praesentium", + smart_link_id="ut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="praesentium", + smart_link_id="ut", ) assert response.is_closed is True @@ -359,7 +359,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="praesentium", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="minima", + smart_link_id="cumque", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="minima", + smart_link_id="cumque", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="minima", + smart_link_id="cumque", ) assert response.is_closed is True @@ -412,7 +412,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="minima", + smart_link_id="cumque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="nihil", + smart_link_id="et", ) assert smart_link is None @@ -442,7 +442,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="nihil", + smart_link_id="et", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="nihil", + smart_link_id="et", ) assert response.is_closed is True @@ -465,7 +465,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="nihil", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="culpa", + smart_link_id="eos", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="culpa", + smart_link_id="eos", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="culpa", + smart_link_id="eos", ) assert response.is_closed is True @@ -517,7 +517,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="culpa", + smart_link_id="eos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["srlztyyeqdwhsykdpit"]}, + filter={"tags": ["sisjksqcwa"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="corrupti", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="corrupti", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="corrupti", ) assert response.is_closed is True @@ -756,7 +756,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="corrupti", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="distinctio", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="distinctio", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="distinctio", ) assert response.is_closed is True @@ -814,7 +814,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="distinctio", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="praesentium", + smart_link_id="ut", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="praesentium", + smart_link_id="ut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="praesentium", + smart_link_id="ut", ) assert response.is_closed is True @@ -873,7 +873,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="praesentium", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="minima", + smart_link_id="cumque", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="minima", + smart_link_id="cumque", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="minima", + smart_link_id="cumque", ) assert response.is_closed is True @@ -926,7 +926,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="minima", + smart_link_id="cumque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="nihil", + smart_link_id="et", ) assert smart_link is None @@ -956,7 +956,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="nihil", + smart_link_id="et", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="nihil", + smart_link_id="et", ) assert response.is_closed is True @@ -979,7 +979,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="nihil", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="culpa", + smart_link_id="eos", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="culpa", + smart_link_id="eos", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="culpa", + smart_link_id="eos", ) assert response.is_closed is True @@ -1031,7 +1031,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="culpa", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index b5dadf9e..e71303e8 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": "qkgqdysjsopcjyedimbpp", - "tags": ["bcvrjspj"], + "search": "ztccciivneescvijdnbsbgzbq", + "tags": ["fqpeosvwnystl"], }, 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": "idozrktnrhiu", - "tags": ["pbxvwvmulwaa"], + "search": "hlgvuxdeannkusjxy", + "tags": ["qozvinjbqx"], }, 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": "j", - "tags": ["chjaswnpbbiix"], + "search": "sqgcbnesldqpyxijy", + "tags": ["g"], }, 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": "nbwsioouzswvxm", - "tags": ["yuzenoilusa"], + "include_smart_links": True, + "search": "zvngkibqzgqbbderuh", + "tags": ["jepboapehjhikbhfsnz"], }, 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": "qkgqdysjsopcjyedimbpp", - "tags": ["bcvrjspj"], + "search": "ztccciivneescvijdnbsbgzbq", + "tags": ["fqpeosvwnystl"], }, 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": "idozrktnrhiu", - "tags": ["pbxvwvmulwaa"], + "search": "hlgvuxdeannkusjxy", + "tags": ["qozvinjbqx"], }, 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": "j", - "tags": ["chjaswnpbbiix"], + "search": "sqgcbnesldqpyxijy", + "tags": ["g"], }, 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": "nbwsioouzswvxm", - "tags": ["yuzenoilusa"], + "include_smart_links": True, + "search": "zvngkibqzgqbbderuh", + "tags": ["jepboapehjhikbhfsnz"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index b1a526a0..1d2ff069 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="consequatur", + tracking_link_id="rem", 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="consequatur", + tracking_link_id="rem", 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="consequatur", + tracking_link_id="rem", 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="consequatur", + tracking_link_id="rem", 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="consequatur", + tracking_link_id="rem", 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="consequatur", + tracking_link_id="rem", 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="consequatur", + tracking_link_id="rem", 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="consequatur", + tracking_link_id="rem", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="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="optio", + 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="optio", + 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="optio", + 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="optio", + 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="consequatur", + tracking_link_id="rem", 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="consequatur", + tracking_link_id="rem", 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="consequatur", + tracking_link_id="rem", 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="consequatur", + tracking_link_id="rem", 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="consequatur", + tracking_link_id="rem", 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="consequatur", + tracking_link_id="rem", 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="consequatur", + tracking_link_id="rem", 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="consequatur", + tracking_link_id="rem", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="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="optio", + 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="optio", + 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="optio", + 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="optio", + tracking_link_id="similique", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 7e0fa9ef..840ae327 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="labore", + trial_link_id="doloremque", 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="labore", + trial_link_id="doloremque", 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="labore", + trial_link_id="doloremque", 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="labore", + trial_link_id="doloremque", 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="labore", + trial_link_id="doloremque", 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="labore", + trial_link_id="doloremque", 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="labore", + trial_link_id="doloremque", 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="labore", + trial_link_id="doloremque", 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="omnis", + trial_link_id="numquam", 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="omnis", + trial_link_id="numquam", 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="omnis", + trial_link_id="numquam", 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="omnis", + trial_link_id="numquam", 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="provident", + trial_link_id="enim", 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="provident", + trial_link_id="enim", 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="provident", + trial_link_id="enim", 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="provident", + trial_link_id="enim", 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="provident", + trial_link_id="enim", 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="tenetur", + trial_link_id="unde", 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="tenetur", + trial_link_id="unde", 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="tenetur", + trial_link_id="unde", 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="tenetur", + trial_link_id="unde", 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="tenetur", + trial_link_id="unde", 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="labore", + trial_link_id="doloremque", 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="labore", + trial_link_id="doloremque", 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="labore", + trial_link_id="doloremque", 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="labore", + trial_link_id="doloremque", 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="labore", + trial_link_id="doloremque", 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="labore", + trial_link_id="doloremque", 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="labore", + trial_link_id="doloremque", 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="labore", + trial_link_id="doloremque", 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="omnis", + trial_link_id="numquam", 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="omnis", + trial_link_id="numquam", 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="omnis", + trial_link_id="numquam", 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="omnis", + trial_link_id="numquam", 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="provident", + trial_link_id="enim", 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="provident", + trial_link_id="enim", 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="provident", + trial_link_id="enim", 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="provident", + trial_link_id="enim", 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="provident", + trial_link_id="enim", 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="tenetur", + trial_link_id="unde", 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="tenetur", + trial_link_id="unde", 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="tenetur", + trial_link_id="unde", 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="tenetur", + trial_link_id="unde", 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="tenetur", + trial_link_id="unde", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 1c532831..170f0e6b 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="gemvvbac", + name="b", ) 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="gemvvbac", + name="b", ) 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="gemvvbac", + name="b", ) 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="gemvvbac", + name="b", ) @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="gemvvbac", + name="b", ) 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="gemvvbac", + name="b", ) 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="gemvvbac", + name="b", ) 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="gemvvbac", + name="b", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 9a82aec51c4f60f11ea2d3db069898301c22e48d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 5 Jul 2026 00:12:34 +0000 Subject: [PATCH 141/249] 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_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 84 +++++++++--------- 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 14115211..11435a3e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-041a63ef5b46c0ac8494c91741d40d223505b8508dd1ddfad5bb094f37ec5d3c.yml -openapi_spec_hash: 119decd3feb8e728852f058160f93787 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-15d7c7ab1c5ce08eb34dbe506907bcd534e15b06a7a9aaf8d8ab99827ab94525.yml +openapi_spec_hash: 1fce83e4a031369817f3f2aa414d6c36 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 0e0ef550..53d85a23 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="minus", + message_id="ab", 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="minus", + message_id="ab", 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="minus", + message_id="ab", 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="minus", + message_id="ab", 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="minus", + message_id="ab", 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="minus", + message_id="ab", 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="minus", + message_id="ab", 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="minus", + message_id="ab", 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="minus", + message_id="ab", 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="minus", + message_id="ab", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 9f9b1937..643d718e 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index fc6b6607..d1a1a4ec 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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 a62ccbd3..444937ba 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 fc7b1635..9c80483e 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 9664075f..544df889 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 24a0e36e..76229116 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + 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="magnam", + story_id="ut", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 858c6412..b456ddec 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", + "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( - "quo", + "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( - "quo", + "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( - "quo", + "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( - "quo", + "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( - "quo", + "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 23253e0f..4621b042 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="email_password", - cookies="atque", + auth_id="impedit", + auth_type="raw_data", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "un+UA:", + "password": "'d*fla5W[?8ir6W", "port": 8080, - "username": "est", + "username": "dolor", }, - email="rolfson.brandy@example.org", - force_connect=False, - name="hic", - password="G'9RK'zGfah+C5BZ+", - proxy_country="us", - user_agent="nisi", - xbc="assumenda", + email="yhowell@example.org", + force_connect=True, + name="fuga", + password="bw+4b0%0Z)", + proxy_country="uk", + user_agent="nobis", + xbc="alias", ) 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="email_password", - cookies="atque", + auth_id="impedit", + auth_type="raw_data", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "un+UA:", + "password": "'d*fla5W[?8ir6W", "port": 8080, - "username": "est", + "username": "dolor", }, - email="rolfson.brandy@example.org", - force_connect=False, - name="hic", - password="G'9RK'zGfah+C5BZ+", - proxy_country="us", - user_agent="nisi", - xbc="assumenda", + email="yhowell@example.org", + force_connect=True, + name="fuga", + password="bw+4b0%0Z)", + proxy_country="uk", + user_agent="nobis", + xbc="alias", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index b2158856..583d8ad4 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="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="purchases", + 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 c884d539..195aef74 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": ["sisjksqcwa"]}, + filter={"tags": ["pvedqjnjwvadspluvwe"]}, 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="corrupti", + smart_link_id="quos", ) 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="corrupti", + smart_link_id="quos", 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="corrupti", + smart_link_id="quos", ) 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="corrupti", + smart_link_id="quos", ) 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="distinctio", + smart_link_id="iure", ) 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="distinctio", + smart_link_id="iure", 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="distinctio", + smart_link_id="iure", ) 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="distinctio", + smart_link_id="iure", ) 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="ut", + smart_link_id="accusantium", ) 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="ut", + smart_link_id="accusantium", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="ut", + smart_link_id="accusantium", ) assert response.is_closed is True @@ -359,7 +359,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="ut", + smart_link_id="accusantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="cumque", + smart_link_id="magnam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="cumque", + smart_link_id="magnam", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="cumque", + smart_link_id="magnam", ) assert response.is_closed is True @@ -412,7 +412,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="cumque", + smart_link_id="magnam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="eos", + smart_link_id="dicta", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="eos", + smart_link_id="dicta", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="eos", + smart_link_id="dicta", ) assert response.is_closed is True @@ -517,7 +517,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="eos", + smart_link_id="dicta", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["sisjksqcwa"]}, + filter={"tags": ["pvedqjnjwvadspluvwe"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="corrupti", + smart_link_id="quos", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="corrupti", + smart_link_id="quos", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="corrupti", + smart_link_id="quos", ) assert response.is_closed is True @@ -756,7 +756,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="corrupti", + smart_link_id="quos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="distinctio", + smart_link_id="iure", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="distinctio", + smart_link_id="iure", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="distinctio", + smart_link_id="iure", ) assert response.is_closed is True @@ -814,7 +814,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="distinctio", + smart_link_id="iure", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="ut", + smart_link_id="accusantium", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="ut", + smart_link_id="accusantium", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="ut", + smart_link_id="accusantium", ) assert response.is_closed is True @@ -873,7 +873,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="ut", + smart_link_id="accusantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="cumque", + smart_link_id="magnam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="cumque", + smart_link_id="magnam", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="cumque", + smart_link_id="magnam", ) assert response.is_closed is True @@ -926,7 +926,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="cumque", + smart_link_id="magnam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="eos", + smart_link_id="dicta", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="eos", + smart_link_id="dicta", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="eos", + smart_link_id="dicta", ) assert response.is_closed is True @@ -1031,7 +1031,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="eos", + smart_link_id="dicta", ) 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 e71303e8..0c30a40d 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": "ztccciivneescvijdnbsbgzbq", - "tags": ["fqpeosvwnystl"], + "search": "ujhdaberbjtbad", + "tags": ["jyihnvvhnyjdptmodlob"], }, 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": "hlgvuxdeannkusjxy", - "tags": ["qozvinjbqx"], + "search": "tcerwlcbmoacyryntcyvx", + "tags": ["ztyxjnarmeyg"], }, 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": "sqgcbnesldqpyxijy", - "tags": ["g"], + "search": "ekcuctawg", + "tags": ["mgo"], }, 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": "zvngkibqzgqbbderuh", - "tags": ["jepboapehjhikbhfsnz"], + "include_smart_links": False, + "search": "iu", + "tags": ["omxhfacvodq"], }, 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": "ztccciivneescvijdnbsbgzbq", - "tags": ["fqpeosvwnystl"], + "search": "ujhdaberbjtbad", + "tags": ["jyihnvvhnyjdptmodlob"], }, 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": "hlgvuxdeannkusjxy", - "tags": ["qozvinjbqx"], + "search": "tcerwlcbmoacyryntcyvx", + "tags": ["ztyxjnarmeyg"], }, 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": "sqgcbnesldqpyxijy", - "tags": ["g"], + "search": "ekcuctawg", + "tags": ["mgo"], }, 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": "zvngkibqzgqbbderuh", - "tags": ["jepboapehjhikbhfsnz"], + "include_smart_links": False, + "search": "iu", + "tags": ["omxhfacvodq"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 1d2ff069..02147585 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="dolores", + 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="dolores", + 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="dolores", + 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="dolores", + 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="dolores", + 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="dolores", + 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="dolores", + 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="dolores", + 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="dolores", + 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="dolores", + 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="quis", 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="quis", 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="quis", 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="quis", 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="quis", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 840ae327..6c17c0d0 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="doloremque", + trial_link_id="officia", 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="doloremque", + trial_link_id="officia", 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="doloremque", + trial_link_id="officia", 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="doloremque", + trial_link_id="officia", 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="doloremque", + trial_link_id="officia", 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="doloremque", + trial_link_id="officia", 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="doloremque", + trial_link_id="officia", 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="doloremque", + trial_link_id="officia", 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="numquam", + trial_link_id="minus", 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="numquam", + trial_link_id="minus", 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="numquam", + trial_link_id="minus", 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="numquam", + trial_link_id="minus", 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="enim", + trial_link_id="quisquam", 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="enim", + trial_link_id="quisquam", 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="enim", + trial_link_id="quisquam", 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="enim", + trial_link_id="quisquam", 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="enim", + trial_link_id="quisquam", 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="unde", + trial_link_id="ab", 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="unde", + trial_link_id="ab", 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="unde", + trial_link_id="ab", 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="unde", + trial_link_id="ab", 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="unde", + trial_link_id="ab", 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="doloremque", + trial_link_id="officia", 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="doloremque", + trial_link_id="officia", 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="doloremque", + trial_link_id="officia", 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="doloremque", + trial_link_id="officia", 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="doloremque", + trial_link_id="officia", 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="doloremque", + trial_link_id="officia", 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="doloremque", + trial_link_id="officia", 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="doloremque", + trial_link_id="officia", 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="numquam", + trial_link_id="minus", 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="numquam", + trial_link_id="minus", 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="numquam", + trial_link_id="minus", 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="numquam", + trial_link_id="minus", 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="enim", + trial_link_id="quisquam", 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="enim", + trial_link_id="quisquam", 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="enim", + trial_link_id="quisquam", 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="enim", + trial_link_id="quisquam", 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="enim", + trial_link_id="quisquam", 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="unde", + trial_link_id="ab", 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="unde", + trial_link_id="ab", 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="unde", + trial_link_id="ab", 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="unde", + trial_link_id="ab", 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="unde", + trial_link_id="ab", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 170f0e6b..2e6be25a 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="b", + name="ytif", ) 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="b", + name="ytif", ) 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="b", + name="ytif", ) 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="b", + name="ytif", ) @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="b", + name="ytif", ) 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="b", + name="ytif", ) 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="b", + name="ytif", ) 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="b", + name="ytif", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 293346ce4cc45bc6c893ce146907aecd9d45083b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 5 Jul 2026 01:12:32 +0000 Subject: [PATCH 142/249] 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 | 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 +-- 16 files changed, 266 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index 11435a3e..9a8535de 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-15d7c7ab1c5ce08eb34dbe506907bcd534e15b06a7a9aaf8d8ab99827ab94525.yml -openapi_spec_hash: 1fce83e4a031369817f3f2aa414d6c36 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c6528070f047e77438f480687ca6d40a8be89e0d8a0814a3bf1bf82cbf872387.yml +openapi_spec_hash: 8d6cdd5a4c87d87e1b2b47c2eabb808e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 53d85a23..c49211be 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="ab", + message_id="voluptates", 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="ab", + message_id="voluptates", 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="ab", + message_id="voluptates", 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="ab", + message_id="voluptates", 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="ab", + message_id="voluptates", 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="ab", + message_id="voluptates", 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="ab", + message_id="voluptates", 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="ab", + message_id="voluptates", 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="ab", + message_id="voluptates", 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="ab", + message_id="voluptates", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 643d718e..31b9e953 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="vel", + list_id="architecto", 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="vel", + list_id="architecto", 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="vel", + list_id="architecto", 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="vel", + list_id="architecto", 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="vel", + list_id="architecto", 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="vel", + list_id="architecto", 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="vel", + list_id="architecto", 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="vel", + list_id="architecto", 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="vel", + list_id="architecto", 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="vel", + list_id="architecto", 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="vel", + list_id="architecto", 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="vel", + list_id="architecto", 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="vel", + list_id="architecto", 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="vel", + list_id="architecto", 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="vel", + list_id="architecto", 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="vel", + list_id="architecto", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index d1a1a4ec..4e4b7acc 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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 444937ba..aa735c97 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 9c80483e..b5f3d61a 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 76229116..2425120b 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index b456ddec..69e1fa47 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", + "tempore", ) 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", + "tempore", ) 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", + "tempore", ) 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", + "tempore", ) 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", + "tempore", ) 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", + "tempore", ) 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 4621b042..3d056b08 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="raw_data", - cookies="et", + auth_id="earum", + auth_type="mobile_app", + cookies="harum", custom_proxy={ "host": "proxy.example.com", - "password": "'d*fla5W[?8ir6W", + "password": "<||)tbD'8YtE", "port": 8080, - "username": "dolor", + "username": "est", }, - email="yhowell@example.org", + email="ekoss@example.net", force_connect=True, - name="fuga", - password="bw+4b0%0Z)", + name="ut", + password="G<\\5)R3h/a#", proxy_country="uk", - user_agent="nobis", - xbc="alias", + user_agent="sint", + xbc="earum", ) 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="raw_data", - cookies="et", + auth_id="earum", + auth_type="mobile_app", + cookies="harum", custom_proxy={ "host": "proxy.example.com", - "password": "'d*fla5W[?8ir6W", + "password": "<||)tbD'8YtE", "port": 8080, - "username": "dolor", + "username": "est", }, - email="yhowell@example.org", + email="ekoss@example.net", force_connect=True, - name="fuga", - password="bw+4b0%0Z)", + name="ut", + password="G<\\5)R3h/a#", proxy_country="uk", - user_agent="nobis", - xbc="alias", + user_agent="sint", + xbc="earum", ) 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 3597ede6..9249f386 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 583d8ad4..4d3e426f 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="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="all", + 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 195aef74..aa3d0f3e 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": ["pvedqjnjwvadspluvwe"]}, + filter={"tags": ["fpgftegfxedbhttcjkpvnbmd"]}, 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="quos", + smart_link_id="eveniet", ) 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="quos", + smart_link_id="eveniet", 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="quos", + smart_link_id="eveniet", ) 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="quos", + smart_link_id="eveniet", ) 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="iure", + smart_link_id="ullam", ) 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="iure", + smart_link_id="ullam", 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="iure", + smart_link_id="ullam", ) 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="iure", + smart_link_id="ullam", ) 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="accusantium", + smart_link_id="quod", ) 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="accusantium", + smart_link_id="quod", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="accusantium", + smart_link_id="quod", ) assert response.is_closed is True @@ -359,7 +359,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="accusantium", + smart_link_id="quod", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="magnam", + smart_link_id="eveniet", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="magnam", + smart_link_id="eveniet", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="magnam", + smart_link_id="eveniet", ) assert response.is_closed is True @@ -412,7 +412,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="magnam", + smart_link_id="eveniet", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="ullam", ) assert smart_link is None @@ -442,7 +442,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="ullam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="ullam", ) assert response.is_closed is True @@ -465,7 +465,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="ullam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="dicta", + smart_link_id="voluptatem", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="dicta", + smart_link_id="voluptatem", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="dicta", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -517,7 +517,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="dicta", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["pvedqjnjwvadspluvwe"]}, + filter={"tags": ["fpgftegfxedbhttcjkpvnbmd"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="quos", + smart_link_id="eveniet", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="quos", + smart_link_id="eveniet", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="quos", + smart_link_id="eveniet", ) assert response.is_closed is True @@ -756,7 +756,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="quos", + smart_link_id="eveniet", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="iure", + smart_link_id="ullam", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="iure", + smart_link_id="ullam", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="iure", + smart_link_id="ullam", ) assert response.is_closed is True @@ -814,7 +814,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="iure", + smart_link_id="ullam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="accusantium", + smart_link_id="quod", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="accusantium", + smart_link_id="quod", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="accusantium", + smart_link_id="quod", ) assert response.is_closed is True @@ -873,7 +873,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="accusantium", + smart_link_id="quod", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="magnam", + smart_link_id="eveniet", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="magnam", + smart_link_id="eveniet", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="magnam", + smart_link_id="eveniet", ) assert response.is_closed is True @@ -926,7 +926,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="magnam", + smart_link_id="eveniet", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="ullam", ) assert smart_link is None @@ -956,7 +956,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="ullam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="ullam", ) assert response.is_closed is True @@ -979,7 +979,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="ullam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="dicta", + smart_link_id="voluptatem", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="dicta", + smart_link_id="voluptatem", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="dicta", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -1031,7 +1031,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="dicta", + 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 0c30a40d..5450fb9a 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": "ujhdaberbjtbad", - "tags": ["jyihnvvhnyjdptmodlob"], + "search": "utmgyfyqxrgzykocd", + "tags": ["ebx"], }, 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": "tcerwlcbmoacyryntcyvx", - "tags": ["ztyxjnarmeyg"], + "search": "rzfuizfjtnfke", + "tags": ["udvgmzpulz"], }, 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": "ekcuctawg", - "tags": ["mgo"], + "search": "fpwnvoccbenwbfnyelzxf", + "tags": ["gzdticwmnyu"], }, 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": "iu", - "tags": ["omxhfacvodq"], + "include_smart_links": True, + "search": "nk", + "tags": ["jrqobeujt"], }, 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": "ujhdaberbjtbad", - "tags": ["jyihnvvhnyjdptmodlob"], + "search": "utmgyfyqxrgzykocd", + "tags": ["ebx"], }, 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": "tcerwlcbmoacyryntcyvx", - "tags": ["ztyxjnarmeyg"], + "search": "rzfuizfjtnfke", + "tags": ["udvgmzpulz"], }, 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": "ekcuctawg", - "tags": ["mgo"], + "search": "fpwnvoccbenwbfnyelzxf", + "tags": ["gzdticwmnyu"], }, 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": "iu", - "tags": ["omxhfacvodq"], + "include_smart_links": True, + "search": "nk", + "tags": ["jrqobeujt"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 02147585..a3decfcb 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="aperiam", 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="aperiam", 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="aperiam", 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="aperiam", 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="aperiam", 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="aperiam", 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="aperiam", 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="aperiam", 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="sequi", 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="sequi", 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="sequi", 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="sequi", 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="sequi", 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="qui", + tracking_link_id="aperiam", 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="aperiam", 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="aperiam", 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="aperiam", 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="aperiam", 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="aperiam", 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="aperiam", 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="aperiam", 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="sequi", 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="sequi", 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="sequi", 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="sequi", 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="sequi", 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + tracking_link_id="amet", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 6c17c0d0..5587ca6b 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="officia", + trial_link_id="dolor", 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="officia", + trial_link_id="dolor", 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="officia", + trial_link_id="dolor", 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="officia", + trial_link_id="dolor", 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="officia", + trial_link_id="dolor", 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="officia", + trial_link_id="dolor", 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="officia", + trial_link_id="dolor", 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="officia", + trial_link_id="dolor", 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="minus", + trial_link_id="ut", 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="minus", + trial_link_id="ut", 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="minus", + trial_link_id="ut", 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="minus", + trial_link_id="ut", 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="quisquam", + trial_link_id="vero", 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="quisquam", + trial_link_id="vero", 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="quisquam", + trial_link_id="vero", 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="quisquam", + trial_link_id="vero", 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="quisquam", + trial_link_id="vero", 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="ab", + trial_link_id="occaecati", 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="ab", + trial_link_id="occaecati", 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="ab", + trial_link_id="occaecati", 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="ab", + trial_link_id="occaecati", 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="ab", + trial_link_id="occaecati", 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="officia", + trial_link_id="dolor", 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="officia", + trial_link_id="dolor", 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="officia", + trial_link_id="dolor", 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="officia", + trial_link_id="dolor", 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="officia", + trial_link_id="dolor", 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="officia", + trial_link_id="dolor", 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="officia", + trial_link_id="dolor", 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="officia", + trial_link_id="dolor", 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="minus", + trial_link_id="ut", 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="minus", + trial_link_id="ut", 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="minus", + trial_link_id="ut", 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="minus", + trial_link_id="ut", 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="quisquam", + trial_link_id="vero", 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="quisquam", + trial_link_id="vero", 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="quisquam", + trial_link_id="vero", 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="quisquam", + trial_link_id="vero", 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="quisquam", + trial_link_id="vero", 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="ab", + trial_link_id="occaecati", 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="ab", + trial_link_id="occaecati", 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="ab", + trial_link_id="occaecati", 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="ab", + trial_link_id="occaecati", 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="ab", + trial_link_id="occaecati", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 2e6be25a..111c4ee7 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="ytif", + name="awahxqdafgfuyv", ) 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="ytif", + name="awahxqdafgfuyv", ) 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="ytif", + name="awahxqdafgfuyv", ) 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="ytif", + name="awahxqdafgfuyv", ) @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="ytif", + name="awahxqdafgfuyv", ) 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="ytif", + name="awahxqdafgfuyv", ) 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="ytif", + name="awahxqdafgfuyv", ) 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="ytif", + name="awahxqdafgfuyv", ) @pytest.mark.skip(reason="Mock server tests are disabled") From c7f90dd1b7064ad48334a1c97791bac616228a25 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 5 Jul 2026 12:12:34 +0000 Subject: [PATCH 143/249] 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 | 100 +++++++++--------- 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 9a8535de..68287c7e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c6528070f047e77438f480687ca6d40a8be89e0d8a0814a3bf1bf82cbf872387.yml -openapi_spec_hash: 8d6cdd5a4c87d87e1b2b47c2eabb808e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-01a36afdb584925f04ebb7eacd9df231623257a73abded85f33015f1cf96b9ed.yml +openapi_spec_hash: 0456bdf0e807bfc55a063531860baabe config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index c49211be..1807ff00 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="voluptates", + 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="voluptates", + 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="voluptates", + 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="voluptates", + 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="voluptates", + 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="voluptates", + 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="voluptates", + 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="voluptates", + 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="voluptates", + 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="voluptates", + 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 31b9e953..7e10c878 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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 4e4b7acc..3cf7cd54 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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 b5f3d61a..2ced6cb5 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 544df889..9664075f 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 2425120b..ffcd9662 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="hic", + path_story_id="assumenda", 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="hic", + path_story_id="assumenda", 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="hic", + path_story_id="assumenda", 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="hic", + path_story_id="assumenda", 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="hic", + story_id="assumenda", 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="hic", + story_id="assumenda", 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="hic", + story_id="assumenda", 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="hic", + story_id="assumenda", 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="hic", + path_story_id="assumenda", 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="hic", + path_story_id="assumenda", 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="hic", + path_story_id="assumenda", 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="hic", + path_story_id="assumenda", 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="hic", + story_id="assumenda", 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="hic", + story_id="assumenda", 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="hic", + story_id="assumenda", 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="hic", + story_id="assumenda", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 69e1fa47..5e31d2e0 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( - "tempore", + "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( - "tempore", + "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( - "tempore", + "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( - "tempore", + "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( - "tempore", + "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( - "tempore", + "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 3d056b08..4f8ea11f 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_type="mobile_app", - cookies="harum", + auth_id="delectus", + auth_type="raw_data", + cookies="similique", custom_proxy={ "host": "proxy.example.com", - "password": "<||)tbD'8YtE", + "password": 'xhx&y[xwsDR)1qa$".', "port": 8080, - "username": "est", + "username": "qui", }, - email="ekoss@example.net", + email="chadd.reichert@example.net", force_connect=True, - name="ut", - password="G<\\5)R3h/a#", - proxy_country="uk", - user_agent="sint", - xbc="earum", + name="nam", + password="SE}x^\\q0", + proxy_country="us", + user_agent="eius", + xbc="temporibus", ) 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_type="mobile_app", - cookies="harum", + auth_id="delectus", + auth_type="raw_data", + cookies="similique", custom_proxy={ "host": "proxy.example.com", - "password": "<||)tbD'8YtE", + "password": 'xhx&y[xwsDR)1qa$".', "port": 8080, - "username": "est", + "username": "qui", }, - email="ekoss@example.net", + email="chadd.reichert@example.net", force_connect=True, - name="ut", - password="G<\\5)R3h/a#", - proxy_country="uk", - user_agent="sint", - xbc="earum", + name="nam", + password="SE}x^\\q0", + proxy_country="us", + user_agent="eius", + xbc="temporibus", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 4d3e426f..aaff3bff 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 aa3d0f3e..9b1a62c5 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": ["fpgftegfxedbhttcjkpvnbmd"]}, + filter={"tags": ["wvmxyfugjklzrvasx"]}, 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="eveniet", + smart_link_id="alias", ) 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="eveniet", + smart_link_id="alias", 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="eveniet", + smart_link_id="alias", ) 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="eveniet", + smart_link_id="alias", ) 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="ullam", + smart_link_id="alias", ) 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="ullam", + smart_link_id="alias", 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="ullam", + smart_link_id="alias", ) 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="ullam", + smart_link_id="alias", ) 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="quod", + smart_link_id="odit", ) 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="quod", + smart_link_id="odit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="quod", + smart_link_id="odit", ) assert response.is_closed is True @@ -359,7 +359,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="quod", + smart_link_id="odit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="eveniet", + smart_link_id="modi", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="eveniet", + smart_link_id="modi", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="eveniet", + smart_link_id="modi", ) assert response.is_closed is True @@ -412,7 +412,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="eveniet", + smart_link_id="modi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="ullam", + smart_link_id="sed", ) assert smart_link is None @@ -442,7 +442,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="ullam", + smart_link_id="sed", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="ullam", + smart_link_id="sed", ) assert response.is_closed is True @@ -465,7 +465,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="ullam", + smart_link_id="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="eaque", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="eaque", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="eaque", ) assert response.is_closed is True @@ -517,7 +517,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="eaque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["fpgftegfxedbhttcjkpvnbmd"]}, + filter={"tags": ["wvmxyfugjklzrvasx"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="eveniet", + smart_link_id="alias", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="eveniet", + smart_link_id="alias", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="eveniet", + smart_link_id="alias", ) assert response.is_closed is True @@ -756,7 +756,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="eveniet", + smart_link_id="alias", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="ullam", + smart_link_id="alias", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="ullam", + smart_link_id="alias", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="ullam", + smart_link_id="alias", ) assert response.is_closed is True @@ -814,7 +814,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="ullam", + smart_link_id="alias", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="quod", + smart_link_id="odit", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="quod", + smart_link_id="odit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="quod", + smart_link_id="odit", ) assert response.is_closed is True @@ -873,7 +873,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="quod", + smart_link_id="odit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="eveniet", + smart_link_id="modi", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="eveniet", + smart_link_id="modi", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="eveniet", + smart_link_id="modi", ) assert response.is_closed is True @@ -926,7 +926,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="eveniet", + smart_link_id="modi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="ullam", + smart_link_id="sed", ) assert smart_link is None @@ -956,7 +956,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="ullam", + smart_link_id="sed", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="ullam", + smart_link_id="sed", ) assert response.is_closed is True @@ -979,7 +979,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="ullam", + smart_link_id="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="eaque", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="eaque", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="eaque", ) assert response.is_closed is True @@ -1031,7 +1031,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="eaque", ) 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 5450fb9a..0d765fdd 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": "utmgyfyqxrgzykocd", - "tags": ["ebx"], + "search": "znxqrop", + "tags": ["tncajnpbwqxwhtdoz"], }, 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": "rzfuizfjtnfke", - "tags": ["udvgmzpulz"], + "search": "xkafnneagzcjoyr", + "tags": ["nwcdjcdakzqickhdtzght"], }, 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": "fpwnvoccbenwbfnyelzxf", - "tags": ["gzdticwmnyu"], + "include_smart_links": False, + "search": "vr", + "tags": ["ljifgmogxbhrtdgwalz"], }, 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": "nk", - "tags": ["jrqobeujt"], + "include_smart_links": False, + "search": "reyw", + "tags": ["qh"], }, 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": "utmgyfyqxrgzykocd", - "tags": ["ebx"], + "search": "znxqrop", + "tags": ["tncajnpbwqxwhtdoz"], }, 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": "rzfuizfjtnfke", - "tags": ["udvgmzpulz"], + "search": "xkafnneagzcjoyr", + "tags": ["nwcdjcdakzqickhdtzght"], }, 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": "fpwnvoccbenwbfnyelzxf", - "tags": ["gzdticwmnyu"], + "include_smart_links": False, + "search": "vr", + "tags": ["ljifgmogxbhrtdgwalz"], }, 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": "nk", - "tags": ["jrqobeujt"], + "include_smart_links": False, + "search": "reyw", + "tags": ["qh"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index a3decfcb..b4127838 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="aperiam", + 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="aperiam", + 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="aperiam", + 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="aperiam", + 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="aperiam", + 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="aperiam", + 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="aperiam", + 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="aperiam", + 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="amet", + tracking_link_id="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="aperiam", + 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="aperiam", + 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="aperiam", + 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="aperiam", + 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="aperiam", + 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="aperiam", + 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="aperiam", + 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="aperiam", + 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="amet", + tracking_link_id="qui", 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="qui", 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="qui", 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="qui", 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="qui", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 5587ca6b..cdaa5e5a 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="dolor", + trial_link_id="impedit", 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="dolor", + trial_link_id="impedit", 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="dolor", + trial_link_id="impedit", 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="dolor", + trial_link_id="impedit", 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="dolor", + trial_link_id="impedit", 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="dolor", + trial_link_id="impedit", 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="dolor", + trial_link_id="impedit", 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="dolor", + trial_link_id="impedit", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="vero", + trial_link_id="incidunt", 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="vero", + trial_link_id="incidunt", 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="vero", + trial_link_id="incidunt", 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="vero", + trial_link_id="incidunt", 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="vero", + trial_link_id="incidunt", 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="occaecati", + trial_link_id="nam", 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="occaecati", + trial_link_id="nam", 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="occaecati", + trial_link_id="nam", 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="occaecati", + trial_link_id="nam", 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="occaecati", + trial_link_id="nam", 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="dolor", + trial_link_id="impedit", 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="dolor", + trial_link_id="impedit", 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="dolor", + trial_link_id="impedit", 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="dolor", + trial_link_id="impedit", 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="dolor", + trial_link_id="impedit", 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="dolor", + trial_link_id="impedit", 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="dolor", + trial_link_id="impedit", 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="dolor", + trial_link_id="impedit", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="vero", + trial_link_id="incidunt", 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="vero", + trial_link_id="incidunt", 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="vero", + trial_link_id="incidunt", 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="vero", + trial_link_id="incidunt", 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="vero", + trial_link_id="incidunt", 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="occaecati", + trial_link_id="nam", 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="occaecati", + trial_link_id="nam", 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="occaecati", + trial_link_id="nam", 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="occaecati", + trial_link_id="nam", 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="occaecati", + trial_link_id="nam", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 111c4ee7..8d1e6c40 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="awahxqdafgfuyv", + name="zoq", ) 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="awahxqdafgfuyv", + name="zoq", ) 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="awahxqdafgfuyv", + name="zoq", ) 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="awahxqdafgfuyv", + name="zoq", ) @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="awahxqdafgfuyv", + name="zoq", ) 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="awahxqdafgfuyv", + name="zoq", ) 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="awahxqdafgfuyv", + name="zoq", ) 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="awahxqdafgfuyv", + name="zoq", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 179a5923e7580bf0483d05abccd2ab731a09bc01 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 5 Jul 2026 14:12:33 +0000 Subject: [PATCH 144/249] 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 | 100 +++++++++--------- tests/api_resources/test_stored.py | 40 +++---- tests/api_resources/test_tracking_links.py | 52 ++++----- 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 68287c7e..38fafd7d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-01a36afdb584925f04ebb7eacd9df231623257a73abded85f33015f1cf96b9ed.yml -openapi_spec_hash: 0456bdf0e807bfc55a063531860baabe +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e2dcdf1d37470083699388e29cc1e4e3431d0f7ade8f4b5a3f533582d6f1962f.yml +openapi_spec_hash: 3120a74696192c9caba063ac8819cd9a config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 1807ff00..d07f3001 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 7e10c878..db1d92ef 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 3cf7cd54..4268a903 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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 aa735c97..a62ccbd3 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 2ced6cb5..fc7b1635 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 ffcd9662..a1fbfdeb 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + 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="assumenda", + story_id="repudiandae", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 5e31d2e0..02cf31a0 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", + "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( - "voluptatem", + "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( - "voluptatem", + "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( - "voluptatem", + "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( - "voluptatem", + "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( - "voluptatem", + "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 4f8ea11f..2f736578 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="delectus", - auth_type="raw_data", - cookies="similique", + auth_id="non", + auth_type="email_password", + cookies="atque", custom_proxy={ "host": "proxy.example.com", - "password": 'xhx&y[xwsDR)1qa$".', + "password": 'M4j"6~+nkgk(N', "port": 8080, - "username": "qui", + "username": "quod", }, - email="chadd.reichert@example.net", + email="jailyn.kirlin@example.net", force_connect=True, - name="nam", - password="SE}x^\\q0", + name="ratione", + password="a}y2Uy$IPbXj", proxy_country="us", - user_agent="eius", - xbc="temporibus", + user_agent="corporis", + xbc="magni", ) 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="delectus", - auth_type="raw_data", - cookies="similique", + auth_id="non", + auth_type="email_password", + cookies="atque", custom_proxy={ "host": "proxy.example.com", - "password": 'xhx&y[xwsDR)1qa$".', + "password": 'M4j"6~+nkgk(N', "port": 8080, - "username": "qui", + "username": "quod", }, - email="chadd.reichert@example.net", + email="jailyn.kirlin@example.net", force_connect=True, - name="nam", - password="SE}x^\\q0", + name="ratione", + password="a}y2Uy$IPbXj", proxy_country="us", - user_agent="eius", - xbc="temporibus", + user_agent="corporis", + xbc="magni", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index aaff3bff..1a80b275 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_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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 9b1a62c5..8fd56656 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": ["wvmxyfugjklzrvasx"]}, + filter={"tags": ["y"]}, 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="alias", + smart_link_id="non", ) 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="alias", + smart_link_id="non", 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="alias", + smart_link_id="non", ) 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="alias", + smart_link_id="non", ) 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="alias", + smart_link_id="voluptas", ) 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="alias", + smart_link_id="voluptas", 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="alias", + smart_link_id="voluptas", ) 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="alias", + smart_link_id="voluptas", ) 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="odit", + smart_link_id="fugit", ) 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="odit", + smart_link_id="fugit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="odit", + smart_link_id="fugit", ) assert response.is_closed is True @@ -359,7 +359,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="odit", + smart_link_id="fugit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="modi", + smart_link_id="velit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="modi", + smart_link_id="velit", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="modi", + smart_link_id="velit", ) assert response.is_closed is True @@ -412,7 +412,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="modi", + smart_link_id="velit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="praesentium", ) assert smart_link is None @@ -442,7 +442,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="praesentium", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="praesentium", ) assert response.is_closed is True @@ -465,7 +465,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="praesentium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="eaque", + smart_link_id="ea", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="eaque", + smart_link_id="ea", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="eaque", + smart_link_id="ea", ) assert response.is_closed is True @@ -517,7 +517,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="eaque", + smart_link_id="ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["wvmxyfugjklzrvasx"]}, + filter={"tags": ["y"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="alias", + smart_link_id="non", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="alias", + smart_link_id="non", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="alias", + smart_link_id="non", ) assert response.is_closed is True @@ -756,7 +756,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="alias", + smart_link_id="non", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="alias", + smart_link_id="voluptas", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="alias", + smart_link_id="voluptas", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="alias", + smart_link_id="voluptas", ) assert response.is_closed is True @@ -814,7 +814,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="alias", + smart_link_id="voluptas", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="odit", + smart_link_id="fugit", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="odit", + smart_link_id="fugit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="odit", + smart_link_id="fugit", ) assert response.is_closed is True @@ -873,7 +873,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="odit", + smart_link_id="fugit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="modi", + smart_link_id="velit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="modi", + smart_link_id="velit", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="modi", + smart_link_id="velit", ) assert response.is_closed is True @@ -926,7 +926,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="modi", + smart_link_id="velit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="praesentium", ) assert smart_link is None @@ -956,7 +956,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="praesentium", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="praesentium", ) assert response.is_closed is True @@ -979,7 +979,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="praesentium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="eaque", + smart_link_id="ea", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="eaque", + smart_link_id="ea", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="eaque", + smart_link_id="ea", ) assert response.is_closed is True @@ -1031,7 +1031,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="eaque", + 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 0d765fdd..065c5576 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": "znxqrop", - "tags": ["tncajnpbwqxwhtdoz"], + "search": "yvgquyehlhyjhopipqsdbpiif", + "tags": ["lnlsntlsdkelxdvyjddlpflw"], }, 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": "xkafnneagzcjoyr", - "tags": ["nwcdjcdakzqickhdtzght"], + "search": "wdo", + "tags": ["tfbqnrlploohtknnhnrdjz"], }, 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": "vr", - "tags": ["ljifgmogxbhrtdgwalz"], + "include_smart_links": True, + "search": "lfjdxzwhpb", + "tags": ["qgj"], }, 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": "reyw", - "tags": ["qh"], + "include_smart_links": True, + "search": "acftuxyvylq", + "tags": ["umqj"], }, 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": "znxqrop", - "tags": ["tncajnpbwqxwhtdoz"], + "search": "yvgquyehlhyjhopipqsdbpiif", + "tags": ["lnlsntlsdkelxdvyjddlpflw"], }, 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": "xkafnneagzcjoyr", - "tags": ["nwcdjcdakzqickhdtzght"], + "search": "wdo", + "tags": ["tfbqnrlploohtknnhnrdjz"], }, 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": "vr", - "tags": ["ljifgmogxbhrtdgwalz"], + "include_smart_links": True, + "search": "lfjdxzwhpb", + "tags": ["qgj"], }, 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": "reyw", - "tags": ["qh"], + "include_smart_links": True, + "search": "acftuxyvylq", + "tags": ["umqj"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index b4127838..3cae1882 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="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="non", + 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="non", + 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="non", + 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="non", + 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="non", + 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="non", + 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="non", + tracking_link_id="consequuntur", 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="non", + 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="non", + 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="non", + 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="non", + 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="non", + 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="non", + 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="non", + 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="non", + tracking_link_id="consequuntur", 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + tracking_link_id="maiores", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index cdaa5e5a..70fc8dd2 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="impedit", + trial_link_id="quasi", 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="impedit", + trial_link_id="quasi", 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="impedit", + trial_link_id="quasi", 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="impedit", + trial_link_id="quasi", 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="impedit", + trial_link_id="quasi", 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="impedit", + trial_link_id="quasi", 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="impedit", + trial_link_id="quasi", 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="impedit", + trial_link_id="quasi", 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="doloribus", + trial_link_id="quo", 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="doloribus", + trial_link_id="quo", 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="doloribus", + trial_link_id="quo", 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="doloribus", + trial_link_id="quo", 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="nam", + trial_link_id="velit", 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="nam", + trial_link_id="velit", 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="nam", + trial_link_id="velit", 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="nam", + trial_link_id="velit", 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="nam", + trial_link_id="velit", 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="impedit", + trial_link_id="quasi", 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="impedit", + trial_link_id="quasi", 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="impedit", + trial_link_id="quasi", 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="impedit", + trial_link_id="quasi", 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="impedit", + trial_link_id="quasi", 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="impedit", + trial_link_id="quasi", 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="impedit", + trial_link_id="quasi", 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="impedit", + trial_link_id="quasi", 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="doloribus", + trial_link_id="quo", 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="doloribus", + trial_link_id="quo", 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="doloribus", + trial_link_id="quo", 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="doloribus", + trial_link_id="quo", 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="incidunt", + 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="nam", + trial_link_id="velit", 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="nam", + trial_link_id="velit", 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="nam", + trial_link_id="velit", 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="nam", + trial_link_id="velit", 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="nam", + trial_link_id="velit", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 8d1e6c40..6abfb5ac 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="zoq", + name="gxqtxbdqztcdhrnkjlvlbe", ) 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="zoq", + name="gxqtxbdqztcdhrnkjlvlbe", ) 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="zoq", + name="gxqtxbdqztcdhrnkjlvlbe", ) 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="zoq", + name="gxqtxbdqztcdhrnkjlvlbe", ) @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="zoq", + name="gxqtxbdqztcdhrnkjlvlbe", ) 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="zoq", + name="gxqtxbdqztcdhrnkjlvlbe", ) 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="zoq", + name="gxqtxbdqztcdhrnkjlvlbe", ) 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="zoq", + name="gxqtxbdqztcdhrnkjlvlbe", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 02ae244cb2aaf005d9244be1cb2410935f626c56 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 5 Jul 2026 18:12:33 +0000 Subject: [PATCH 145/249] 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_profiles.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 +-- 17 files changed, 268 insertions(+), 268 deletions(-) diff --git a/.stats.yml b/.stats.yml index 38fafd7d..55731ce1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e2dcdf1d37470083699388e29cc1e4e3431d0f7ade8f4b5a3f533582d6f1962f.yml -openapi_spec_hash: 3120a74696192c9caba063ac8819cd9a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-26ebb935287d50cd67c7c1a83955cccb0e814c5e47d83c48dec5db33ae44ace5.yml +openapi_spec_hash: 389a2c1bc272a11e72aec8f0f64560ec config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index d07f3001..15f6dfce 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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 db1d92ef..426c32fd 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="nesciunt", + list_id="saepe", 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="nesciunt", + list_id="saepe", 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="nesciunt", + list_id="saepe", 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="nesciunt", + list_id="saepe", 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="nesciunt", + list_id="saepe", 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="nesciunt", + list_id="saepe", 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="nesciunt", + list_id="saepe", 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="nesciunt", + list_id="saepe", 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="nesciunt", + list_id="saepe", 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="nesciunt", + list_id="saepe", 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="nesciunt", + list_id="saepe", 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="nesciunt", + list_id="saepe", 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="nesciunt", + list_id="saepe", 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="nesciunt", + list_id="saepe", 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="nesciunt", + list_id="saepe", 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="nesciunt", + list_id="saepe", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 4268a903..a17ff9ae 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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 a62ccbd3..aa735c97 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index fc7b1635..b5f3d61a 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=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=6, + 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=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_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=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=6, + 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=6, + 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=6, + 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=6, + period=24, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075f..544df889 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 a1fbfdeb..905e48ed 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="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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + story_id="sapiente", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 02cf31a0..cb4f0cfb 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", + "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( - "sed", + "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( - "sed", + "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( - "sed", + "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( - "sed", + "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( - "sed", + "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 2f736578..8503d214 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="atque", + auth_id="sunt", + auth_type="raw_data", + cookies="ut", custom_proxy={ "host": "proxy.example.com", - "password": 'M4j"6~+nkgk(N', + "password": 'CqK!BL~ScRR0["O', "port": 8080, - "username": "quod", + "username": "aut", }, - email="jailyn.kirlin@example.net", - force_connect=True, - name="ratione", - password="a}y2Uy$IPbXj", + email="sokuneva@example.org", + force_connect=False, + name="est", + password="$iCJe'}tG%P[I.P@/", proxy_country="us", - user_agent="corporis", - xbc="magni", + user_agent="facere", + xbc="laudantium", ) 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="atque", + auth_id="sunt", + auth_type="raw_data", + cookies="ut", custom_proxy={ "host": "proxy.example.com", - "password": 'M4j"6~+nkgk(N', + "password": 'CqK!BL~ScRR0["O', "port": 8080, - "username": "quod", + "username": "aut", }, - email="jailyn.kirlin@example.net", - force_connect=True, - name="ratione", - password="a}y2Uy$IPbXj", + email="sokuneva@example.org", + force_connect=False, + name="est", + password="$iCJe'}tG%P[I.P@/", proxy_country="us", - user_agent="corporis", - xbc="magni", + user_agent="facere", + xbc="laudantium", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 1a80b275..4fb0fa41 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="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="onlyfans", + 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 65694e23..bd4f6161 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 8fd56656..93ccae50 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": ["y"]}, + filter={"tags": ["whceimlthrbxnt"]}, 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="non", + 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="non", + 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="non", + 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="non", + 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="voluptas", + smart_link_id="sint", ) 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="voluptas", + smart_link_id="sint", 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="voluptas", + smart_link_id="sint", ) 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="voluptas", + smart_link_id="sint", ) 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="fugit", + smart_link_id="mollitia", ) 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="fugit", + smart_link_id="mollitia", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="fugit", + smart_link_id="mollitia", ) assert response.is_closed is True @@ -359,7 +359,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="fugit", + smart_link_id="mollitia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="velit", + smart_link_id="similique", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="velit", + smart_link_id="similique", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="velit", + smart_link_id="similique", ) assert response.is_closed is True @@ -412,7 +412,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="velit", + smart_link_id="similique", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="praesentium", + smart_link_id="ea", ) assert smart_link is None @@ -442,7 +442,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="praesentium", + smart_link_id="ea", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="praesentium", + smart_link_id="ea", ) assert response.is_closed is True @@ -465,7 +465,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="praesentium", + smart_link_id="ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="non", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="non", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="non", ) assert response.is_closed is True @@ -517,7 +517,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="non", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["y"]}, + filter={"tags": ["whceimlthrbxnt"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="non", + smart_link_id="aliquam", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="non", + smart_link_id="aliquam", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="non", + smart_link_id="aliquam", ) assert response.is_closed is True @@ -756,7 +756,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="non", + smart_link_id="aliquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="voluptas", + smart_link_id="sint", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="voluptas", + smart_link_id="sint", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="voluptas", + smart_link_id="sint", ) assert response.is_closed is True @@ -814,7 +814,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="voluptas", + smart_link_id="sint", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="fugit", + smart_link_id="mollitia", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="fugit", + smart_link_id="mollitia", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="fugit", + smart_link_id="mollitia", ) assert response.is_closed is True @@ -873,7 +873,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="fugit", + smart_link_id="mollitia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="velit", + smart_link_id="similique", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="velit", + smart_link_id="similique", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="velit", + smart_link_id="similique", ) assert response.is_closed is True @@ -926,7 +926,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="velit", + smart_link_id="similique", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="praesentium", + smart_link_id="ea", ) assert smart_link is None @@ -956,7 +956,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="praesentium", + smart_link_id="ea", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="praesentium", + smart_link_id="ea", ) assert response.is_closed is True @@ -979,7 +979,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="praesentium", + smart_link_id="ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="non", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="non", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="non", ) assert response.is_closed is True @@ -1031,7 +1031,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="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 065c5576..582ca73b 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": "yvgquyehlhyjhopipqsdbpiif", - "tags": ["lnlsntlsdkelxdvyjddlpflw"], + "search": "ixyqeqzmrybgwlalwadxwjt", + "tags": ["dttonygkkchha"], }, 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": "wdo", - "tags": ["tfbqnrlploohtknnhnrdjz"], + "search": "kjqs", + "tags": ["vxzalgqvfpypvp"], }, 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": "lfjdxzwhpb", - "tags": ["qgj"], + "search": "hvcrfpeyggbrptsen", + "tags": ["qhgkgmuxydamlphnvqihrkzh"], }, 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": "acftuxyvylq", - "tags": ["umqj"], + "search": "qpbyjhlj", + "tags": ["yy"], }, 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": "yvgquyehlhyjhopipqsdbpiif", - "tags": ["lnlsntlsdkelxdvyjddlpflw"], + "search": "ixyqeqzmrybgwlalwadxwjt", + "tags": ["dttonygkkchha"], }, 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": "wdo", - "tags": ["tfbqnrlploohtknnhnrdjz"], + "search": "kjqs", + "tags": ["vxzalgqvfpypvp"], }, 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": "lfjdxzwhpb", - "tags": ["qgj"], + "search": "hvcrfpeyggbrptsen", + "tags": ["qhgkgmuxydamlphnvqihrkzh"], }, 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": "acftuxyvylq", - "tags": ["umqj"], + "search": "qpbyjhlj", + "tags": ["yy"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 3cae1882..0ec3966e 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="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="consequuntur", + 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="consequuntur", + 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="consequuntur", + 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="consequuntur", + 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="consequuntur", + 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="consequuntur", + 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="consequuntur", + 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="qui", + tracking_link_id="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="consequuntur", + 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="consequuntur", + 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="consequuntur", + 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="consequuntur", + 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="consequuntur", + 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="consequuntur", + 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="consequuntur", + 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="consequuntur", + 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="qui", + tracking_link_id="quis", 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="quis", 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="quis", 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="quis", 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="quis", 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="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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + tracking_link_id="cupiditate", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 70fc8dd2..abf165e1 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="quasi", + trial_link_id="sequi", 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="quasi", + trial_link_id="sequi", 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="quasi", + trial_link_id="sequi", 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="quasi", + trial_link_id="sequi", 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="quasi", + trial_link_id="sequi", 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="quasi", + trial_link_id="sequi", 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="quasi", + trial_link_id="sequi", 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="quasi", + trial_link_id="sequi", 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="quo", + trial_link_id="voluptatem", 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="quo", + trial_link_id="voluptatem", 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="quo", + trial_link_id="voluptatem", 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="quo", + trial_link_id="voluptatem", 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="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="laboriosam", + 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="laboriosam", + 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="laboriosam", + 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="laboriosam", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="quasi", + trial_link_id="sequi", 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="quasi", + trial_link_id="sequi", 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="quasi", + trial_link_id="sequi", 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="quasi", + trial_link_id="sequi", 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="quasi", + trial_link_id="sequi", 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="quasi", + trial_link_id="sequi", 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="quasi", + trial_link_id="sequi", 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="quasi", + trial_link_id="sequi", 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="quo", + trial_link_id="voluptatem", 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="quo", + trial_link_id="voluptatem", 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="quo", + trial_link_id="voluptatem", 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="quo", + trial_link_id="voluptatem", 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="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="laboriosam", + 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="laboriosam", + 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="laboriosam", + 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="laboriosam", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + trial_link_id="facere", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 6abfb5ac..248dc237 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="gxqtxbdqztcdhrnkjlvlbe", + name="ctwlutx", ) 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="gxqtxbdqztcdhrnkjlvlbe", + name="ctwlutx", ) 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="gxqtxbdqztcdhrnkjlvlbe", + name="ctwlutx", ) 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="gxqtxbdqztcdhrnkjlvlbe", + name="ctwlutx", ) @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="gxqtxbdqztcdhrnkjlvlbe", + name="ctwlutx", ) 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="gxqtxbdqztcdhrnkjlvlbe", + name="ctwlutx", ) 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="gxqtxbdqztcdhrnkjlvlbe", + name="ctwlutx", ) 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="gxqtxbdqztcdhrnkjlvlbe", + name="ctwlutx", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 1e34cdfb2c77dcf8e7bfe3429b624ba6564c12c2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 5 Jul 2026 23:12:34 +0000 Subject: [PATCH 146/249] 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_smart_links.py | 100 +++++++++--------- 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, 270 insertions(+), 270 deletions(-) diff --git a/.stats.yml b/.stats.yml index 55731ce1..6efd71c3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-26ebb935287d50cd67c7c1a83955cccb0e814c5e47d83c48dec5db33ae44ace5.yml -openapi_spec_hash: 389a2c1bc272a11e72aec8f0f64560ec +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e12f61ff0acdb5832afdd253f567601cbbe31db92e34533118b7a9eccb37f51f.yml +openapi_spec_hash: 8c69bc362f13e5cf4d69d19d88ac5ade config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 15f6dfce..0556d912 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", 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="repudiandae", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 426c32fd..316679ed 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="saepe", + list_id="dolor", 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="saepe", + list_id="dolor", 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="saepe", + list_id="dolor", 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="saepe", + list_id="dolor", 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="saepe", + list_id="dolor", 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="saepe", + list_id="dolor", 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="saepe", + list_id="dolor", 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="saepe", + list_id="dolor", 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="saepe", + list_id="dolor", 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="saepe", + list_id="dolor", 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="saepe", + list_id="dolor", 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="saepe", + list_id="dolor", 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="saepe", + list_id="dolor", 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="saepe", + list_id="dolor", 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="saepe", + list_id="dolor", 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="saepe", + list_id="dolor", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index a17ff9ae..58959cc7 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + post_id="aspernatur", 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 aa735c97..444937ba 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 b5f3d61a..9c80483e 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 905e48ed..08b0ea47 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index cb4f0cfb..b99965aa 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", + "soluta", ) 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", + "soluta", ) 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", + "soluta", ) 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", + "soluta", ) 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", + "soluta", ) 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", + "soluta", ) 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 8503d214..ee40fdb3 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="sunt", + auth_id="perspiciatis", auth_type="raw_data", - cookies="ut", + cookies="velit", custom_proxy={ "host": "proxy.example.com", - "password": 'CqK!BL~ScRR0["O', + "password": "98#3wqHt6KL]fL", "port": 8080, - "username": "aut", + "username": "optio", }, - email="sokuneva@example.org", - force_connect=False, - name="est", - password="$iCJe'}tG%P[I.P@/", - proxy_country="us", - user_agent="facere", - xbc="laudantium", + email="lenna.hansen@example.org", + force_connect=True, + name="perferendis", + password="P)1([k}vz1", + proxy_country="uk", + user_agent="perspiciatis", + xbc="cupiditate", ) 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="sunt", + auth_id="perspiciatis", auth_type="raw_data", - cookies="ut", + cookies="velit", custom_proxy={ "host": "proxy.example.com", - "password": 'CqK!BL~ScRR0["O', + "password": "98#3wqHt6KL]fL", "port": 8080, - "username": "aut", + "username": "optio", }, - email="sokuneva@example.org", - force_connect=False, - name="est", - password="$iCJe'}tG%P[I.P@/", - proxy_country="us", - user_agent="facere", - xbc="laudantium", + email="lenna.hansen@example.org", + force_connect=True, + name="perferendis", + password="P)1([k}vz1", + proxy_country="uk", + user_agent="perspiciatis", + xbc="cupiditate", ) 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 9249f386..3597ede6 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_smart_links.py b/tests/api_resources/test_smart_links.py index 93ccae50..be0d61bc 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": ["whceimlthrbxnt"]}, + filter={"tags": ["lsnzbjelbupmsfks"]}, 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="corporis", ) 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="corporis", 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="corporis", ) 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="corporis", ) 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="sint", + smart_link_id="enim", ) 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="sint", + smart_link_id="enim", 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="sint", + smart_link_id="enim", ) 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="sint", + smart_link_id="enim", ) 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="mollitia", + smart_link_id="non", ) 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="mollitia", + smart_link_id="non", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="mollitia", + smart_link_id="non", ) assert response.is_closed is True @@ -359,7 +359,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="mollitia", + smart_link_id="non", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="similique", + smart_link_id="possimus", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="similique", + smart_link_id="possimus", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="similique", + smart_link_id="possimus", ) assert response.is_closed is True @@ -412,7 +412,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="similique", + smart_link_id="possimus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="ea", + smart_link_id="dolor", ) assert smart_link is None @@ -442,7 +442,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="ea", + smart_link_id="dolor", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="ea", + smart_link_id="dolor", ) assert response.is_closed is True @@ -465,7 +465,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="ea", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="qui", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="qui", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="qui", ) assert response.is_closed is True @@ -517,7 +517,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="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["whceimlthrbxnt"]}, + filter={"tags": ["lsnzbjelbupmsfks"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="corporis", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="corporis", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="corporis", ) assert response.is_closed is True @@ -756,7 +756,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="corporis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="enim", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="enim", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="enim", ) assert response.is_closed is True @@ -814,7 +814,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="enim", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="mollitia", + smart_link_id="non", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="mollitia", + smart_link_id="non", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="mollitia", + smart_link_id="non", ) assert response.is_closed is True @@ -873,7 +873,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="mollitia", + smart_link_id="non", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="similique", + smart_link_id="possimus", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="similique", + smart_link_id="possimus", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="similique", + smart_link_id="possimus", ) assert response.is_closed is True @@ -926,7 +926,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="similique", + smart_link_id="possimus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="ea", + smart_link_id="dolor", ) assert smart_link is None @@ -956,7 +956,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="ea", + smart_link_id="dolor", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="ea", + smart_link_id="dolor", ) assert response.is_closed is True @@ -979,7 +979,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="ea", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="qui", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="qui", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="qui", ) assert response.is_closed is True @@ -1031,7 +1031,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="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_stored.py b/tests/api_resources/test_stored.py index 582ca73b..853be280 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": "ixyqeqzmrybgwlalwadxwjt", - "tags": ["dttonygkkchha"], + "search": "yshhzgdatgvrqzcinznv", + "tags": ["kldpj"], }, 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": "kjqs", - "tags": ["vxzalgqvfpypvp"], + "search": "hfmziziitoctfisvijkg", + "tags": ["wqbcparaksgjhqbipqqsjzp"], }, 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": "hvcrfpeyggbrptsen", - "tags": ["qhgkgmuxydamlphnvqihrkzh"], + "include_smart_links": False, + "search": "xxpciukizcjgivajnxnvig", + "tags": ["mnxqrhxgdtkcispixwjnut"], }, 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": "qpbyjhlj", - "tags": ["yy"], + "include_smart_links": False, + "search": "vburqvyibsfdblszb", + "tags": ["unxucsqvmjg"], }, 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": "ixyqeqzmrybgwlalwadxwjt", - "tags": ["dttonygkkchha"], + "search": "yshhzgdatgvrqzcinznv", + "tags": ["kldpj"], }, 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": "kjqs", - "tags": ["vxzalgqvfpypvp"], + "search": "hfmziziitoctfisvijkg", + "tags": ["wqbcparaksgjhqbipqqsjzp"], }, 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": "hvcrfpeyggbrptsen", - "tags": ["qhgkgmuxydamlphnvqihrkzh"], + "include_smart_links": False, + "search": "xxpciukizcjgivajnxnvig", + "tags": ["mnxqrhxgdtkcispixwjnut"], }, 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": "qpbyjhlj", - "tags": ["yy"], + "include_smart_links": False, + "search": "vburqvyibsfdblszb", + "tags": ["unxucsqvmjg"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 0ec3966e..555799a2 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="quis", + tracking_link_id="veritatis", 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="quis", + tracking_link_id="veritatis", 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="quis", + tracking_link_id="veritatis", 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="quis", + tracking_link_id="veritatis", 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="quis", + tracking_link_id="veritatis", 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="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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="quo", + tracking_link_id="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="quis", + tracking_link_id="veritatis", 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="quis", + tracking_link_id="veritatis", 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="quis", + tracking_link_id="veritatis", 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="quis", + tracking_link_id="veritatis", 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="quis", + tracking_link_id="veritatis", 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="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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + tracking_link_id="velit", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index abf165e1..89c7ee28 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="voluptatem", + trial_link_id="ut", 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="voluptatem", + trial_link_id="ut", 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="voluptatem", + trial_link_id="ut", 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="voluptatem", + trial_link_id="ut", 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="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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="facere", + trial_link_id="deserunt", 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="deserunt", 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="deserunt", 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="deserunt", 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="deserunt", 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="voluptatem", + trial_link_id="ut", 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="voluptatem", + trial_link_id="ut", 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="voluptatem", + trial_link_id="ut", 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="voluptatem", + trial_link_id="ut", 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="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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="facere", + trial_link_id="deserunt", 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="deserunt", 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="deserunt", 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="deserunt", 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="deserunt", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 248dc237..dcbcedde 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="ctwlutx", + name="rdr", ) 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="ctwlutx", + name="rdr", ) 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="ctwlutx", + name="rdr", ) 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="ctwlutx", + name="rdr", ) @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="ctwlutx", + name="rdr", ) 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="ctwlutx", + name="rdr", ) 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="ctwlutx", + name="rdr", ) 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="ctwlutx", + name="rdr", ) @pytest.mark.skip(reason="Mock server tests are disabled") From d2ff421e1e4741943cb6dfb61ee8bc68e5273ce7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 00:12:36 +0000 Subject: [PATCH 147/249] 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 | 100 +++++++++--------- 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 +-- 18 files changed, 276 insertions(+), 276 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6efd71c3..f6dc4e33 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e12f61ff0acdb5832afdd253f567601cbbe31db92e34533118b7a9eccb37f51f.yml -openapi_spec_hash: 8c69bc362f13e5cf4d69d19d88ac5ade +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3d3cb65f2ac8955049fbe2fb7cd3f8049ffe7de8e6fcee723f46e3351e7e0e32.yml +openapi_spec_hash: c3fb2b1a8d027d707132b0ff8a3d55f2 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 0556d912..f49aae5f 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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="repudiandae", + 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 316679ed..2a8f1b9e 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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 58959cc7..beb3d11b 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="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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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 444937ba..7549791e 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 9c80483e..b5f3d61a 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 9664075f..544df889 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 08b0ea47..fce53b46 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="qui", + path_story_id="modi", 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="qui", + path_story_id="modi", 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="qui", + path_story_id="modi", 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="qui", + path_story_id="modi", 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="qui", + story_id="modi", 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="qui", + story_id="modi", 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="qui", + story_id="modi", 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="qui", + story_id="modi", 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="qui", + path_story_id="modi", 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="qui", + path_story_id="modi", 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="qui", + path_story_id="modi", 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="qui", + path_story_id="modi", 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="qui", + story_id="modi", 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="qui", + story_id="modi", 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="qui", + story_id="modi", 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="qui", + story_id="modi", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index b99965aa..8af11c2a 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( - "soluta", + "quasi", ) 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( - "soluta", + "quasi", ) 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( - "soluta", + "quasi", ) 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( - "soluta", + "quasi", ) 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( - "soluta", + "quasi", ) 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( - "soluta", + "quasi", ) 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 ee40fdb3..b2667076 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="perspiciatis", - auth_type="raw_data", - cookies="velit", + auth_id="consectetur", + auth_type="email_password", + cookies="perspiciatis", custom_proxy={ "host": "proxy.example.com", - "password": "98#3wqHt6KL]fL", + "password": "zcdS1aqCW:[=]fuW`", "port": 8080, - "username": "optio", + "username": "voluptate", }, - email="lenna.hansen@example.org", - force_connect=True, - name="perferendis", - password="P)1([k}vz1", - proxy_country="uk", - user_agent="perspiciatis", - xbc="cupiditate", + email="lesly60@example.org", + force_connect=False, + name="aliquid", + password="X.\\DM=#t\"5'__C)%-=", + proxy_country="us", + user_agent="quas", + 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="perspiciatis", - auth_type="raw_data", - cookies="velit", + auth_id="consectetur", + auth_type="email_password", + cookies="perspiciatis", custom_proxy={ "host": "proxy.example.com", - "password": "98#3wqHt6KL]fL", + "password": "zcdS1aqCW:[=]fuW`", "port": 8080, - "username": "optio", + "username": "voluptate", }, - email="lenna.hansen@example.org", - force_connect=True, - name="perferendis", - password="P)1([k}vz1", - proxy_country="uk", - user_agent="perspiciatis", - xbc="cupiditate", + email="lesly60@example.org", + force_connect=False, + name="aliquid", + password="X.\\DM=#t\"5'__C)%-=", + proxy_country="us", + user_agent="quas", + 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 3597ede6..9249f386 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 4fb0fa41..bea1ef2e 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="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="subscriptions", + 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 bd4f6161..65694e23 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 be0d61bc..ed946409 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": ["lsnzbjelbupmsfks"]}, + filter={"tags": ["v"]}, 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="corporis", + smart_link_id="quod", ) 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="corporis", + smart_link_id="quod", 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="corporis", + smart_link_id="quod", ) 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="corporis", + smart_link_id="quod", ) 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="enim", + smart_link_id="magnam", ) 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="enim", + smart_link_id="magnam", 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="enim", + smart_link_id="magnam", ) 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="enim", + smart_link_id="magnam", ) 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="non", + smart_link_id="illum", ) 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="non", + smart_link_id="illum", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="non", + smart_link_id="illum", ) assert response.is_closed is True @@ -359,7 +359,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="non", + smart_link_id="illum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="possimus", + smart_link_id="tempore", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="possimus", + smart_link_id="tempore", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="possimus", + smart_link_id="tempore", ) assert response.is_closed is True @@ -412,7 +412,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="possimus", + smart_link_id="tempore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="qui", ) assert smart_link is None @@ -442,7 +442,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="qui", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="qui", ) assert response.is_closed is True @@ -465,7 +465,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="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="qui", + smart_link_id="sed", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="qui", + smart_link_id="sed", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="qui", + smart_link_id="sed", ) assert response.is_closed is True @@ -517,7 +517,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="qui", + smart_link_id="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["lsnzbjelbupmsfks"]}, + filter={"tags": ["v"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="corporis", + smart_link_id="quod", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="corporis", + smart_link_id="quod", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="corporis", + smart_link_id="quod", ) assert response.is_closed is True @@ -756,7 +756,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="corporis", + smart_link_id="quod", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="enim", + smart_link_id="magnam", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="enim", + smart_link_id="magnam", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="enim", + smart_link_id="magnam", ) assert response.is_closed is True @@ -814,7 +814,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="enim", + smart_link_id="magnam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="non", + smart_link_id="illum", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="non", + smart_link_id="illum", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="non", + smart_link_id="illum", ) assert response.is_closed is True @@ -873,7 +873,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="non", + smart_link_id="illum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="possimus", + smart_link_id="tempore", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="possimus", + smart_link_id="tempore", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="possimus", + smart_link_id="tempore", ) assert response.is_closed is True @@ -926,7 +926,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="possimus", + smart_link_id="tempore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="qui", ) assert smart_link is None @@ -956,7 +956,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="qui", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="qui", ) assert response.is_closed is True @@ -979,7 +979,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="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="qui", + smart_link_id="sed", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="qui", + smart_link_id="sed", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="qui", + smart_link_id="sed", ) assert response.is_closed is True @@ -1031,7 +1031,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="qui", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index 853be280..6eee96c9 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": "yshhzgdatgvrqzcinznv", - "tags": ["kldpj"], + "search": "mo", + "tags": ["emwogffegttyxjatcbvmlammr"], }, 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": "hfmziziitoctfisvijkg", - "tags": ["wqbcparaksgjhqbipqqsjzp"], + "search": "ethfeatfysthxfniehhlaln", + "tags": ["gwefjo"], }, 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": "xxpciukizcjgivajnxnvig", - "tags": ["mnxqrhxgdtkcispixwjnut"], + "include_smart_links": True, + "search": "jzsjenieqowhtdtttq", + "tags": ["pms"], }, 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": "vburqvyibsfdblszb", - "tags": ["unxucsqvmjg"], + "include_smart_links": True, + "search": "emvrvjpwyimrfmqhswhikq", + "tags": ["fzlmamfdcs"], }, 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": "yshhzgdatgvrqzcinznv", - "tags": ["kldpj"], + "search": "mo", + "tags": ["emwogffegttyxjatcbvmlammr"], }, 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": "hfmziziitoctfisvijkg", - "tags": ["wqbcparaksgjhqbipqqsjzp"], + "search": "ethfeatfysthxfniehhlaln", + "tags": ["gwefjo"], }, 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": "xxpciukizcjgivajnxnvig", - "tags": ["mnxqrhxgdtkcispixwjnut"], + "include_smart_links": True, + "search": "jzsjenieqowhtdtttq", + "tags": ["pms"], }, 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": "vburqvyibsfdblszb", - "tags": ["unxucsqvmjg"], + "include_smart_links": True, + "search": "emvrvjpwyimrfmqhswhikq", + "tags": ["fzlmamfdcs"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 555799a2..4ca54981 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="debitis", + tracking_link_id="beatae", 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="debitis", + tracking_link_id="beatae", 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="debitis", + tracking_link_id="beatae", 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="debitis", + tracking_link_id="beatae", 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="debitis", + tracking_link_id="beatae", 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="debitis", + tracking_link_id="beatae", 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="debitis", + tracking_link_id="beatae", 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="debitis", + tracking_link_id="beatae", 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="veritatis", + tracking_link_id="blanditiis", 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="veritatis", + tracking_link_id="blanditiis", 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="veritatis", + tracking_link_id="blanditiis", 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="veritatis", + tracking_link_id="blanditiis", 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="veritatis", + tracking_link_id="blanditiis", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="debitis", + tracking_link_id="beatae", 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="debitis", + tracking_link_id="beatae", 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="debitis", + tracking_link_id="beatae", 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="debitis", + tracking_link_id="beatae", 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="debitis", + tracking_link_id="beatae", 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="debitis", + tracking_link_id="beatae", 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="debitis", + tracking_link_id="beatae", 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="debitis", + tracking_link_id="beatae", 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="veritatis", + tracking_link_id="blanditiis", 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="veritatis", + tracking_link_id="blanditiis", 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="veritatis", + tracking_link_id="blanditiis", 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="veritatis", + tracking_link_id="blanditiis", 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="veritatis", + tracking_link_id="blanditiis", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 89c7ee28..7f34e235 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="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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="ut", + trial_link_id="rerum", 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="rerum", 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="rerum", 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="rerum", 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="eos", 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="eos", 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="eos", 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="eos", 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="eos", 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="ut", + trial_link_id="rerum", 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="rerum", 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="rerum", 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="rerum", 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="eos", 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="eos", 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="eos", 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="eos", 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="eos", 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + 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="deserunt", + trial_link_id="ut", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index dcbcedde..98a2b2eb 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="rdr", + name="z", ) 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="rdr", + name="z", ) 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="rdr", + name="z", ) 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="rdr", + name="z", ) @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="rdr", + name="z", ) 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="rdr", + name="z", ) 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="rdr", + name="z", ) 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="rdr", + name="z", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 6d845eace2c48224721825fb92f286f41608a531 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 01:12:36 +0000 Subject: [PATCH 148/249] 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_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 +-- 14 files changed, 256 insertions(+), 256 deletions(-) diff --git a/.stats.yml b/.stats.yml index f6dc4e33..c3cd2bd8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3d3cb65f2ac8955049fbe2fb7cd3f8049ffe7de8e6fcee723f46e3351e7e0e32.yml -openapi_spec_hash: c3fb2b1a8d027d707132b0ff8a3d55f2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-36a34e98b3940e300dd61470f46cfaa4d2367212eb6fe5e28cab591b03431aa4.yml +openapi_spec_hash: cb026c2e941ca8223507659f8698efae config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index f49aae5f..22485725 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 2a8f1b9e..faa12f9d 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", 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="quam", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index beb3d11b..cd108ad1 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="quas", 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="quas", 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="quas", 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="quas", 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="quas", 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="quas", 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="quas", 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="quas", 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="quas", 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="quas", 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="quas", 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="quas", 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="quas", 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="quas", 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="quas", 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="quas", 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="quas", 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="quas", 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="quas", 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="quas", 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 7549791e..a62ccbd3 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/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index fce53b46..2bc4f7d7 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="modi", + path_story_id="illum", 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="modi", + path_story_id="illum", 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="modi", + path_story_id="illum", 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="modi", + path_story_id="illum", 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="modi", + story_id="illum", 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="modi", + story_id="illum", 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="modi", + story_id="illum", 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="modi", + story_id="illum", 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="modi", + path_story_id="illum", 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="modi", + path_story_id="illum", 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="modi", + path_story_id="illum", 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="modi", + path_story_id="illum", 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="modi", + story_id="illum", 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="modi", + story_id="illum", 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="modi", + story_id="illum", 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="modi", + story_id="illum", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 8af11c2a..c6fe9a03 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( - "quasi", + "rem", ) 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( - "quasi", + "rem", ) 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( - "quasi", + "rem", ) 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( - "quasi", + "rem", ) 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( - "quasi", + "rem", ) 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( - "quasi", + "rem", ) 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 b2667076..95de1b2f 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_id="ducimus", auth_type="email_password", - cookies="perspiciatis", + cookies="ratione", custom_proxy={ "host": "proxy.example.com", - "password": "zcdS1aqCW:[=]fuW`", + "password": "~@@:vHY(Z0)", "port": 8080, - "username": "voluptate", + "username": "iusto", }, - email="lesly60@example.org", - force_connect=False, - name="aliquid", - password="X.\\DM=#t\"5'__C)%-=", - proxy_country="us", - user_agent="quas", - xbc="quia", + email="jenkins.millie@example.org", + force_connect=True, + name="eaque", + password='U{cuA"{;}Y:)K', + proxy_country="uk", + user_agent="doloribus", + xbc="hic", ) 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_id="ducimus", auth_type="email_password", - cookies="perspiciatis", + cookies="ratione", custom_proxy={ "host": "proxy.example.com", - "password": "zcdS1aqCW:[=]fuW`", + "password": "~@@:vHY(Z0)", "port": 8080, - "username": "voluptate", + "username": "iusto", }, - email="lesly60@example.org", - force_connect=False, - name="aliquid", - password="X.\\DM=#t\"5'__C)%-=", - proxy_country="us", - user_agent="quas", - xbc="quia", + email="jenkins.millie@example.org", + force_connect=True, + name="eaque", + password='U{cuA"{;}Y:)K', + proxy_country="uk", + user_agent="doloribus", + xbc="hic", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index bea1ef2e..4d3e426f 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="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="tags", + 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 ed946409..7fef5e29 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": ["v"]}, + filter={"tags": ["tbh"]}, 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="quod", + smart_link_id="sed", ) 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="quod", + smart_link_id="sed", 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="quod", + smart_link_id="sed", ) 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="quod", + smart_link_id="sed", ) 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="magnam", + smart_link_id="a", ) 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="magnam", + smart_link_id="a", 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="magnam", + smart_link_id="a", ) 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="magnam", + smart_link_id="a", ) 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="illum", + smart_link_id="harum", ) 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="illum", + smart_link_id="harum", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="illum", + smart_link_id="harum", ) assert response.is_closed is True @@ -359,7 +359,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="illum", + smart_link_id="harum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="tempore", + smart_link_id="eos", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="tempore", + smart_link_id="eos", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="tempore", + smart_link_id="eos", ) assert response.is_closed is True @@ -412,7 +412,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="tempore", + smart_link_id="eos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="voluptatum", ) assert smart_link is None @@ -442,7 +442,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="voluptatum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="voluptatum", ) assert response.is_closed is True @@ -465,7 +465,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="voluptatum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="sed", + smart_link_id="ut", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="sed", + smart_link_id="ut", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="sed", + smart_link_id="ut", ) assert response.is_closed is True @@ -517,7 +517,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="sed", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["v"]}, + filter={"tags": ["tbh"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="quod", + smart_link_id="sed", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="quod", + smart_link_id="sed", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="quod", + smart_link_id="sed", ) assert response.is_closed is True @@ -756,7 +756,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="quod", + smart_link_id="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="a", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="a", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="a", ) assert response.is_closed is True @@ -814,7 +814,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="a", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="illum", + smart_link_id="harum", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="illum", + smart_link_id="harum", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="illum", + smart_link_id="harum", ) assert response.is_closed is True @@ -873,7 +873,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="illum", + smart_link_id="harum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="tempore", + smart_link_id="eos", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="tempore", + smart_link_id="eos", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="tempore", + smart_link_id="eos", ) assert response.is_closed is True @@ -926,7 +926,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="tempore", + smart_link_id="eos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="voluptatum", ) assert smart_link is None @@ -956,7 +956,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="voluptatum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="voluptatum", ) assert response.is_closed is True @@ -979,7 +979,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="voluptatum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="sed", + smart_link_id="ut", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="sed", + smart_link_id="ut", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="sed", + smart_link_id="ut", ) assert response.is_closed is True @@ -1031,7 +1031,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="sed", + 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 6eee96c9..b52b6af2 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": "mo", - "tags": ["emwogffegttyxjatcbvmlammr"], + "search": "qefq", + "tags": ["nbvcothjqgvisvg"], }, 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": "ethfeatfysthxfniehhlaln", - "tags": ["gwefjo"], + "search": "uyejanoimqpmmzdew", + "tags": ["gdsbmydvfcrryjyeic"], }, 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": "jzsjenieqowhtdtttq", - "tags": ["pms"], + "search": "svomtbrhbawjpqykyqymhlhri", + "tags": ["gkeofnhqbhcgokubybhwbugtp"], }, 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": "emvrvjpwyimrfmqhswhikq", - "tags": ["fzlmamfdcs"], + "search": "pqlypeamqqm", + "tags": ["nivecotkwrama"], }, 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": "mo", - "tags": ["emwogffegttyxjatcbvmlammr"], + "search": "qefq", + "tags": ["nbvcothjqgvisvg"], }, 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": "ethfeatfysthxfniehhlaln", - "tags": ["gwefjo"], + "search": "uyejanoimqpmmzdew", + "tags": ["gdsbmydvfcrryjyeic"], }, 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": "jzsjenieqowhtdtttq", - "tags": ["pms"], + "search": "svomtbrhbawjpqykyqymhlhri", + "tags": ["gkeofnhqbhcgokubybhwbugtp"], }, 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": "emvrvjpwyimrfmqhswhikq", - "tags": ["fzlmamfdcs"], + "search": "pqlypeamqqm", + "tags": ["nivecotkwrama"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 4ca54981..05c162d6 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="blanditiis", + tracking_link_id="sunt", 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="blanditiis", + tracking_link_id="sunt", 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="blanditiis", + tracking_link_id="sunt", 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="blanditiis", + tracking_link_id="sunt", 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="blanditiis", + tracking_link_id="sunt", 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="iste", + tracking_link_id="eum", 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="iste", + tracking_link_id="eum", 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="iste", + tracking_link_id="eum", 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="iste", + tracking_link_id="eum", 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="iste", + tracking_link_id="eum", 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="blanditiis", + tracking_link_id="sunt", 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="blanditiis", + tracking_link_id="sunt", 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="blanditiis", + tracking_link_id="sunt", 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="blanditiis", + tracking_link_id="sunt", 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="blanditiis", + tracking_link_id="sunt", 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="iste", + tracking_link_id="eum", 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="iste", + tracking_link_id="eum", 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="iste", + tracking_link_id="eum", 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="iste", + tracking_link_id="eum", 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="iste", + tracking_link_id="eum", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 7f34e235..7333f6f3 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="rerum", + trial_link_id="odit", 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="rerum", + trial_link_id="odit", 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="rerum", + trial_link_id="odit", 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="rerum", + trial_link_id="odit", 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="rerum", + trial_link_id="odit", 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="rerum", + trial_link_id="odit", 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="rerum", + trial_link_id="odit", 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="rerum", + trial_link_id="odit", 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + trial_link_id="aut", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 98a2b2eb..ad1c89ae 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="z", + name="zqowrzgqmbakndyzrymplnfm", ) 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="z", + name="zqowrzgqmbakndyzrymplnfm", ) 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="z", + name="zqowrzgqmbakndyzrymplnfm", ) 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="z", + name="zqowrzgqmbakndyzrymplnfm", ) @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="z", + name="zqowrzgqmbakndyzrymplnfm", ) 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="z", + name="zqowrzgqmbakndyzrymplnfm", ) 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="z", + name="zqowrzgqmbakndyzrymplnfm", ) 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="z", + name="zqowrzgqmbakndyzrymplnfm", ) @pytest.mark.skip(reason="Mock server tests are disabled") From bc4ad9cda2cddd4b44f3a6ec598cd9843ff5422e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 08:12:36 +0000 Subject: [PATCH 149/249] 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_client_sessions.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 c3cd2bd8..0eb86f6a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-36a34e98b3940e300dd61470f46cfaa4d2367212eb6fe5e28cab591b03431aa4.yml -openapi_spec_hash: cb026c2e941ca8223507659f8698efae +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f1c9930d33ddf0d139a8728fdf0d92d20e441e831dc39528ab512f0ad034444d.yml +openapi_spec_hash: 3ef1bf6a797a4847c4a57725ae478b3e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 22485725..c49211be 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="sapiente", + message_id="voluptates", 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="sapiente", + message_id="voluptates", 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="sapiente", + message_id="voluptates", 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="sapiente", + message_id="voluptates", 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="sapiente", + message_id="voluptates", 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="sapiente", + message_id="voluptates", 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="sapiente", + message_id="voluptates", 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="sapiente", + message_id="voluptates", 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="sapiente", + message_id="voluptates", 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="sapiente", + message_id="voluptates", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index faa12f9d..f9d459e6 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="quam", + list_id="expedita", 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="quam", + list_id="expedita", 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="quam", + list_id="expedita", 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="quam", + list_id="expedita", 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="quam", + list_id="expedita", 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="quam", + list_id="expedita", 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="quam", + list_id="expedita", 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="quam", + list_id="expedita", 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="quam", + list_id="expedita", 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="quam", + list_id="expedita", 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="quam", + list_id="expedita", 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="quam", + list_id="expedita", 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="quam", + list_id="expedita", 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="quam", + list_id="expedita", 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="quam", + list_id="expedita", 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="quam", + list_id="expedita", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index cd108ad1..bfa9708b 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="quas", + post_id="ipsa", 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="quas", + post_id="ipsa", 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="quas", + post_id="ipsa", 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="quas", + post_id="ipsa", 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="quas", + post_id="ipsa", 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="quas", + post_id="ipsa", 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="quas", + post_id="ipsa", 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="quas", + post_id="ipsa", 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="quas", + post_id="ipsa", 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="quas", + post_id="ipsa", 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="quas", + post_id="ipsa", 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="quas", + post_id="ipsa", 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="quas", + post_id="ipsa", 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="quas", + post_id="ipsa", 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="quas", + post_id="ipsa", 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="quas", + post_id="ipsa", 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="quas", + post_id="ipsa", 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="quas", + post_id="ipsa", 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="quas", + post_id="ipsa", 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="quas", + post_id="ipsa", 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 b5f3d61a..9c80483e 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 2bc4f7d7..0d2e97ea 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + story_id="voluptatem", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index c6fe9a03..a5dc9a19 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( - "rem", + "saepe", ) 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( - "rem", + "saepe", ) 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( - "rem", + "saepe", ) 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( - "rem", + "saepe", ) 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( - "rem", + "saepe", ) 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( - "rem", + "saepe", ) 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 95de1b2f..a914e398 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="ducimus", - auth_type="email_password", - cookies="ratione", + auth_id="temporibus", + auth_type="raw_data", + cookies="fugit", custom_proxy={ "host": "proxy.example.com", - "password": "~@@:vHY(Z0)", + "password": 'vQ)"][', "port": 8080, - "username": "iusto", + "username": "consectetur", }, - email="jenkins.millie@example.org", + email="eino79@example.com", force_connect=True, - name="eaque", - password='U{cuA"{;}Y:)K', - proxy_country="uk", - user_agent="doloribus", - xbc="hic", + name="ex", + password="( None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="ducimus", - auth_type="email_password", - cookies="ratione", + auth_id="temporibus", + auth_type="raw_data", + cookies="fugit", custom_proxy={ "host": "proxy.example.com", - "password": "~@@:vHY(Z0)", + "password": 'vQ)"][', "port": 8080, - "username": "iusto", + "username": "consectetur", }, - email="jenkins.millie@example.org", + email="eino79@example.com", force_connect=True, - name="eaque", - password='U{cuA"{;}Y:)K', - proxy_country="uk", - user_agent="doloribus", - xbc="hic", + name="ex", + 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_smart_links.py b/tests/api_resources/test_smart_links.py index 7fef5e29..ea2a0043 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": ["tbh"]}, + filter={"tags": ["ywjezdltopdorcgyuuu"]}, 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="sed", + smart_link_id="qui", ) 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="sed", + smart_link_id="qui", 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="sed", + smart_link_id="qui", ) 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="sed", + smart_link_id="qui", ) 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="a", + smart_link_id="sit", ) 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="a", + smart_link_id="sit", 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="a", + smart_link_id="sit", ) 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="a", + smart_link_id="sit", ) 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="harum", + smart_link_id="qui", ) 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="harum", + smart_link_id="qui", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="harum", + smart_link_id="qui", ) assert response.is_closed is True @@ -359,7 +359,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="harum", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="quia", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="quia", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="quia", ) assert response.is_closed is True @@ -412,7 +412,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="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="voluptatum", + smart_link_id="eaque", ) assert smart_link is None @@ -442,7 +442,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="voluptatum", + smart_link_id="eaque", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="voluptatum", + smart_link_id="eaque", ) assert response.is_closed is True @@ -465,7 +465,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="voluptatum", + smart_link_id="eaque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="ab", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="ab", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="ab", ) assert response.is_closed is True @@ -517,7 +517,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="ab", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["tbh"]}, + filter={"tags": ["ywjezdltopdorcgyuuu"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="qui", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="qui", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="qui", ) assert response.is_closed is True @@ -756,7 +756,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="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="a", + smart_link_id="sit", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="a", + smart_link_id="sit", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="a", + smart_link_id="sit", ) assert response.is_closed is True @@ -814,7 +814,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="a", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="harum", + smart_link_id="qui", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="harum", + smart_link_id="qui", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="harum", + smart_link_id="qui", ) assert response.is_closed is True @@ -873,7 +873,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="harum", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="quia", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="quia", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="quia", ) assert response.is_closed is True @@ -926,7 +926,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="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="voluptatum", + smart_link_id="eaque", ) assert smart_link is None @@ -956,7 +956,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="voluptatum", + smart_link_id="eaque", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="voluptatum", + smart_link_id="eaque", ) assert response.is_closed is True @@ -979,7 +979,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="voluptatum", + smart_link_id="eaque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="ab", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="ab", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="ab", ) assert response.is_closed is True @@ -1031,7 +1031,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="ab", ) 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 b52b6af2..08e1de24 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": "qefq", - "tags": ["nbvcothjqgvisvg"], + "search": "gwifqisgwmvagouwrohcvbvjh", + "tags": ["fdxvgzgaljalgugtp"], }, 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": "uyejanoimqpmmzdew", - "tags": ["gdsbmydvfcrryjyeic"], + "search": "faerrcakvksdgcfrcod", + "tags": ["eenblbifekfclrkcj"], }, 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": "svomtbrhbawjpqykyqymhlhri", - "tags": ["gkeofnhqbhcgokubybhwbugtp"], + "search": "wptmvichyndibrjl", + "tags": ["pqvjlwiceeknhwmexbg"], }, 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": "pqlypeamqqm", - "tags": ["nivecotkwrama"], + "search": "pfgqla", + "tags": ["pj"], }, 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": "qefq", - "tags": ["nbvcothjqgvisvg"], + "search": "gwifqisgwmvagouwrohcvbvjh", + "tags": ["fdxvgzgaljalgugtp"], }, 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": "uyejanoimqpmmzdew", - "tags": ["gdsbmydvfcrryjyeic"], + "search": "faerrcakvksdgcfrcod", + "tags": ["eenblbifekfclrkcj"], }, 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": "svomtbrhbawjpqykyqymhlhri", - "tags": ["gkeofnhqbhcgokubybhwbugtp"], + "search": "wptmvichyndibrjl", + "tags": ["pqvjlwiceeknhwmexbg"], }, 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": "pqlypeamqqm", - "tags": ["nivecotkwrama"], + "search": "pfgqla", + "tags": ["pj"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 05c162d6..481671f3 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="sunt", + 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="sunt", + 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="sunt", + 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="sunt", + 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="sunt", + 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="eum", + tracking_link_id="vero", 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="eum", + tracking_link_id="vero", 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="eum", + tracking_link_id="vero", 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="eum", + tracking_link_id="vero", 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="eum", + tracking_link_id="vero", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="sunt", + 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="sunt", + 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="sunt", + 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="sunt", + 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="sunt", + 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="eum", + tracking_link_id="vero", 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="eum", + tracking_link_id="vero", 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="eum", + tracking_link_id="vero", 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="eum", + tracking_link_id="vero", 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="eum", + tracking_link_id="vero", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 7333f6f3..2874b9c4 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="sed", + trial_link_id="officia", 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="sed", + trial_link_id="officia", 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="sed", + trial_link_id="officia", 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="sed", + trial_link_id="officia", 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="sed", + trial_link_id="officia", 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="sed", + trial_link_id="officia", 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="sed", + trial_link_id="officia", 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="sed", + trial_link_id="officia", 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="odit", + trial_link_id="autem", 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="odit", + trial_link_id="autem", 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="odit", + trial_link_id="autem", 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="odit", + trial_link_id="autem", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="sed", + trial_link_id="officia", 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="sed", + trial_link_id="officia", 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="sed", + trial_link_id="officia", 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="sed", + trial_link_id="officia", 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="sed", + trial_link_id="officia", 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="sed", + trial_link_id="officia", 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="sed", + trial_link_id="officia", 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="sed", + trial_link_id="officia", 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="odit", + trial_link_id="autem", 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="odit", + trial_link_id="autem", 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="odit", + trial_link_id="autem", 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="odit", + trial_link_id="autem", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="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="aut", + 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="aut", + 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="aut", + 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="aut", + trial_link_id="id", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index ad1c89ae..fd82b8a1 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="zqowrzgqmbakndyzrymplnfm", + name="mkvjyixndb", ) 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="zqowrzgqmbakndyzrymplnfm", + name="mkvjyixndb", ) 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="zqowrzgqmbakndyzrymplnfm", + name="mkvjyixndb", ) 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="zqowrzgqmbakndyzrymplnfm", + name="mkvjyixndb", ) @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="zqowrzgqmbakndyzrymplnfm", + name="mkvjyixndb", ) 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="zqowrzgqmbakndyzrymplnfm", + name="mkvjyixndb", ) 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="zqowrzgqmbakndyzrymplnfm", + name="mkvjyixndb", ) 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="zqowrzgqmbakndyzrymplnfm", + name="mkvjyixndb", ) @pytest.mark.skip(reason="Mock server tests are disabled") From bf8541014f378eb7783b4d548dec868ac023fb4b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 7 Jul 2026 08:12:34 +0000 Subject: [PATCH 150/249] 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 | 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 | 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 +-- 16 files changed, 258 insertions(+), 258 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0eb86f6a..871a8270 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f1c9930d33ddf0d139a8728fdf0d92d20e441e831dc39528ab512f0ad034444d.yml -openapi_spec_hash: 3ef1bf6a797a4847c4a57725ae478b3e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8b7feba0cc4520cd65c7dfe7349674e954c9b075138cda731665775edfa201e0.yml +openapi_spec_hash: 656c3c07cad3b8c757d272514470448f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index c49211be..a4e86aa2 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="voluptates", + message_id="voluptatem", 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="voluptates", + message_id="voluptatem", 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="voluptates", + message_id="voluptatem", 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="voluptates", + message_id="voluptatem", 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="voluptates", + message_id="voluptatem", 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="voluptates", + message_id="voluptatem", 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="voluptates", + message_id="voluptatem", 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="voluptates", + message_id="voluptatem", 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="voluptates", + message_id="voluptatem", 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="voluptates", + message_id="voluptatem", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index f9d459e6..957fb953 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="expedita", + list_id="excepturi", 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="expedita", + list_id="excepturi", 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="expedita", + list_id="excepturi", 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="expedita", + list_id="excepturi", 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="expedita", + list_id="excepturi", 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="expedita", + list_id="excepturi", 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="expedita", + list_id="excepturi", 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="expedita", + list_id="excepturi", 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="expedita", + list_id="excepturi", 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="expedita", + list_id="excepturi", 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="expedita", + list_id="excepturi", 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="expedita", + list_id="excepturi", 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="expedita", + list_id="excepturi", 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="expedita", + list_id="excepturi", 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="expedita", + list_id="excepturi", 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="expedita", + list_id="excepturi", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index bfa9708b..c16bd37c 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="ipsa", + post_id="in", 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="ipsa", + post_id="in", 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="ipsa", + post_id="in", 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="ipsa", + post_id="in", 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="ipsa", + post_id="in", 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="ipsa", + post_id="in", 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="ipsa", + post_id="in", 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="ipsa", + post_id="in", 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="ipsa", + post_id="in", 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="ipsa", + post_id="in", 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="ipsa", + post_id="in", 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="ipsa", + post_id="in", 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="ipsa", + post_id="in", 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="ipsa", + post_id="in", 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="ipsa", + post_id="in", 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="ipsa", + post_id="in", 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="ipsa", + post_id="in", 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="ipsa", + post_id="in", 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="ipsa", + post_id="in", 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="ipsa", + post_id="in", 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 9c80483e..b5f3d61a 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 0d2e97ea..b8f82c55 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="soluta", 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="soluta", 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="soluta", 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="soluta", 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="soluta", 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="soluta", 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="soluta", 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="soluta", 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="soluta", 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="soluta", 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="soluta", 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="soluta", 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="soluta", 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="soluta", 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="soluta", 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="soluta", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index a5dc9a19..025ea850 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( - "saepe", + "expedita", ) 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( - "saepe", + "expedita", ) 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( - "saepe", + "expedita", ) 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( - "saepe", + "expedita", ) 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( - "saepe", + "expedita", ) 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( - "saepe", + "expedita", ) 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 a914e398..06b33254 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="temporibus", - auth_type="raw_data", - cookies="fugit", + auth_id="magnam", + auth_type="email_password", + cookies="eos", custom_proxy={ "host": "proxy.example.com", - "password": 'vQ)"][', + "password": "L6Y'7wS_by-s/P", "port": 8080, - "username": "consectetur", + "username": "adipisci", }, - email="eino79@example.com", + email="kelli32@example.org", force_connect=True, - name="ex", - password="( None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="temporibus", - auth_type="raw_data", - cookies="fugit", + auth_id="magnam", + auth_type="email_password", + cookies="eos", custom_proxy={ "host": "proxy.example.com", - "password": 'vQ)"][', + "password": "L6Y'7wS_by-s/P", "port": 8080, - "username": "consectetur", + "username": "adipisci", }, - email="eino79@example.com", + email="kelli32@example.org", force_connect=True, - name="ex", - 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 4d3e426f..bea1ef2e 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 65694e23..bd4f6161 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 ea2a0043..7b45e81b 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": ["ywjezdltopdorcgyuuu"]}, + filter={"tags": ["wnpkkxwlk"]}, 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="qui", + smart_link_id="provident", ) 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="qui", + smart_link_id="provident", 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="qui", + smart_link_id="provident", ) 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="qui", + smart_link_id="provident", ) 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="sit", + smart_link_id="placeat", ) 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="sit", + smart_link_id="placeat", 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="sit", + smart_link_id="placeat", ) 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="sit", + smart_link_id="placeat", ) 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="qui", + smart_link_id="quisquam", ) 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="qui", + smart_link_id="quisquam", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="quisquam", ) assert response.is_closed is True @@ -359,7 +359,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="quisquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="quia", + smart_link_id="magnam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="quia", + smart_link_id="magnam", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="quia", + smart_link_id="magnam", ) assert response.is_closed is True @@ -412,7 +412,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="quia", + smart_link_id="magnam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="eaque", + smart_link_id="nemo", ) assert smart_link is None @@ -442,7 +442,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="eaque", + smart_link_id="nemo", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="eaque", + smart_link_id="nemo", ) assert response.is_closed is True @@ -465,7 +465,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="eaque", + smart_link_id="nemo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="ab", + smart_link_id="deserunt", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="ab", + smart_link_id="deserunt", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="ab", + smart_link_id="deserunt", ) assert response.is_closed is True @@ -517,7 +517,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="ab", + smart_link_id="deserunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["ywjezdltopdorcgyuuu"]}, + filter={"tags": ["wnpkkxwlk"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="provident", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="provident", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="provident", ) assert response.is_closed is True @@ -756,7 +756,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="provident", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="placeat", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="placeat", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="placeat", ) assert response.is_closed is True @@ -814,7 +814,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="placeat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="quisquam", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="quisquam", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="quisquam", ) assert response.is_closed is True @@ -873,7 +873,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="quisquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="quia", + smart_link_id="magnam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="quia", + smart_link_id="magnam", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="quia", + smart_link_id="magnam", ) assert response.is_closed is True @@ -926,7 +926,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="quia", + smart_link_id="magnam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="eaque", + smart_link_id="nemo", ) assert smart_link is None @@ -956,7 +956,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="eaque", + smart_link_id="nemo", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="eaque", + smart_link_id="nemo", ) assert response.is_closed is True @@ -979,7 +979,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="eaque", + smart_link_id="nemo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="ab", + smart_link_id="deserunt", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="ab", + smart_link_id="deserunt", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="ab", + smart_link_id="deserunt", ) assert response.is_closed is True @@ -1031,7 +1031,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="ab", + smart_link_id="deserunt", ) 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 08e1de24..f4686dae 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": "gwifqisgwmvagouwrohcvbvjh", - "tags": ["fdxvgzgaljalgugtp"], + "search": "xhdoxcqlhnxassvcnuqylf", + "tags": ["ssazbpksqkdpxjorigdt"], }, 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": "faerrcakvksdgcfrcod", - "tags": ["eenblbifekfclrkcj"], + "search": "imcqkvxehadhqb", + "tags": ["oheosfuhztwyovpo"], }, 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": "wptmvichyndibrjl", - "tags": ["pqvjlwiceeknhwmexbg"], + "search": "rjhxsziiozzmklmwuaqgk", + "tags": ["sekobifhdytvrykoj"], }, 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": "pfgqla", - "tags": ["pj"], + "search": "yamuglfatm", + "tags": ["pxwknhhlk"], }, 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": "gwifqisgwmvagouwrohcvbvjh", - "tags": ["fdxvgzgaljalgugtp"], + "search": "xhdoxcqlhnxassvcnuqylf", + "tags": ["ssazbpksqkdpxjorigdt"], }, 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": "faerrcakvksdgcfrcod", - "tags": ["eenblbifekfclrkcj"], + "search": "imcqkvxehadhqb", + "tags": ["oheosfuhztwyovpo"], }, 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": "wptmvichyndibrjl", - "tags": ["pqvjlwiceeknhwmexbg"], + "search": "rjhxsziiozzmklmwuaqgk", + "tags": ["sekobifhdytvrykoj"], }, 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": "pfgqla", - "tags": ["pj"], + "search": "yamuglfatm", + "tags": ["pxwknhhlk"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 481671f3..a5778984 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="dignissimos", + tracking_link_id="alias", 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="dignissimos", + tracking_link_id="alias", 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="dignissimos", + tracking_link_id="alias", 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="dignissimos", + tracking_link_id="alias", 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="dignissimos", + tracking_link_id="alias", 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="dignissimos", + tracking_link_id="alias", 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="dignissimos", + tracking_link_id="alias", 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="dignissimos", + tracking_link_id="alias", 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="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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="vero", + tracking_link_id="est", 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="vero", + tracking_link_id="est", 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="vero", + tracking_link_id="est", 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="vero", + tracking_link_id="est", 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="vero", + tracking_link_id="est", 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="dignissimos", + tracking_link_id="alias", 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="dignissimos", + tracking_link_id="alias", 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="dignissimos", + tracking_link_id="alias", 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="dignissimos", + tracking_link_id="alias", 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="dignissimos", + tracking_link_id="alias", 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="dignissimos", + tracking_link_id="alias", 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="dignissimos", + tracking_link_id="alias", 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="dignissimos", + tracking_link_id="alias", 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="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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="vero", + tracking_link_id="est", 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="vero", + tracking_link_id="est", 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="vero", + tracking_link_id="est", 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="vero", + tracking_link_id="est", 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="vero", + tracking_link_id="est", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 2874b9c4..45b4bc82 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="officia", + 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="officia", + 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="officia", + 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="officia", + 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="officia", + 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="officia", + 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="officia", + 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="officia", + 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="autem", + trial_link_id="ut", 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="autem", + trial_link_id="ut", 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="autem", + trial_link_id="ut", 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="autem", + trial_link_id="ut", 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="nostrum", + 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="nostrum", + 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="nostrum", + 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="nostrum", + 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="nostrum", + 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="id", + trial_link_id="temporibus", 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="temporibus", 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="temporibus", 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="temporibus", 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="temporibus", 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="officia", + 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="officia", + 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="officia", + 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="officia", + 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="officia", + 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="officia", + 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="officia", + 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="officia", + 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="autem", + trial_link_id="ut", 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="autem", + trial_link_id="ut", 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="autem", + trial_link_id="ut", 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="autem", + trial_link_id="ut", 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="nostrum", + 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="nostrum", + 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="nostrum", + 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="nostrum", + 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="nostrum", + 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="id", + trial_link_id="temporibus", 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="temporibus", 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="temporibus", 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="temporibus", 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="temporibus", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index fd82b8a1..fb0b83be 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="mkvjyixndb", + name="kftqavblvcgzffzaoya", ) 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="mkvjyixndb", + name="kftqavblvcgzffzaoya", ) 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="mkvjyixndb", + name="kftqavblvcgzffzaoya", ) 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="mkvjyixndb", + name="kftqavblvcgzffzaoya", ) @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="mkvjyixndb", + name="kftqavblvcgzffzaoya", ) 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="mkvjyixndb", + name="kftqavblvcgzffzaoya", ) 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="mkvjyixndb", + name="kftqavblvcgzffzaoya", ) 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="mkvjyixndb", + name="kftqavblvcgzffzaoya", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 4c8f9989a83e200bfda79edba3b644e7bc776734 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 7 Jul 2026 15:12:39 +0000 Subject: [PATCH 151/249] 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 | 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 +-- 18 files changed, 274 insertions(+), 274 deletions(-) diff --git a/.stats.yml b/.stats.yml index 871a8270..0148b494 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8b7feba0cc4520cd65c7dfe7349674e954c9b075138cda731665775edfa201e0.yml -openapi_spec_hash: 656c3c07cad3b8c757d272514470448f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6a85f7df1fee73c1b174a0b2a914f7081920dc2f53e461766847cd10d6984294.yml +openapi_spec_hash: c1ae3f281edc9291039ee353173030eb config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index a4e86aa2..15f6dfce 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 957fb953..defd0037 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="excepturi", + list_id="quaerat", 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="excepturi", + list_id="quaerat", 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="excepturi", + list_id="quaerat", 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="excepturi", + list_id="quaerat", 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="excepturi", + list_id="quaerat", 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="excepturi", + list_id="quaerat", 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="excepturi", + list_id="quaerat", 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="excepturi", + list_id="quaerat", 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="excepturi", + list_id="quaerat", 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="excepturi", + list_id="quaerat", 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="excepturi", + list_id="quaerat", 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="excepturi", + list_id="quaerat", 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="excepturi", + list_id="quaerat", 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="excepturi", + list_id="quaerat", 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="excepturi", + list_id="quaerat", 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="excepturi", + list_id="quaerat", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index c16bd37c..8cc995af 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="in", + post_id="ullam", 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="in", + post_id="ullam", 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="in", + post_id="ullam", 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="in", + post_id="ullam", 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="in", + post_id="ullam", 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="in", + post_id="ullam", 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="in", + post_id="ullam", 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="in", + post_id="ullam", 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="in", + post_id="ullam", 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="in", + post_id="ullam", 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="in", + post_id="ullam", 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="in", + post_id="ullam", 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="in", + post_id="ullam", 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="in", + post_id="ullam", 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="in", + post_id="ullam", 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="in", + post_id="ullam", 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="in", + post_id="ullam", 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="in", + post_id="ullam", 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="in", + post_id="ullam", 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="in", + post_id="ullam", 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 a62ccbd3..aa735c97 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index b5f3d61a..9c80483e 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075f..544df889 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 b8f82c55..7c862ec7 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="soluta", + path_story_id="cum", 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="soluta", + path_story_id="cum", 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="soluta", + path_story_id="cum", 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="soluta", + path_story_id="cum", 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="soluta", + story_id="cum", 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="soluta", + story_id="cum", 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="soluta", + story_id="cum", 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="soluta", + story_id="cum", 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="soluta", + path_story_id="cum", 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="soluta", + path_story_id="cum", 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="soluta", + path_story_id="cum", 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="soluta", + path_story_id="cum", 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="soluta", + story_id="cum", 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="soluta", + story_id="cum", 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="soluta", + story_id="cum", 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="soluta", + story_id="cum", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 025ea850..79c81116 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( - "expedita", + "alias", ) 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( - "expedita", + "alias", ) 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( - "expedita", + "alias", ) 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( - "expedita", + "alias", ) 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( - "expedita", + "alias", ) 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( - "expedita", + "alias", ) 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 06b33254..65398585 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="magnam", - auth_type="email_password", - cookies="eos", + auth_id="nulla", + auth_type="mobile_app", + cookies="rerum", custom_proxy={ "host": "proxy.example.com", - "password": "L6Y'7wS_by-s/P", + "password": "M.l@&J-r&7W)\\", "port": 8080, - "username": "adipisci", + "username": "nostrum", }, - email="kelli32@example.org", - force_connect=True, - name="rerum", - password="3VkqG|$]^VwH", - proxy_country="us", - user_agent="autem", - xbc="vel", + email="ludwig.schamberger@example.com", + force_connect=False, + name="et", + password="hlj}Lntq[q<#k> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="magnam", - auth_type="email_password", - cookies="eos", + auth_id="nulla", + auth_type="mobile_app", + cookies="rerum", custom_proxy={ "host": "proxy.example.com", - "password": "L6Y'7wS_by-s/P", + "password": "M.l@&J-r&7W)\\", "port": 8080, - "username": "adipisci", + "username": "nostrum", }, - email="kelli32@example.org", - force_connect=True, - name="rerum", - password="3VkqG|$]^VwH", - proxy_country="us", - user_agent="autem", - xbc="vel", + email="ludwig.schamberger@example.com", + force_connect=False, + name="et", + password="hlj}Lntq[q<#k> 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 bea1ef2e..4fb0fa41 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="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="tags", + 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 bd4f6161..65694e23 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 7b45e81b..3fd7c1b9 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": ["wnpkkxwlk"]}, + filter={"tags": ["gaiecwamwxprxzjx"]}, 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="provident", + smart_link_id="porro", ) 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="provident", + smart_link_id="porro", 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="provident", + smart_link_id="porro", ) 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="provident", + smart_link_id="porro", ) 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="placeat", + smart_link_id="voluptas", ) 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="placeat", + smart_link_id="voluptas", 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="placeat", + smart_link_id="voluptas", ) 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="placeat", + smart_link_id="voluptas", ) 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="quisquam", + smart_link_id="aspernatur", ) 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="quisquam", + smart_link_id="aspernatur", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="aspernatur", ) assert response.is_closed is True @@ -359,7 +359,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="aspernatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="magnam", + smart_link_id="pariatur", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="magnam", + smart_link_id="pariatur", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="magnam", + smart_link_id="pariatur", ) assert response.is_closed is True @@ -412,7 +412,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="magnam", + smart_link_id="pariatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="nemo", + smart_link_id="delectus", ) assert smart_link is None @@ -442,7 +442,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="nemo", + smart_link_id="delectus", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="nemo", + smart_link_id="delectus", ) assert response.is_closed is True @@ -465,7 +465,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="nemo", + smart_link_id="delectus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="deserunt", + smart_link_id="et", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="deserunt", + smart_link_id="et", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="deserunt", + smart_link_id="et", ) assert response.is_closed is True @@ -517,7 +517,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="deserunt", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["wnpkkxwlk"]}, + filter={"tags": ["gaiecwamwxprxzjx"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="provident", + smart_link_id="porro", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="provident", + smart_link_id="porro", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="provident", + smart_link_id="porro", ) assert response.is_closed is True @@ -756,7 +756,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="provident", + smart_link_id="porro", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="placeat", + smart_link_id="voluptas", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="placeat", + smart_link_id="voluptas", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="placeat", + smart_link_id="voluptas", ) assert response.is_closed is True @@ -814,7 +814,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="placeat", + smart_link_id="voluptas", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="aspernatur", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="aspernatur", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="aspernatur", ) assert response.is_closed is True @@ -873,7 +873,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="aspernatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="magnam", + smart_link_id="pariatur", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="magnam", + smart_link_id="pariatur", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="magnam", + smart_link_id="pariatur", ) assert response.is_closed is True @@ -926,7 +926,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="magnam", + smart_link_id="pariatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="nemo", + smart_link_id="delectus", ) assert smart_link is None @@ -956,7 +956,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="nemo", + smart_link_id="delectus", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="nemo", + smart_link_id="delectus", ) assert response.is_closed is True @@ -979,7 +979,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="nemo", + smart_link_id="delectus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="deserunt", + smart_link_id="et", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="deserunt", + smart_link_id="et", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="deserunt", + smart_link_id="et", ) assert response.is_closed is True @@ -1031,7 +1031,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="deserunt", + 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 f4686dae..43e9dc00 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": "xhdoxcqlhnxassvcnuqylf", - "tags": ["ssazbpksqkdpxjorigdt"], + "search": "ytywuywawcrezxcsextwexhiu", + "tags": ["wgbsqryvqqi"], }, 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": "imcqkvxehadhqb", - "tags": ["oheosfuhztwyovpo"], + "search": "oqymcdkbkjzuqh", + "tags": ["mugnmqozjrpscqv"], }, 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": "rjhxsziiozzmklmwuaqgk", - "tags": ["sekobifhdytvrykoj"], + "search": "xfkncceg", + "tags": ["qtwydpdhuoxhtakbrayy"], }, 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": "yamuglfatm", - "tags": ["pxwknhhlk"], + "include_smart_links": False, + "search": "exheoznis", + "tags": ["nvffijrdrb"], }, 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": "xhdoxcqlhnxassvcnuqylf", - "tags": ["ssazbpksqkdpxjorigdt"], + "search": "ytywuywawcrezxcsextwexhiu", + "tags": ["wgbsqryvqqi"], }, 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": "imcqkvxehadhqb", - "tags": ["oheosfuhztwyovpo"], + "search": "oqymcdkbkjzuqh", + "tags": ["mugnmqozjrpscqv"], }, 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": "rjhxsziiozzmklmwuaqgk", - "tags": ["sekobifhdytvrykoj"], + "search": "xfkncceg", + "tags": ["qtwydpdhuoxhtakbrayy"], }, 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": "yamuglfatm", - "tags": ["pxwknhhlk"], + "include_smart_links": False, + "search": "exheoznis", + "tags": ["nvffijrdrb"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index a5778984..8426f73b 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="alias", + 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="alias", + 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="alias", + 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="alias", + 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="alias", + 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="alias", + 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="alias", + 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="alias", + 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="rerum", + tracking_link_id="cumque", 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="rerum", + tracking_link_id="cumque", 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="rerum", + tracking_link_id="cumque", 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="rerum", + tracking_link_id="cumque", 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="rerum", + tracking_link_id="cumque", 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="est", + tracking_link_id="culpa", 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="est", + tracking_link_id="culpa", 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="est", + tracking_link_id="culpa", 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="est", + tracking_link_id="culpa", 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="est", + tracking_link_id="culpa", 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="alias", + 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="alias", + 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="alias", + 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="alias", + 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="alias", + 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="alias", + 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="alias", + 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="alias", + 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="rerum", + tracking_link_id="cumque", 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="rerum", + tracking_link_id="cumque", 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="rerum", + tracking_link_id="cumque", 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="rerum", + tracking_link_id="cumque", 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="rerum", + tracking_link_id="cumque", 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="est", + tracking_link_id="culpa", 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="est", + tracking_link_id="culpa", 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="est", + tracking_link_id="culpa", 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="est", + tracking_link_id="culpa", 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="est", + tracking_link_id="culpa", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 45b4bc82..72da827c 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="quos", 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="quos", 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="quos", 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="quos", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="temporibus", + 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="temporibus", + 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="temporibus", + 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="temporibus", + 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="temporibus", + 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="et", + trial_link_id="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="quos", 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="quos", 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="quos", 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="quos", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="temporibus", + 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="temporibus", + 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="temporibus", + 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="temporibus", + 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="temporibus", + trial_link_id="aut", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index fb0b83be..786213d8 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="kftqavblvcgzffzaoya", + name="dxsiz", ) 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="kftqavblvcgzffzaoya", + name="dxsiz", ) 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="kftqavblvcgzffzaoya", + name="dxsiz", ) 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="kftqavblvcgzffzaoya", + name="dxsiz", ) @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="kftqavblvcgzffzaoya", + name="dxsiz", ) 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="kftqavblvcgzffzaoya", + name="dxsiz", ) 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="kftqavblvcgzffzaoya", + name="dxsiz", ) 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="kftqavblvcgzffzaoya", + name="dxsiz", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 870ce5c5344eac82f50ab138e3cf660d5dbcde99 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 7 Jul 2026 23:12:42 +0000 Subject: [PATCH 152/249] 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_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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, 270 insertions(+), 270 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0148b494..3f68a395 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6a85f7df1fee73c1b174a0b2a914f7081920dc2f53e461766847cd10d6984294.yml -openapi_spec_hash: c1ae3f281edc9291039ee353173030eb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0e8b4a79ddd808a1468346fce7d1685b3b93f4515751c2e7f4bd5a5e33f9f0f6.yml +openapi_spec_hash: 335c18ffed884345ed897a69e7136977 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 15f6dfce..a6c92cee 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index defd0037..896eabc8 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="quaerat", + list_id="nisi", 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="quaerat", + list_id="nisi", 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="quaerat", + list_id="nisi", 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="quaerat", + list_id="nisi", 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="quaerat", + list_id="nisi", 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="quaerat", + list_id="nisi", 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="quaerat", + list_id="nisi", 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="quaerat", + list_id="nisi", 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="quaerat", + list_id="nisi", 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="quaerat", + list_id="nisi", 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="quaerat", + list_id="nisi", 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="quaerat", + list_id="nisi", 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="quaerat", + list_id="nisi", 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="quaerat", + list_id="nisi", 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="quaerat", + list_id="nisi", 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="quaerat", + list_id="nisi", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 8cc995af..fce94876 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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="ullam", + 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 aa735c97..7549791e 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 9c80483e..fc7b1635 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 7c862ec7..b574b09b 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="cum", + path_story_id="amet", 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="cum", + path_story_id="amet", 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="cum", + path_story_id="amet", 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="cum", + path_story_id="amet", 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="cum", + story_id="amet", 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="cum", + story_id="amet", 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="cum", + story_id="amet", 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="cum", + story_id="amet", 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="cum", + path_story_id="amet", 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="cum", + path_story_id="amet", 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="cum", + path_story_id="amet", 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="cum", + path_story_id="amet", 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="cum", + story_id="amet", 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="cum", + story_id="amet", 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="cum", + story_id="amet", 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="cum", + story_id="amet", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 79c81116..f3f8c714 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( - "alias", + "veritatis", ) 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( - "alias", + "veritatis", ) 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( - "alias", + "veritatis", ) 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( - "alias", + "veritatis", ) 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( - "alias", + "veritatis", ) 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( - "alias", + "veritatis", ) 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 65398585..8f18c172 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="nulla", - auth_type="mobile_app", - cookies="rerum", + auth_id="est", + auth_type="email_password", + cookies="dolor", custom_proxy={ "host": "proxy.example.com", - "password": "M.l@&J-r&7W)\\", + "password": "#a4priR", "port": 8080, - "username": "nostrum", + "username": "reprehenderit", }, - email="ludwig.schamberger@example.com", - force_connect=False, - name="et", - password="hlj}Lntq[q<#k> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="nulla", - auth_type="mobile_app", - cookies="rerum", + auth_id="est", + auth_type="email_password", + cookies="dolor", custom_proxy={ "host": "proxy.example.com", - "password": "M.l@&J-r&7W)\\", + "password": "#a4priR", "port": 8080, - "username": "nostrum", + "username": "reprehenderit", }, - email="ludwig.schamberger@example.com", - force_connect=False, - name="et", - password="hlj}Lntq[q<#k> 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 65694e23..bd4f6161 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 3fd7c1b9..f4b0afb9 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": ["gaiecwamwxprxzjx"]}, + filter={"tags": ["ia"]}, 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="porro", + smart_link_id="deserunt", ) 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="porro", + smart_link_id="deserunt", 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="porro", + smart_link_id="deserunt", ) 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="porro", + smart_link_id="deserunt", ) 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="voluptas", + smart_link_id="sint", ) 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="voluptas", + smart_link_id="sint", 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="voluptas", + smart_link_id="sint", ) 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="voluptas", + smart_link_id="sint", ) 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="aspernatur", + smart_link_id="id", ) 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="aspernatur", + smart_link_id="id", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="aspernatur", + smart_link_id="id", ) assert response.is_closed is True @@ -359,7 +359,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="aspernatur", + smart_link_id="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="pariatur", + smart_link_id="amet", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="pariatur", + smart_link_id="amet", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="pariatur", + smart_link_id="amet", ) assert response.is_closed is True @@ -412,7 +412,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="pariatur", + smart_link_id="amet", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="delectus", + smart_link_id="voluptatem", ) assert smart_link is None @@ -442,7 +442,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="delectus", + smart_link_id="voluptatem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="delectus", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -465,7 +465,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="delectus", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="commodi", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="commodi", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="commodi", ) assert response.is_closed is True @@ -517,7 +517,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="commodi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["gaiecwamwxprxzjx"]}, + filter={"tags": ["ia"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="porro", + smart_link_id="deserunt", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="porro", + smart_link_id="deserunt", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="porro", + smart_link_id="deserunt", ) assert response.is_closed is True @@ -756,7 +756,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="porro", + smart_link_id="deserunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="voluptas", + smart_link_id="sint", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="voluptas", + smart_link_id="sint", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="voluptas", + smart_link_id="sint", ) assert response.is_closed is True @@ -814,7 +814,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="voluptas", + smart_link_id="sint", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="aspernatur", + smart_link_id="id", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="aspernatur", + smart_link_id="id", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="aspernatur", + smart_link_id="id", ) assert response.is_closed is True @@ -873,7 +873,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="aspernatur", + smart_link_id="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="pariatur", + smart_link_id="amet", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="pariatur", + smart_link_id="amet", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="pariatur", + smart_link_id="amet", ) assert response.is_closed is True @@ -926,7 +926,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="pariatur", + smart_link_id="amet", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="delectus", + smart_link_id="voluptatem", ) assert smart_link is None @@ -956,7 +956,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="delectus", + smart_link_id="voluptatem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="delectus", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -979,7 +979,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="delectus", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="commodi", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="commodi", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="commodi", ) assert response.is_closed is True @@ -1031,7 +1031,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="commodi", ) 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 43e9dc00..ab3008ce 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": "ytywuywawcrezxcsextwexhiu", - "tags": ["wgbsqryvqqi"], + "search": "hbrc", + "tags": ["wki"], }, 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": "oqymcdkbkjzuqh", - "tags": ["mugnmqozjrpscqv"], + "search": "eigebvlrqrdepmmwvvqgmih", + "tags": ["rjzvqyyphypsxxw"], }, 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": "xfkncceg", - "tags": ["qtwydpdhuoxhtakbrayy"], + "include_smart_links": False, + "search": "wdwbhp", + "tags": ["dfmqntgxxzlmtx"], }, 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": "exheoznis", - "tags": ["nvffijrdrb"], + "include_smart_links": True, + "search": "kkqruc", + "tags": ["zgzdbyilidjsqnrhcjm"], }, 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": "ytywuywawcrezxcsextwexhiu", - "tags": ["wgbsqryvqqi"], + "search": "hbrc", + "tags": ["wki"], }, 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": "oqymcdkbkjzuqh", - "tags": ["mugnmqozjrpscqv"], + "search": "eigebvlrqrdepmmwvvqgmih", + "tags": ["rjzvqyyphypsxxw"], }, 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": "xfkncceg", - "tags": ["qtwydpdhuoxhtakbrayy"], + "include_smart_links": False, + "search": "wdwbhp", + "tags": ["dfmqntgxxzlmtx"], }, 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": "exheoznis", - "tags": ["nvffijrdrb"], + "include_smart_links": True, + "search": "kkqruc", + "tags": ["zgzdbyilidjsqnrhcjm"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 8426f73b..0a569576 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="cumque", + 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="cumque", + 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="cumque", + 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="cumque", + 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="cumque", + 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="culpa", + tracking_link_id="sit", 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="culpa", + tracking_link_id="sit", 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="culpa", + tracking_link_id="sit", 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="culpa", + tracking_link_id="sit", 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="culpa", + tracking_link_id="sit", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="cumque", + 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="cumque", + 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="cumque", + 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="cumque", + 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="cumque", + 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="culpa", + tracking_link_id="sit", 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="culpa", + tracking_link_id="sit", 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="culpa", + tracking_link_id="sit", 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="culpa", + tracking_link_id="sit", 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="culpa", + tracking_link_id="sit", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 72da827c..c42177c6 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="sit", + trial_link_id="ipsa", 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="sit", + trial_link_id="ipsa", 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="sit", + trial_link_id="ipsa", 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="sit", + trial_link_id="ipsa", 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="sit", + trial_link_id="ipsa", 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="sit", + trial_link_id="ipsa", 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="sit", + trial_link_id="ipsa", 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="sit", + trial_link_id="ipsa", 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="quos", + 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="quos", + 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="quos", + 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="quos", + 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="voluptatem", + trial_link_id="et", 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="voluptatem", + trial_link_id="et", 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="voluptatem", + trial_link_id="et", 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="voluptatem", + trial_link_id="et", 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="voluptatem", + trial_link_id="et", 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="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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="sit", + trial_link_id="ipsa", 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="sit", + trial_link_id="ipsa", 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="sit", + trial_link_id="ipsa", 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="sit", + trial_link_id="ipsa", 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="sit", + trial_link_id="ipsa", 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="sit", + trial_link_id="ipsa", 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="sit", + trial_link_id="ipsa", 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="sit", + trial_link_id="ipsa", 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="quos", + 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="quos", + 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="quos", + 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="quos", + 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="voluptatem", + trial_link_id="et", 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="voluptatem", + trial_link_id="et", 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="voluptatem", + trial_link_id="et", 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="voluptatem", + trial_link_id="et", 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="voluptatem", + trial_link_id="et", 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="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="aut", + 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="aut", + 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="aut", + 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="aut", + trial_link_id="hic", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 786213d8..ddfb9cc0 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="dxsiz", + name="apgkkcqiviorhjabmukvzja", ) 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="dxsiz", + name="apgkkcqiviorhjabmukvzja", ) 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="dxsiz", + name="apgkkcqiviorhjabmukvzja", ) 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="dxsiz", + name="apgkkcqiviorhjabmukvzja", ) @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="dxsiz", + name="apgkkcqiviorhjabmukvzja", ) 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="dxsiz", + name="apgkkcqiviorhjabmukvzja", ) 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="dxsiz", + name="apgkkcqiviorhjabmukvzja", ) 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="dxsiz", + name="apgkkcqiviorhjabmukvzja", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 1b7e3b7d85306ebb0c36b33dc219486c290a07a0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 9 Jul 2026 15:12:42 +0000 Subject: [PATCH 153/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/authenticate.py | 4 +- src/onlyfansapi/resources/client_sessions.py | 4 +- .../types/authenticate_start_params.py | 2 +- .../types/client_session_create_params.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 +-- .../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_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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 +-- 21 files changed, 270 insertions(+), 270 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3f68a395..b4a6f02c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0e8b4a79ddd808a1468346fce7d1685b3b93f4515751c2e7f4bd5a5e33f9f0f6.yml -openapi_spec_hash: 335c18ffed884345ed897a69e7136977 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2b88a81ce8286a53ab076c2d88f608eca6465cf308cc49e724069aecbc025659.yml +openapi_spec_hash: 9fde29c614fad30540a96578a785c53b config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/authenticate.py b/src/onlyfansapi/resources/authenticate.py index aae19208..d97b35b7 100644 --- a/src/onlyfansapi/resources/authenticate.py +++ b/src/onlyfansapi/resources/authenticate.py @@ -165,7 +165,7 @@ def start( force_connect: bool | Omit = omit, name: str | Omit = omit, password: str | Omit = omit, - proxy_country: Literal["us", "uk"] | Omit = omit, + proxy_country: Literal["us", "uk", "gb"] | Omit = omit, user_agent: str | Omit = omit, xbc: str | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -440,7 +440,7 @@ async def start( force_connect: bool | Omit = omit, name: str | Omit = omit, password: str | Omit = omit, - proxy_country: Literal["us", "uk"] | Omit = omit, + proxy_country: Literal["us", "uk", "gb"] | Omit = omit, user_agent: str | Omit = omit, xbc: str | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. diff --git a/src/onlyfansapi/resources/client_sessions.py b/src/onlyfansapi/resources/client_sessions.py index c1ea87e0..38a1d318 100644 --- a/src/onlyfansapi/resources/client_sessions.py +++ b/src/onlyfansapi/resources/client_sessions.py @@ -49,7 +49,7 @@ def create( *, display_name: str, client_reference_id: str | Omit = omit, - proxy_country: Optional[Literal["us", "uk"]] | Omit = omit, + proxy_country: Optional[Literal["us", "uk", "gb"]] | 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, @@ -117,7 +117,7 @@ async def create( *, display_name: str, client_reference_id: str | Omit = omit, - proxy_country: Optional[Literal["us", "uk"]] | Omit = omit, + proxy_country: Optional[Literal["us", "uk", "gb"]] | 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, diff --git a/src/onlyfansapi/types/authenticate_start_params.py b/src/onlyfansapi/types/authenticate_start_params.py index 0c7d0590..9a514021 100644 --- a/src/onlyfansapi/types/authenticate_start_params.py +++ b/src/onlyfansapi/types/authenticate_start_params.py @@ -53,7 +53,7 @@ class AuthenticateStartParams(TypedDict, total=False): Required when auth_type is `email_password`. """ - proxy_country: Annotated[Literal["us", "uk"], PropertyInfo(alias="proxyCountry")] + proxy_country: Annotated[Literal["us", "uk", "gb"], PropertyInfo(alias="proxyCountry")] """The country of the managed proxy server you want to use. Eg. "us" for United States. Cannot be used together with customProxy. diff --git a/src/onlyfansapi/types/client_session_create_params.py b/src/onlyfansapi/types/client_session_create_params.py index 27bb09b9..89116429 100644 --- a/src/onlyfansapi/types/client_session_create_params.py +++ b/src/onlyfansapi/types/client_session_create_params.py @@ -15,4 +15,4 @@ class ClientSessionCreateParams(TypedDict, total=False): client_reference_id: str """Your Internal Reference ID for the connected account.""" - proxy_country: Optional[Literal["us", "uk"]] + proxy_country: Optional[Literal["us", "uk", "gb"]] diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index a6c92cee..2e0079df 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="autem", + message_id="inventore", 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="autem", + message_id="inventore", 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="autem", + message_id="inventore", 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="autem", + message_id="inventore", 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="autem", + message_id="inventore", 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="autem", + message_id="inventore", 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="autem", + message_id="inventore", 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="autem", + message_id="inventore", 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="autem", + message_id="inventore", 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="autem", + message_id="inventore", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 896eabc8..e0094247 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="nisi", + list_id="ad", 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="nisi", + list_id="ad", 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="nisi", + list_id="ad", 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="nisi", + list_id="ad", 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="nisi", + list_id="ad", 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="nisi", + list_id="ad", 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="nisi", + list_id="ad", 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="nisi", + list_id="ad", 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="nisi", + list_id="ad", 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="nisi", + list_id="ad", 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="nisi", + list_id="ad", 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="nisi", + list_id="ad", 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="nisi", + list_id="ad", 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="nisi", + list_id="ad", 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="nisi", + list_id="ad", 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="nisi", + list_id="ad", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index fce94876..28510d1f 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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="sunt", 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 7549791e..444937ba 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 544df889..9664075f 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 b574b09b..70bbf43b 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="amet", + path_story_id="quam", 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="amet", + path_story_id="quam", 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="amet", + path_story_id="quam", 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="amet", + path_story_id="quam", 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="amet", + story_id="quam", 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="amet", + story_id="quam", 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="amet", + story_id="quam", 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="amet", + story_id="quam", 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="amet", + path_story_id="quam", 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="amet", + path_story_id="quam", 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="amet", + path_story_id="quam", 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="amet", + path_story_id="quam", 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="amet", + story_id="quam", 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="amet", + story_id="quam", 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="amet", + story_id="quam", 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="amet", + story_id="quam", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index f3f8c714..9bec124d 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( - "veritatis", + "iusto", ) 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( - "veritatis", + "iusto", ) 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( - "veritatis", + "iusto", ) 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( - "veritatis", + "iusto", ) 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( - "veritatis", + "iusto", ) 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( - "veritatis", + "iusto", ) 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 8f18c172..24c7a48a 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_id="ut", auth_type="email_password", - cookies="dolor", + cookies="repellat", custom_proxy={ "host": "proxy.example.com", - "password": "#a4priR", + "password": "KGnK$l", "port": 8080, - "username": "reprehenderit", + "username": "ratione", }, - email="kassandra.leffler@example.com", + email="mann.kassandra@example.org", force_connect=True, - name="blanditiis", - password="pGn#+;<{qe%K?{DI", - proxy_country="uk", - user_agent="ratione", - xbc="et", + name="necessitatibus", + password="Uwp:`XT^1qCwZKq)", + proxy_country="gb", + user_agent="adipisci", + xbc="odit", ) 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_id="ut", auth_type="email_password", - cookies="dolor", + cookies="repellat", custom_proxy={ "host": "proxy.example.com", - "password": "#a4priR", + "password": "KGnK$l", "port": 8080, - "username": "reprehenderit", + "username": "ratione", }, - email="kassandra.leffler@example.com", + email="mann.kassandra@example.org", force_connect=True, - name="blanditiis", - password="pGn#+;<{qe%K?{DI", - proxy_country="uk", - user_agent="ratione", - xbc="et", + name="necessitatibus", + password="Uwp:`XT^1qCwZKq)", + proxy_country="gb", + user_agent="adipisci", + xbc="odit", ) 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 3597ede6..9249f386 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 280e3de9..413a2df6 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="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="comments", + type="likes", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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 f4b0afb9..bd48c04d 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": ["ia"]}, + filter={"tags": ["keuvr"]}, 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="deserunt", + smart_link_id="ut", ) 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="deserunt", + smart_link_id="ut", 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="deserunt", + smart_link_id="ut", ) 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="deserunt", + smart_link_id="ut", ) 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="sint", + smart_link_id="rerum", ) 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="sint", + smart_link_id="rerum", 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="sint", + smart_link_id="rerum", ) 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="sint", + smart_link_id="rerum", ) 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="id", + smart_link_id="cumque", ) 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="id", + smart_link_id="cumque", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="id", + smart_link_id="cumque", ) assert response.is_closed is True @@ -359,7 +359,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="id", + smart_link_id="cumque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="amet", + smart_link_id="nemo", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="amet", + smart_link_id="nemo", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="amet", + smart_link_id="nemo", ) assert response.is_closed is True @@ -412,7 +412,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="amet", + smart_link_id="nemo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="voluptatem", + smart_link_id="excepturi", ) assert smart_link is None @@ -442,7 +442,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="voluptatem", + smart_link_id="excepturi", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="voluptatem", + smart_link_id="excepturi", ) assert response.is_closed is True @@ -465,7 +465,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="voluptatem", + smart_link_id="excepturi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="commodi", + smart_link_id="et", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="commodi", + smart_link_id="et", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="commodi", + smart_link_id="et", ) assert response.is_closed is True @@ -517,7 +517,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="commodi", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["ia"]}, + filter={"tags": ["keuvr"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="deserunt", + smart_link_id="ut", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="deserunt", + smart_link_id="ut", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="deserunt", + smart_link_id="ut", ) assert response.is_closed is True @@ -756,7 +756,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="deserunt", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="rerum", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="rerum", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="rerum", ) assert response.is_closed is True @@ -814,7 +814,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="rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="id", + smart_link_id="cumque", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="id", + smart_link_id="cumque", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="id", + smart_link_id="cumque", ) assert response.is_closed is True @@ -873,7 +873,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="id", + smart_link_id="cumque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="amet", + smart_link_id="nemo", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="amet", + smart_link_id="nemo", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="amet", + smart_link_id="nemo", ) assert response.is_closed is True @@ -926,7 +926,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="amet", + smart_link_id="nemo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="voluptatem", + smart_link_id="excepturi", ) assert smart_link is None @@ -956,7 +956,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="voluptatem", + smart_link_id="excepturi", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="voluptatem", + smart_link_id="excepturi", ) assert response.is_closed is True @@ -979,7 +979,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="voluptatem", + smart_link_id="excepturi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="commodi", + smart_link_id="et", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="commodi", + smart_link_id="et", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="commodi", + smart_link_id="et", ) assert response.is_closed is True @@ -1031,7 +1031,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="commodi", + 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 ab3008ce..ac2d08fe 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": "hbrc", - "tags": ["wki"], + "search": "ylobjpwh", + "tags": ["dr"], }, 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": "eigebvlrqrdepmmwvvqgmih", - "tags": ["rjzvqyyphypsxxw"], + "search": "wmpusyyjwwvvnv", + "tags": ["gjo"], }, 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": "wdwbhp", - "tags": ["dfmqntgxxzlmtx"], + "include_smart_links": True, + "search": "alfidzfbetwezkfdpxfcxde", + "tags": ["w"], }, 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": "kkqruc", - "tags": ["zgzdbyilidjsqnrhcjm"], + "include_smart_links": False, + "search": "itdssjbh", + "tags": ["qqjugrupnrkpzxinfhfjjuaj"], }, 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": "hbrc", - "tags": ["wki"], + "search": "ylobjpwh", + "tags": ["dr"], }, 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": "eigebvlrqrdepmmwvvqgmih", - "tags": ["rjzvqyyphypsxxw"], + "search": "wmpusyyjwwvvnv", + "tags": ["gjo"], }, 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": "wdwbhp", - "tags": ["dfmqntgxxzlmtx"], + "include_smart_links": True, + "search": "alfidzfbetwezkfdpxfcxde", + "tags": ["w"], }, 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": "kkqruc", - "tags": ["zgzdbyilidjsqnrhcjm"], + "include_smart_links": False, + "search": "itdssjbh", + "tags": ["qqjugrupnrkpzxinfhfjjuaj"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 0a569576..70c2bdc1 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="voluptas", + tracking_link_id="doloribus", 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="voluptas", + tracking_link_id="doloribus", 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="voluptas", + tracking_link_id="doloribus", 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="voluptas", + tracking_link_id="doloribus", 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="voluptas", + tracking_link_id="doloribus", 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="voluptas", + tracking_link_id="doloribus", 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="voluptas", + tracking_link_id="doloribus", 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="voluptas", + tracking_link_id="doloribus", 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="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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="sit", + tracking_link_id="aspernatur", 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="sit", + tracking_link_id="aspernatur", 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="sit", + tracking_link_id="aspernatur", 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="sit", + tracking_link_id="aspernatur", 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="sit", + tracking_link_id="aspernatur", 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="voluptas", + tracking_link_id="doloribus", 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="voluptas", + tracking_link_id="doloribus", 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="voluptas", + tracking_link_id="doloribus", 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="voluptas", + tracking_link_id="doloribus", 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="voluptas", + tracking_link_id="doloribus", 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="voluptas", + tracking_link_id="doloribus", 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="voluptas", + tracking_link_id="doloribus", 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="voluptas", + tracking_link_id="doloribus", 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="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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="sit", + tracking_link_id="aspernatur", 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="sit", + tracking_link_id="aspernatur", 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="sit", + tracking_link_id="aspernatur", 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="sit", + tracking_link_id="aspernatur", 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="sit", + tracking_link_id="aspernatur", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index c42177c6..a940b4e7 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="ipsa", + trial_link_id="quo", 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="ipsa", + trial_link_id="quo", 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="ipsa", + trial_link_id="quo", 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="ipsa", + trial_link_id="quo", 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="ipsa", + trial_link_id="quo", 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="ipsa", + trial_link_id="quo", 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="ipsa", + trial_link_id="quo", 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="ipsa", + trial_link_id="quo", 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="culpa", 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="culpa", 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="culpa", 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="culpa", 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="hic", + trial_link_id="quos", 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="quos", 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="quos", 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="quos", 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="quos", 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="ipsa", + trial_link_id="quo", 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="ipsa", + trial_link_id="quo", 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="ipsa", + trial_link_id="quo", 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="ipsa", + trial_link_id="quo", 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="ipsa", + trial_link_id="quo", 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="ipsa", + trial_link_id="quo", 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="ipsa", + trial_link_id="quo", 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="ipsa", + 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="illum", + trial_link_id="culpa", 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="culpa", 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="culpa", 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="culpa", 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="hic", + trial_link_id="quos", 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="quos", 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="quos", 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="quos", 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="quos", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index ddfb9cc0..a6ee1912 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="apgkkcqiviorhjabmukvzja", + name="xsufxxvutpwjotonb", ) 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="apgkkcqiviorhjabmukvzja", + name="xsufxxvutpwjotonb", ) 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="apgkkcqiviorhjabmukvzja", + name="xsufxxvutpwjotonb", ) 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="apgkkcqiviorhjabmukvzja", + name="xsufxxvutpwjotonb", ) @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="apgkkcqiviorhjabmukvzja", + name="xsufxxvutpwjotonb", ) 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="apgkkcqiviorhjabmukvzja", + name="xsufxxvutpwjotonb", ) 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="apgkkcqiviorhjabmukvzja", + name="xsufxxvutpwjotonb", ) 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="apgkkcqiviorhjabmukvzja", + name="xsufxxvutpwjotonb", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 53307f5b33c42961dbf9f7789352398b1aad35d0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 10 Jul 2026 16:12:37 +0000 Subject: [PATCH 154/249] 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 | 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 +-- 16 files changed, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index b4a6f02c..31642603 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2b88a81ce8286a53ab076c2d88f608eca6465cf308cc49e724069aecbc025659.yml -openapi_spec_hash: 9fde29c614fad30540a96578a785c53b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c7b4dde3eb431e3c636e2b6bc3a7bc40aaee037783648040876793082942a877.yml +openapi_spec_hash: b2059518c78b8c03fcbd4e1773ff4d77 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 2e0079df..26284d72 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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 e0094247..eb0d143b 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="ad", + list_id="iure", 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="ad", + list_id="iure", 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="ad", + list_id="iure", 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="ad", + list_id="iure", 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="ad", + list_id="iure", 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="ad", + list_id="iure", 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="ad", + list_id="iure", 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="ad", + list_id="iure", 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="ad", + list_id="iure", 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="ad", + list_id="iure", 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="ad", + list_id="iure", 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="ad", + list_id="iure", 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="ad", + list_id="iure", 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="ad", + list_id="iure", 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="ad", + list_id="iure", 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="ad", + list_id="iure", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 28510d1f..c7066f7e 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="sunt", + post_id="illum", 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="sunt", + post_id="illum", 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="sunt", + post_id="illum", 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="sunt", + post_id="illum", 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="sunt", + post_id="illum", 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="sunt", + post_id="illum", 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="sunt", + post_id="illum", 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="sunt", + post_id="illum", 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="sunt", + post_id="illum", 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="sunt", + post_id="illum", 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="sunt", + post_id="illum", 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="sunt", + post_id="illum", 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="sunt", + post_id="illum", 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="sunt", + post_id="illum", 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="sunt", + post_id="illum", 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="sunt", + post_id="illum", 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="sunt", + post_id="illum", 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="sunt", + post_id="illum", 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="sunt", + post_id="illum", 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="sunt", + post_id="illum", 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 fc7b1635..b5f3d61a 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=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=6, + 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=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_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=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=6, + 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=6, + 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=6, + 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=6, + period=24, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 70bbf43b..ddd9b439 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="quam", + path_story_id="eos", 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="quam", + path_story_id="eos", 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="quam", + path_story_id="eos", 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="quam", + path_story_id="eos", 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="quam", + story_id="eos", 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="quam", + story_id="eos", 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="quam", + story_id="eos", 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="quam", + story_id="eos", 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="quam", + path_story_id="eos", 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="quam", + path_story_id="eos", 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="quam", + path_story_id="eos", 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="quam", + path_story_id="eos", 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="quam", + story_id="eos", 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="quam", + story_id="eos", 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="quam", + story_id="eos", 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="quam", + story_id="eos", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 9bec124d..12d72807 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( - "iusto", + "ratione", ) 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( - "iusto", + "ratione", ) 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( - "iusto", + "ratione", ) 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( - "iusto", + "ratione", ) 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( - "iusto", + "ratione", ) 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( - "iusto", + "ratione", ) 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 24c7a48a..70f338a8 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="repellat", + auth_id="quis", + auth_type="mobile_app", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "KGnK$l", + "password": "Qyz]@%i*", "port": 8080, - "username": "ratione", + "username": "possimus", }, - email="mann.kassandra@example.org", + email="leslie.bechtelar@example.org", force_connect=True, - name="necessitatibus", - password="Uwp:`XT^1qCwZKq)", - proxy_country="gb", - user_agent="adipisci", - xbc="odit", + name="id", + password="r|QC&G$'g5", + proxy_country="uk", + user_agent="molestiae", + xbc="voluptatem", ) 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="repellat", + auth_id="quis", + auth_type="mobile_app", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "KGnK$l", + "password": "Qyz]@%i*", "port": 8080, - "username": "ratione", + "username": "possimus", }, - email="mann.kassandra@example.org", + email="leslie.bechtelar@example.org", force_connect=True, - name="necessitatibus", - password="Uwp:`XT^1qCwZKq)", - proxy_country="gb", - user_agent="adipisci", - xbc="odit", + name="id", + password="r|QC&G$'g5", + proxy_country="uk", + user_agent="molestiae", + xbc="voluptatem", ) 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 9249f386..0d035d3b 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="gb", ) 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="gb", ) 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 413a2df6..280e3de9 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="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="likes", + 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 65694e23..bd4f6161 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 bd48c04d..af80317e 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": ["keuvr"]}, + filter={"tags": ["dw"]}, 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="ut", + smart_link_id="tenetur", ) 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="ut", + smart_link_id="tenetur", 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="ut", + smart_link_id="tenetur", ) 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="ut", + smart_link_id="tenetur", ) 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="rerum", + smart_link_id="alias", ) 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="rerum", + smart_link_id="alias", 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="rerum", + smart_link_id="alias", ) 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="rerum", + smart_link_id="alias", ) 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="cumque", + smart_link_id="earum", ) 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="cumque", + smart_link_id="earum", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="earum", ) assert response.is_closed is True @@ -359,7 +359,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="earum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="nemo", + smart_link_id="rerum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="nemo", + smart_link_id="rerum", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="nemo", + smart_link_id="rerum", ) assert response.is_closed is True @@ -412,7 +412,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="nemo", + smart_link_id="rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="excepturi", + smart_link_id="voluptas", ) assert smart_link is None @@ -442,7 +442,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="excepturi", + smart_link_id="voluptas", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="excepturi", + smart_link_id="voluptas", ) assert response.is_closed is True @@ -465,7 +465,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="excepturi", + smart_link_id="voluptas", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="ad", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="ad", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="ad", ) assert response.is_closed is True @@ -517,7 +517,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="ad", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["keuvr"]}, + filter={"tags": ["dw"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="tenetur", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="tenetur", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="tenetur", ) assert response.is_closed is True @@ -756,7 +756,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="tenetur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="alias", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="alias", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="alias", ) assert response.is_closed is True @@ -814,7 +814,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="alias", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="earum", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="earum", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="earum", ) assert response.is_closed is True @@ -873,7 +873,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="earum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="nemo", + smart_link_id="rerum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="nemo", + smart_link_id="rerum", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="nemo", + smart_link_id="rerum", ) assert response.is_closed is True @@ -926,7 +926,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="nemo", + smart_link_id="rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="excepturi", + smart_link_id="voluptas", ) assert smart_link is None @@ -956,7 +956,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="excepturi", + smart_link_id="voluptas", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="excepturi", + smart_link_id="voluptas", ) assert response.is_closed is True @@ -979,7 +979,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="excepturi", + smart_link_id="voluptas", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="ad", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="ad", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="ad", ) assert response.is_closed is True @@ -1031,7 +1031,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="ad", ) 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 ac2d08fe..3b0a2822 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": "ylobjpwh", - "tags": ["dr"], + "search": "pbfojbqujwt", + "tags": ["njflnpevoi"], }, 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": "wmpusyyjwwvvnv", - "tags": ["gjo"], + "search": "an", + "tags": ["adgultzysfwajyujyajvtgr"], }, 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": "alfidzfbetwezkfdpxfcxde", - "tags": ["w"], + "search": "hdawtfhcegirnvzcpmzipkk", + "tags": ["xrfgvkoztdwfztpnuwgiry"], }, 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": "itdssjbh", - "tags": ["qqjugrupnrkpzxinfhfjjuaj"], + "include_smart_links": True, + "search": "fkcvfvpjxcsmpngjvszcn", + "tags": ["pjyfddvbu"], }, 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": "ylobjpwh", - "tags": ["dr"], + "search": "pbfojbqujwt", + "tags": ["njflnpevoi"], }, 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": "wmpusyyjwwvvnv", - "tags": ["gjo"], + "search": "an", + "tags": ["adgultzysfwajyujyajvtgr"], }, 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": "alfidzfbetwezkfdpxfcxde", - "tags": ["w"], + "search": "hdawtfhcegirnvzcpmzipkk", + "tags": ["xrfgvkoztdwfztpnuwgiry"], }, 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": "itdssjbh", - "tags": ["qqjugrupnrkpzxinfhfjjuaj"], + "include_smart_links": True, + "search": "fkcvfvpjxcsmpngjvszcn", + "tags": ["pjyfddvbu"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 70c2bdc1..da38653b 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="doloribus", + tracking_link_id="est", 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="doloribus", + tracking_link_id="est", 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="doloribus", + tracking_link_id="est", 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="doloribus", + tracking_link_id="est", 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="doloribus", + tracking_link_id="est", 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="doloribus", + tracking_link_id="est", 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="doloribus", + tracking_link_id="est", 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="doloribus", + tracking_link_id="est", 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="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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="aspernatur", + tracking_link_id="quidem", 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="aspernatur", + tracking_link_id="quidem", 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="aspernatur", + tracking_link_id="quidem", 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="aspernatur", + tracking_link_id="quidem", 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="aspernatur", + tracking_link_id="quidem", 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="doloribus", + tracking_link_id="est", 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="doloribus", + tracking_link_id="est", 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="doloribus", + tracking_link_id="est", 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="doloribus", + tracking_link_id="est", 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="doloribus", + tracking_link_id="est", 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="doloribus", + tracking_link_id="est", 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="doloribus", + tracking_link_id="est", 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="doloribus", + tracking_link_id="est", 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="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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="aspernatur", + tracking_link_id="quidem", 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="aspernatur", + tracking_link_id="quidem", 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="aspernatur", + tracking_link_id="quidem", 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="aspernatur", + tracking_link_id="quidem", 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="aspernatur", + tracking_link_id="quidem", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index a940b4e7..abc79579 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="quo", + trial_link_id="qui", 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="quo", + trial_link_id="qui", 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="quo", + trial_link_id="qui", 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="quo", + trial_link_id="qui", 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="quo", + trial_link_id="qui", 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="quo", + trial_link_id="qui", 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="quo", + trial_link_id="qui", 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="quo", + trial_link_id="qui", 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="culpa", + trial_link_id="nihil", 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="culpa", + trial_link_id="nihil", 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="culpa", + trial_link_id="nihil", 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="culpa", + trial_link_id="nihil", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="quos", + trial_link_id="voluptatibus", 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="quos", + trial_link_id="voluptatibus", 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="quos", + trial_link_id="voluptatibus", 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="quos", + trial_link_id="voluptatibus", 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="quos", + trial_link_id="voluptatibus", 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="quo", + trial_link_id="qui", 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="quo", + trial_link_id="qui", 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="quo", + trial_link_id="qui", 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="quo", + trial_link_id="qui", 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="quo", + trial_link_id="qui", 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="quo", + trial_link_id="qui", 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="quo", + trial_link_id="qui", 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="quo", + trial_link_id="qui", 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="culpa", + trial_link_id="nihil", 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="culpa", + trial_link_id="nihil", 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="culpa", + trial_link_id="nihil", 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="culpa", + trial_link_id="nihil", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="quos", + trial_link_id="voluptatibus", 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="quos", + trial_link_id="voluptatibus", 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="quos", + trial_link_id="voluptatibus", 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="quos", + trial_link_id="voluptatibus", 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="quos", + trial_link_id="voluptatibus", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index a6ee1912..6db0f741 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="xsufxxvutpwjotonb", + name="masdmhkug", ) 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="xsufxxvutpwjotonb", + name="masdmhkug", ) 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="xsufxxvutpwjotonb", + name="masdmhkug", ) 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="xsufxxvutpwjotonb", + name="masdmhkug", ) @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="xsufxxvutpwjotonb", + name="masdmhkug", ) 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="xsufxxvutpwjotonb", + name="masdmhkug", ) 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="xsufxxvutpwjotonb", + name="masdmhkug", ) 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="xsufxxvutpwjotonb", + name="masdmhkug", ) @pytest.mark.skip(reason="Mock server tests are disabled") From ff35699b05b1968f622c39e5acd873bb3bc7448f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 12 Jul 2026 20:12:43 +0000 Subject: [PATCH 155/249] 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 +-- 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 | 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 +-- 15 files changed, 252 insertions(+), 252 deletions(-) diff --git a/.stats.yml b/.stats.yml index 31642603..413b1a0b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c7b4dde3eb431e3c636e2b6bc3a7bc40aaee037783648040876793082942a877.yml -openapi_spec_hash: b2059518c78b8c03fcbd4e1773ff4d77 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-21d291b11e206bb0be96b00be6fa31f7147e4d0a978da43dff0a432f2a194622.yml +openapi_spec_hash: 39d38a123d98e9b87ee381af89939aa6 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 26284d72..15f6dfce 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="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="odio", + 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="odio", + 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="odio", + 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="odio", + 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="odio", + 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="odio", + 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="odio", + 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="odio", + 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="odio", + 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 eb0d143b..65801901 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="iure", + list_id="quos", 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="iure", + list_id="quos", 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="iure", + list_id="quos", 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="iure", + list_id="quos", 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="iure", + list_id="quos", 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="iure", + list_id="quos", 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="iure", + list_id="quos", 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="iure", + list_id="quos", 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="iure", + list_id="quos", 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="iure", + list_id="quos", 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="iure", + list_id="quos", 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="iure", + list_id="quos", 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="iure", + list_id="quos", 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="iure", + list_id="quos", 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="iure", + list_id="quos", 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="iure", + list_id="quos", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index c7066f7e..20d12215 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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 444937ba..a62ccbd3 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 b5f3d61a..2ced6cb5 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/test_accounts.py b/tests/api_resources/test_accounts.py index 12d72807..da8d8d7b 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( - "ratione", + "repellat", ) 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( - "ratione", + "repellat", ) 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( - "ratione", + "repellat", ) 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( - "ratione", + "repellat", ) 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( - "ratione", + "repellat", ) 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( - "ratione", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 70f338a8..8159fa18 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="quis", - auth_type="mobile_app", - cookies="et", + auth_id="eum", + auth_type="raw_data", + cookies="odit", custom_proxy={ "host": "proxy.example.com", - "password": "Qyz]@%i*", + "password": 'POf.nEnqDZO3?"S0v(', "port": 8080, - "username": "possimus", + "username": "et", }, - email="leslie.bechtelar@example.org", + email="weissnat.angelica@example.org", force_connect=True, - name="id", - password="r|QC&G$'g5", - proxy_country="uk", - user_agent="molestiae", - xbc="voluptatem", + name="assumenda", + password='"{PO#j\\cb$~maj', + proxy_country="gb", + user_agent="modi", + xbc="iure", ) 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="quis", - auth_type="mobile_app", - cookies="et", + auth_id="eum", + auth_type="raw_data", + cookies="odit", custom_proxy={ "host": "proxy.example.com", - "password": "Qyz]@%i*", + "password": 'POf.nEnqDZO3?"S0v(', "port": 8080, - "username": "possimus", + "username": "et", }, - email="leslie.bechtelar@example.org", + email="weissnat.angelica@example.org", force_connect=True, - name="id", - password="r|QC&G$'g5", - proxy_country="uk", - user_agent="molestiae", - xbc="voluptatem", + name="assumenda", + password='"{PO#j\\cb$~maj', + proxy_country="gb", + user_agent="modi", + xbc="iure", ) 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 0d035d3b..9249f386 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="gb", + 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="gb", + 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 280e3de9..0f3980c1 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_smart_links.py b/tests/api_resources/test_smart_links.py index af80317e..3903f0a4 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": ["dw"]}, + filter={"tags": ["meeqkmvudxssq"]}, 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="tenetur", + smart_link_id="omnis", ) 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="tenetur", + smart_link_id="omnis", 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="tenetur", + smart_link_id="omnis", ) 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="tenetur", + smart_link_id="omnis", ) 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="alias", + smart_link_id="consequatur", ) 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="alias", + smart_link_id="consequatur", 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="alias", + smart_link_id="consequatur", ) 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="alias", + smart_link_id="consequatur", ) 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="earum", + smart_link_id="perspiciatis", ) 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="earum", + smart_link_id="perspiciatis", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="earum", + smart_link_id="perspiciatis", ) assert response.is_closed is True @@ -359,7 +359,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="earum", + smart_link_id="perspiciatis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="rerum", + smart_link_id="accusantium", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="rerum", + smart_link_id="accusantium", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="rerum", + smart_link_id="accusantium", ) assert response.is_closed is True @@ -412,7 +412,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="rerum", + smart_link_id="accusantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="voluptas", + smart_link_id="tempore", ) assert smart_link is None @@ -442,7 +442,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="voluptas", + smart_link_id="tempore", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="voluptas", + smart_link_id="tempore", ) assert response.is_closed is True @@ -465,7 +465,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="voluptas", + smart_link_id="tempore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="ad", + smart_link_id="eligendi", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="ad", + smart_link_id="eligendi", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="ad", + smart_link_id="eligendi", ) assert response.is_closed is True @@ -517,7 +517,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="ad", + smart_link_id="eligendi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["dw"]}, + filter={"tags": ["meeqkmvudxssq"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="tenetur", + smart_link_id="omnis", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="tenetur", + smart_link_id="omnis", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="tenetur", + smart_link_id="omnis", ) assert response.is_closed is True @@ -756,7 +756,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="tenetur", + smart_link_id="omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="alias", + smart_link_id="consequatur", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="alias", + smart_link_id="consequatur", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="alias", + smart_link_id="consequatur", ) assert response.is_closed is True @@ -814,7 +814,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="alias", + smart_link_id="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="earum", + smart_link_id="perspiciatis", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="earum", + smart_link_id="perspiciatis", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="earum", + smart_link_id="perspiciatis", ) assert response.is_closed is True @@ -873,7 +873,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="earum", + smart_link_id="perspiciatis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="rerum", + smart_link_id="accusantium", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="rerum", + smart_link_id="accusantium", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="rerum", + smart_link_id="accusantium", ) assert response.is_closed is True @@ -926,7 +926,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="rerum", + smart_link_id="accusantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="voluptas", + smart_link_id="tempore", ) assert smart_link is None @@ -956,7 +956,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="voluptas", + smart_link_id="tempore", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="voluptas", + smart_link_id="tempore", ) assert response.is_closed is True @@ -979,7 +979,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="voluptas", + smart_link_id="tempore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="ad", + smart_link_id="eligendi", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="ad", + smart_link_id="eligendi", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="ad", + smart_link_id="eligendi", ) assert response.is_closed is True @@ -1031,7 +1031,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="ad", + smart_link_id="eligendi", ) 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 3b0a2822..65061f03 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": "pbfojbqujwt", - "tags": ["njflnpevoi"], + "search": "eqpjnxatitxudnuhqjgjn", + "tags": ["lzbijenejxwchrygney"], }, 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": "an", - "tags": ["adgultzysfwajyujyajvtgr"], + "search": "vnpbp", + "tags": ["ctd"], }, 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": "hdawtfhcegirnvzcpmzipkk", - "tags": ["xrfgvkoztdwfztpnuwgiry"], + "include_smart_links": False, + "search": "mnshqlgsmcltbct", + "tags": ["hif"], }, 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": "fkcvfvpjxcsmpngjvszcn", - "tags": ["pjyfddvbu"], + "search": "naenzptaupd", + "tags": ["wmktp"], }, 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": "pbfojbqujwt", - "tags": ["njflnpevoi"], + "search": "eqpjnxatitxudnuhqjgjn", + "tags": ["lzbijenejxwchrygney"], }, 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": "an", - "tags": ["adgultzysfwajyujyajvtgr"], + "search": "vnpbp", + "tags": ["ctd"], }, 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": "hdawtfhcegirnvzcpmzipkk", - "tags": ["xrfgvkoztdwfztpnuwgiry"], + "include_smart_links": False, + "search": "mnshqlgsmcltbct", + "tags": ["hif"], }, 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": "fkcvfvpjxcsmpngjvszcn", - "tags": ["pjyfddvbu"], + "search": "naenzptaupd", + "tags": ["wmktp"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index da38653b..1ff50f3f 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="est", + tracking_link_id="sequi", 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="est", + tracking_link_id="sequi", 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="est", + tracking_link_id="sequi", 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="est", + tracking_link_id="sequi", 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="est", + tracking_link_id="sequi", 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="est", + tracking_link_id="sequi", 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="est", + tracking_link_id="sequi", 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="est", + tracking_link_id="sequi", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quidem", + tracking_link_id="eaque", 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="quidem", + tracking_link_id="eaque", 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="quidem", + tracking_link_id="eaque", 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="quidem", + tracking_link_id="eaque", 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="quidem", + tracking_link_id="eaque", 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="est", + tracking_link_id="sequi", 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="est", + tracking_link_id="sequi", 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="est", + tracking_link_id="sequi", 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="est", + tracking_link_id="sequi", 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="est", + tracking_link_id="sequi", 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="est", + tracking_link_id="sequi", 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="est", + tracking_link_id="sequi", 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="est", + tracking_link_id="sequi", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quidem", + tracking_link_id="eaque", 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="quidem", + tracking_link_id="eaque", 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="quidem", + tracking_link_id="eaque", 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="quidem", + tracking_link_id="eaque", 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="quidem", + tracking_link_id="eaque", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index abc79579..71a4f7be 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="atque", + trial_link_id="dolores", 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="atque", + trial_link_id="dolores", 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="atque", + trial_link_id="dolores", 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="atque", + trial_link_id="dolores", 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="atque", + trial_link_id="dolores", 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="voluptatibus", + trial_link_id="harum", 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="voluptatibus", + trial_link_id="harum", 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="voluptatibus", + trial_link_id="harum", 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="voluptatibus", + trial_link_id="harum", 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="voluptatibus", + trial_link_id="harum", 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="atque", + trial_link_id="dolores", 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="atque", + trial_link_id="dolores", 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="atque", + trial_link_id="dolores", 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="atque", + trial_link_id="dolores", 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="atque", + trial_link_id="dolores", 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="voluptatibus", + trial_link_id="harum", 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="voluptatibus", + trial_link_id="harum", 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="voluptatibus", + trial_link_id="harum", 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="voluptatibus", + trial_link_id="harum", 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="voluptatibus", + trial_link_id="harum", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 6db0f741..8a87b11e 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="masdmhkug", + name="azvwfnhvnpc", ) 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="masdmhkug", + name="azvwfnhvnpc", ) 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="masdmhkug", + name="azvwfnhvnpc", ) 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="masdmhkug", + name="azvwfnhvnpc", ) @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="masdmhkug", + name="azvwfnhvnpc", ) 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="masdmhkug", + name="azvwfnhvnpc", ) 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="masdmhkug", + name="azvwfnhvnpc", ) 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="masdmhkug", + name="azvwfnhvnpc", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 5f83d8e1d7a63140fa2f334ce8787cc296b3b8c8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 11:12:39 +0000 Subject: [PATCH 156/249] 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 | 48 ++++----- 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, 266 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index 413b1a0b..5a6480d1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-21d291b11e206bb0be96b00be6fa31f7147e4d0a978da43dff0a432f2a194622.yml -openapi_spec_hash: 39d38a123d98e9b87ee381af89939aa6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-50d4af8593e2d4714996fafef6e9b27e902610950c16792647e0ea68979996a1.yml +openapi_spec_hash: 63b80ae0875ffd0ee9fc524038866b4a config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 15f6dfce..bf5f5271 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="omnis", 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="omnis", 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="omnis", 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="omnis", 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="omnis", 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="omnis", 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="omnis", 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="omnis", 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="omnis", 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="omnis", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 65801901..3f828857 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="quos", + 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="quos", + 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="quos", + 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="quos", + 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="quos", + 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="quos", + 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="quos", + 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="quos", + 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="quos", + 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="quos", + 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="quos", + 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="quos", + 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="quos", + 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="quos", + 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="quos", + 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="quos", + 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 20d12215..8006dcf9 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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 a62ccbd3..7549791e 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 2ced6cb5..9c80483e 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 ddd9b439..588383ac 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="eos", + path_story_id="laboriosam", 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="eos", + path_story_id="laboriosam", 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="eos", + path_story_id="laboriosam", 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="eos", + path_story_id="laboriosam", 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="eos", + story_id="laboriosam", 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="eos", + story_id="laboriosam", 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="eos", + story_id="laboriosam", 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="eos", + story_id="laboriosam", 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="eos", + path_story_id="laboriosam", 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="eos", + path_story_id="laboriosam", 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="eos", + path_story_id="laboriosam", 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="eos", + path_story_id="laboriosam", 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="eos", + story_id="laboriosam", 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="eos", + story_id="laboriosam", 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="eos", + story_id="laboriosam", 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="eos", + story_id="laboriosam", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index da8d8d7b..71b1c630 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( - "repellat", + "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( - "repellat", + "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( - "repellat", + "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( - "repellat", + "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( - "repellat", + "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( - "repellat", + "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 8159fa18..7d49019e 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="eum", - auth_type="raw_data", - cookies="odit", + auth_id="sit", + auth_type="email_password", + cookies="adipisci", custom_proxy={ "host": "proxy.example.com", - "password": 'POf.nEnqDZO3?"S0v(', + "password": "%$TKQi81Kc", "port": 8080, - "username": "et", + "username": "possimus", }, - email="weissnat.angelica@example.org", - force_connect=True, - name="assumenda", - password='"{PO#j\\cb$~maj', - proxy_country="gb", - user_agent="modi", - xbc="iure", + email="jesse13@example.org", + force_connect=False, + name="provident", + password="q&4;(M11q", + proxy_country="uk", + user_agent="velit", + 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="eum", - auth_type="raw_data", - cookies="odit", + auth_id="sit", + auth_type="email_password", + cookies="adipisci", custom_proxy={ "host": "proxy.example.com", - "password": 'POf.nEnqDZO3?"S0v(', + "password": "%$TKQi81Kc", "port": 8080, - "username": "et", + "username": "possimus", }, - email="weissnat.angelica@example.org", - force_connect=True, - name="assumenda", - password='"{PO#j\\cb$~maj', - proxy_country="gb", - user_agent="modi", - xbc="iure", + email="jesse13@example.org", + force_connect=False, + name="provident", + password="q&4;(M11q", + proxy_country="uk", + user_agent="velit", + 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 0f3980c1..bea1ef2e 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="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="tips", + type="tags", ) 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 3903f0a4..1cf4c71a 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": ["meeqkmvudxssq"]}, + filter={"tags": ["upsll"]}, 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="omnis", + smart_link_id="quidem", ) 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="omnis", + smart_link_id="quidem", 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="omnis", + smart_link_id="quidem", ) 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="omnis", + smart_link_id="quidem", ) 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="consequatur", + smart_link_id="id", ) 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="consequatur", + smart_link_id="id", 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="consequatur", + smart_link_id="id", ) 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="consequatur", + smart_link_id="id", ) 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="perspiciatis", + smart_link_id="doloremque", ) 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="perspiciatis", + smart_link_id="doloremque", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="perspiciatis", + smart_link_id="doloremque", ) assert response.is_closed is True @@ -359,7 +359,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="perspiciatis", + smart_link_id="doloremque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="accusantium", + smart_link_id="perspiciatis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="accusantium", + smart_link_id="perspiciatis", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="accusantium", + smart_link_id="perspiciatis", ) assert response.is_closed is True @@ -412,7 +412,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="accusantium", + smart_link_id="perspiciatis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="tempore", + smart_link_id="enim", ) assert smart_link is None @@ -442,7 +442,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="tempore", + smart_link_id="enim", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="tempore", + smart_link_id="enim", ) assert response.is_closed is True @@ -465,7 +465,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="tempore", + smart_link_id="enim", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="eligendi", + smart_link_id="officia", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="eligendi", + smart_link_id="officia", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="eligendi", + smart_link_id="officia", ) assert response.is_closed is True @@ -517,7 +517,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="eligendi", + smart_link_id="officia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["meeqkmvudxssq"]}, + filter={"tags": ["upsll"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="omnis", + smart_link_id="quidem", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="omnis", + smart_link_id="quidem", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="omnis", + smart_link_id="quidem", ) assert response.is_closed is True @@ -756,7 +756,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="omnis", + smart_link_id="quidem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="consequatur", + smart_link_id="id", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="consequatur", + smart_link_id="id", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="consequatur", + smart_link_id="id", ) assert response.is_closed is True @@ -814,7 +814,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="consequatur", + smart_link_id="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="perspiciatis", + smart_link_id="doloremque", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="perspiciatis", + smart_link_id="doloremque", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="perspiciatis", + smart_link_id="doloremque", ) assert response.is_closed is True @@ -873,7 +873,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="perspiciatis", + smart_link_id="doloremque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="accusantium", + smart_link_id="perspiciatis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="accusantium", + smart_link_id="perspiciatis", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="accusantium", + smart_link_id="perspiciatis", ) assert response.is_closed is True @@ -926,7 +926,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="accusantium", + smart_link_id="perspiciatis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="tempore", + smart_link_id="enim", ) assert smart_link is None @@ -956,7 +956,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="tempore", + smart_link_id="enim", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="tempore", + smart_link_id="enim", ) assert response.is_closed is True @@ -979,7 +979,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="tempore", + smart_link_id="enim", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="eligendi", + smart_link_id="officia", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="eligendi", + smart_link_id="officia", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="eligendi", + smart_link_id="officia", ) assert response.is_closed is True @@ -1031,7 +1031,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="eligendi", + smart_link_id="officia", ) 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 65061f03..9c5c7795 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": "eqpjnxatitxudnuhqjgjn", - "tags": ["lzbijenejxwchrygney"], + "search": "kuwfvsrzboyuwowbrzwdgv", + "tags": ["o"], }, 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": "vnpbp", - "tags": ["ctd"], + "search": "twfvhumipbkoaucj", + "tags": ["hnggcgqfn"], }, 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": "mnshqlgsmcltbct", - "tags": ["hif"], + "search": "dmokeftutufv", + "tags": ["mugo"], }, 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": "naenzptaupd", - "tags": ["wmktp"], + "search": "slcrspkzqfpjxjqxnhzzm", + "tags": ["qcsbrg"], }, 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": "eqpjnxatitxudnuhqjgjn", - "tags": ["lzbijenejxwchrygney"], + "search": "kuwfvsrzboyuwowbrzwdgv", + "tags": ["o"], }, 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": "vnpbp", - "tags": ["ctd"], + "search": "twfvhumipbkoaucj", + "tags": ["hnggcgqfn"], }, 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": "mnshqlgsmcltbct", - "tags": ["hif"], + "search": "dmokeftutufv", + "tags": ["mugo"], }, 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": "naenzptaupd", - "tags": ["wmktp"], + "search": "slcrspkzqfpjxjqxnhzzm", + "tags": ["qcsbrg"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 1ff50f3f..b4a7c32f 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="sequi", + tracking_link_id="voluptas", 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="sequi", + tracking_link_id="voluptas", 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="sequi", + tracking_link_id="voluptas", 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="sequi", + tracking_link_id="voluptas", 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="sequi", + tracking_link_id="voluptas", 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="sequi", + tracking_link_id="voluptas", 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="sequi", + tracking_link_id="voluptas", 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="sequi", + tracking_link_id="voluptas", 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="eaque", + tracking_link_id="tenetur", 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="eaque", + tracking_link_id="tenetur", 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="eaque", + tracking_link_id="tenetur", 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="eaque", + tracking_link_id="tenetur", 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="eaque", + tracking_link_id="tenetur", 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="sequi", + tracking_link_id="voluptas", 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="sequi", + tracking_link_id="voluptas", 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="sequi", + tracking_link_id="voluptas", 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="sequi", + tracking_link_id="voluptas", 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="sequi", + tracking_link_id="voluptas", 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="sequi", + tracking_link_id="voluptas", 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="sequi", + tracking_link_id="voluptas", 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="sequi", + tracking_link_id="voluptas", 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="eaque", + tracking_link_id="tenetur", 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="eaque", + tracking_link_id="tenetur", 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="eaque", + tracking_link_id="tenetur", 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="eaque", + tracking_link_id="tenetur", 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="eaque", + tracking_link_id="tenetur", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 71a4f7be..d60efaa8 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="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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="et", + trial_link_id="animi", 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="animi", 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="animi", 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="animi", 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="dolores", + trial_link_id="vero", 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="dolores", + trial_link_id="vero", 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="dolores", + trial_link_id="vero", 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="dolores", + trial_link_id="vero", 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="dolores", + trial_link_id="vero", 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="harum", + trial_link_id="nemo", 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="harum", + trial_link_id="nemo", 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="harum", + trial_link_id="nemo", 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="harum", + trial_link_id="nemo", 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="harum", + trial_link_id="nemo", 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="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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="et", + trial_link_id="animi", 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="animi", 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="animi", 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="animi", 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="dolores", + trial_link_id="vero", 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="dolores", + trial_link_id="vero", 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="dolores", + trial_link_id="vero", 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="dolores", + trial_link_id="vero", 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="dolores", + trial_link_id="vero", 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="harum", + trial_link_id="nemo", 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="harum", + trial_link_id="nemo", 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="harum", + trial_link_id="nemo", 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="harum", + trial_link_id="nemo", 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="harum", + trial_link_id="nemo", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 8a87b11e..79a95a1e 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="azvwfnhvnpc", + name="yfuqlstvkuqxlmqzogxka", ) 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="azvwfnhvnpc", + name="yfuqlstvkuqxlmqzogxka", ) 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="azvwfnhvnpc", + name="yfuqlstvkuqxlmqzogxka", ) 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="azvwfnhvnpc", + name="yfuqlstvkuqxlmqzogxka", ) @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="azvwfnhvnpc", + name="yfuqlstvkuqxlmqzogxka", ) 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="azvwfnhvnpc", + name="yfuqlstvkuqxlmqzogxka", ) 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="azvwfnhvnpc", + name="yfuqlstvkuqxlmqzogxka", ) 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="azvwfnhvnpc", + name="yfuqlstvkuqxlmqzogxka", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 4c4fbee0a34e3947c61c0b7eb6ba81fb71ea7dd8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 14:12:40 +0000 Subject: [PATCH 157/249] 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 | 100 +++++++++--------- 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, 270 insertions(+), 270 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5a6480d1..0f50575f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-50d4af8593e2d4714996fafef6e9b27e902610950c16792647e0ea68979996a1.yml -openapi_spec_hash: 63b80ae0875ffd0ee9fc524038866b4a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a884c4303875cc51be36e23eb25753e78483e574ff7993d762efe007a6bcd4ba.yml +openapi_spec_hash: 07d0321b2ed079c79539babf99c860fd config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index bf5f5271..18b1c67f 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="omnis", + message_id="laboriosam", 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="omnis", + message_id="laboriosam", 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="omnis", + message_id="laboriosam", 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="omnis", + message_id="laboriosam", 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="omnis", + message_id="laboriosam", 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="omnis", + message_id="laboriosam", 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="omnis", + message_id="laboriosam", 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="omnis", + message_id="laboriosam", 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="omnis", + message_id="laboriosam", 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="omnis", + message_id="laboriosam", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 3f828857..db1d92ef 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", 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="nesciunt", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 8006dcf9..20d12215 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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 7549791e..444937ba 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 9c80483e..fc7b1635 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 588383ac..46294895 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="laboriosam", + path_story_id="sed", 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="laboriosam", + path_story_id="sed", 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="laboriosam", + path_story_id="sed", 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="laboriosam", + path_story_id="sed", 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="laboriosam", + story_id="sed", 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="laboriosam", + story_id="sed", 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="laboriosam", + story_id="sed", 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="laboriosam", + story_id="sed", 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="laboriosam", + path_story_id="sed", 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="laboriosam", + path_story_id="sed", 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="laboriosam", + path_story_id="sed", 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="laboriosam", + path_story_id="sed", 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="laboriosam", + story_id="sed", 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="laboriosam", + story_id="sed", 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="laboriosam", + story_id="sed", 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="laboriosam", + story_id="sed", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 71b1c630..7506d9b8 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", + "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( - "nobis", + "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( - "nobis", + "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( - "nobis", + "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( - "nobis", + "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( - "nobis", + "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 7d49019e..39e55b6d 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="sit", + auth_id="inventore", auth_type="email_password", - cookies="adipisci", + cookies="quo", custom_proxy={ "host": "proxy.example.com", - "password": "%$TKQi81Kc", + "password": "7RZ@&1=K", "port": 8080, - "username": "possimus", + "username": "a", }, - email="jesse13@example.org", + email="lexus.torphy@example.com", force_connect=False, - name="provident", - password="q&4;(M11q", - proxy_country="uk", - user_agent="velit", - xbc="quaerat", + name="molestiae", + password='`>DpRz9"`{:', + proxy_country="us", + user_agent="consequuntur", + xbc="totam", ) 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="sit", + auth_id="inventore", auth_type="email_password", - cookies="adipisci", + cookies="quo", custom_proxy={ "host": "proxy.example.com", - "password": "%$TKQi81Kc", + "password": "7RZ@&1=K", "port": 8080, - "username": "possimus", + "username": "a", }, - email="jesse13@example.org", + email="lexus.torphy@example.com", force_connect=False, - name="provident", - password="q&4;(M11q", - proxy_country="uk", - user_agent="velit", - xbc="quaerat", + name="molestiae", + password='`>DpRz9"`{:', + proxy_country="us", + user_agent="consequuntur", + xbc="totam", ) 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 9249f386..3597ede6 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 bea1ef2e..4fb0fa41 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="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="tags", + 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 bd4f6161..65694e23 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 1cf4c71a..35bc974a 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": ["upsll"]}, + filter={"tags": ["rqawfnwuylnwnsnavrrjzkju"]}, 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="quidem", + smart_link_id="iste", ) 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="quidem", + smart_link_id="iste", 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="quidem", + smart_link_id="iste", ) 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="quidem", + smart_link_id="iste", ) 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="id", + smart_link_id="non", ) 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="id", + smart_link_id="non", 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="id", + smart_link_id="non", ) 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="id", + smart_link_id="non", ) 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="doloremque", + smart_link_id="harum", ) 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="doloremque", + smart_link_id="harum", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="doloremque", + smart_link_id="harum", ) assert response.is_closed is True @@ -359,7 +359,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="doloremque", + smart_link_id="harum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="perspiciatis", + smart_link_id="nulla", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="perspiciatis", + smart_link_id="nulla", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="perspiciatis", + smart_link_id="nulla", ) assert response.is_closed is True @@ -412,7 +412,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="perspiciatis", + smart_link_id="nulla", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="enim", + smart_link_id="distinctio", ) assert smart_link is None @@ -442,7 +442,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="enim", + smart_link_id="distinctio", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="enim", + smart_link_id="distinctio", ) assert response.is_closed is True @@ -465,7 +465,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="enim", + smart_link_id="distinctio", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="officia", + smart_link_id="voluptatem", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="officia", + smart_link_id="voluptatem", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="officia", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -517,7 +517,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="officia", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["upsll"]}, + filter={"tags": ["rqawfnwuylnwnsnavrrjzkju"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="iste", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="iste", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="iste", ) assert response.is_closed is True @@ -756,7 +756,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="iste", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="non", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="non", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="non", ) assert response.is_closed is True @@ -814,7 +814,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="non", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="doloremque", + smart_link_id="harum", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="doloremque", + smart_link_id="harum", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="doloremque", + smart_link_id="harum", ) assert response.is_closed is True @@ -873,7 +873,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="doloremque", + smart_link_id="harum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="perspiciatis", + smart_link_id="nulla", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="perspiciatis", + smart_link_id="nulla", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="perspiciatis", + smart_link_id="nulla", ) assert response.is_closed is True @@ -926,7 +926,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="perspiciatis", + smart_link_id="nulla", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="enim", + smart_link_id="distinctio", ) assert smart_link is None @@ -956,7 +956,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="enim", + smart_link_id="distinctio", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="enim", + smart_link_id="distinctio", ) assert response.is_closed is True @@ -979,7 +979,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="enim", + smart_link_id="distinctio", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="officia", + smart_link_id="voluptatem", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="officia", + smart_link_id="voluptatem", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="officia", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -1031,7 +1031,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="officia", + 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 9c5c7795..770481c5 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": "kuwfvsrzboyuwowbrzwdgv", - "tags": ["o"], + "search": "ysx", + "tags": ["znbteuttq"], }, 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": "twfvhumipbkoaucj", - "tags": ["hnggcgqfn"], + "search": "jxnxrnnejasckqtipzirttvv", + "tags": ["idrabsegnjqvbktjjgztbn"], }, 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": "dmokeftutufv", - "tags": ["mugo"], + "include_smart_links": True, + "search": "jxcfcimzfskevcxeb", + "tags": ["urtjsckrefgamxjrnspbbmkp"], }, 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": "slcrspkzqfpjxjqxnhzzm", - "tags": ["qcsbrg"], + "include_smart_links": False, + "search": "zpraobliwvkgfmtcfdg", + "tags": ["h"], }, 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": "kuwfvsrzboyuwowbrzwdgv", - "tags": ["o"], + "search": "ysx", + "tags": ["znbteuttq"], }, 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": "twfvhumipbkoaucj", - "tags": ["hnggcgqfn"], + "search": "jxnxrnnejasckqtipzirttvv", + "tags": ["idrabsegnjqvbktjjgztbn"], }, 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": "dmokeftutufv", - "tags": ["mugo"], + "include_smart_links": True, + "search": "jxcfcimzfskevcxeb", + "tags": ["urtjsckrefgamxjrnspbbmkp"], }, 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": "slcrspkzqfpjxjqxnhzzm", - "tags": ["qcsbrg"], + "include_smart_links": False, + "search": "zpraobliwvkgfmtcfdg", + "tags": ["h"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index b4a7c32f..be2cf188 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="rerum", + tracking_link_id="dolor", 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="rerum", + tracking_link_id="dolor", 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="rerum", + tracking_link_id="dolor", 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="rerum", + tracking_link_id="dolor", 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="rerum", + tracking_link_id="dolor", 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="tenetur", + tracking_link_id="aut", 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="tenetur", + tracking_link_id="aut", 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="tenetur", + tracking_link_id="aut", 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="tenetur", + tracking_link_id="aut", 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="tenetur", + tracking_link_id="aut", 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="rerum", + tracking_link_id="dolor", 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="rerum", + tracking_link_id="dolor", 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="rerum", + tracking_link_id="dolor", 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="rerum", + tracking_link_id="dolor", 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="rerum", + tracking_link_id="dolor", 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="tenetur", + tracking_link_id="aut", 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="tenetur", + tracking_link_id="aut", 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="tenetur", + tracking_link_id="aut", 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="tenetur", + tracking_link_id="aut", 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="tenetur", + tracking_link_id="aut", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index d60efaa8..8186a825 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="animi", + 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="animi", + 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="animi", + 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="animi", + 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="vero", + trial_link_id="illo", 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="vero", + trial_link_id="illo", 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="vero", + trial_link_id="illo", 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="vero", + trial_link_id="illo", 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="vero", + trial_link_id="illo", 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="assumenda", + trial_link_id="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="sed", 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="animi", + 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="animi", + 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="animi", + 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="animi", + 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="vero", + trial_link_id="illo", 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="vero", + trial_link_id="illo", 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="vero", + trial_link_id="illo", 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="vero", + trial_link_id="illo", 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="vero", + trial_link_id="illo", 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + 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="nemo", + trial_link_id="ipsa", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 79a95a1e..db850a0f 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="yfuqlstvkuqxlmqzogxka", + name="napxhofmbngxgehkead", ) 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="yfuqlstvkuqxlmqzogxka", + name="napxhofmbngxgehkead", ) 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="yfuqlstvkuqxlmqzogxka", + name="napxhofmbngxgehkead", ) 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="yfuqlstvkuqxlmqzogxka", + name="napxhofmbngxgehkead", ) @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="yfuqlstvkuqxlmqzogxka", + name="napxhofmbngxgehkead", ) 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="yfuqlstvkuqxlmqzogxka", + name="napxhofmbngxgehkead", ) 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="yfuqlstvkuqxlmqzogxka", + name="napxhofmbngxgehkead", ) 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="yfuqlstvkuqxlmqzogxka", + name="napxhofmbngxgehkead", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 4edd93fc9ed9cb388ee23920b6b5f570085bc44d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 15:12:33 +0000 Subject: [PATCH 158/249] 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_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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 0f50575f..1b3e4032 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a884c4303875cc51be36e23eb25753e78483e574ff7993d762efe007a6bcd4ba.yml -openapi_spec_hash: 07d0321b2ed079c79539babf99c860fd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3ba30d96f1276dfa96866091f03f2648fe2567da747121a4102e705242f81c97.yml +openapi_spec_hash: 428f92a8457a26c9c5b5a54ad7258ea9 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 18b1c67f..d4d9da5f 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="laboriosam", + message_id="minima", 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="laboriosam", + message_id="minima", 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="laboriosam", + message_id="minima", 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="laboriosam", + message_id="minima", 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="laboriosam", + message_id="minima", 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="laboriosam", + message_id="minima", 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="laboriosam", + message_id="minima", 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="laboriosam", + message_id="minima", 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="laboriosam", + message_id="minima", 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="laboriosam", + message_id="minima", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index db1d92ef..c1bc3094 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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="nesciunt", + 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 20d12215..4785a9cf 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="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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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 444937ba..a62ccbd3 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/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 46294895..08b0ea47 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="sed", + path_story_id="qui", 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="sed", + path_story_id="qui", 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="sed", + path_story_id="qui", 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="sed", + path_story_id="qui", 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="sed", + story_id="qui", 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="sed", + story_id="qui", 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="sed", + story_id="qui", 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="sed", + story_id="qui", 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="sed", + path_story_id="qui", 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="sed", + path_story_id="qui", 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="sed", + path_story_id="qui", 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="sed", + path_story_id="qui", 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="sed", + story_id="qui", 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="sed", + story_id="qui", 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="sed", + story_id="qui", 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="sed", + story_id="qui", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 7506d9b8..c6284bc1 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", + "architecto", ) 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", + "architecto", ) 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", + "architecto", ) 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", + "architecto", ) 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", + "architecto", ) 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", + "architecto", ) 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 39e55b6d..4ea819ea 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="inventore", + auth_id="ut", auth_type="email_password", - cookies="quo", + cookies="rerum", custom_proxy={ "host": "proxy.example.com", - "password": "7RZ@&1=K", + "password": "-k`bp[J|T$", "port": 8080, - "username": "a", + "username": "repellendus", }, - email="lexus.torphy@example.com", - force_connect=False, - name="molestiae", - password='`>DpRz9"`{:', - proxy_country="us", - user_agent="consequuntur", - xbc="totam", + email="elouise54@example.org", + force_connect=True, + name="quae", + password=";Y^(*Dv~ None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="inventore", + auth_id="ut", auth_type="email_password", - cookies="quo", + cookies="rerum", custom_proxy={ "host": "proxy.example.com", - "password": "7RZ@&1=K", + "password": "-k`bp[J|T$", "port": 8080, - "username": "a", + "username": "repellendus", }, - email="lexus.torphy@example.com", - force_connect=False, - name="molestiae", - password='`>DpRz9"`{:', - proxy_country="us", - user_agent="consequuntur", - xbc="totam", + email="elouise54@example.org", + force_connect=True, + name="quae", + password=";Y^(*Dv~ None: from_id=123, limit=10, skip_users="all", - type="subscriptions", + 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="subscriptions", + type="tags", ) 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 35bc974a..50958594 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": ["rqawfnwuylnwnsnavrrjzkju"]}, + filter={"tags": ["odcls"]}, 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="iste", + smart_link_id="omnis", ) 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="iste", + smart_link_id="omnis", 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="iste", + smart_link_id="omnis", ) 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="iste", + smart_link_id="omnis", ) 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="non", + smart_link_id="hic", ) 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="non", + smart_link_id="hic", 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="non", + smart_link_id="hic", ) 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="non", + smart_link_id="hic", ) 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="harum", + smart_link_id="voluptates", ) 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="harum", + smart_link_id="voluptates", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="harum", + smart_link_id="voluptates", ) assert response.is_closed is True @@ -359,7 +359,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="harum", + smart_link_id="voluptates", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="nulla", + smart_link_id="laudantium", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="nulla", + smart_link_id="laudantium", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="nulla", + smart_link_id="laudantium", ) assert response.is_closed is True @@ -412,7 +412,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="nulla", + smart_link_id="laudantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="distinctio", + smart_link_id="numquam", ) assert smart_link is None @@ -442,7 +442,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="distinctio", + smart_link_id="numquam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="distinctio", + smart_link_id="numquam", ) assert response.is_closed is True @@ -465,7 +465,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="distinctio", + smart_link_id="numquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="quis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="quis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="quis", ) assert response.is_closed is True @@ -517,7 +517,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="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["rqawfnwuylnwnsnavrrjzkju"]}, + filter={"tags": ["odcls"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="iste", + smart_link_id="omnis", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="iste", + smart_link_id="omnis", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="iste", + smart_link_id="omnis", ) assert response.is_closed is True @@ -756,7 +756,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="iste", + smart_link_id="omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="non", + smart_link_id="hic", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="non", + smart_link_id="hic", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="non", + smart_link_id="hic", ) assert response.is_closed is True @@ -814,7 +814,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="non", + smart_link_id="hic", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="harum", + smart_link_id="voluptates", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="harum", + smart_link_id="voluptates", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="harum", + smart_link_id="voluptates", ) assert response.is_closed is True @@ -873,7 +873,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="harum", + smart_link_id="voluptates", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="nulla", + smart_link_id="laudantium", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="nulla", + smart_link_id="laudantium", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="nulla", + smart_link_id="laudantium", ) assert response.is_closed is True @@ -926,7 +926,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="nulla", + smart_link_id="laudantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="distinctio", + smart_link_id="numquam", ) assert smart_link is None @@ -956,7 +956,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="distinctio", + smart_link_id="numquam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="distinctio", + smart_link_id="numquam", ) assert response.is_closed is True @@ -979,7 +979,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="distinctio", + smart_link_id="numquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="quis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="quis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="quis", ) assert response.is_closed is True @@ -1031,7 +1031,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="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 770481c5..46f2d52f 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": "ysx", - "tags": ["znbteuttq"], + "search": "cksrfbjohbitersehrmm", + "tags": ["doki"], }, 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": "jxnxrnnejasckqtipzirttvv", - "tags": ["idrabsegnjqvbktjjgztbn"], + "search": "lsogaoqkqrqooejbmxwkxphap", + "tags": ["mnudefztmvyulfjkbriylrf"], }, 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": "jxcfcimzfskevcxeb", - "tags": ["urtjsckrefgamxjrnspbbmkp"], + "include_smart_links": False, + "search": "g", + "tags": ["tvymppfcvzrioabdk"], }, 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": "zpraobliwvkgfmtcfdg", - "tags": ["h"], + "include_smart_links": True, + "search": "cftdgyxrpxboxrvfgfzwgp", + "tags": ["hrtgziujevem"], }, 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": "ysx", - "tags": ["znbteuttq"], + "search": "cksrfbjohbitersehrmm", + "tags": ["doki"], }, 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": "jxnxrnnejasckqtipzirttvv", - "tags": ["idrabsegnjqvbktjjgztbn"], + "search": "lsogaoqkqrqooejbmxwkxphap", + "tags": ["mnudefztmvyulfjkbriylrf"], }, 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": "jxcfcimzfskevcxeb", - "tags": ["urtjsckrefgamxjrnspbbmkp"], + "include_smart_links": False, + "search": "g", + "tags": ["tvymppfcvzrioabdk"], }, 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": "zpraobliwvkgfmtcfdg", - "tags": ["h"], + "include_smart_links": True, + "search": "cftdgyxrpxboxrvfgfzwgp", + "tags": ["hrtgziujevem"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index be2cf188..c7d19b02 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="dolor", + tracking_link_id="vitae", 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="dolor", + tracking_link_id="vitae", 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="dolor", + tracking_link_id="vitae", 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="dolor", + tracking_link_id="vitae", 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="dolor", + tracking_link_id="vitae", 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="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="dolor", + tracking_link_id="vitae", 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="dolor", + tracking_link_id="vitae", 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="dolor", + tracking_link_id="vitae", 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="dolor", + tracking_link_id="vitae", 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="dolor", + tracking_link_id="vitae", 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="aut", + 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="aut", + 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="aut", + 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="aut", + 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="aut", + tracking_link_id="consequatur", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 8186a825..40f0e08e 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="sed", + trial_link_id="libero", 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="sed", + trial_link_id="libero", 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="sed", + trial_link_id="libero", 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="sed", + trial_link_id="libero", 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="sed", + trial_link_id="libero", 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="sed", + trial_link_id="libero", 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="sed", + trial_link_id="libero", 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="sed", + trial_link_id="libero", 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="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="et", + 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="et", + 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="et", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="ipsa", + trial_link_id="itaque", 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="itaque", 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="itaque", 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="itaque", 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="itaque", 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="sed", + trial_link_id="libero", 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="sed", + trial_link_id="libero", 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="sed", + trial_link_id="libero", 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="sed", + trial_link_id="libero", 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="sed", + trial_link_id="libero", 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="sed", + trial_link_id="libero", 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="sed", + trial_link_id="libero", 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="sed", + trial_link_id="libero", 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="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="et", + 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="et", + 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="et", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="ipsa", + trial_link_id="itaque", 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="itaque", 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="itaque", 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="itaque", 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="itaque", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index db850a0f..dc4d14f8 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="napxhofmbngxgehkead", + name="lgtzlknyaqdualbphbbvjsc", ) 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="napxhofmbngxgehkead", + name="lgtzlknyaqdualbphbbvjsc", ) 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="napxhofmbngxgehkead", + name="lgtzlknyaqdualbphbbvjsc", ) 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="napxhofmbngxgehkead", + name="lgtzlknyaqdualbphbbvjsc", ) @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="napxhofmbngxgehkead", + name="lgtzlknyaqdualbphbbvjsc", ) 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="napxhofmbngxgehkead", + name="lgtzlknyaqdualbphbbvjsc", ) 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="napxhofmbngxgehkead", + name="lgtzlknyaqdualbphbbvjsc", ) 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="napxhofmbngxgehkead", + name="lgtzlknyaqdualbphbbvjsc", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 71db779cabb357927c8f79cb8f0fcd9692b30ae0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 17:12:36 +0000 Subject: [PATCH 159/249] 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 | 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 | 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 +-- 17 files changed, 270 insertions(+), 270 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1b3e4032..a2e05679 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3ba30d96f1276dfa96866091f03f2648fe2567da747121a4102e705242f81c97.yml -openapi_spec_hash: 428f92a8457a26c9c5b5a54ad7258ea9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b0881e4e39fd4846c30b469a75a965ad46313b2b9e0c8b777efbd6331792193a.yml +openapi_spec_hash: 3b45d2ff6143144238904ca5c4a2ee86 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index d4d9da5f..4d599036 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="minima", + message_id="alias", 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="minima", + message_id="alias", 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="minima", + message_id="alias", 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="minima", + message_id="alias", 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="minima", + message_id="alias", 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="minima", + message_id="alias", 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="minima", + message_id="alias", 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="minima", + message_id="alias", 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="minima", + message_id="alias", 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="minima", + message_id="alias", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index c1bc3094..3f828857 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="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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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 4785a9cf..5530d715 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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 a62ccbd3..7549791e 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 fc7b1635..2ced6cb5 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 08b0ea47..2ec3fbc6 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="qui", + path_story_id="illo", 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="qui", + path_story_id="illo", 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="qui", + path_story_id="illo", 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="qui", + path_story_id="illo", 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="qui", + story_id="illo", 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="qui", + story_id="illo", 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="qui", + story_id="illo", 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="qui", + story_id="illo", 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="qui", + path_story_id="illo", 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="qui", + path_story_id="illo", 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="qui", + path_story_id="illo", 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="qui", + path_story_id="illo", 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="qui", + story_id="illo", 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="qui", + story_id="illo", 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="qui", + story_id="illo", 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="qui", + story_id="illo", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index c6284bc1..7506d9b8 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( - "architecto", + "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( - "architecto", + "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( - "architecto", + "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( - "architecto", + "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( - "architecto", + "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( - "architecto", + "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 4ea819ea..432ae980 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="rerum", + auth_id="ipsam", + auth_type="raw_data", + cookies="magni", custom_proxy={ "host": "proxy.example.com", - "password": "-k`bp[J|T$", + "password": ">0jJAJYnM>", "port": 8080, - "username": "repellendus", + "username": "asperiores", }, - email="elouise54@example.org", - force_connect=True, - name="quae", - password=";Y^(*Dv~ 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="rerum", + auth_id="ipsam", + auth_type="raw_data", + cookies="magni", custom_proxy={ "host": "proxy.example.com", - "password": "-k`bp[J|T$", + "password": ">0jJAJYnM>", "port": 8080, - "username": "repellendus", + "username": "asperiores", }, - email="elouise54@example.org", - force_connect=True, - name="quae", - password=";Y^(*Dv~ 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="gb", ) 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="gb", ) 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 bea1ef2e..aaff3bff 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="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="tags", + 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 65694e23..bd4f6161 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 50958594..b4893d3a 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": ["odcls"]}, + filter={"tags": ["ahvryygmqdkhsfzwhtrcrcuk"]}, 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="omnis", + smart_link_id="tenetur", ) 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="omnis", + smart_link_id="tenetur", 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="omnis", + smart_link_id="tenetur", ) 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="omnis", + smart_link_id="tenetur", ) 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="hic", + smart_link_id="quis", ) 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="hic", + smart_link_id="quis", 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="hic", + smart_link_id="quis", ) 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="hic", + smart_link_id="quis", ) 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="voluptates", + smart_link_id="eius", ) 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="voluptates", + smart_link_id="eius", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="eius", ) assert response.is_closed is True @@ -359,7 +359,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="eius", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="laudantium", + smart_link_id="consequatur", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="laudantium", + smart_link_id="consequatur", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="laudantium", + smart_link_id="consequatur", ) assert response.is_closed is True @@ -412,7 +412,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="laudantium", + smart_link_id="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="numquam", + smart_link_id="sit", ) assert smart_link is None @@ -442,7 +442,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="numquam", + smart_link_id="sit", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="numquam", + smart_link_id="sit", ) assert response.is_closed is True @@ -465,7 +465,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="numquam", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="corrupti", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="corrupti", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="corrupti", ) assert response.is_closed is True @@ -517,7 +517,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="corrupti", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["odcls"]}, + filter={"tags": ["ahvryygmqdkhsfzwhtrcrcuk"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="omnis", + smart_link_id="tenetur", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="omnis", + smart_link_id="tenetur", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="omnis", + smart_link_id="tenetur", ) assert response.is_closed is True @@ -756,7 +756,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="omnis", + smart_link_id="tenetur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="hic", + smart_link_id="quis", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="hic", + smart_link_id="quis", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="hic", + smart_link_id="quis", ) assert response.is_closed is True @@ -814,7 +814,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="hic", + smart_link_id="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="eius", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="eius", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="eius", ) assert response.is_closed is True @@ -873,7 +873,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="eius", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="laudantium", + smart_link_id="consequatur", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="laudantium", + smart_link_id="consequatur", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="laudantium", + smart_link_id="consequatur", ) assert response.is_closed is True @@ -926,7 +926,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="laudantium", + smart_link_id="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="numquam", + smart_link_id="sit", ) assert smart_link is None @@ -956,7 +956,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="numquam", + smart_link_id="sit", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="numquam", + smart_link_id="sit", ) assert response.is_closed is True @@ -979,7 +979,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="numquam", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="corrupti", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="corrupti", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="corrupti", ) assert response.is_closed is True @@ -1031,7 +1031,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="corrupti", ) 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 46f2d52f..e0e17abc 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": "cksrfbjohbitersehrmm", - "tags": ["doki"], + "search": "n", + "tags": ["jenstofpavmffucofach"], }, 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": "lsogaoqkqrqooejbmxwkxphap", - "tags": ["mnudefztmvyulfjkbriylrf"], + "search": "ellvsmipbvxvkbycrxxv", + "tags": ["khecezrxmgbrodnwkd"], }, 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": "g", - "tags": ["tvymppfcvzrioabdk"], + "search": "spwmtgrvkcyvbokd", + "tags": ["sknpo"], }, 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": "cftdgyxrpxboxrvfgfzwgp", - "tags": ["hrtgziujevem"], + "search": "lmchuoie", + "tags": ["zxpnnfmlhmeenpuiqlg"], }, 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": "cksrfbjohbitersehrmm", - "tags": ["doki"], + "search": "n", + "tags": ["jenstofpavmffucofach"], }, 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": "lsogaoqkqrqooejbmxwkxphap", - "tags": ["mnudefztmvyulfjkbriylrf"], + "search": "ellvsmipbvxvkbycrxxv", + "tags": ["khecezrxmgbrodnwkd"], }, 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": "g", - "tags": ["tvymppfcvzrioabdk"], + "search": "spwmtgrvkcyvbokd", + "tags": ["sknpo"], }, 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": "cftdgyxrpxboxrvfgfzwgp", - "tags": ["hrtgziujevem"], + "search": "lmchuoie", + "tags": ["zxpnnfmlhmeenpuiqlg"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index c7d19b02..8f87c2d6 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="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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="vitae", + tracking_link_id="asperiores", 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="vitae", + tracking_link_id="asperiores", 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="vitae", + tracking_link_id="asperiores", 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="vitae", + tracking_link_id="asperiores", 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="vitae", + tracking_link_id="asperiores", 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="sequi", 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="sequi", 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="sequi", 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="sequi", 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="sequi", 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="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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="vitae", + tracking_link_id="asperiores", 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="vitae", + tracking_link_id="asperiores", 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="vitae", + tracking_link_id="asperiores", 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="vitae", + tracking_link_id="asperiores", 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="vitae", + tracking_link_id="asperiores", 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="sequi", 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="sequi", 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="sequi", 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="sequi", 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="sequi", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 40f0e08e..5ac050d2 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="libero", + trial_link_id="sed", 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="libero", + trial_link_id="sed", 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="libero", + trial_link_id="sed", 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="libero", + trial_link_id="sed", 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="libero", + trial_link_id="sed", 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="libero", + trial_link_id="sed", 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="libero", + trial_link_id="sed", 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="libero", + trial_link_id="sed", 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="perspiciatis", + trial_link_id="aperiam", 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="aperiam", 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="aperiam", 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="aperiam", 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="aperiam", 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="itaque", + 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="itaque", + 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="itaque", + 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="itaque", + 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="itaque", + 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="libero", + trial_link_id="sed", 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="libero", + trial_link_id="sed", 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="libero", + trial_link_id="sed", 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="libero", + trial_link_id="sed", 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="libero", + trial_link_id="sed", 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="libero", + trial_link_id="sed", 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="libero", + trial_link_id="sed", 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="libero", + trial_link_id="sed", 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="perspiciatis", + trial_link_id="aperiam", 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="aperiam", 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="aperiam", 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="aperiam", 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="aperiam", 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="itaque", + 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="itaque", + 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="itaque", + 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="itaque", + 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="itaque", + trial_link_id="voluptatem", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index dc4d14f8..99b5a2b0 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="lgtzlknyaqdualbphbbvjsc", + name="yujeziqxylahfzypdppgq", ) 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="lgtzlknyaqdualbphbbvjsc", + name="yujeziqxylahfzypdppgq", ) 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="lgtzlknyaqdualbphbbvjsc", + name="yujeziqxylahfzypdppgq", ) 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="lgtzlknyaqdualbphbbvjsc", + name="yujeziqxylahfzypdppgq", ) @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="lgtzlknyaqdualbphbbvjsc", + name="yujeziqxylahfzypdppgq", ) 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="lgtzlknyaqdualbphbbvjsc", + name="yujeziqxylahfzypdppgq", ) 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="lgtzlknyaqdualbphbbvjsc", + name="yujeziqxylahfzypdppgq", ) 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="lgtzlknyaqdualbphbbvjsc", + name="yujeziqxylahfzypdppgq", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 02527aa87aeb05514a9965075390b64cb66c09fb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 18:12:37 +0000 Subject: [PATCH 160/249] 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 | 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 +-- 15 files changed, 260 insertions(+), 260 deletions(-) diff --git a/.stats.yml b/.stats.yml index a2e05679..43fa54e4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b0881e4e39fd4846c30b469a75a965ad46313b2b9e0c8b777efbd6331792193a.yml -openapi_spec_hash: 3b45d2ff6143144238904ca5c4a2ee86 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-11207d3e495c1f7a8737309c2a8c2e0ab11b7e07a76c8ff14a06d1860f09e8b1.yml +openapi_spec_hash: b708bddabd5527e01b859b69d3bd12da config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 4d599036..21b80250 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="alias", + message_id="dolorem", 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="alias", + message_id="dolorem", 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="alias", + message_id="dolorem", 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="alias", + message_id="dolorem", 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="alias", + message_id="dolorem", 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="alias", + message_id="dolorem", 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="alias", + message_id="dolorem", 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="alias", + message_id="dolorem", 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="alias", + message_id="dolorem", 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="alias", + message_id="dolorem", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 3f828857..283ca8bb 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 5530d715..efb0fc7f 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="dolor", + post_id="iste", 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="dolor", + post_id="iste", 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="dolor", + post_id="iste", 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="dolor", + post_id="iste", 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="dolor", + post_id="iste", 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="dolor", + post_id="iste", 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="dolor", + post_id="iste", 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="dolor", + post_id="iste", 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="dolor", + post_id="iste", 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="dolor", + post_id="iste", 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="dolor", + post_id="iste", 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="dolor", + post_id="iste", 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="dolor", + post_id="iste", 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="dolor", + post_id="iste", 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="dolor", + post_id="iste", 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="dolor", + post_id="iste", 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="dolor", + post_id="iste", 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="dolor", + post_id="iste", 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="dolor", + post_id="iste", 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="dolor", + post_id="iste", 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 7549791e..444937ba 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/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 2ec3fbc6..1d8e7702 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="illo", + path_story_id="consequuntur", 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="illo", + path_story_id="consequuntur", 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="illo", + path_story_id="consequuntur", 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="illo", + path_story_id="consequuntur", 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="illo", + story_id="consequuntur", 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="illo", + story_id="consequuntur", 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="illo", + story_id="consequuntur", 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="illo", + story_id="consequuntur", 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="illo", + path_story_id="consequuntur", 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="illo", + path_story_id="consequuntur", 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="illo", + path_story_id="consequuntur", 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="illo", + path_story_id="consequuntur", 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="illo", + story_id="consequuntur", 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="illo", + story_id="consequuntur", 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="illo", + story_id="consequuntur", 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="illo", + story_id="consequuntur", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 7506d9b8..d42d8179 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", + "eum", ) 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", + "eum", ) 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", + "eum", ) 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", + "eum", ) 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", + "eum", ) 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", + "eum", ) 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 432ae980..20113f38 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="ipsam", - auth_type="raw_data", - cookies="magni", + auth_id="enim", + auth_type="email_password", + cookies="reprehenderit", custom_proxy={ "host": "proxy.example.com", - "password": ">0jJAJYnM>", + "password": "-TceH0$!c;QB{>", "port": 8080, - "username": "asperiores", + "username": "et", }, - email="xkshlerin@example.net", - force_connect=False, - name="harum", - password="3;~61}=EmaktNqt", + email="assunta.jacobs@example.org", + force_connect=True, + name="officia", + password="&oa@N<:!#+O.j|#o", proxy_country="uk", - user_agent="ut", - xbc="sed", + user_agent="pariatur", + 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="ipsam", - auth_type="raw_data", - cookies="magni", + auth_id="enim", + auth_type="email_password", + cookies="reprehenderit", custom_proxy={ "host": "proxy.example.com", - "password": ">0jJAJYnM>", + "password": "-TceH0$!c;QB{>", "port": 8080, - "username": "asperiores", + "username": "et", }, - email="xkshlerin@example.net", - force_connect=False, - name="harum", - password="3;~61}=EmaktNqt", + email="assunta.jacobs@example.org", + force_connect=True, + name="officia", + password="&oa@N<:!#+O.j|#o", proxy_country="uk", - user_agent="ut", - xbc="sed", + user_agent="pariatur", + xbc="consequatur", ) 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 0d035d3b..3597ede6 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="gb", + 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="gb", + 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 aaff3bff..4d3e426f 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="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="promotions", + 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 b4893d3a..121c4c15 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": ["ahvryygmqdkhsfzwhtrcrcuk"]}, + filter={"tags": ["tzwhfszowgmesqhdxx"]}, 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="tenetur", + smart_link_id="itaque", ) 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="tenetur", + smart_link_id="itaque", 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="tenetur", + smart_link_id="itaque", ) 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="tenetur", + smart_link_id="itaque", ) 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="quis", + smart_link_id="dolores", ) 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="quis", + smart_link_id="dolores", 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="quis", + smart_link_id="dolores", ) 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="quis", + smart_link_id="dolores", ) 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="eius", + smart_link_id="ad", ) 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="eius", + smart_link_id="ad", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="eius", + smart_link_id="ad", ) assert response.is_closed is True @@ -359,7 +359,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="eius", + smart_link_id="ad", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="consequatur", + smart_link_id="sunt", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="consequatur", + smart_link_id="sunt", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="consequatur", + smart_link_id="sunt", ) assert response.is_closed is True @@ -412,7 +412,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="consequatur", + smart_link_id="sunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="sit", + smart_link_id="at", ) assert smart_link is None @@ -442,7 +442,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="sit", + smart_link_id="at", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="sit", + smart_link_id="at", ) assert response.is_closed is True @@ -465,7 +465,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="sit", + smart_link_id="at", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="corrupti", + smart_link_id="omnis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="corrupti", + smart_link_id="omnis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="corrupti", + smart_link_id="omnis", ) assert response.is_closed is True @@ -517,7 +517,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="corrupti", + smart_link_id="omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["ahvryygmqdkhsfzwhtrcrcuk"]}, + filter={"tags": ["tzwhfszowgmesqhdxx"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="tenetur", + smart_link_id="itaque", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="tenetur", + smart_link_id="itaque", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="tenetur", + smart_link_id="itaque", ) assert response.is_closed is True @@ -756,7 +756,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="tenetur", + smart_link_id="itaque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="dolores", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="dolores", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="dolores", ) assert response.is_closed is True @@ -814,7 +814,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="dolores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="eius", + smart_link_id="ad", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="eius", + smart_link_id="ad", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="eius", + smart_link_id="ad", ) assert response.is_closed is True @@ -873,7 +873,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="eius", + smart_link_id="ad", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="consequatur", + smart_link_id="sunt", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="consequatur", + smart_link_id="sunt", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="consequatur", + smart_link_id="sunt", ) assert response.is_closed is True @@ -926,7 +926,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="consequatur", + smart_link_id="sunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="sit", + smart_link_id="at", ) assert smart_link is None @@ -956,7 +956,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="sit", + smart_link_id="at", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="sit", + smart_link_id="at", ) assert response.is_closed is True @@ -979,7 +979,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="sit", + smart_link_id="at", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="corrupti", + smart_link_id="omnis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="corrupti", + smart_link_id="omnis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="corrupti", + smart_link_id="omnis", ) assert response.is_closed is True @@ -1031,7 +1031,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="corrupti", + 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 e0e17abc..384b59fd 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": ["jenstofpavmffucofach"], + "search": "onqn", + "tags": ["tkwuesysvdtki"], }, 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": "ellvsmipbvxvkbycrxxv", - "tags": ["khecezrxmgbrodnwkd"], + "search": "mumpbgocgitsmgtiblespi", + "tags": ["wujmiqmhfiusnzjyavnlgbruy"], }, 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": "spwmtgrvkcyvbokd", - "tags": ["sknpo"], + "include_smart_links": True, + "search": "veohuqjerehtcoavx", + "tags": ["ayrtrhybofaokzwhiqzqftyeg"], }, 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": "lmchuoie", - "tags": ["zxpnnfmlhmeenpuiqlg"], + "search": "v", + "tags": ["t"], }, 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": ["jenstofpavmffucofach"], + "search": "onqn", + "tags": ["tkwuesysvdtki"], }, 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": "ellvsmipbvxvkbycrxxv", - "tags": ["khecezrxmgbrodnwkd"], + "search": "mumpbgocgitsmgtiblespi", + "tags": ["wujmiqmhfiusnzjyavnlgbruy"], }, 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": "spwmtgrvkcyvbokd", - "tags": ["sknpo"], + "include_smart_links": True, + "search": "veohuqjerehtcoavx", + "tags": ["ayrtrhybofaokzwhiqzqftyeg"], }, 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": "lmchuoie", - "tags": ["zxpnnfmlhmeenpuiqlg"], + "search": "v", + "tags": ["t"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 8f87c2d6..f7ce9392 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="asperiores", + tracking_link_id="sequi", 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="asperiores", + tracking_link_id="sequi", 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="asperiores", + tracking_link_id="sequi", 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="asperiores", + tracking_link_id="sequi", 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="asperiores", + tracking_link_id="sequi", 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="sequi", + tracking_link_id="rerum", 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="sequi", + tracking_link_id="rerum", 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="sequi", + tracking_link_id="rerum", 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="sequi", + tracking_link_id="rerum", 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="sequi", + tracking_link_id="rerum", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="asperiores", + tracking_link_id="sequi", 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="asperiores", + tracking_link_id="sequi", 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="asperiores", + tracking_link_id="sequi", 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="asperiores", + tracking_link_id="sequi", 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="asperiores", + tracking_link_id="sequi", 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="sequi", + tracking_link_id="rerum", 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="sequi", + tracking_link_id="rerum", 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="sequi", + tracking_link_id="rerum", 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="sequi", + tracking_link_id="rerum", 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="sequi", + tracking_link_id="rerum", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 5ac050d2..1e977e3b 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="sed", + trial_link_id="ea", 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="sed", + trial_link_id="ea", 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="sed", + trial_link_id="ea", 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="sed", + trial_link_id="ea", 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="sed", + trial_link_id="ea", 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="sed", + trial_link_id="ea", 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="sed", + trial_link_id="ea", 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="sed", + trial_link_id="ea", 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="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="illum", + 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="illum", + 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="illum", + 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="aperiam", + 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="aperiam", + 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="aperiam", + 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="aperiam", + 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="aperiam", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="sed", + trial_link_id="ea", 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="sed", + trial_link_id="ea", 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="sed", + trial_link_id="ea", 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="sed", + trial_link_id="ea", 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="sed", + trial_link_id="ea", 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="sed", + trial_link_id="ea", 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="sed", + trial_link_id="ea", 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="sed", + trial_link_id="ea", 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="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="illum", + 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="illum", + 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="illum", + 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="aperiam", + 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="aperiam", + 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="aperiam", + 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="aperiam", + 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="aperiam", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + trial_link_id="dolorem", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 99b5a2b0..c97c61ad 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="yujeziqxylahfzypdppgq", + name="sx", ) 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="yujeziqxylahfzypdppgq", + name="sx", ) 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="yujeziqxylahfzypdppgq", + name="sx", ) 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="yujeziqxylahfzypdppgq", + name="sx", ) @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="yujeziqxylahfzypdppgq", + name="sx", ) 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="yujeziqxylahfzypdppgq", + name="sx", ) 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="yujeziqxylahfzypdppgq", + name="sx", ) 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="yujeziqxylahfzypdppgq", + name="sx", ) @pytest.mark.skip(reason="Mock server tests are disabled") From bbcf21dddce7793a49c619dfb4d0dbcddee3d932 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 21:12:32 +0000 Subject: [PATCH 161/249] 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_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 +-- 16 files changed, 260 insertions(+), 260 deletions(-) diff --git a/.stats.yml b/.stats.yml index 43fa54e4..8051ce9e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-11207d3e495c1f7a8737309c2a8c2e0ab11b7e07a76c8ff14a06d1860f09e8b1.yml -openapi_spec_hash: b708bddabd5527e01b859b69d3bd12da +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3c5bae9f14fd34d34ecc2028da321e779ad27f439a3fed07b162ac11ee105154.yml +openapi_spec_hash: ad8a68fc34bd7ef7d0c9a0cbd3e2fb5c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 21b80250..06d6f83d 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="dolorem", + message_id="natus", 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="dolorem", + message_id="natus", 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="dolorem", + message_id="natus", 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="dolorem", + message_id="natus", 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="dolorem", + message_id="natus", 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="dolorem", + message_id="natus", 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="dolorem", + message_id="natus", 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="dolorem", + message_id="natus", 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="dolorem", + message_id="natus", 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="dolorem", + message_id="natus", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 283ca8bb..c84c04ec 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="qui", + list_id="quae", 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="qui", + list_id="quae", 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="qui", + list_id="quae", 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="qui", + list_id="quae", 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="qui", + list_id="quae", 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="qui", + list_id="quae", 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="qui", + list_id="quae", 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="qui", + list_id="quae", 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="qui", + list_id="quae", 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="qui", + list_id="quae", 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="qui", + list_id="quae", 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="qui", + list_id="quae", 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="qui", + list_id="quae", 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="qui", + list_id="quae", 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="qui", + list_id="quae", 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="qui", + list_id="quae", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index efb0fc7f..0d70ffc7 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + 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="iste", + post_id="aut", 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 444937ba..a62ccbd3 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/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 1d8e7702..46294895 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="consequuntur", + path_story_id="sed", 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="consequuntur", + path_story_id="sed", 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="consequuntur", + path_story_id="sed", 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="consequuntur", + path_story_id="sed", 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="consequuntur", + story_id="sed", 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="consequuntur", + story_id="sed", 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="consequuntur", + story_id="sed", 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="consequuntur", + story_id="sed", 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="consequuntur", + path_story_id="sed", 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="consequuntur", + path_story_id="sed", 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="consequuntur", + path_story_id="sed", 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="consequuntur", + path_story_id="sed", 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="consequuntur", + story_id="sed", 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="consequuntur", + story_id="sed", 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="consequuntur", + story_id="sed", 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="consequuntur", + story_id="sed", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index d42d8179..69631938 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( - "eum", + "cupiditate", ) 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( - "eum", + "cupiditate", ) 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( - "eum", + "cupiditate", ) 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( - "eum", + "cupiditate", ) 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( - "eum", + "cupiditate", ) 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( - "eum", + "cupiditate", ) 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 20113f38..151682a1 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="enim", + auth_id="at", auth_type="email_password", - cookies="reprehenderit", + cookies="odit", custom_proxy={ "host": "proxy.example.com", - "password": "-TceH0$!c;QB{>", + "password": "m~B]=nI=tc", "port": 8080, - "username": "et", + "username": "rerum", }, - email="assunta.jacobs@example.org", + email="kutch.gregoria@example.net", force_connect=True, - name="officia", - password="&oa@N<:!#+O.j|#o", - proxy_country="uk", - user_agent="pariatur", - xbc="consequatur", + name="rem", + password='"w]7PbtBu2-', + proxy_country="us", + user_agent="quo", + xbc="sunt", ) 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="enim", + auth_id="at", auth_type="email_password", - cookies="reprehenderit", + cookies="odit", custom_proxy={ "host": "proxy.example.com", - "password": "-TceH0$!c;QB{>", + "password": "m~B]=nI=tc", "port": 8080, - "username": "et", + "username": "rerum", }, - email="assunta.jacobs@example.org", + email="kutch.gregoria@example.net", force_connect=True, - name="officia", - password="&oa@N<:!#+O.j|#o", - proxy_country="uk", - user_agent="pariatur", - xbc="consequatur", + name="rem", + password='"w]7PbtBu2-', + proxy_country="us", + user_agent="quo", + xbc="sunt", ) 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 3597ede6..0d035d3b 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="gb", ) 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="gb", ) 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 4d3e426f..280e3de9 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_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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 121c4c15..d5714fc1 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": ["tzwhfszowgmesqhdxx"]}, + filter={"tags": ["kvpjgisitfxxycuf"]}, 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="itaque", + smart_link_id="non", ) 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="itaque", + smart_link_id="non", 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="itaque", + smart_link_id="non", ) 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="itaque", + smart_link_id="non", ) 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="dolores", + smart_link_id="ad", ) 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="dolores", + smart_link_id="ad", 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="dolores", + smart_link_id="ad", ) 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="dolores", + smart_link_id="ad", ) 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="ad", + smart_link_id="voluptatem", ) 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="ad", + smart_link_id="voluptatem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="ad", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -359,7 +359,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="ad", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="maxime", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="maxime", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="maxime", ) assert response.is_closed is True @@ -412,7 +412,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="maxime", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="at", + smart_link_id="ipsa", ) assert smart_link is None @@ -442,7 +442,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="at", + smart_link_id="ipsa", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="at", + smart_link_id="ipsa", ) assert response.is_closed is True @@ -465,7 +465,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="at", + smart_link_id="ipsa", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="debitis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="debitis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="debitis", ) assert response.is_closed is True @@ -517,7 +517,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="debitis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["tzwhfszowgmesqhdxx"]}, + filter={"tags": ["kvpjgisitfxxycuf"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="non", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="non", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="non", ) assert response.is_closed is True @@ -756,7 +756,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="non", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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"]) @@ -786,7 +786,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", @@ -802,7 +802,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 @@ -814,7 +814,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" @@ -836,7 +836,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="ad", + smart_link_id="voluptatem", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="ad", + smart_link_id="voluptatem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="ad", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -873,7 +873,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="ad", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="maxime", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="maxime", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="maxime", ) assert response.is_closed is True @@ -926,7 +926,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="maxime", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="at", + smart_link_id="ipsa", ) assert smart_link is None @@ -956,7 +956,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="at", + smart_link_id="ipsa", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="at", + smart_link_id="ipsa", ) assert response.is_closed is True @@ -979,7 +979,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="at", + smart_link_id="ipsa", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="debitis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="debitis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="debitis", ) assert response.is_closed is True @@ -1031,7 +1031,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="debitis", ) 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 384b59fd..729b8dc2 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": "onqn", - "tags": ["tkwuesysvdtki"], + "search": "k", + "tags": ["fvgcttvfukfc"], }, 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": "mumpbgocgitsmgtiblespi", - "tags": ["wujmiqmhfiusnzjyavnlgbruy"], + "search": "almrcjeseyhpspe", + "tags": ["nuiytirpzf"], }, 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": "veohuqjerehtcoavx", - "tags": ["ayrtrhybofaokzwhiqzqftyeg"], + "search": "cnflizgsfhoknl", + "tags": ["mduqrwwzexriflfsyygcjhozf"], }, 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": "v", - "tags": ["t"], + "include_smart_links": False, + "search": "btzwrttmhduosvo", + "tags": ["gqfgbwopksslomdyepamwngbe"], }, 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": "onqn", - "tags": ["tkwuesysvdtki"], + "search": "k", + "tags": ["fvgcttvfukfc"], }, 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": "mumpbgocgitsmgtiblespi", - "tags": ["wujmiqmhfiusnzjyavnlgbruy"], + "search": "almrcjeseyhpspe", + "tags": ["nuiytirpzf"], }, 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": "veohuqjerehtcoavx", - "tags": ["ayrtrhybofaokzwhiqzqftyeg"], + "search": "cnflizgsfhoknl", + "tags": ["mduqrwwzexriflfsyygcjhozf"], }, 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": "v", - "tags": ["t"], + "include_smart_links": False, + "search": "btzwrttmhduosvo", + "tags": ["gqfgbwopksslomdyepamwngbe"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index f7ce9392..d54ba98b 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="aut", + tracking_link_id="tempore", 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="aut", + tracking_link_id="tempore", 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="aut", + tracking_link_id="tempore", 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="aut", + tracking_link_id="tempore", 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="aut", + tracking_link_id="tempore", 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="aut", + tracking_link_id="tempore", 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="aut", + tracking_link_id="tempore", 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="aut", + tracking_link_id="tempore", 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="rerum", + tracking_link_id="necessitatibus", 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="rerum", + tracking_link_id="necessitatibus", 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="rerum", + tracking_link_id="necessitatibus", 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="rerum", + tracking_link_id="necessitatibus", 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="rerum", + tracking_link_id="necessitatibus", 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="aut", + tracking_link_id="tempore", 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="aut", + tracking_link_id="tempore", 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="aut", + tracking_link_id="tempore", 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="aut", + tracking_link_id="tempore", 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="aut", + tracking_link_id="tempore", 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="aut", + tracking_link_id="tempore", 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="aut", + tracking_link_id="tempore", 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="aut", + tracking_link_id="tempore", 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="rerum", + tracking_link_id="necessitatibus", 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="rerum", + tracking_link_id="necessitatibus", 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="rerum", + tracking_link_id="necessitatibus", 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="rerum", + tracking_link_id="necessitatibus", 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="rerum", + tracking_link_id="necessitatibus", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 1e977e3b..72cd8d12 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="et", + 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="et", + 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="et", + 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="et", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="dolorem", + trial_link_id="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="et", + 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="et", + 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="et", + 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="et", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="dolorem", + trial_link_id="qui", 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="qui", 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="qui", 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="qui", 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="qui", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index c97c61ad..e3b97bd7 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="sx", + name="o", ) 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="sx", + name="o", ) 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="sx", + name="o", ) 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="sx", + name="o", ) @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="sx", + name="o", ) 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="sx", + name="o", ) 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="sx", + name="o", ) 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="sx", + name="o", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 2465884b3bc9bc3474e496fc13e3585c2c42a7f6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 22:12:33 +0000 Subject: [PATCH 162/249] 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 | 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 +-- 18 files changed, 272 insertions(+), 272 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8051ce9e..8d751685 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3c5bae9f14fd34d34ecc2028da321e779ad27f439a3fed07b162ac11ee105154.yml -openapi_spec_hash: ad8a68fc34bd7ef7d0c9a0cbd3e2fb5c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f92ae4fe2cbe0e40a4203678b0e818719b08ce7a689cef395885b634d2296918.yml +openapi_spec_hash: fea736e41949abdeb6a786244046ad8a config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 06d6f83d..9927007c 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="natus", + message_id="soluta", 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="natus", + message_id="soluta", 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="natus", + message_id="soluta", 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="natus", + message_id="soluta", 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="natus", + message_id="soluta", 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="natus", + message_id="soluta", 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="natus", + message_id="soluta", 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="natus", + message_id="soluta", 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="natus", + message_id="soluta", 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="natus", + message_id="soluta", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index c84c04ec..00ee2c19 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="quae", + list_id="accusantium", 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="quae", + list_id="accusantium", 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="quae", + list_id="accusantium", 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="quae", + list_id="accusantium", 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="quae", + list_id="accusantium", 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="quae", + list_id="accusantium", 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="quae", + list_id="accusantium", 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="quae", + list_id="accusantium", 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="quae", + list_id="accusantium", 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="quae", + list_id="accusantium", 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="quae", + list_id="accusantium", 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="quae", + list_id="accusantium", 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="quae", + list_id="accusantium", 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="quae", + list_id="accusantium", 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="quae", + list_id="accusantium", 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="quae", + list_id="accusantium", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 0d70ffc7..efb0fc7f 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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="iste", 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 a62ccbd3..7549791e 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 2ced6cb5..fc7b1635 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 9664075f..544df889 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 46294895..506c2ed9 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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="sed", + 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="sed", + story_id="et", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 69631938..6203e982 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( - "cupiditate", + "autem", ) 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( - "cupiditate", + "autem", ) 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( - "cupiditate", + "autem", ) 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( - "cupiditate", + "autem", ) 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( - "cupiditate", + "autem", ) 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( - "cupiditate", + "autem", ) 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 151682a1..d1c37a78 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="at", - auth_type="email_password", - cookies="odit", + auth_id="quod", + auth_type="raw_data", + cookies="modi", custom_proxy={ "host": "proxy.example.com", - "password": "m~B]=nI=tc", + "password": "`8P79+pJzJcg\\Y~0", "port": 8080, - "username": "rerum", + "username": "et", }, - email="kutch.gregoria@example.net", - force_connect=True, - name="rem", - password='"w]7PbtBu2-', - proxy_country="us", - user_agent="quo", - xbc="sunt", + email="hwilliamson@example.org", + force_connect=False, + name="perferendis", + password="#p0j9{z}Hhf7lCM]", + proxy_country="gb", + user_agent="pariatur", + xbc="autem", ) 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="at", - auth_type="email_password", - cookies="odit", + auth_id="quod", + auth_type="raw_data", + cookies="modi", custom_proxy={ "host": "proxy.example.com", - "password": "m~B]=nI=tc", + "password": "`8P79+pJzJcg\\Y~0", "port": 8080, - "username": "rerum", + "username": "et", }, - email="kutch.gregoria@example.net", - force_connect=True, - name="rem", - password='"w]7PbtBu2-', - proxy_country="us", - user_agent="quo", - xbc="sunt", + email="hwilliamson@example.org", + force_connect=False, + name="perferendis", + password="#p0j9{z}Hhf7lCM]", + proxy_country="gb", + user_agent="pariatur", + xbc="autem", ) 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 0d035d3b..3597ede6 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="gb", + 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="gb", + 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 280e3de9..583d8ad4 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="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="comments", + type="all", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e23..bd4f6161 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 d5714fc1..ebb70e6d 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": ["kvpjgisitfxxycuf"]}, + filter={"tags": ["qpnquggdswhvjayqppg"]}, 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="non", + smart_link_id="doloremque", ) 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="non", + smart_link_id="doloremque", 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="non", + smart_link_id="doloremque", ) 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="non", + smart_link_id="doloremque", ) 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="ad", + smart_link_id="quae", ) 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="ad", + smart_link_id="quae", 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="ad", + smart_link_id="quae", ) 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="ad", + smart_link_id="quae", ) 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="voluptatem", + smart_link_id="illo", ) 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="voluptatem", + smart_link_id="illo", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="voluptatem", + smart_link_id="illo", ) assert response.is_closed is True @@ -359,7 +359,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="voluptatem", + smart_link_id="illo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="maxime", + smart_link_id="id", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="maxime", + smart_link_id="id", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="maxime", + smart_link_id="id", ) assert response.is_closed is True @@ -412,7 +412,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="maxime", + smart_link_id="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="ipsa", + smart_link_id="iusto", ) assert smart_link is None @@ -442,7 +442,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="ipsa", + smart_link_id="iusto", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="ipsa", + smart_link_id="iusto", ) assert response.is_closed is True @@ -465,7 +465,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="ipsa", + smart_link_id="iusto", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="debitis", + smart_link_id="illum", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="debitis", + smart_link_id="illum", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="debitis", + smart_link_id="illum", ) assert response.is_closed is True @@ -517,7 +517,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="debitis", + smart_link_id="illum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["kvpjgisitfxxycuf"]}, + filter={"tags": ["qpnquggdswhvjayqppg"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="non", + smart_link_id="doloremque", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="non", + smart_link_id="doloremque", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="non", + smart_link_id="doloremque", ) assert response.is_closed is True @@ -756,7 +756,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="non", + smart_link_id="doloremque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="quae", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="quae", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="quae", ) assert response.is_closed is True @@ -814,7 +814,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="quae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="voluptatem", + smart_link_id="illo", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="voluptatem", + smart_link_id="illo", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="voluptatem", + smart_link_id="illo", ) assert response.is_closed is True @@ -873,7 +873,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="voluptatem", + smart_link_id="illo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="maxime", + smart_link_id="id", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="maxime", + smart_link_id="id", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="maxime", + smart_link_id="id", ) assert response.is_closed is True @@ -926,7 +926,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="maxime", + smart_link_id="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="ipsa", + smart_link_id="iusto", ) assert smart_link is None @@ -956,7 +956,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="ipsa", + smart_link_id="iusto", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="ipsa", + smart_link_id="iusto", ) assert response.is_closed is True @@ -979,7 +979,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="ipsa", + smart_link_id="iusto", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="debitis", + smart_link_id="illum", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="debitis", + smart_link_id="illum", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="debitis", + smart_link_id="illum", ) assert response.is_closed is True @@ -1031,7 +1031,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="debitis", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index 729b8dc2..682afb22 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": "k", - "tags": ["fvgcttvfukfc"], + "search": "gcxqnn", + "tags": ["qghvlyldc"], }, 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": "almrcjeseyhpspe", - "tags": ["nuiytirpzf"], + "search": "b", + "tags": ["crhiykqcabynpuseoffhzkihw"], }, 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": "cnflizgsfhoknl", - "tags": ["mduqrwwzexriflfsyygcjhozf"], + "search": "rbqwkm", + "tags": ["vsvhbtnoabaoquikckbloygw"], }, 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": "btzwrttmhduosvo", - "tags": ["gqfgbwopksslomdyepamwngbe"], + "search": "rfex", + "tags": ["bbnwhtgtaqt"], }, 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": "k", - "tags": ["fvgcttvfukfc"], + "search": "gcxqnn", + "tags": ["qghvlyldc"], }, 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": "almrcjeseyhpspe", - "tags": ["nuiytirpzf"], + "search": "b", + "tags": ["crhiykqcabynpuseoffhzkihw"], }, 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": "cnflizgsfhoknl", - "tags": ["mduqrwwzexriflfsyygcjhozf"], + "search": "rbqwkm", + "tags": ["vsvhbtnoabaoquikckbloygw"], }, 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": "btzwrttmhduosvo", - "tags": ["gqfgbwopksslomdyepamwngbe"], + "search": "rfex", + "tags": ["bbnwhtgtaqt"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index d54ba98b..9796c82a 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="tempore", + 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="tempore", + 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="tempore", + 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="tempore", + 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="tempore", + 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="tempore", + 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="tempore", + 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="tempore", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="necessitatibus", + tracking_link_id="a", 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="necessitatibus", + tracking_link_id="a", 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="necessitatibus", + tracking_link_id="a", 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="necessitatibus", + tracking_link_id="a", 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="necessitatibus", + tracking_link_id="a", 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="tempore", + 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="tempore", + 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="tempore", + 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="tempore", + 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="tempore", + 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="tempore", + 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="tempore", + 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="tempore", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="necessitatibus", + tracking_link_id="a", 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="necessitatibus", + tracking_link_id="a", 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="necessitatibus", + tracking_link_id="a", 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="necessitatibus", + tracking_link_id="a", 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="necessitatibus", + tracking_link_id="a", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 72cd8d12..f655852c 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="qui", + trial_link_id="dignissimos", 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="qui", + trial_link_id="dignissimos", 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="qui", + trial_link_id="dignissimos", 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="qui", + trial_link_id="dignissimos", 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="qui", + trial_link_id="dignissimos", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="occaecati", 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="occaecati", 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="occaecati", 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="occaecati", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="qui", + trial_link_id="dignissimos", 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="qui", + trial_link_id="dignissimos", 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="qui", + trial_link_id="dignissimos", 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="qui", + trial_link_id="dignissimos", 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="qui", + trial_link_id="dignissimos", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index e3b97bd7..a8576780 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="o", + 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="o", + 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="o", + 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="o", + 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="o", + 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="o", + 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="o", + 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="o", + name="a", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 0b55736eca40e10bd1e7a690e686fd157f9cba47 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2026 02:00:47 +0000 Subject: [PATCH 163/249] fix(internal): resolve build failures --- scripts/lint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lint b/scripts/lint index bc4f4dd7..b8da4f0e 100755 --- a/scripts/lint +++ b/scripts/lint @@ -13,7 +13,7 @@ else fi echo "==> Running pyright" -uv run pyright +uv run pyright -p . echo "==> Running mypy" uv run mypy . From 4c4cfa16785df1fbc4cb3728406f97a98b7c8161 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2026 17:12:34 +0000 Subject: [PATCH 164/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/webhooks.py | 52 +++++---- .../types/webhook_create_params.py | 10 +- .../types/webhook_update_params.py | 10 +- .../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_notifications.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, 304 insertions(+), 284 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8d751685..8321094d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f92ae4fe2cbe0e40a4203678b0e818719b08ce7a689cef395885b634d2296918.yml -openapi_spec_hash: fea736e41949abdeb6a786244046ad8a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0ccbed2a4e10a047b507bd5e365e4ece367a1592e55e85bb61803a610eec30e3.yml +openapi_spec_hash: b49ac8c8ce9e05c81a82a6d3fe6be877 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/webhooks.py b/src/onlyfansapi/resources/webhooks.py index fff7e940..c704b488 100644 --- a/src/onlyfansapi/resources/webhooks.py +++ b/src/onlyfansapi/resources/webhooks.py @@ -67,16 +67,19 @@ def create( Create a new webhook for your Team Args: - account_scope: The account scope for the webhook. Use "global" for all accounts, "inclusive" - for only selected accounts, or "exclusive" for all except selected accounts. + account_scope: The account scope for the webhook (OnlyFans and Fansly webhooks alike). Use + "global" for all accounts, "inclusive" for only selected accounts, or + "exclusive" for all except selected accounts. endpoint_url: The URL of your webhook endpoint. events: An array of webhook events to subscribe to. For all options, refer to our **List - Available Events** endpoint. + Available Events** endpoint. A webhook is single-platform: subscribe to either + OnlyFans events or Fansly (`fansly.*`) events, never both in one webhook. - account_ids: An array of account IDs to apply the scope to. Required unless account_scope is - "global". + account_ids: An array of account IDs to apply the scope to. Use OnlyFans account IDs + (`acct_...`) for OnlyFans webhooks and Fansly account IDs (`fansly_acct_...`) + for Fansly webhooks. Required unless account_scope is "global". signing_secret: Optionally, add a signing secret to protect your webhook. @@ -159,16 +162,19 @@ def update( Update an existing webhook Args: - account_scope: The account scope for the webhook. Use "global" for all accounts, "inclusive" - for only selected accounts, or "exclusive" for all except selected accounts. + account_scope: The account scope for the webhook (OnlyFans and Fansly webhooks alike). Use + "global" for all accounts, "inclusive" for only selected accounts, or + "exclusive" for all except selected accounts. endpoint_url: The URL of your webhook endpoint. events: An array of webhook events to subscribe to. For all options, refer to our **List - Available Events** endpoint. + Available Events** endpoint. A webhook is single-platform: subscribe to either + OnlyFans events or Fansly (`fansly.*`) events, never both in one webhook. - account_ids: An array of account IDs to apply the scope to. Required unless account_scope is - "global". + account_ids: An array of account IDs to apply the scope to. Use OnlyFans account IDs + (`acct_...`) for OnlyFans webhooks and Fansly account IDs (`fansly_acct_...`) + for Fansly webhooks. Required unless account_scope is "global". enabled: Optionally, enabled/disable the webhook. This will stop/resume the sending of events, without having to delete the webhook. @@ -312,16 +318,19 @@ async def create( Create a new webhook for your Team Args: - account_scope: The account scope for the webhook. Use "global" for all accounts, "inclusive" - for only selected accounts, or "exclusive" for all except selected accounts. + account_scope: The account scope for the webhook (OnlyFans and Fansly webhooks alike). Use + "global" for all accounts, "inclusive" for only selected accounts, or + "exclusive" for all except selected accounts. endpoint_url: The URL of your webhook endpoint. events: An array of webhook events to subscribe to. For all options, refer to our **List - Available Events** endpoint. + Available Events** endpoint. A webhook is single-platform: subscribe to either + OnlyFans events or Fansly (`fansly.*`) events, never both in one webhook. - account_ids: An array of account IDs to apply the scope to. Required unless account_scope is - "global". + account_ids: An array of account IDs to apply the scope to. Use OnlyFans account IDs + (`acct_...`) for OnlyFans webhooks and Fansly account IDs (`fansly_acct_...`) + for Fansly webhooks. Required unless account_scope is "global". signing_secret: Optionally, add a signing secret to protect your webhook. @@ -404,16 +413,19 @@ async def update( Update an existing webhook Args: - account_scope: The account scope for the webhook. Use "global" for all accounts, "inclusive" - for only selected accounts, or "exclusive" for all except selected accounts. + account_scope: The account scope for the webhook (OnlyFans and Fansly webhooks alike). Use + "global" for all accounts, "inclusive" for only selected accounts, or + "exclusive" for all except selected accounts. endpoint_url: The URL of your webhook endpoint. events: An array of webhook events to subscribe to. For all options, refer to our **List - Available Events** endpoint. + Available Events** endpoint. A webhook is single-platform: subscribe to either + OnlyFans events or Fansly (`fansly.*`) events, never both in one webhook. - account_ids: An array of account IDs to apply the scope to. Required unless account_scope is - "global". + account_ids: An array of account IDs to apply the scope to. Use OnlyFans account IDs + (`acct_...`) for OnlyFans webhooks and Fansly account IDs (`fansly_acct_...`) + for Fansly webhooks. Required unless account_scope is "global". enabled: Optionally, enabled/disable the webhook. This will stop/resume the sending of events, without having to delete the webhook. diff --git a/src/onlyfansapi/types/webhook_create_params.py b/src/onlyfansapi/types/webhook_create_params.py index 2db4b039..d99e4b3b 100644 --- a/src/onlyfansapi/types/webhook_create_params.py +++ b/src/onlyfansapi/types/webhook_create_params.py @@ -12,7 +12,7 @@ class WebhookCreateParams(TypedDict, total=False): account_scope: Required[str] - """The account scope for the webhook. + """The account scope for the webhook (OnlyFans and Fansly webhooks alike). Use "global" for all accounts, "inclusive" for only selected accounts, or "exclusive" for all except selected accounts. @@ -24,13 +24,17 @@ class WebhookCreateParams(TypedDict, total=False): events: Required[SequenceNotStr[str]] """An array of webhook events to subscribe to. - For all options, refer to our **List Available Events** endpoint. + For all options, refer to our **List Available Events** endpoint. A webhook is + single-platform: subscribe to either OnlyFans events or Fansly (`fansly.*`) + events, never both in one webhook. """ account_ids: SequenceNotStr[str] """An array of account IDs to apply the scope to. - Required unless account_scope is "global". + Use OnlyFans account IDs (`acct_...`) for OnlyFans webhooks and Fansly account + IDs (`fansly_acct_...`) for Fansly webhooks. Required unless account_scope is + "global". """ signing_secret: Optional[str] diff --git a/src/onlyfansapi/types/webhook_update_params.py b/src/onlyfansapi/types/webhook_update_params.py index 2a95cdff..62f8dfb7 100644 --- a/src/onlyfansapi/types/webhook_update_params.py +++ b/src/onlyfansapi/types/webhook_update_params.py @@ -12,7 +12,7 @@ class WebhookUpdateParams(TypedDict, total=False): account_scope: Required[str] - """The account scope for the webhook. + """The account scope for the webhook (OnlyFans and Fansly webhooks alike). Use "global" for all accounts, "inclusive" for only selected accounts, or "exclusive" for all except selected accounts. @@ -24,13 +24,17 @@ class WebhookUpdateParams(TypedDict, total=False): events: Required[SequenceNotStr[str]] """An array of webhook events to subscribe to. - For all options, refer to our **List Available Events** endpoint. + For all options, refer to our **List Available Events** endpoint. A webhook is + single-platform: subscribe to either OnlyFans events or Fansly (`fansly.*`) + events, never both in one webhook. """ account_ids: SequenceNotStr[str] """An array of account IDs to apply the scope to. - Required unless account_scope is "global". + Use OnlyFans account IDs (`acct_...`) for OnlyFans webhooks and Fansly account + IDs (`fansly_acct_...`) for Fansly webhooks. Required unless account_scope is + "global". """ enabled: Optional[bool] diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 9927007c..b5cbb6bd 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="soluta", + message_id="veritatis", 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="soluta", + message_id="veritatis", 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="soluta", + message_id="veritatis", 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="soluta", + message_id="veritatis", 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="soluta", + message_id="veritatis", 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="soluta", + message_id="veritatis", 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="soluta", + message_id="veritatis", 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="soluta", + message_id="veritatis", 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="soluta", + message_id="veritatis", 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="soluta", + message_id="veritatis", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 00ee2c19..175e2a9d 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="accusantium", + list_id="labore", 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="accusantium", + list_id="labore", 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="accusantium", + list_id="labore", 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="accusantium", + list_id="labore", 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="accusantium", + list_id="labore", 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="accusantium", + list_id="labore", 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="accusantium", + list_id="labore", 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="accusantium", + list_id="labore", 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="accusantium", + list_id="labore", 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="accusantium", + list_id="labore", 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="accusantium", + list_id="labore", 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="accusantium", + list_id="labore", 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="accusantium", + list_id="labore", 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="accusantium", + list_id="labore", 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="accusantium", + list_id="labore", 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="accusantium", + list_id="labore", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index efb0fc7f..8f81b19f 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="iste", + post_id="aperiam", 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="iste", + post_id="aperiam", 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="iste", + post_id="aperiam", 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="iste", + post_id="aperiam", 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="iste", + post_id="aperiam", 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="iste", + post_id="aperiam", 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="iste", + post_id="aperiam", 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="iste", + post_id="aperiam", 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="iste", + post_id="aperiam", 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="iste", + post_id="aperiam", 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="iste", + post_id="aperiam", 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="iste", + post_id="aperiam", 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="iste", + post_id="aperiam", 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="iste", + post_id="aperiam", 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="iste", + post_id="aperiam", 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="iste", + post_id="aperiam", 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="iste", + post_id="aperiam", 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="iste", + post_id="aperiam", 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="iste", + post_id="aperiam", 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="iste", + post_id="aperiam", 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 7549791e..a62ccbd3 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/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 506c2ed9..36521a4f 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 6203e982..28f9196e 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( - "autem", + "in", ) 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( - "autem", + "in", ) 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( - "autem", + "in", ) 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( - "autem", + "in", ) 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( - "autem", + "in", ) 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( - "autem", + "in", ) 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 d1c37a78..b908a575 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="quod", - auth_type="raw_data", - cookies="modi", + auth_id="cupiditate", + auth_type="mobile_app", + cookies="consequatur", custom_proxy={ "host": "proxy.example.com", - "password": "`8P79+pJzJcg\\Y~0", + "password": "#o8!Z;zWv`J!})%w", "port": 8080, - "username": "et", + "username": "voluptas", }, - email="hwilliamson@example.org", + email="westley95@example.org", force_connect=False, - name="perferendis", - password="#p0j9{z}Hhf7lCM]", - proxy_country="gb", - user_agent="pariatur", - xbc="autem", + name="voluptate", + password='"]xfbQjf,vTv=', + proxy_country="uk", + user_agent="molestiae", + xbc="sit", ) 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="quod", - auth_type="raw_data", - cookies="modi", + auth_id="cupiditate", + auth_type="mobile_app", + cookies="consequatur", custom_proxy={ "host": "proxy.example.com", - "password": "`8P79+pJzJcg\\Y~0", + "password": "#o8!Z;zWv`J!})%w", "port": 8080, - "username": "et", + "username": "voluptas", }, - email="hwilliamson@example.org", + email="westley95@example.org", force_connect=False, - name="perferendis", - password="#p0j9{z}Hhf7lCM]", - proxy_country="gb", - user_agent="pariatur", - xbc="autem", + name="voluptate", + password='"]xfbQjf,vTv=', + proxy_country="uk", + user_agent="molestiae", + xbc="sit", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 583d8ad4..280e3de9 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="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="all", + 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 ebb70e6d..cf9247e0 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": ["qpnquggdswhvjayqppg"]}, + filter={"tags": ["alygqiujuqcfbpheoeqtnnhj"]}, 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="doloremque", + smart_link_id="tempora", ) 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="doloremque", + smart_link_id="tempora", 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="doloremque", + smart_link_id="tempora", ) 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="doloremque", + smart_link_id="tempora", ) 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="quae", + smart_link_id="harum", ) 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="quae", + smart_link_id="harum", 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="quae", + smart_link_id="harum", ) 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="quae", + smart_link_id="harum", ) 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="illo", + smart_link_id="delectus", ) 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="illo", + smart_link_id="delectus", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="illo", + smart_link_id="delectus", ) assert response.is_closed is True @@ -359,7 +359,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="illo", + smart_link_id="delectus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="id", + smart_link_id="ea", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="id", + smart_link_id="ea", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="id", + smart_link_id="ea", ) assert response.is_closed is True @@ -412,7 +412,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="id", + smart_link_id="ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="iusto", + smart_link_id="laborum", ) assert smart_link is None @@ -442,7 +442,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="iusto", + smart_link_id="laborum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="iusto", + smart_link_id="laborum", ) assert response.is_closed is True @@ -465,7 +465,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="iusto", + smart_link_id="laborum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="illum", + smart_link_id="quisquam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="illum", + smart_link_id="quisquam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="illum", + smart_link_id="quisquam", ) assert response.is_closed is True @@ -517,7 +517,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="illum", + smart_link_id="quisquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["qpnquggdswhvjayqppg"]}, + filter={"tags": ["alygqiujuqcfbpheoeqtnnhj"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="doloremque", + smart_link_id="tempora", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="doloremque", + smart_link_id="tempora", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="doloremque", + smart_link_id="tempora", ) assert response.is_closed is True @@ -756,7 +756,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="doloremque", + smart_link_id="tempora", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="quae", + smart_link_id="harum", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="quae", + smart_link_id="harum", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="quae", + smart_link_id="harum", ) assert response.is_closed is True @@ -814,7 +814,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="quae", + smart_link_id="harum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="illo", + smart_link_id="delectus", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="illo", + smart_link_id="delectus", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="illo", + smart_link_id="delectus", ) assert response.is_closed is True @@ -873,7 +873,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="illo", + smart_link_id="delectus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="id", + smart_link_id="ea", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="id", + smart_link_id="ea", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="id", + smart_link_id="ea", ) assert response.is_closed is True @@ -926,7 +926,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="id", + smart_link_id="ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="iusto", + smart_link_id="laborum", ) assert smart_link is None @@ -956,7 +956,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="iusto", + smart_link_id="laborum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="iusto", + smart_link_id="laborum", ) assert response.is_closed is True @@ -979,7 +979,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="iusto", + smart_link_id="laborum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="illum", + smart_link_id="quisquam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="illum", + smart_link_id="quisquam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="illum", + smart_link_id="quisquam", ) assert response.is_closed is True @@ -1031,7 +1031,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="illum", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index 682afb22..ee430207 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": "gcxqnn", - "tags": ["qghvlyldc"], + "search": "cmraibuytgylrfmkzfaizm", + "tags": ["izxyenxtwp"], }, 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": "b", - "tags": ["crhiykqcabynpuseoffhzkihw"], + "search": "ar", + "tags": ["bbjouspfozrmhwtmnslyr"], }, 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": "rbqwkm", - "tags": ["vsvhbtnoabaoquikckbloygw"], + "search": "yaiwtqnkpjheeidasgqd", + "tags": ["hevhomaozqiphd"], }, 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": "rfex", - "tags": ["bbnwhtgtaqt"], + "include_smart_links": True, + "search": "bj", + "tags": ["kzgwepavwz"], }, 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": "gcxqnn", - "tags": ["qghvlyldc"], + "search": "cmraibuytgylrfmkzfaizm", + "tags": ["izxyenxtwp"], }, 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": "b", - "tags": ["crhiykqcabynpuseoffhzkihw"], + "search": "ar", + "tags": ["bbjouspfozrmhwtmnslyr"], }, 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": "rbqwkm", - "tags": ["vsvhbtnoabaoquikckbloygw"], + "search": "yaiwtqnkpjheeidasgqd", + "tags": ["hevhomaozqiphd"], }, 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": "rfex", - "tags": ["bbnwhtgtaqt"], + "include_smart_links": True, + "search": "bj", + "tags": ["kzgwepavwz"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 9796c82a..535a01bf 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="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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="ut", + tracking_link_id="quos", 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="quos", 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="quos", 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="quos", 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="quos", 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="asperiores", + 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="ut", + tracking_link_id="quos", 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="quos", 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="quos", 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="quos", 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="quos", 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + tracking_link_id="eligendi", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index f655852c..6238f10f 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="voluptatem", + trial_link_id="ea", 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="voluptatem", + trial_link_id="ea", 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="voluptatem", + trial_link_id="ea", 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="voluptatem", + trial_link_id="ea", 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="voluptatem", + trial_link_id="ea", 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="voluptatem", + trial_link_id="ea", 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="voluptatem", + trial_link_id="ea", 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="voluptatem", + trial_link_id="ea", 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="voluptatem", + trial_link_id="ea", 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="voluptatem", + trial_link_id="ea", 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + trial_link_id="cumque", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index a8576780..4ee42dd5 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="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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + 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="a", + name="j", ) @pytest.mark.skip(reason="Mock server tests are disabled") From b68745a107dd77c04aa3668a318774b80a840cb3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 15 Jul 2026 11:12:33 +0000 Subject: [PATCH 165/249] 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 | 32 +++--- tests/api_resources/test_notifications.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 +-- 15 files changed, 254 insertions(+), 254 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8321094d..46a88b44 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0ccbed2a4e10a047b507bd5e365e4ece367a1592e55e85bb61803a610eec30e3.yml -openapi_spec_hash: b49ac8c8ce9e05c81a82a6d3fe6be877 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-83dbcb062bcaafa2ca374fc82a51b4b5c57fa2cf01b71d72054b7cffd9c0e7ac.yml +openapi_spec_hash: 937458bff78bf3f033b2a5e3f945a74e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index b5cbb6bd..2cde6e49 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="veritatis", + 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="veritatis", + 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="veritatis", + 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="veritatis", + 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="veritatis", + 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="veritatis", + 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="veritatis", + 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="veritatis", + 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="veritatis", + 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="veritatis", + 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 175e2a9d..f6545352 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="labore", + list_id="odit", 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="labore", + list_id="odit", 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="labore", + list_id="odit", 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="labore", + list_id="odit", 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="labore", + list_id="odit", 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="labore", + list_id="odit", 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="labore", + list_id="odit", 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="labore", + list_id="odit", 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="labore", + list_id="odit", 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="labore", + list_id="odit", 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="labore", + list_id="odit", 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="labore", + list_id="odit", 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="labore", + list_id="odit", 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="labore", + list_id="odit", 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="labore", + list_id="odit", 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="labore", + list_id="odit", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 8f81b19f..685b531f 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="aperiam", + post_id="ea", 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="aperiam", + post_id="ea", 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="aperiam", + post_id="ea", 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="aperiam", + post_id="ea", 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="aperiam", + post_id="ea", 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="aperiam", + post_id="ea", 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="aperiam", + post_id="ea", 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="aperiam", + post_id="ea", 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="aperiam", + post_id="ea", 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="aperiam", + post_id="ea", 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="aperiam", + post_id="ea", 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="aperiam", + post_id="ea", 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="aperiam", + post_id="ea", 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="aperiam", + post_id="ea", 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="aperiam", + post_id="ea", 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="aperiam", + post_id="ea", 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="aperiam", + post_id="ea", 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="aperiam", + post_id="ea", 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="aperiam", + post_id="ea", 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="aperiam", + post_id="ea", 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 fc7b1635..9c80483e 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 544df889..9664075f 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 36521a4f..f75ca63e 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="veniam", + path_story_id="cupiditate", 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="veniam", + path_story_id="cupiditate", 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="veniam", + path_story_id="cupiditate", 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="veniam", + path_story_id="cupiditate", 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="veniam", + story_id="cupiditate", 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="veniam", + story_id="cupiditate", 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="veniam", + story_id="cupiditate", 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="veniam", + story_id="cupiditate", 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="veniam", + path_story_id="cupiditate", 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="veniam", + path_story_id="cupiditate", 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="veniam", + path_story_id="cupiditate", 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="veniam", + path_story_id="cupiditate", 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="veniam", + story_id="cupiditate", 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="veniam", + story_id="cupiditate", 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="veniam", + story_id="cupiditate", 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="veniam", + story_id="cupiditate", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 28f9196e..055f9d16 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( - "in", + "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( - "in", + "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( - "in", + "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( - "in", + "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( - "in", + "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( - "in", + "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 b908a575..115d7bb5 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_id="repellat", auth_type="mobile_app", - cookies="consequatur", + cookies="neque", custom_proxy={ "host": "proxy.example.com", - "password": "#o8!Z;zWv`J!})%w", + "password": "9}h[.pwME@EP#0/*", "port": 8080, - "username": "voluptas", + "username": "et", }, - email="westley95@example.org", + email="zackery.dubuque@example.net", force_connect=False, name="voluptate", - password='"]xfbQjf,vTv=', + password=":soL 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_id="repellat", auth_type="mobile_app", - cookies="consequatur", + cookies="neque", custom_proxy={ "host": "proxy.example.com", - "password": "#o8!Z;zWv`J!})%w", + "password": "9}h[.pwME@EP#0/*", "port": 8080, - "username": "voluptas", + "username": "et", }, - email="westley95@example.org", + email="zackery.dubuque@example.net", force_connect=False, name="voluptate", - password='"]xfbQjf,vTv=', + password=":soL 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 cf9247e0..afefd9b3 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": ["alygqiujuqcfbpheoeqtnnhj"]}, + filter={"tags": ["ov"]}, 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="tempora", + smart_link_id="laboriosam", ) 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="tempora", + smart_link_id="laboriosam", 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="tempora", + smart_link_id="laboriosam", ) 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="tempora", + smart_link_id="laboriosam", ) 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="harum", + smart_link_id="nulla", ) 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="harum", + smart_link_id="nulla", 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="harum", + smart_link_id="nulla", ) 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="harum", + smart_link_id="nulla", ) 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="delectus", + smart_link_id="sed", ) 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="delectus", + smart_link_id="sed", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="sed", ) assert response.is_closed is True @@ -359,7 +359,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="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="ea", + smart_link_id="asperiores", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="ea", + smart_link_id="asperiores", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="ea", + smart_link_id="asperiores", ) assert response.is_closed is True @@ -412,7 +412,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="ea", + smart_link_id="asperiores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="voluptate", ) assert smart_link is None @@ -442,7 +442,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="voluptate", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="voluptate", ) assert response.is_closed is True @@ -465,7 +465,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="voluptate", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="quisquam", + smart_link_id="aut", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="quisquam", + smart_link_id="aut", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="quisquam", + smart_link_id="aut", ) assert response.is_closed is True @@ -517,7 +517,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="quisquam", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["alygqiujuqcfbpheoeqtnnhj"]}, + filter={"tags": ["ov"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="laboriosam", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="laboriosam", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="laboriosam", ) assert response.is_closed is True @@ -756,7 +756,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="laboriosam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="harum", + smart_link_id="nulla", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="harum", + smart_link_id="nulla", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="harum", + smart_link_id="nulla", ) assert response.is_closed is True @@ -814,7 +814,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="harum", + smart_link_id="nulla", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="sed", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="sed", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="sed", ) assert response.is_closed is True @@ -873,7 +873,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="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="ea", + smart_link_id="asperiores", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="ea", + smart_link_id="asperiores", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="ea", + smart_link_id="asperiores", ) assert response.is_closed is True @@ -926,7 +926,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="ea", + smart_link_id="asperiores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="voluptate", ) assert smart_link is None @@ -956,7 +956,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="voluptate", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="voluptate", ) assert response.is_closed is True @@ -979,7 +979,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="voluptate", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="quisquam", + smart_link_id="aut", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="quisquam", + smart_link_id="aut", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="quisquam", + smart_link_id="aut", ) assert response.is_closed is True @@ -1031,7 +1031,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="quisquam", + 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 ee430207..4487c23a 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": "cmraibuytgylrfmkzfaizm", - "tags": ["izxyenxtwp"], + "search": "szl", + "tags": ["uhsxhhqucsemwuyeqgjptmvy"], }, 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": "ar", - "tags": ["bbjouspfozrmhwtmnslyr"], + "search": "mkkbbxcitgphx", + "tags": ["cgbjcoccyzhqzrekymdubdvq"], }, 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": "yaiwtqnkpjheeidasgqd", - "tags": ["hevhomaozqiphd"], + "include_smart_links": False, + "search": "asikjwonkb", + "tags": ["ocquwrzgjfhghujpfloeks"], }, 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": "bj", - "tags": ["kzgwepavwz"], + "search": "vuciohezgkr", + "tags": ["oxhfjldwokp"], }, 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": "cmraibuytgylrfmkzfaizm", - "tags": ["izxyenxtwp"], + "search": "szl", + "tags": ["uhsxhhqucsemwuyeqgjptmvy"], }, 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": "ar", - "tags": ["bbjouspfozrmhwtmnslyr"], + "search": "mkkbbxcitgphx", + "tags": ["cgbjcoccyzhqzrekymdubdvq"], }, 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": "yaiwtqnkpjheeidasgqd", - "tags": ["hevhomaozqiphd"], + "include_smart_links": False, + "search": "asikjwonkb", + "tags": ["ocquwrzgjfhghujpfloeks"], }, 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": "bj", - "tags": ["kzgwepavwz"], + "search": "vuciohezgkr", + "tags": ["oxhfjldwokp"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 535a01bf..5d6e9e7c 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="odit", 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="odit", 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="odit", 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="odit", 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="odit", 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="odit", 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="odit", 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="odit", 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="quos", + 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="quos", + 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="quos", + 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="quos", + 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="quos", + 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="eligendi", + tracking_link_id="ipsa", 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="ipsa", 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="ipsa", 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="ipsa", 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="ipsa", 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="odit", 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="odit", 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="odit", 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="odit", 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="odit", 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="odit", 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="odit", 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="odit", 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="quos", + 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="quos", + 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="quos", + 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="quos", + 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="quos", + 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="eligendi", + tracking_link_id="ipsa", 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="ipsa", 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="ipsa", 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="ipsa", 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="ipsa", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 6238f10f..fab7b0b7 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="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="qui", + 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="qui", + 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="qui", + 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="ea", + trial_link_id="exercitationem", 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="ea", + trial_link_id="exercitationem", 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="ea", + trial_link_id="exercitationem", 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="ea", + trial_link_id="exercitationem", 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="ea", + trial_link_id="exercitationem", 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="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="cumque", + 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="cumque", + 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="cumque", + 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="cumque", + 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="omnis", + trial_link_id="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="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="qui", + 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="qui", + 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="qui", + 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="ea", + trial_link_id="exercitationem", 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="ea", + trial_link_id="exercitationem", 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="ea", + trial_link_id="exercitationem", 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="ea", + trial_link_id="exercitationem", 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="ea", + trial_link_id="exercitationem", 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="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="cumque", + 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="cumque", + 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="cumque", + 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="cumque", + trial_link_id="eos", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 4ee42dd5..b45b7c07 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="ypfnny", ) 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="ypfnny", ) 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="ypfnny", ) 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="ypfnny", ) @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="ypfnny", ) 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="ypfnny", ) 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="ypfnny", ) 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="ypfnny", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 4f519c6af12b155ab55bc8908e36d76cee693974 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 15 Jul 2026 15:12:32 +0000 Subject: [PATCH 166/249] feat(api): api update --- .stats.yml | 4 +- .../fans/summary_get_summary_response.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 +-- .../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 | 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, 272 insertions(+), 268 deletions(-) diff --git a/.stats.yml b/.stats.yml index 46a88b44..5e0ed373 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-83dbcb062bcaafa2ca374fc82a51b4b5c57fa2cf01b71d72054b7cffd9c0e7ac.yml -openapi_spec_hash: 937458bff78bf3f033b2a5e3f945a74e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ecfdaee2bd2a793c347e51a3099b4f59892a20241e3c313b6dff970ade71ef91.yml +openapi_spec_hash: 477c8df190d6ee52136647326cee7d7d config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/types/fans/summary_get_summary_response.py b/src/onlyfansapi/types/fans/summary_get_summary_response.py index 13970746..ff865ee6 100644 --- a/src/onlyfansapi/types/fans/summary_get_summary_response.py +++ b/src/onlyfansapi/types/fans/summary_get_summary_response.py @@ -26,6 +26,8 @@ class SummaryData(BaseModel): requests: Optional[str] = None + spend_cadence: Optional[str] = None + themes: Optional[str] = None travel_plans: Optional[str] = None @@ -38,6 +40,8 @@ class SummaryGetSummaryResponse(BaseModel): last_analyzed_at: Optional[str] = None + last_buy_date: Optional[str] = None + status: Optional[str] = None summary_data: Optional[SummaryData] = None diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 2cde6e49..242d6aa8 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="rerum", 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="rerum", 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="rerum", 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="rerum", 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="rerum", 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="rerum", 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="rerum", 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="rerum", 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="rerum", 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="rerum", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index f6545352..729a944d 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + 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="odit", + list_id="id", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 685b531f..c1a63acc 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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 a62ccbd3..7549791e 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 9c80483e..2ced6cb5 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 f75ca63e..bc183588 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="cupiditate", + path_story_id="id", 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="cupiditate", + path_story_id="id", 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="cupiditate", + path_story_id="id", 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="cupiditate", + path_story_id="id", 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="cupiditate", + story_id="id", 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="cupiditate", + story_id="id", 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="cupiditate", + story_id="id", 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="cupiditate", + story_id="id", 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="cupiditate", + path_story_id="id", 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="cupiditate", + path_story_id="id", 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="cupiditate", + path_story_id="id", 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="cupiditate", + path_story_id="id", 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="cupiditate", + story_id="id", 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="cupiditate", + story_id="id", 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="cupiditate", + story_id="id", 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="cupiditate", + story_id="id", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 055f9d16..3c53dc94 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", + "fuga", ) 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", + "fuga", ) 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", + "fuga", ) 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", + "fuga", ) 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", + "fuga", ) 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", + "fuga", ) 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 115d7bb5..641a1852 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="repellat", - auth_type="mobile_app", - cookies="neque", + auth_id="ut", + auth_type="raw_data", + cookies="dolores", custom_proxy={ "host": "proxy.example.com", - "password": "9}h[.pwME@EP#0/*", + "password": "Z#2`aO", "port": 8080, - "username": "et", + "username": "ipsum", }, - email="zackery.dubuque@example.net", + email="ledner.robb@example.net", force_connect=False, - name="voluptate", - password=":soL None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="repellat", - auth_type="mobile_app", - cookies="neque", + auth_id="ut", + auth_type="raw_data", + cookies="dolores", custom_proxy={ "host": "proxy.example.com", - "password": "9}h[.pwME@EP#0/*", + "password": "Z#2`aO", "port": 8080, - "username": "et", + "username": "ipsum", }, - email="zackery.dubuque@example.net", + email="ledner.robb@example.net", force_connect=False, - name="voluptate", - password=":soL 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 4d3e426f..4fb0fa41 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_smart_links.py b/tests/api_resources/test_smart_links.py index afefd9b3..a1e2c76a 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": ["ov"]}, + filter={"tags": ["kodt"]}, 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="laboriosam", + smart_link_id="optio", ) 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="laboriosam", + smart_link_id="optio", 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="laboriosam", + smart_link_id="optio", ) 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="laboriosam", + smart_link_id="optio", ) 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="nulla", + smart_link_id="voluptatum", ) 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="nulla", + smart_link_id="voluptatum", 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="nulla", + smart_link_id="voluptatum", ) 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="nulla", + smart_link_id="voluptatum", ) 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="sed", + smart_link_id="exercitationem", ) 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="sed", + smart_link_id="exercitationem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="exercitationem", ) assert response.is_closed is True @@ -359,7 +359,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="exercitationem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="asperiores", + smart_link_id="voluptatum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="asperiores", + smart_link_id="voluptatum", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="asperiores", + smart_link_id="voluptatum", ) assert response.is_closed is True @@ -412,7 +412,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="asperiores", + smart_link_id="voluptatum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="voluptate", + smart_link_id="sunt", ) assert smart_link is None @@ -442,7 +442,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="voluptate", + smart_link_id="sunt", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="voluptate", + smart_link_id="sunt", ) assert response.is_closed is True @@ -465,7 +465,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="voluptate", + smart_link_id="sunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="consequatur", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="consequatur", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="consequatur", ) assert response.is_closed is True @@ -517,7 +517,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="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["ov"]}, + filter={"tags": ["kodt"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="laboriosam", + smart_link_id="optio", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="laboriosam", + smart_link_id="optio", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="laboriosam", + smart_link_id="optio", ) assert response.is_closed is True @@ -756,7 +756,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="laboriosam", + smart_link_id="optio", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="nulla", + smart_link_id="voluptatum", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="nulla", + smart_link_id="voluptatum", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="nulla", + smart_link_id="voluptatum", ) assert response.is_closed is True @@ -814,7 +814,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="nulla", + smart_link_id="voluptatum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="exercitationem", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="exercitationem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="exercitationem", ) assert response.is_closed is True @@ -873,7 +873,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="exercitationem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="asperiores", + smart_link_id="voluptatum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="asperiores", + smart_link_id="voluptatum", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="asperiores", + smart_link_id="voluptatum", ) assert response.is_closed is True @@ -926,7 +926,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="asperiores", + smart_link_id="voluptatum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="voluptate", + smart_link_id="sunt", ) assert smart_link is None @@ -956,7 +956,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="voluptate", + smart_link_id="sunt", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="voluptate", + smart_link_id="sunt", ) assert response.is_closed is True @@ -979,7 +979,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="voluptate", + smart_link_id="sunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="consequatur", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="consequatur", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="consequatur", ) assert response.is_closed is True @@ -1031,7 +1031,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="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 4487c23a..5e7b8b3d 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": "szl", - "tags": ["uhsxhhqucsemwuyeqgjptmvy"], + "search": "dsrkdswnkozmswx", + "tags": ["pooniigsbhj"], }, 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": "mkkbbxcitgphx", - "tags": ["cgbjcoccyzhqzrekymdubdvq"], + "search": "dltcawzhryxwbzwymholxj", + "tags": ["vtvosxy"], }, 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": "asikjwonkb", - "tags": ["ocquwrzgjfhghujpfloeks"], + "include_smart_links": True, + "search": "lsigzdjbt", + "tags": ["vzwcedclxvynjmdderqtf"], }, 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": "vuciohezgkr", - "tags": ["oxhfjldwokp"], + "search": "uxht", + "tags": ["kljjznffzzqbpqu"], }, 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": "szl", - "tags": ["uhsxhhqucsemwuyeqgjptmvy"], + "search": "dsrkdswnkozmswx", + "tags": ["pooniigsbhj"], }, 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": "mkkbbxcitgphx", - "tags": ["cgbjcoccyzhqzrekymdubdvq"], + "search": "dltcawzhryxwbzwymholxj", + "tags": ["vtvosxy"], }, 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": "asikjwonkb", - "tags": ["ocquwrzgjfhghujpfloeks"], + "include_smart_links": True, + "search": "lsigzdjbt", + "tags": ["vzwcedclxvynjmdderqtf"], }, 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": "vuciohezgkr", - "tags": ["oxhfjldwokp"], + "search": "uxht", + "tags": ["kljjznffzzqbpqu"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 5d6e9e7c..bd9f3748 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="odit", + tracking_link_id="fugit", 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="odit", + tracking_link_id="fugit", 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="odit", + tracking_link_id="fugit", 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="odit", + tracking_link_id="fugit", 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="odit", + tracking_link_id="fugit", 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="odit", + tracking_link_id="fugit", 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="odit", + tracking_link_id="fugit", 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="odit", + tracking_link_id="fugit", 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="rerum", + tracking_link_id="eum", 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="rerum", + tracking_link_id="eum", 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="rerum", + tracking_link_id="eum", 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="rerum", + tracking_link_id="eum", 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="rerum", + tracking_link_id="eum", 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="ipsa", + tracking_link_id="voluptatum", 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="ipsa", + tracking_link_id="voluptatum", 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="ipsa", + tracking_link_id="voluptatum", 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="ipsa", + tracking_link_id="voluptatum", 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="ipsa", + tracking_link_id="voluptatum", 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="odit", + tracking_link_id="fugit", 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="odit", + tracking_link_id="fugit", 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="odit", + tracking_link_id="fugit", 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="odit", + tracking_link_id="fugit", 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="odit", + tracking_link_id="fugit", 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="odit", + tracking_link_id="fugit", 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="odit", + tracking_link_id="fugit", 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="odit", + tracking_link_id="fugit", 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="rerum", + tracking_link_id="eum", 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="rerum", + tracking_link_id="eum", 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="rerum", + tracking_link_id="eum", 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="rerum", + tracking_link_id="eum", 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="rerum", + tracking_link_id="eum", 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="ipsa", + tracking_link_id="voluptatum", 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="ipsa", + tracking_link_id="voluptatum", 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="ipsa", + tracking_link_id="voluptatum", 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="ipsa", + tracking_link_id="voluptatum", 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="ipsa", + tracking_link_id="voluptatum", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index fab7b0b7..dda5af7f 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="et", + trial_link_id="cupiditate", 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="cupiditate", 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="cupiditate", 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="cupiditate", 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="exercitationem", + trial_link_id="tenetur", 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="exercitationem", + trial_link_id="tenetur", 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="exercitationem", + trial_link_id="tenetur", 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="exercitationem", + trial_link_id="tenetur", 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="exercitationem", + trial_link_id="tenetur", 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="sint", 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="sint", 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="sint", 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="sint", 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="sint", 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="et", + trial_link_id="cupiditate", 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="cupiditate", 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="cupiditate", 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="cupiditate", 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="exercitationem", + trial_link_id="tenetur", 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="exercitationem", + trial_link_id="tenetur", 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="exercitationem", + trial_link_id="tenetur", 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="exercitationem", + trial_link_id="tenetur", 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="exercitationem", + trial_link_id="tenetur", 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="sint", 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="sint", 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="sint", 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="sint", 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="sint", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index b45b7c07..66e479c4 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="ypfnny", + name="yblh", ) 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="ypfnny", + name="yblh", ) 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="ypfnny", + name="yblh", ) 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="ypfnny", + name="yblh", ) @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="ypfnny", + name="yblh", ) 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="ypfnny", + name="yblh", ) 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="ypfnny", + name="yblh", ) 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="ypfnny", + name="yblh", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 6ce0c667ef53ccc999e37393debb98a164e9f5a5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 05:12:32 +0000 Subject: [PATCH 167/249] 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 | 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 +-- 17 files changed, 266 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5e0ed373..bf85b21a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ecfdaee2bd2a793c347e51a3099b4f59892a20241e3c313b6dff970ade71ef91.yml -openapi_spec_hash: 477c8df190d6ee52136647326cee7d7d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e06a01a20591d86482a14d9ae9d556abc3baa777581dcfa3213269aa2f4d52f8.yml +openapi_spec_hash: 71de2fbab6888aae97f293774ac7ccff config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 242d6aa8..15f6dfce 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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 729a944d..c67f8a1a 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="quibusdam", 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="quibusdam", 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="quibusdam", 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="quibusdam", 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="quibusdam", 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="quibusdam", 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="quibusdam", 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="quibusdam", 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="quibusdam", 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="quibusdam", 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="quibusdam", 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="quibusdam", 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="quibusdam", 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="quibusdam", 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="quibusdam", 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="quibusdam", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index c1a63acc..7ad41cbd 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="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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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="est", + 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 7549791e..aa735c97 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 2ced6cb5..9c80483e 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 bc183588..0d2e97ea 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + story_id="voluptatem", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 3c53dc94..cb4f0cfb 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( - "fuga", + "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( - "fuga", + "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( - "fuga", + "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( - "fuga", + "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( - "fuga", + "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( - "fuga", + "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 641a1852..e296b5ef 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="dolores", + auth_id="iste", + auth_type="email_password", + cookies="assumenda", custom_proxy={ "host": "proxy.example.com", - "password": "Z#2`aO", + "password": "~d9Y7SQ_R$d", "port": 8080, - "username": "ipsum", + "username": "et", }, - email="ledner.robb@example.net", + email="gideon.schmidt@example.com", force_connect=False, name="est", - password="{A[O$$POZW+9T%#&k4", - proxy_country="gb", - user_agent="est", - xbc="sunt", + password="7D/AnQ+EB1,wP?$:=#", + proxy_country="uk", + user_agent="fugiat", + xbc="ipsum", ) 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="dolores", + auth_id="iste", + auth_type="email_password", + cookies="assumenda", custom_proxy={ "host": "proxy.example.com", - "password": "Z#2`aO", + "password": "~d9Y7SQ_R$d", "port": 8080, - "username": "ipsum", + "username": "et", }, - email="ledner.robb@example.net", + email="gideon.schmidt@example.com", force_connect=False, name="est", - password="{A[O$$POZW+9T%#&k4", - proxy_country="gb", - user_agent="est", - xbc="sunt", + password="7D/AnQ+EB1,wP?$:=#", + proxy_country="uk", + user_agent="fugiat", + xbc="ipsum", ) 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 9249f386..0d035d3b 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="gb", ) 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="gb", ) 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 4fb0fa41..0f3980c1 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_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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 a1e2c76a..54eab71b 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": ["kodt"]}, + filter={"tags": ["l"]}, 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="optio", + smart_link_id="enim", ) 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="optio", + smart_link_id="enim", 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="optio", + smart_link_id="enim", ) 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="optio", + smart_link_id="enim", ) 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="voluptatum", + smart_link_id="ab", ) 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="voluptatum", + smart_link_id="ab", 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="voluptatum", + smart_link_id="ab", ) 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="voluptatum", + smart_link_id="ab", ) 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="exercitationem", + smart_link_id="inventore", ) 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="exercitationem", + smart_link_id="inventore", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="exercitationem", + smart_link_id="inventore", ) assert response.is_closed is True @@ -359,7 +359,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="exercitationem", + smart_link_id="inventore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="maiores", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="maiores", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="maiores", ) assert response.is_closed is True @@ -412,7 +412,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="maiores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="sunt", + smart_link_id="voluptatem", ) assert smart_link is None @@ -442,7 +442,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="sunt", + smart_link_id="voluptatem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="sunt", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -465,7 +465,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="sunt", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="ab", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="ab", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="ab", ) assert response.is_closed is True @@ -517,7 +517,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="ab", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["kodt"]}, + filter={"tags": ["l"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="optio", + smart_link_id="enim", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="optio", + smart_link_id="enim", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="optio", + smart_link_id="enim", ) assert response.is_closed is True @@ -756,7 +756,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="optio", + smart_link_id="enim", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="voluptatum", + smart_link_id="ab", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="voluptatum", + smart_link_id="ab", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="voluptatum", + smart_link_id="ab", ) assert response.is_closed is True @@ -814,7 +814,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="voluptatum", + smart_link_id="ab", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="exercitationem", + smart_link_id="inventore", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="exercitationem", + smart_link_id="inventore", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="exercitationem", + smart_link_id="inventore", ) assert response.is_closed is True @@ -873,7 +873,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="exercitationem", + smart_link_id="inventore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="maiores", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="maiores", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="maiores", ) assert response.is_closed is True @@ -926,7 +926,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="maiores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="sunt", + smart_link_id="voluptatem", ) assert smart_link is None @@ -956,7 +956,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="sunt", + smart_link_id="voluptatem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="sunt", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -979,7 +979,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="sunt", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="ab", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="ab", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="ab", ) assert response.is_closed is True @@ -1031,7 +1031,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="ab", ) 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 5e7b8b3d..561b50cb 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": "dsrkdswnkozmswx", - "tags": ["pooniigsbhj"], + "search": "jtfdtzq", + "tags": ["e"], }, 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": "dltcawzhryxwbzwymholxj", - "tags": ["vtvosxy"], + "search": "tdtpeg", + "tags": ["tjgrcrwuu"], }, 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": "lsigzdjbt", - "tags": ["vzwcedclxvynjmdderqtf"], + "search": "gkvvibmkxrhhgsibmjzpvt", + "tags": ["tdhpabajynifufxqi"], }, 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": "uxht", - "tags": ["kljjznffzzqbpqu"], + "search": "qjplnmxg", + "tags": ["gd"], }, 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": "dsrkdswnkozmswx", - "tags": ["pooniigsbhj"], + "search": "jtfdtzq", + "tags": ["e"], }, 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": "dltcawzhryxwbzwymholxj", - "tags": ["vtvosxy"], + "search": "tdtpeg", + "tags": ["tjgrcrwuu"], }, 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": "lsigzdjbt", - "tags": ["vzwcedclxvynjmdderqtf"], + "search": "gkvvibmkxrhhgsibmjzpvt", + "tags": ["tdhpabajynifufxqi"], }, 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": "uxht", - "tags": ["kljjznffzzqbpqu"], + "search": "qjplnmxg", + "tags": ["gd"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index bd9f3748..38d3bceb 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="fugit", + tracking_link_id="nihil", 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="fugit", + tracking_link_id="nihil", 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="fugit", + tracking_link_id="nihil", 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="fugit", + tracking_link_id="nihil", 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="fugit", + tracking_link_id="nihil", 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="fugit", + tracking_link_id="nihil", 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="fugit", + tracking_link_id="nihil", 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="fugit", + tracking_link_id="nihil", 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="eum", + tracking_link_id="recusandae", 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="eum", + tracking_link_id="recusandae", 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="eum", + tracking_link_id="recusandae", 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="eum", + tracking_link_id="recusandae", 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="eum", + tracking_link_id="recusandae", 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="voluptatum", + tracking_link_id="aut", 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="voluptatum", + tracking_link_id="aut", 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="voluptatum", + tracking_link_id="aut", 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="voluptatum", + tracking_link_id="aut", 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="voluptatum", + tracking_link_id="aut", 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="fugit", + tracking_link_id="nihil", 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="fugit", + tracking_link_id="nihil", 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="fugit", + tracking_link_id="nihil", 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="fugit", + tracking_link_id="nihil", 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="fugit", + tracking_link_id="nihil", 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="fugit", + tracking_link_id="nihil", 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="fugit", + tracking_link_id="nihil", 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="fugit", + tracking_link_id="nihil", 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="eum", + tracking_link_id="recusandae", 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="eum", + tracking_link_id="recusandae", 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="eum", + tracking_link_id="recusandae", 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="eum", + tracking_link_id="recusandae", 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="eum", + tracking_link_id="recusandae", 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="voluptatum", + tracking_link_id="aut", 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="voluptatum", + tracking_link_id="aut", 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="voluptatum", + tracking_link_id="aut", 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="voluptatum", + tracking_link_id="aut", 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="voluptatum", + tracking_link_id="aut", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index dda5af7f..700a80bb 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="sint", + trial_link_id="unde", 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="sint", + trial_link_id="unde", 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="sint", + trial_link_id="unde", 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="sint", + trial_link_id="unde", 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="sint", + trial_link_id="unde", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="dignissimos", 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="cupiditate", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="sint", + trial_link_id="unde", 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="sint", + trial_link_id="unde", 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="sint", + trial_link_id="unde", 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="sint", + trial_link_id="unde", 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="sint", + trial_link_id="unde", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 66e479c4..fe79e6c7 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="yblh", + name="aswkgcghxpyuc", ) 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="yblh", + name="aswkgcghxpyuc", ) 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="yblh", + name="aswkgcghxpyuc", ) 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="yblh", + name="aswkgcghxpyuc", ) @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="yblh", + name="aswkgcghxpyuc", ) 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="yblh", + name="aswkgcghxpyuc", ) 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="yblh", + name="aswkgcghxpyuc", ) 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="yblh", + name="aswkgcghxpyuc", ) @pytest.mark.skip(reason="Mock server tests are disabled") From b30430bb4db869895bbda74477161206770ef8a2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 12:12:42 +0000 Subject: [PATCH 168/249] 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 | 36 +++---- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index bf85b21a..82c73c68 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e06a01a20591d86482a14d9ae9d556abc3baa777581dcfa3213269aa2f4d52f8.yml -openapi_spec_hash: 71de2fbab6888aae97f293774ac7ccff +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6c1a82ed32365b480a79817cbd851df54bd128c094ece4bd0646cb6a2ec55ca7.yml +openapi_spec_hash: be0216cdd580a5f95f5a46a75d05a717 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 15f6dfce..4bd7f9af 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index c67f8a1a..6631565c 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="quibusdam", + list_id="optio", 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="quibusdam", + list_id="optio", 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="quibusdam", + list_id="optio", 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="quibusdam", + list_id="optio", 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="quibusdam", + list_id="optio", 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="quibusdam", + list_id="optio", 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="quibusdam", + list_id="optio", 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="quibusdam", + list_id="optio", 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="quibusdam", + list_id="optio", 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="quibusdam", + list_id="optio", 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="quibusdam", + list_id="optio", 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="quibusdam", + list_id="optio", 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="quibusdam", + list_id="optio", 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="quibusdam", + list_id="optio", 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="quibusdam", + list_id="optio", 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="quibusdam", + list_id="optio", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 7ad41cbd..5530d715 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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 aa735c97..7549791e 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 9c80483e..2ced6cb5 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075f..544df889 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 0d2e97ea..2dcf476c 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index cb4f0cfb..28025ddd 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", + "deleniti", ) 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", + "deleniti", ) 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", + "deleniti", ) 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", + "deleniti", ) 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", + "deleniti", ) 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", + "deleniti", ) 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 e296b5ef..9a8c0890 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="iste", + auth_id="doloribus", auth_type="email_password", - cookies="assumenda", + cookies="nihil", custom_proxy={ "host": "proxy.example.com", - "password": "~d9Y7SQ_R$d", + "password": "2{4.Cs0J)sB'@C1", "port": 8080, - "username": "et", + "username": "fugiat", }, - email="gideon.schmidt@example.com", + email="rsanford@example.net", force_connect=False, - name="est", - password="7D/AnQ+EB1,wP?$:=#", + name="iusto", + password='7ArF".J3b2=pNigS2i?D', proxy_country="uk", - user_agent="fugiat", - xbc="ipsum", + user_agent="sed", + 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="iste", + auth_id="doloribus", auth_type="email_password", - cookies="assumenda", + cookies="nihil", custom_proxy={ "host": "proxy.example.com", - "password": "~d9Y7SQ_R$d", + "password": "2{4.Cs0J)sB'@C1", "port": 8080, - "username": "et", + "username": "fugiat", }, - email="gideon.schmidt@example.com", + email="rsanford@example.net", force_connect=False, - name="est", - password="7D/AnQ+EB1,wP?$:=#", + name="iusto", + password='7ArF".J3b2=pNigS2i?D', proxy_country="uk", - user_agent="fugiat", - xbc="ipsum", + user_agent="sed", + xbc="ut", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 0f3980c1..413a2df6 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="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="tips", + 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 54eab71b..6e4ec3f1 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": ["l"]}, + filter={"tags": ["ebuwupuxcawdetsvp"]}, 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="enim", + smart_link_id="dolorum", ) 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="enim", + smart_link_id="dolorum", 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="enim", + smart_link_id="dolorum", ) 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="enim", + smart_link_id="dolorum", ) 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="ab", + smart_link_id="animi", ) 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="ab", + smart_link_id="animi", 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="ab", + smart_link_id="animi", ) 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="ab", + smart_link_id="animi", ) 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="inventore", + smart_link_id="qui", ) 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="inventore", + smart_link_id="qui", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="qui", ) assert response.is_closed is True @@ -359,7 +359,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="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="maiores", + smart_link_id="vitae", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="maiores", + smart_link_id="vitae", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="maiores", + smart_link_id="vitae", ) assert response.is_closed is True @@ -412,7 +412,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="maiores", + smart_link_id="vitae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="voluptatem", + smart_link_id="laboriosam", ) assert smart_link is None @@ -442,7 +442,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="voluptatem", + smart_link_id="laboriosam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="voluptatem", + smart_link_id="laboriosam", ) assert response.is_closed is True @@ -465,7 +465,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="voluptatem", + smart_link_id="laboriosam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="ab", + smart_link_id="fugiat", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="ab", + smart_link_id="fugiat", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="ab", + smart_link_id="fugiat", ) assert response.is_closed is True @@ -517,7 +517,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="ab", + smart_link_id="fugiat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["l"]}, + filter={"tags": ["ebuwupuxcawdetsvp"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="dolorum", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="dolorum", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="dolorum", ) assert response.is_closed is True @@ -756,7 +756,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="dolorum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="ab", + smart_link_id="animi", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="ab", + smart_link_id="animi", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="ab", + smart_link_id="animi", ) assert response.is_closed is True @@ -814,7 +814,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="ab", + smart_link_id="animi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="qui", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="qui", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="qui", ) assert response.is_closed is True @@ -873,7 +873,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="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="maiores", + smart_link_id="vitae", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="maiores", + smart_link_id="vitae", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="maiores", + smart_link_id="vitae", ) assert response.is_closed is True @@ -926,7 +926,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="maiores", + smart_link_id="vitae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="voluptatem", + smart_link_id="laboriosam", ) assert smart_link is None @@ -956,7 +956,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="voluptatem", + smart_link_id="laboriosam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="voluptatem", + smart_link_id="laboriosam", ) assert response.is_closed is True @@ -979,7 +979,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="voluptatem", + smart_link_id="laboriosam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="ab", + smart_link_id="fugiat", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="ab", + smart_link_id="fugiat", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="ab", + smart_link_id="fugiat", ) assert response.is_closed is True @@ -1031,7 +1031,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="ab", + smart_link_id="fugiat", ) 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 561b50cb..a7730f2a 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": "jtfdtzq", - "tags": ["e"], + "search": "vsupioxsvsbvr", + "tags": ["brtoiw"], }, 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": "tdtpeg", - "tags": ["tjgrcrwuu"], + "search": "iookktmedcnljelpcwmlpf", + "tags": ["ldgfvgjafe"], }, 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": "gkvvibmkxrhhgsibmjzpvt", - "tags": ["tdhpabajynifufxqi"], + "include_smart_links": False, + "search": "ifnxwwakoamheqqonapooc", + "tags": ["ugxeuvfy"], }, 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": "qjplnmxg", - "tags": ["gd"], + "include_smart_links": False, + "search": "soaticgzsojqoasbxwoalam", + "tags": ["qzo"], }, 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": "jtfdtzq", - "tags": ["e"], + "search": "vsupioxsvsbvr", + "tags": ["brtoiw"], }, 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": "tdtpeg", - "tags": ["tjgrcrwuu"], + "search": "iookktmedcnljelpcwmlpf", + "tags": ["ldgfvgjafe"], }, 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": "gkvvibmkxrhhgsibmjzpvt", - "tags": ["tdhpabajynifufxqi"], + "include_smart_links": False, + "search": "ifnxwwakoamheqqonapooc", + "tags": ["ugxeuvfy"], }, 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": "qjplnmxg", - "tags": ["gd"], + "include_smart_links": False, + "search": "soaticgzsojqoasbxwoalam", + "tags": ["qzo"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 38d3bceb..653c951e 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="aut", + tracking_link_id="iusto", 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="aut", + tracking_link_id="iusto", 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="aut", + tracking_link_id="iusto", 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="aut", + tracking_link_id="iusto", 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="aut", + tracking_link_id="iusto", 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="nihil", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="aut", + tracking_link_id="iusto", 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="aut", + tracking_link_id="iusto", 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="aut", + tracking_link_id="iusto", 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="aut", + tracking_link_id="iusto", 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="aut", + tracking_link_id="iusto", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 700a80bb..9b30c920 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="dignissimos", + trial_link_id="vero", 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="dignissimos", + trial_link_id="vero", 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="dignissimos", + trial_link_id="vero", 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="dignissimos", + trial_link_id="vero", 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="dignissimos", + trial_link_id="vero", 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="dignissimos", + trial_link_id="vero", 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="dignissimos", + trial_link_id="vero", 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="dignissimos", + trial_link_id="vero", 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="ratione", 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="ratione", 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="ratione", 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="ratione", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="unde", + 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="unde", + 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="unde", + 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="unde", + 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="unde", + 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="dignissimos", + trial_link_id="vero", 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="dignissimos", + trial_link_id="vero", 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="dignissimos", + trial_link_id="vero", 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="dignissimos", + trial_link_id="vero", 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="dignissimos", + trial_link_id="vero", 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="dignissimos", + trial_link_id="vero", 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="dignissimos", + trial_link_id="vero", 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="dignissimos", + trial_link_id="vero", 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="ratione", 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="ratione", 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="ratione", 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="ratione", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="unde", + 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="unde", + 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="unde", + 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="unde", + 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="unde", + trial_link_id="voluptatem", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index fe79e6c7..87239941 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="aswkgcghxpyuc", + name="zoulxacbrbkfc", ) 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="aswkgcghxpyuc", + name="zoulxacbrbkfc", ) 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="aswkgcghxpyuc", + name="zoulxacbrbkfc", ) 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="aswkgcghxpyuc", + name="zoulxacbrbkfc", ) @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="aswkgcghxpyuc", + name="zoulxacbrbkfc", ) 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="aswkgcghxpyuc", + name="zoulxacbrbkfc", ) 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="aswkgcghxpyuc", + name="zoulxacbrbkfc", ) 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="aswkgcghxpyuc", + name="zoulxacbrbkfc", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 3b05be2dac74b6886d1447195c16d57a17b1fd23 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 13:12:33 +0000 Subject: [PATCH 169/249] feat(api): api update --- .stats.yml | 4 +- .../fans/summary_get_summary_response.py | 4 + .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++--- tests/api_resources/posts/test_comments.py | 40 +++---- .../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 | 100 +++++++++--------- 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, 264 insertions(+), 260 deletions(-) diff --git a/.stats.yml b/.stats.yml index 82c73c68..d9fd66fa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6c1a82ed32365b480a79817cbd851df54bd128c094ece4bd0646cb6a2ec55ca7.yml -openapi_spec_hash: be0216cdd580a5f95f5a46a75d05a717 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2fa831948efa0ddde11aab36ed04ff599593a82273e9dcf70ceb131fe92c5d87.yml +openapi_spec_hash: 97125f53d10af223f1a85fc6c03621b4 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/types/fans/summary_get_summary_response.py b/src/onlyfansapi/types/fans/summary_get_summary_response.py index ff865ee6..2457a00e 100644 --- a/src/onlyfansapi/types/fans/summary_get_summary_response.py +++ b/src/onlyfansapi/types/fans/summary_get_summary_response.py @@ -8,8 +8,12 @@ class SummaryData(BaseModel): + content_dislikes: Optional[str] = None + content_preferences: Optional[str] = None + dos_and_donts: Optional[str] = None + family_pets: Optional[str] = None hobbies: Optional[str] = None diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 4bd7f9af..0b48bdd2 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="doloribus", + message_id="tempora", 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="doloribus", + message_id="tempora", 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="doloribus", + message_id="tempora", 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="doloribus", + message_id="tempora", 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="doloribus", + message_id="tempora", 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="doloribus", + message_id="tempora", 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="doloribus", + message_id="tempora", 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="doloribus", + message_id="tempora", 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="doloribus", + message_id="tempora", 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="doloribus", + message_id="tempora", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 6631565c..6cda517c 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="optio", + list_id="harum", 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="optio", + list_id="harum", 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="optio", + list_id="harum", 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="optio", + list_id="harum", 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="optio", + list_id="harum", 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="optio", + list_id="harum", 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="optio", + list_id="harum", 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="optio", + list_id="harum", 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="optio", + list_id="harum", 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="optio", + list_id="harum", 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="optio", + list_id="harum", 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="optio", + list_id="harum", 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="optio", + list_id="harum", 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="optio", + list_id="harum", 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="optio", + list_id="harum", 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="optio", + list_id="harum", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 5530d715..242b409a 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="dolor", + post_id="praesentium", 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="dolor", + post_id="praesentium", 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="dolor", + post_id="praesentium", 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="dolor", + post_id="praesentium", 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="dolor", + post_id="praesentium", 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="dolor", + post_id="praesentium", 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="dolor", + post_id="praesentium", 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="dolor", + post_id="praesentium", 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="dolor", + post_id="praesentium", 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="dolor", + post_id="praesentium", 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="dolor", + post_id="praesentium", 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="dolor", + post_id="praesentium", 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="dolor", + post_id="praesentium", 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="dolor", + post_id="praesentium", 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="dolor", + post_id="praesentium", 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="dolor", + post_id="praesentium", 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="dolor", + post_id="praesentium", 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="dolor", + post_id="praesentium", 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="dolor", + post_id="praesentium", 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="dolor", + post_id="praesentium", account="", ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 2dcf476c..de4363c7 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="expedita", + path_story_id="dicta", 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="expedita", + path_story_id="dicta", 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="expedita", + path_story_id="dicta", 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="expedita", + path_story_id="dicta", 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="expedita", + story_id="dicta", 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="expedita", + story_id="dicta", 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="expedita", + story_id="dicta", 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="expedita", + story_id="dicta", 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="expedita", + path_story_id="dicta", 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="expedita", + path_story_id="dicta", 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="expedita", + path_story_id="dicta", 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="expedita", + path_story_id="dicta", 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="expedita", + story_id="dicta", 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="expedita", + story_id="dicta", 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="expedita", + story_id="dicta", 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="expedita", + story_id="dicta", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 28025ddd..7f8d4fbc 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( - "deleniti", + "corporis", ) 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( - "deleniti", + "corporis", ) 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( - "deleniti", + "corporis", ) 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( - "deleniti", + "corporis", ) 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( - "deleniti", + "corporis", ) 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( - "deleniti", + "corporis", ) 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 9a8c0890..be3cfacd 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="email_password", - cookies="nihil", + auth_id="aspernatur", + auth_type="mobile_app", + cookies="ea", custom_proxy={ "host": "proxy.example.com", - "password": "2{4.Cs0J)sB'@C1", + "password": "xYV}WyAzm", "port": 8080, - "username": "fugiat", + "username": "nam", }, - email="rsanford@example.net", - force_connect=False, - name="iusto", - password='7ArF".J3b2=pNigS2i?D', - proxy_country="uk", - user_agent="sed", - xbc="ut", + email="upton.clarissa@example.com", + force_connect=True, + name="sed", + password="MG+.!0P", + proxy_country="us", + user_agent="tempora", + 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="doloribus", - auth_type="email_password", - cookies="nihil", + auth_id="aspernatur", + auth_type="mobile_app", + cookies="ea", custom_proxy={ "host": "proxy.example.com", - "password": "2{4.Cs0J)sB'@C1", + "password": "xYV}WyAzm", "port": 8080, - "username": "fugiat", + "username": "nam", }, - email="rsanford@example.net", - force_connect=False, - name="iusto", - password='7ArF".J3b2=pNigS2i?D', - proxy_country="uk", - user_agent="sed", - xbc="ut", + email="upton.clarissa@example.com", + force_connect=True, + name="sed", + password="MG+.!0P", + proxy_country="us", + user_agent="tempora", + 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 0d035d3b..9249f386 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="gb", + 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="gb", + 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 413a2df6..bea1ef2e 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="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="likes", + 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 65694e23..bd4f6161 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 6e4ec3f1..78b3c983 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": ["ebuwupuxcawdetsvp"]}, + filter={"tags": ["fextbq"]}, 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="dolorum", + smart_link_id="sequi", ) 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="dolorum", + smart_link_id="sequi", 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="dolorum", + smart_link_id="sequi", ) 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="dolorum", + smart_link_id="sequi", ) 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="animi", + smart_link_id="dignissimos", ) 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="animi", + smart_link_id="dignissimos", 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="animi", + smart_link_id="dignissimos", ) 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="animi", + smart_link_id="dignissimos", ) 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="qui", + 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="qui", + smart_link_id="consequatur", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="consequatur", ) assert response.is_closed is True @@ -359,7 +359,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="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="vitae", + smart_link_id="quasi", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="vitae", + smart_link_id="quasi", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="vitae", + smart_link_id="quasi", ) assert response.is_closed is True @@ -412,7 +412,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="vitae", + smart_link_id="quasi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="laboriosam", + smart_link_id="magni", ) assert smart_link is None @@ -442,7 +442,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="laboriosam", + smart_link_id="magni", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="laboriosam", + smart_link_id="magni", ) assert response.is_closed is True @@ -465,7 +465,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="laboriosam", + smart_link_id="magni", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="fugiat", + smart_link_id="quisquam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="fugiat", + smart_link_id="quisquam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="fugiat", + smart_link_id="quisquam", ) assert response.is_closed is True @@ -517,7 +517,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="fugiat", + smart_link_id="quisquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["ebuwupuxcawdetsvp"]}, + filter={"tags": ["fextbq"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="dolorum", + smart_link_id="sequi", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="dolorum", + smart_link_id="sequi", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="dolorum", + smart_link_id="sequi", ) assert response.is_closed is True @@ -756,7 +756,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="dolorum", + smart_link_id="sequi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="dignissimos", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="dignissimos", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="dignissimos", ) assert response.is_closed is True @@ -814,7 +814,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="dignissimos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="consequatur", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="consequatur", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="consequatur", ) assert response.is_closed is True @@ -873,7 +873,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="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="vitae", + smart_link_id="quasi", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="vitae", + smart_link_id="quasi", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="vitae", + smart_link_id="quasi", ) assert response.is_closed is True @@ -926,7 +926,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="vitae", + smart_link_id="quasi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="laboriosam", + smart_link_id="magni", ) assert smart_link is None @@ -956,7 +956,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="laboriosam", + smart_link_id="magni", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="laboriosam", + smart_link_id="magni", ) assert response.is_closed is True @@ -979,7 +979,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="laboriosam", + smart_link_id="magni", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="fugiat", + smart_link_id="quisquam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="fugiat", + smart_link_id="quisquam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="fugiat", + smart_link_id="quisquam", ) assert response.is_closed is True @@ -1031,7 +1031,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="fugiat", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index a7730f2a..41c4b57e 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": "vsupioxsvsbvr", - "tags": ["brtoiw"], + "search": "qzviibuhlropwm", + "tags": ["jinwkbnypxkztbtpygk"], }, 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": "iookktmedcnljelpcwmlpf", - "tags": ["ldgfvgjafe"], + "search": "zxiaax", + "tags": ["sckpkfmvfrjfjmfoc"], }, 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": "ifnxwwakoamheqqonapooc", - "tags": ["ugxeuvfy"], + "include_smart_links": True, + "search": "armn", + "tags": ["zizsvznneonwpnzqtgi"], }, 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": "soaticgzsojqoasbxwoalam", - "tags": ["qzo"], + "include_smart_links": True, + "search": "iuzkitma", + "tags": ["lstwdqlssyuup"], }, 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": "vsupioxsvsbvr", - "tags": ["brtoiw"], + "search": "qzviibuhlropwm", + "tags": ["jinwkbnypxkztbtpygk"], }, 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": "iookktmedcnljelpcwmlpf", - "tags": ["ldgfvgjafe"], + "search": "zxiaax", + "tags": ["sckpkfmvfrjfjmfoc"], }, 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": "ifnxwwakoamheqqonapooc", - "tags": ["ugxeuvfy"], + "include_smart_links": True, + "search": "armn", + "tags": ["zizsvznneonwpnzqtgi"], }, 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": "soaticgzsojqoasbxwoalam", - "tags": ["qzo"], + "include_smart_links": True, + "search": "iuzkitma", + "tags": ["lstwdqlssyuup"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 653c951e..db1b9226 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="iusto", + tracking_link_id="dolores", 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="iusto", + tracking_link_id="dolores", 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="iusto", + tracking_link_id="dolores", 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="iusto", + tracking_link_id="dolores", 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="iusto", + tracking_link_id="dolores", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="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="atque", + 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="atque", + 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="atque", + 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="atque", + 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="iusto", + tracking_link_id="dolores", 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="iusto", + tracking_link_id="dolores", 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="iusto", + tracking_link_id="dolores", 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="iusto", + tracking_link_id="dolores", 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="iusto", + tracking_link_id="dolores", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 9b30c920..8c7ac38e 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="vero", + trial_link_id="dolore", 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="vero", + trial_link_id="dolore", 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="vero", + trial_link_id="dolore", 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="vero", + trial_link_id="dolore", 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="vero", + trial_link_id="dolore", 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="vero", + trial_link_id="dolore", 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="vero", + trial_link_id="dolore", 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="vero", + trial_link_id="dolore", 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="ratione", + trial_link_id="quia", 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="ratione", + trial_link_id="quia", 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="ratione", + trial_link_id="quia", 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="ratione", + trial_link_id="quia", 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="eveniet", + trial_link_id="neque", 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="eveniet", + trial_link_id="neque", 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="eveniet", + trial_link_id="neque", 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="eveniet", + trial_link_id="neque", 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="eveniet", + trial_link_id="neque", 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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="vero", + trial_link_id="dolore", 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="vero", + trial_link_id="dolore", 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="vero", + trial_link_id="dolore", 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="vero", + trial_link_id="dolore", 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="vero", + trial_link_id="dolore", 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="vero", + trial_link_id="dolore", 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="vero", + trial_link_id="dolore", 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="vero", + trial_link_id="dolore", 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="ratione", + trial_link_id="quia", 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="ratione", + trial_link_id="quia", 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="ratione", + trial_link_id="quia", 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="ratione", + trial_link_id="quia", 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="eveniet", + trial_link_id="neque", 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="eveniet", + trial_link_id="neque", 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="eveniet", + trial_link_id="neque", 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="eveniet", + trial_link_id="neque", 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="eveniet", + trial_link_id="neque", 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="maiores", 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="maiores", 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="maiores", 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="maiores", 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="maiores", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 87239941..eacdfde4 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="zoulxacbrbkfc", + name="ppgpejdjgklkrkljypnzaruva", ) 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="zoulxacbrbkfc", + name="ppgpejdjgklkrkljypnzaruva", ) 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="zoulxacbrbkfc", + name="ppgpejdjgklkrkljypnzaruva", ) 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="zoulxacbrbkfc", + name="ppgpejdjgklkrkljypnzaruva", ) @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="zoulxacbrbkfc", + name="ppgpejdjgklkrkljypnzaruva", ) 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="zoulxacbrbkfc", + name="ppgpejdjgklkrkljypnzaruva", ) 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="zoulxacbrbkfc", + name="ppgpejdjgklkrkljypnzaruva", ) 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="zoulxacbrbkfc", + name="ppgpejdjgklkrkljypnzaruva", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 80626d6f45a33b16ffee77cd7ebb2115d7197597 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 17:12:34 +0000 Subject: [PATCH 170/249] 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 | 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 | 100 +++++++++--------- tests/api_resources/test_stored.py | 32 +++--- tests/api_resources/test_tracking_links.py | 52 ++++----- tests/api_resources/test_trial_links.py | 88 +++++++-------- tests/api_resources/test_user_lists.py | 16 +-- 17 files changed, 254 insertions(+), 254 deletions(-) diff --git a/.stats.yml b/.stats.yml index d9fd66fa..9eb19592 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2fa831948efa0ddde11aab36ed04ff599593a82273e9dcf70ceb131fe92c5d87.yml -openapi_spec_hash: 97125f53d10af223f1a85fc6c03621b4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-83e9593ec600f271bb0e17a0bb62da1bfaee097ec0b92569e729c73759961b24.yml +openapi_spec_hash: 06950b40d722d1f1c91d368fa59c83aa config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 0b48bdd2..c2545d34 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="tempora", + message_id="vitae", 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="tempora", + message_id="vitae", 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="tempora", + message_id="vitae", 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="tempora", + message_id="vitae", 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="tempora", + message_id="vitae", 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="tempora", + message_id="vitae", 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="tempora", + message_id="vitae", 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="tempora", + message_id="vitae", 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="tempora", + message_id="vitae", 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="tempora", + message_id="vitae", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 6cda517c..776cbd57 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="harum", + list_id="enim", 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="harum", + list_id="enim", 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="harum", + list_id="enim", 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="harum", + list_id="enim", 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="harum", + list_id="enim", 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="harum", + list_id="enim", 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="harum", + list_id="enim", 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="harum", + list_id="enim", 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="harum", + list_id="enim", 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="harum", + list_id="enim", 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="harum", + list_id="enim", 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="harum", + list_id="enim", 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="harum", + list_id="enim", 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="harum", + list_id="enim", 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="harum", + list_id="enim", 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="harum", + list_id="enim", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 242b409a..f5ea01ff 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="praesentium", + post_id="occaecati", 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="praesentium", + post_id="occaecati", 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="praesentium", + post_id="occaecati", 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="praesentium", + post_id="occaecati", 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="praesentium", + post_id="occaecati", 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="praesentium", + post_id="occaecati", 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="praesentium", + post_id="occaecati", 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="praesentium", + post_id="occaecati", 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="praesentium", + post_id="occaecati", 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="praesentium", + post_id="occaecati", 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="praesentium", + post_id="occaecati", 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="praesentium", + post_id="occaecati", 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="praesentium", + post_id="occaecati", 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="praesentium", + post_id="occaecati", 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="praesentium", + post_id="occaecati", 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="praesentium", + post_id="occaecati", 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="praesentium", + post_id="occaecati", 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="praesentium", + post_id="occaecati", 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="praesentium", + post_id="occaecati", 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="praesentium", + post_id="occaecati", 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 7549791e..aa735c97 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 9664075f..544df889 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 de4363c7..7ababa94 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="dicta", + 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="dicta", + 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="dicta", + 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="dicta", + 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="dicta", + 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="dicta", + 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="dicta", + 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="dicta", + 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="dicta", + 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="dicta", + 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="dicta", + 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="dicta", + 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="dicta", + 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="dicta", + 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="dicta", + 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="dicta", + story_id="dolor", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 7f8d4fbc..7506d9b8 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( - "corporis", + "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( - "corporis", + "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( - "corporis", + "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( - "corporis", + "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( - "corporis", + "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( - "corporis", + "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 be3cfacd..374343fb 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="aspernatur", - auth_type="mobile_app", - cookies="ea", + auth_id="pariatur", + auth_type="raw_data", + cookies="corrupti", custom_proxy={ "host": "proxy.example.com", - "password": "xYV}WyAzm", + "password": "bHoHJHvC2Jk%", "port": 8080, - "username": "nam", + "username": "nemo", }, - email="upton.clarissa@example.com", - force_connect=True, - name="sed", - password="MG+.!0P", - proxy_country="us", - user_agent="tempora", - xbc="vel", + email="rquitzon@example.net", + force_connect=False, + name="sint", + password="hu@QU[4Ju6w(bP", + proxy_country="uk", + user_agent="ullam", + xbc="sit", ) 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="aspernatur", - auth_type="mobile_app", - cookies="ea", + auth_id="pariatur", + auth_type="raw_data", + cookies="corrupti", custom_proxy={ "host": "proxy.example.com", - "password": "xYV}WyAzm", + "password": "bHoHJHvC2Jk%", "port": 8080, - "username": "nam", + "username": "nemo", }, - email="upton.clarissa@example.com", - force_connect=True, - name="sed", - password="MG+.!0P", - proxy_country="us", - user_agent="tempora", - xbc="vel", + email="rquitzon@example.net", + force_connect=False, + name="sint", + password="hu@QU[4Ju6w(bP", + proxy_country="uk", + user_agent="ullam", + xbc="sit", ) 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 9249f386..0d035d3b 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="gb", ) 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="gb", ) 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 bea1ef2e..413a2df6 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="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="tags", + type="likes", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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 78b3c983..2ccd2480 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": ["fextbq"]}, + filter={"tags": ["znsgzattbdwfrpadpmawtmuhb"]}, 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="sequi", + smart_link_id="ipsum", ) 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="sequi", + smart_link_id="ipsum", 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="sequi", + smart_link_id="ipsum", ) 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="sequi", + smart_link_id="ipsum", ) 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="dignissimos", + smart_link_id="sapiente", ) 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="dignissimos", + smart_link_id="sapiente", 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="dignissimos", + smart_link_id="sapiente", ) 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="dignissimos", + smart_link_id="sapiente", ) 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="et", ) 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="et", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="et", ) assert response.is_closed is True @@ -359,7 +359,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="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="quasi", + smart_link_id="dolorum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="quasi", + smart_link_id="dolorum", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="quasi", + smart_link_id="dolorum", ) assert response.is_closed is True @@ -412,7 +412,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="quasi", + smart_link_id="dolorum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="magni", + smart_link_id="rem", ) assert smart_link is None @@ -442,7 +442,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="magni", + smart_link_id="rem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="magni", + smart_link_id="rem", ) assert response.is_closed is True @@ -465,7 +465,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="magni", + smart_link_id="rem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="quisquam", + smart_link_id="totam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="quisquam", + smart_link_id="totam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="quisquam", + smart_link_id="totam", ) assert response.is_closed is True @@ -517,7 +517,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="quisquam", + smart_link_id="totam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["fextbq"]}, + filter={"tags": ["znsgzattbdwfrpadpmawtmuhb"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="sequi", + smart_link_id="ipsum", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="sequi", + smart_link_id="ipsum", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="sequi", + smart_link_id="ipsum", ) assert response.is_closed is True @@ -756,7 +756,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="sequi", + smart_link_id="ipsum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="dignissimos", + smart_link_id="sapiente", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="dignissimos", + smart_link_id="sapiente", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="dignissimos", + smart_link_id="sapiente", ) assert response.is_closed is True @@ -814,7 +814,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="dignissimos", + smart_link_id="sapiente", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="et", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="et", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="et", ) assert response.is_closed is True @@ -873,7 +873,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="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="quasi", + smart_link_id="dolorum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="quasi", + smart_link_id="dolorum", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="quasi", + smart_link_id="dolorum", ) assert response.is_closed is True @@ -926,7 +926,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="quasi", + smart_link_id="dolorum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="magni", + smart_link_id="rem", ) assert smart_link is None @@ -956,7 +956,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="magni", + smart_link_id="rem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="magni", + smart_link_id="rem", ) assert response.is_closed is True @@ -979,7 +979,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="magni", + smart_link_id="rem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="quisquam", + smart_link_id="totam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="quisquam", + smart_link_id="totam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="quisquam", + smart_link_id="totam", ) assert response.is_closed is True @@ -1031,7 +1031,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="quisquam", + smart_link_id="totam", ) 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 41c4b57e..89e56e94 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": "qzviibuhlropwm", - "tags": ["jinwkbnypxkztbtpygk"], + "search": "zfdiovhcjhihmk", + "tags": ["czwnuscpddjhtsyzbafc"], }, 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": "zxiaax", - "tags": ["sckpkfmvfrjfjmfoc"], + "search": "ughvayjm", + "tags": ["yd"], }, 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": "armn", - "tags": ["zizsvznneonwpnzqtgi"], + "search": "yo", + "tags": ["eiaeqbbmetjpeemsminlaxrlr"], }, 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": "iuzkitma", - "tags": ["lstwdqlssyuup"], + "search": "ghzibxfawnbpljuezenbybj", + "tags": ["wtdrskdsnbixwoq"], }, 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": "qzviibuhlropwm", - "tags": ["jinwkbnypxkztbtpygk"], + "search": "zfdiovhcjhihmk", + "tags": ["czwnuscpddjhtsyzbafc"], }, 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": "zxiaax", - "tags": ["sckpkfmvfrjfjmfoc"], + "search": "ughvayjm", + "tags": ["yd"], }, 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": "armn", - "tags": ["zizsvznneonwpnzqtgi"], + "search": "yo", + "tags": ["eiaeqbbmetjpeemsminlaxrlr"], }, 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": "iuzkitma", - "tags": ["lstwdqlssyuup"], + "search": "ghzibxfawnbpljuezenbybj", + "tags": ["wtdrskdsnbixwoq"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index db1b9226..938688eb 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="quaerat", + tracking_link_id="amet", 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="quaerat", + tracking_link_id="amet", 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="quaerat", + tracking_link_id="amet", 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="quaerat", + tracking_link_id="amet", 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="quaerat", + tracking_link_id="amet", 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="quaerat", + tracking_link_id="amet", 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="quaerat", + tracking_link_id="amet", 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="quaerat", + tracking_link_id="amet", 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="dolores", + tracking_link_id="praesentium", 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="dolores", + tracking_link_id="praesentium", 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="dolores", + tracking_link_id="praesentium", 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="dolores", + tracking_link_id="praesentium", 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="dolores", + tracking_link_id="praesentium", 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="quaerat", + tracking_link_id="amet", 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="quaerat", + tracking_link_id="amet", 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="quaerat", + tracking_link_id="amet", 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="quaerat", + tracking_link_id="amet", 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="quaerat", + tracking_link_id="amet", 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="quaerat", + tracking_link_id="amet", 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="quaerat", + tracking_link_id="amet", 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="quaerat", + tracking_link_id="amet", 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="dolores", + tracking_link_id="praesentium", 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="dolores", + tracking_link_id="praesentium", 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="dolores", + tracking_link_id="praesentium", 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="dolores", + tracking_link_id="praesentium", 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="dolores", + tracking_link_id="praesentium", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 8c7ac38e..0234ba0e 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="dolore", + trial_link_id="qui", 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="dolore", + trial_link_id="qui", 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="dolore", + trial_link_id="qui", 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="dolore", + trial_link_id="qui", 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="dolore", + trial_link_id="qui", 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="dolore", + trial_link_id="qui", 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="dolore", + trial_link_id="qui", 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="dolore", + trial_link_id="qui", 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="quia", + trial_link_id="minima", 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="quia", + trial_link_id="minima", 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="quia", + trial_link_id="minima", 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="quia", + trial_link_id="minima", 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="neque", + trial_link_id="omnis", 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="neque", + trial_link_id="omnis", 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="neque", + trial_link_id="omnis", 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="neque", + trial_link_id="omnis", 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="neque", + trial_link_id="omnis", 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="dolore", + trial_link_id="qui", 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="dolore", + trial_link_id="qui", 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="dolore", + trial_link_id="qui", 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="dolore", + trial_link_id="qui", 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="dolore", + trial_link_id="qui", 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="dolore", + trial_link_id="qui", 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="dolore", + trial_link_id="qui", 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="dolore", + trial_link_id="qui", 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="quia", + trial_link_id="minima", 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="quia", + trial_link_id="minima", 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="quia", + trial_link_id="minima", 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="quia", + trial_link_id="minima", 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="neque", + trial_link_id="omnis", 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="neque", + trial_link_id="omnis", 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="neque", + trial_link_id="omnis", 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="neque", + trial_link_id="omnis", 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="neque", + trial_link_id="omnis", 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + trial_link_id="ut", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index eacdfde4..e3b97bd7 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="ppgpejdjgklkrkljypnzaruva", + name="o", ) 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="ppgpejdjgklkrkljypnzaruva", + name="o", ) 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="ppgpejdjgklkrkljypnzaruva", + name="o", ) 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="ppgpejdjgklkrkljypnzaruva", + name="o", ) @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="ppgpejdjgklkrkljypnzaruva", + name="o", ) 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="ppgpejdjgklkrkljypnzaruva", + name="o", ) 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="ppgpejdjgklkrkljypnzaruva", + name="o", ) 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="ppgpejdjgklkrkljypnzaruva", + name="o", ) @pytest.mark.skip(reason="Mock server tests are disabled") From de023746aee85ea5bacb3dfb45ee8a22de126653 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 19:12:34 +0000 Subject: [PATCH 171/249] 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 | 48 ++++----- tests/api_resources/test_client_sessions.py | 4 +- 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 +-- 16 files changed, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9eb19592..c2dbe56a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-83e9593ec600f271bb0e17a0bb62da1bfaee097ec0b92569e729c73759961b24.yml -openapi_spec_hash: 06950b40d722d1f1c91d368fa59c83aa +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-54d3b6e23bd2de9cde8fd6f59b4897de40a4ede649e379cb4b11d9715a3be1d4.yml +openapi_spec_hash: 9b10c6d498a07c80ad95978d8d70456f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index c2545d34..db7dbcc2 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="vitae", + 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="vitae", + 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="vitae", + 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="vitae", + 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="vitae", + 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="vitae", + 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="vitae", + 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="vitae", + 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="vitae", + 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="vitae", + 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 776cbd57..1832aee9 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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 f5ea01ff..5530d715 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="occaecati", + post_id="dolor", 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="occaecati", + post_id="dolor", 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="occaecati", + post_id="dolor", 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="occaecati", + post_id="dolor", 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="occaecati", + post_id="dolor", 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="occaecati", + post_id="dolor", 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="occaecati", + post_id="dolor", 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="occaecati", + post_id="dolor", 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="occaecati", + post_id="dolor", 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="occaecati", + post_id="dolor", 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="occaecati", + post_id="dolor", 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="occaecati", + post_id="dolor", 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="occaecati", + post_id="dolor", 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="occaecati", + post_id="dolor", 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="occaecati", + post_id="dolor", 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="occaecati", + post_id="dolor", 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="occaecati", + post_id="dolor", 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="occaecati", + post_id="dolor", 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="occaecati", + post_id="dolor", 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="occaecati", + post_id="dolor", 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 aa735c97..444937ba 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 7ababa94..d6b66103 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 7506d9b8..b3410f74 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", + "deserunt", ) 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", + "deserunt", ) 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", + "deserunt", ) 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", + "deserunt", ) 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", + "deserunt", ) 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", + "deserunt", ) 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 374343fb..2f66fb40 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="pariatur", - auth_type="raw_data", - cookies="corrupti", + auth_id="consequuntur", + auth_type="email_password", + cookies="quod", custom_proxy={ "host": "proxy.example.com", - "password": "bHoHJHvC2Jk%", + "password": '#oVkM?8kd";~V}B', "port": 8080, - "username": "nemo", + "username": "ullam", }, - email="rquitzon@example.net", - force_connect=False, - name="sint", - password="hu@QU[4Ju6w(bP", - proxy_country="uk", - user_agent="ullam", - xbc="sit", + email="sage54@example.com", + force_connect=True, + name="in", + password="auWnTuS;", + proxy_country="us", + user_agent="placeat", + xbc="rerum", ) 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="pariatur", - auth_type="raw_data", - cookies="corrupti", + auth_id="consequuntur", + auth_type="email_password", + cookies="quod", custom_proxy={ "host": "proxy.example.com", - "password": "bHoHJHvC2Jk%", + "password": '#oVkM?8kd";~V}B', "port": 8080, - "username": "nemo", + "username": "ullam", }, - email="rquitzon@example.net", - force_connect=False, - name="sint", - password="hu@QU[4Ju6w(bP", - proxy_country="uk", - user_agent="ullam", - xbc="sit", + email="sage54@example.com", + force_connect=True, + name="in", + password="auWnTuS;", + proxy_country="us", + user_agent="placeat", + xbc="rerum", ) 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 0d035d3b..3597ede6 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="gb", + 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="gb", + 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 413a2df6..4d3e426f 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 2ccd2480..cc59a6da 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": ["znsgzattbdwfrpadpmawtmuhb"]}, + filter={"tags": ["bjhbcnjteisr"]}, 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="ipsum", + smart_link_id="id", ) 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="ipsum", + smart_link_id="id", 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="ipsum", + smart_link_id="id", ) 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="ipsum", + smart_link_id="id", ) 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="sapiente", + smart_link_id="eos", ) 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="sapiente", + smart_link_id="eos", 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="sapiente", + smart_link_id="eos", ) 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="sapiente", + smart_link_id="eos", ) 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="et", + smart_link_id="sed", ) 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="et", + smart_link_id="sed", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="sed", ) assert response.is_closed is True @@ -359,7 +359,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="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="ea", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="ea", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="ea", ) assert response.is_closed is True @@ -412,7 +412,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="ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="ut", ) assert smart_link is None @@ -442,7 +442,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="ut", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="ut", ) assert response.is_closed is True @@ -465,7 +465,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="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="totam", + smart_link_id="natus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="totam", + smart_link_id="natus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="totam", + smart_link_id="natus", ) assert response.is_closed is True @@ -517,7 +517,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="totam", + smart_link_id="natus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["znsgzattbdwfrpadpmawtmuhb"]}, + filter={"tags": ["bjhbcnjteisr"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="ipsum", + smart_link_id="id", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="ipsum", + smart_link_id="id", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="ipsum", + smart_link_id="id", ) assert response.is_closed is True @@ -756,7 +756,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="ipsum", + smart_link_id="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="sapiente", + smart_link_id="eos", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="sapiente", + smart_link_id="eos", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="sapiente", + smart_link_id="eos", ) assert response.is_closed is True @@ -814,7 +814,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="sapiente", + smart_link_id="eos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="sed", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="sed", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="sed", ) assert response.is_closed is True @@ -873,7 +873,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="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="ea", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="ea", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="ea", ) assert response.is_closed is True @@ -926,7 +926,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="ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="ut", ) assert smart_link is None @@ -956,7 +956,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="ut", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="ut", ) assert response.is_closed is True @@ -979,7 +979,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="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="totam", + smart_link_id="natus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="totam", + smart_link_id="natus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="totam", + smart_link_id="natus", ) assert response.is_closed is True @@ -1031,7 +1031,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="totam", + 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 89e56e94..7f6c0779 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": "zfdiovhcjhihmk", - "tags": ["czwnuscpddjhtsyzbafc"], + "search": "uwiogro", + "tags": ["luxwuzngwguklyppewzowp"], }, 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": "ughvayjm", - "tags": ["yd"], + "search": "p", + "tags": ["mgbhsa"], }, 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": "yo", - "tags": ["eiaeqbbmetjpeemsminlaxrlr"], + "search": "nrrodvmfmbu", + "tags": ["jhjgcdcemygnwuy"], }, 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": "ghzibxfawnbpljuezenbybj", - "tags": ["wtdrskdsnbixwoq"], + "search": "njomyxrbatuoezid", + "tags": ["hjackixkuxqmv"], }, 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": "zfdiovhcjhihmk", - "tags": ["czwnuscpddjhtsyzbafc"], + "search": "uwiogro", + "tags": ["luxwuzngwguklyppewzowp"], }, 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": "ughvayjm", - "tags": ["yd"], + "search": "p", + "tags": ["mgbhsa"], }, 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": "yo", - "tags": ["eiaeqbbmetjpeemsminlaxrlr"], + "search": "nrrodvmfmbu", + "tags": ["jhjgcdcemygnwuy"], }, 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": "ghzibxfawnbpljuezenbybj", - "tags": ["wtdrskdsnbixwoq"], + "search": "njomyxrbatuoezid", + "tags": ["hjackixkuxqmv"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 938688eb..6b2c60dd 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="amet", + 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="amet", + 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="amet", + 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="amet", + 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="amet", + 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="amet", + 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="amet", + 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="amet", + 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="qui", + tracking_link_id="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="praesentium", + 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="praesentium", + 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="praesentium", + 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="praesentium", + 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="praesentium", + 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="amet", + 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="amet", + 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="amet", + 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="amet", + 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="amet", + 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="amet", + 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="amet", + 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="amet", + 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="qui", + tracking_link_id="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="praesentium", + 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="praesentium", + 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="praesentium", + 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="praesentium", + 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="praesentium", + tracking_link_id="ut", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 0234ba0e..1eaf9684 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="minima", + trial_link_id="sit", 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="minima", + trial_link_id="sit", 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="minima", + trial_link_id="sit", 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="minima", + trial_link_id="sit", 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="omnis", + trial_link_id="provident", 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="omnis", + trial_link_id="provident", 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="omnis", + trial_link_id="provident", 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="omnis", + trial_link_id="provident", 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="omnis", + trial_link_id="provident", 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="ut", + trial_link_id="esse", 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="ut", + trial_link_id="esse", 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="ut", + trial_link_id="esse", 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="ut", + trial_link_id="esse", 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="ut", + trial_link_id="esse", 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="minima", + trial_link_id="sit", 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="minima", + trial_link_id="sit", 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="minima", + trial_link_id="sit", 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="minima", + trial_link_id="sit", 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="omnis", + trial_link_id="provident", 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="omnis", + trial_link_id="provident", 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="omnis", + trial_link_id="provident", 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="omnis", + trial_link_id="provident", 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="omnis", + trial_link_id="provident", 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="ut", + trial_link_id="esse", 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="ut", + trial_link_id="esse", 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="ut", + trial_link_id="esse", 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="ut", + trial_link_id="esse", 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="ut", + trial_link_id="esse", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index e3b97bd7..d2bc29d3 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="o", + name="sqmwsrhiaubyuadrl", ) 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="o", + name="sqmwsrhiaubyuadrl", ) 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="o", + name="sqmwsrhiaubyuadrl", ) 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="o", + name="sqmwsrhiaubyuadrl", ) @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="o", + name="sqmwsrhiaubyuadrl", ) 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="o", + name="sqmwsrhiaubyuadrl", ) 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="o", + name="sqmwsrhiaubyuadrl", ) 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="o", + name="sqmwsrhiaubyuadrl", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 7a375259bfb4e8c7ddd50f4ae8438a2ce25c84cc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 20:12:34 +0000 Subject: [PATCH 172/249] 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_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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, 254 insertions(+), 254 deletions(-) diff --git a/.stats.yml b/.stats.yml index c2dbe56a..191e31fc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-54d3b6e23bd2de9cde8fd6f59b4897de40a4ede649e379cb4b11d9715a3be1d4.yml -openapi_spec_hash: 9b10c6d498a07c80ad95978d8d70456f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f3c58cf3159784ef92e18d7dad42c0907ac3e530eae4b514202a6c8db5025ac4.yml +openapi_spec_hash: 1f762a7e9958679c565f9371c13e85e4 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index db7dbcc2..77e54590 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="dolores", 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="dolores", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 1832aee9..3f828857 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="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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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="quis", + 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 5530d715..f374e50d 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + 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="dolor", + post_id="et", account="", ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index d6b66103..886b273c 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="ducimus", + 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="ducimus", + 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="ducimus", + 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="ducimus", + 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="ducimus", + 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="ducimus", + 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="ducimus", + 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="ducimus", + 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="ducimus", + 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="ducimus", + 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="ducimus", + 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="ducimus", + 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="ducimus", + 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="ducimus", + 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="ducimus", + 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="ducimus", + story_id="est", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index b3410f74..57a9cbed 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( - "deserunt", + "necessitatibus", ) 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( - "deserunt", + "necessitatibus", ) 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( - "deserunt", + "necessitatibus", ) 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( - "deserunt", + "necessitatibus", ) 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( - "deserunt", + "necessitatibus", ) 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( - "deserunt", + "necessitatibus", ) 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 2f66fb40..5a3b7513 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="quod", + auth_id="eos", + auth_type="mobile_app", + cookies="eum", custom_proxy={ "host": "proxy.example.com", - "password": '#oVkM?8kd";~V}B', + "password": "$8%}Ue_i~N$4", "port": 8080, - "username": "ullam", + "username": "itaque", }, - email="sage54@example.com", + email="stoltenberg.jennings@example.org", force_connect=True, - name="in", - password="auWnTuS;", - proxy_country="us", - user_agent="placeat", - xbc="rerum", + name="ut", + password="_\\[n 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="quod", + auth_id="eos", + auth_type="mobile_app", + cookies="eum", custom_proxy={ "host": "proxy.example.com", - "password": '#oVkM?8kd";~V}B', + "password": "$8%}Ue_i~N$4", "port": 8080, - "username": "ullam", + "username": "itaque", }, - email="sage54@example.com", + email="stoltenberg.jennings@example.org", force_connect=True, - name="in", - password="auWnTuS;", - proxy_country="us", - user_agent="placeat", - xbc="rerum", + name="ut", + password="_\\[n 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 65694e23..bd4f6161 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 cc59a6da..ce21ecfa 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": ["bjhbcnjteisr"]}, + filter={"tags": ["qgl"]}, 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="id", + smart_link_id="qui", ) 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="id", + smart_link_id="qui", 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="id", + smart_link_id="qui", ) 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="id", + smart_link_id="qui", ) 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="eos", + 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="eos", + 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="eos", + 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="eos", + 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="sed", + smart_link_id="autem", ) 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="sed", + smart_link_id="autem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="autem", ) assert response.is_closed is True @@ -359,7 +359,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="autem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="ea", + smart_link_id="nihil", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="ea", + smart_link_id="nihil", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="ea", + smart_link_id="nihil", ) assert response.is_closed is True @@ -412,7 +412,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="ea", + smart_link_id="nihil", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="qui", ) assert smart_link is None @@ -442,7 +442,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="qui", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="qui", ) assert response.is_closed is True @@ -465,7 +465,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="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="placeat", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="placeat", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="placeat", ) assert response.is_closed is True @@ -517,7 +517,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="placeat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["bjhbcnjteisr"]}, + filter={"tags": ["qgl"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="qui", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="qui", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="qui", ) assert response.is_closed is True @@ -756,7 +756,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="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="eos", + smart_link_id="ut", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="eos", + smart_link_id="ut", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="eos", + smart_link_id="ut", ) assert response.is_closed is True @@ -814,7 +814,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="eos", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="autem", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="autem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="autem", ) assert response.is_closed is True @@ -873,7 +873,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="autem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="ea", + smart_link_id="nihil", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="ea", + smart_link_id="nihil", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="ea", + smart_link_id="nihil", ) assert response.is_closed is True @@ -926,7 +926,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="ea", + smart_link_id="nihil", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="qui", ) assert smart_link is None @@ -956,7 +956,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="qui", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="qui", ) assert response.is_closed is True @@ -979,7 +979,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="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="placeat", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="placeat", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="placeat", ) assert response.is_closed is True @@ -1031,7 +1031,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="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_stored.py b/tests/api_resources/test_stored.py index 7f6c0779..c11feed6 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": "uwiogro", - "tags": ["luxwuzngwguklyppewzowp"], + "search": "hsqnuwegbpv", + "tags": ["utnan"], }, 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": ["mgbhsa"], + "search": "favwwdswgtvoppddvnzuvw", + "tags": ["ezwzbvcnsijetucfllwxcv"], }, 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": "nrrodvmfmbu", - "tags": ["jhjgcdcemygnwuy"], + "include_smart_links": False, + "search": "twbxyogspluu", + "tags": ["dxxootgbelyxzccella"], }, 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": "njomyxrbatuoezid", - "tags": ["hjackixkuxqmv"], + "include_smart_links": False, + "search": "sobutjunkvl", + "tags": ["xhopyzujyyjrhesptzazoinb"], }, 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": "uwiogro", - "tags": ["luxwuzngwguklyppewzowp"], + "search": "hsqnuwegbpv", + "tags": ["utnan"], }, 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": ["mgbhsa"], + "search": "favwwdswgtvoppddvnzuvw", + "tags": ["ezwzbvcnsijetucfllwxcv"], }, 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": "nrrodvmfmbu", - "tags": ["jhjgcdcemygnwuy"], + "include_smart_links": False, + "search": "twbxyogspluu", + "tags": ["dxxootgbelyxzccella"], }, 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": "njomyxrbatuoezid", - "tags": ["hjackixkuxqmv"], + "include_smart_links": False, + "search": "sobutjunkvl", + "tags": ["xhopyzujyyjrhesptzazoinb"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 6b2c60dd..8b64ad31 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="nisi", + tracking_link_id="enim", 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="nisi", + tracking_link_id="enim", 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="nisi", + tracking_link_id="enim", 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="nisi", + tracking_link_id="enim", 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="nisi", + tracking_link_id="enim", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="nisi", + tracking_link_id="enim", 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="nisi", + tracking_link_id="enim", 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="nisi", + tracking_link_id="enim", 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="nisi", + tracking_link_id="enim", 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="nisi", + tracking_link_id="enim", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", 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="voluptatem", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 1eaf9684..74d1a741 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="provident", + trial_link_id="et", 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="provident", + trial_link_id="et", 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="provident", + trial_link_id="et", 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="provident", + trial_link_id="et", 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="provident", + trial_link_id="et", 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="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="esse", + 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="esse", + 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="esse", + 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="esse", + 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="repudiandae", + trial_link_id="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="provident", + trial_link_id="et", 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="provident", + trial_link_id="et", 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="provident", + trial_link_id="et", 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="provident", + trial_link_id="et", 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="provident", + trial_link_id="et", 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="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="esse", + 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="esse", + 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="esse", + 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="esse", + trial_link_id="facere", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index d2bc29d3..37f4f793 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="sqmwsrhiaubyuadrl", + name="vedgty", ) 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="sqmwsrhiaubyuadrl", + name="vedgty", ) 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="sqmwsrhiaubyuadrl", + name="vedgty", ) 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="sqmwsrhiaubyuadrl", + name="vedgty", ) @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="sqmwsrhiaubyuadrl", + name="vedgty", ) 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="sqmwsrhiaubyuadrl", + name="vedgty", ) 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="sqmwsrhiaubyuadrl", + name="vedgty", ) 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="sqmwsrhiaubyuadrl", + name="vedgty", ) @pytest.mark.skip(reason="Mock server tests are disabled") From b67d110c34f72e85c8d46044f8b7881a2b0f68ed Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 23:12:33 +0000 Subject: [PATCH 173/249] 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_smart_links.py | 100 +++++++++--------- 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, 274 insertions(+), 274 deletions(-) diff --git a/.stats.yml b/.stats.yml index 191e31fc..96166b18 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f3c58cf3159784ef92e18d7dad42c0907ac3e530eae4b514202a6c8db5025ac4.yml -openapi_spec_hash: 1f762a7e9958679c565f9371c13e85e4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-aadc8db09f16f7e55f02b26c081a0a1a57f0a730c7c96a4edafae3e693f4b002.yml +openapi_spec_hash: 34c9b28dda609f957abbd3d413fe200a config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 77e54590..21b80250 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="dolores", + message_id="dolorem", 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="dolores", + message_id="dolorem", 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="dolores", + message_id="dolorem", 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="dolores", + message_id="dolorem", 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="dolores", + message_id="dolorem", 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="dolores", + message_id="dolorem", 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="dolores", + message_id="dolorem", 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="dolores", + message_id="dolorem", 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="dolores", + message_id="dolorem", 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="dolores", + message_id="dolorem", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 3f828857..b6ea397b 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 f374e50d..83e64966 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="et", + post_id="impedit", 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="et", + post_id="impedit", 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="et", + post_id="impedit", 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="et", + post_id="impedit", 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="et", + post_id="impedit", 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="et", + post_id="impedit", 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="et", + post_id="impedit", 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="et", + post_id="impedit", 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="et", + post_id="impedit", 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="et", + post_id="impedit", 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="et", + post_id="impedit", 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="et", + post_id="impedit", 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="et", + post_id="impedit", 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="et", + post_id="impedit", 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="et", + post_id="impedit", 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="et", + post_id="impedit", 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="et", + post_id="impedit", 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="et", + post_id="impedit", 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="et", + post_id="impedit", 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="et", + post_id="impedit", 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 444937ba..7549791e 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 2ced6cb5..b5f3d61a 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 9664075f..544df889 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 886b273c..517ccd47 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 57a9cbed..5c3afb22 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( - "necessitatibus", + "natus", ) 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( - "necessitatibus", + "natus", ) 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( - "necessitatibus", + "natus", ) 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( - "necessitatibus", + "natus", ) 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( - "necessitatibus", + "natus", ) 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( - "necessitatibus", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 5a3b7513..9848debc 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="eos", - auth_type="mobile_app", - cookies="eum", + auth_id="sit", + auth_type="raw_data", + cookies="animi", custom_proxy={ "host": "proxy.example.com", - "password": "$8%}Ue_i~N$4", + "password": "T+JK4LV-3_3b?`", "port": 8080, - "username": "itaque", + "username": "eveniet", }, - email="stoltenberg.jennings@example.org", - force_connect=True, - name="ut", - password="_\\[n None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="eos", - auth_type="mobile_app", - cookies="eum", + auth_id="sit", + auth_type="raw_data", + cookies="animi", custom_proxy={ "host": "proxy.example.com", - "password": "$8%}Ue_i~N$4", + "password": "T+JK4LV-3_3b?`", "port": 8080, - "username": "itaque", + "username": "eveniet", }, - email="stoltenberg.jennings@example.org", - force_connect=True, - name="ut", - password="_\\[n 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 4fb0fa41..0f3980c1 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 ce21ecfa..7f986e85 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": ["qgl"]}, + filter={"tags": ["oixuzikzeiobfew"]}, 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="qui", + smart_link_id="minus", ) 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="qui", + smart_link_id="minus", 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="qui", + smart_link_id="minus", ) 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="qui", + smart_link_id="minus", ) 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="repellat", ) 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="repellat", 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="repellat", ) 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="repellat", ) 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="autem", + smart_link_id="laudantium", ) 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="autem", + smart_link_id="laudantium", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="laudantium", ) assert response.is_closed is True @@ -359,7 +359,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="laudantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="nihil", + smart_link_id="dolor", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="nihil", + smart_link_id="dolor", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="nihil", + smart_link_id="dolor", ) assert response.is_closed is True @@ -412,7 +412,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="nihil", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="tempora", ) assert smart_link is None @@ -442,7 +442,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="tempora", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="tempora", ) assert response.is_closed is True @@ -465,7 +465,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="tempora", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="placeat", + smart_link_id="at", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="placeat", + smart_link_id="at", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="placeat", + smart_link_id="at", ) assert response.is_closed is True @@ -517,7 +517,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="placeat", + smart_link_id="at", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["qgl"]}, + filter={"tags": ["oixuzikzeiobfew"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="minus", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="minus", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="minus", ) assert response.is_closed is True @@ -756,7 +756,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="minus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="repellat", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="repellat", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="repellat", ) assert response.is_closed is True @@ -814,7 +814,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="repellat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="laudantium", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="laudantium", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="laudantium", ) assert response.is_closed is True @@ -873,7 +873,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="laudantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="nihil", + smart_link_id="dolor", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="nihil", + smart_link_id="dolor", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="nihil", + smart_link_id="dolor", ) assert response.is_closed is True @@ -926,7 +926,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="nihil", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="tempora", ) assert smart_link is None @@ -956,7 +956,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="tempora", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="tempora", ) assert response.is_closed is True @@ -979,7 +979,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="tempora", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="placeat", + smart_link_id="at", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="placeat", + smart_link_id="at", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="placeat", + smart_link_id="at", ) assert response.is_closed is True @@ -1031,7 +1031,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="placeat", + 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 c11feed6..7f3cfe38 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": "hsqnuwegbpv", - "tags": ["utnan"], + "search": "qvtmt", + "tags": ["rbb"], }, 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": "favwwdswgtvoppddvnzuvw", - "tags": ["ezwzbvcnsijetucfllwxcv"], + "search": "lcazpaakghxtjqp", + "tags": ["vhjccgbfuqfghfllnpnf"], }, 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": "twbxyogspluu", - "tags": ["dxxootgbelyxzccella"], + "include_smart_links": True, + "search": "ymllodsbt", + "tags": ["hjaesfntacgfov"], }, 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": "sobutjunkvl", - "tags": ["xhopyzujyyjrhesptzazoinb"], + "include_smart_links": True, + "search": "ienxkxvlxswgzkvvzbdzhck", + "tags": ["dmhwbkeerohqcdsfsocwyn"], }, 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": "hsqnuwegbpv", - "tags": ["utnan"], + "search": "qvtmt", + "tags": ["rbb"], }, 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": "favwwdswgtvoppddvnzuvw", - "tags": ["ezwzbvcnsijetucfllwxcv"], + "search": "lcazpaakghxtjqp", + "tags": ["vhjccgbfuqfghfllnpnf"], }, 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": "twbxyogspluu", - "tags": ["dxxootgbelyxzccella"], + "include_smart_links": True, + "search": "ymllodsbt", + "tags": ["hjaesfntacgfov"], }, 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": "sobutjunkvl", - "tags": ["xhopyzujyyjrhesptzazoinb"], + "include_smart_links": True, + "search": "ienxkxvlxswgzkvvzbdzhck", + "tags": ["dmhwbkeerohqcdsfsocwyn"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 8b64ad31..b04c045f 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="quaerat", + tracking_link_id="atque", 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="quaerat", + tracking_link_id="atque", 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="quaerat", + tracking_link_id="atque", 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="quaerat", + tracking_link_id="atque", 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="quaerat", + tracking_link_id="atque", 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="quaerat", + tracking_link_id="atque", 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="quaerat", + tracking_link_id="atque", 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="quaerat", + tracking_link_id="atque", 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="voluptatem", + tracking_link_id="ipsam", 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="voluptatem", + tracking_link_id="ipsam", 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="voluptatem", + tracking_link_id="ipsam", 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="voluptatem", + tracking_link_id="ipsam", 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="voluptatem", + tracking_link_id="ipsam", 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="quaerat", + tracking_link_id="atque", 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="quaerat", + tracking_link_id="atque", 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="quaerat", + tracking_link_id="atque", 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="quaerat", + tracking_link_id="atque", 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="quaerat", + tracking_link_id="atque", 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="quaerat", + tracking_link_id="atque", 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="quaerat", + tracking_link_id="atque", 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="quaerat", + tracking_link_id="atque", 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="enim", + 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="voluptatem", + tracking_link_id="ipsam", 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="voluptatem", + tracking_link_id="ipsam", 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="voluptatem", + tracking_link_id="ipsam", 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="voluptatem", + tracking_link_id="ipsam", 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="voluptatem", + tracking_link_id="ipsam", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 74d1a741..7c825862 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="labore", + trial_link_id="qui", 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="labore", + trial_link_id="qui", 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="labore", + trial_link_id="qui", 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="labore", + trial_link_id="qui", 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="labore", + trial_link_id="qui", 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="labore", + trial_link_id="qui", 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="labore", + trial_link_id="qui", 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="labore", + trial_link_id="qui", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="et", + trial_link_id="nobis", 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="et", + trial_link_id="nobis", 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="et", + trial_link_id="nobis", 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="et", + trial_link_id="nobis", 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="et", + trial_link_id="nobis", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="labore", + trial_link_id="qui", 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="labore", + trial_link_id="qui", 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="labore", + trial_link_id="qui", 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="labore", + trial_link_id="qui", 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="labore", + trial_link_id="qui", 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="labore", + trial_link_id="qui", 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="labore", + trial_link_id="qui", 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="labore", + trial_link_id="qui", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="et", + trial_link_id="nobis", 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="et", + trial_link_id="nobis", 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="et", + trial_link_id="nobis", 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="et", + trial_link_id="nobis", 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="et", + trial_link_id="nobis", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 37f4f793..93552baf 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="vedgty", + name="dhhjiudcqfoy", ) 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="vedgty", + name="dhhjiudcqfoy", ) 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="vedgty", + name="dhhjiudcqfoy", ) 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="vedgty", + name="dhhjiudcqfoy", ) @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="vedgty", + name="dhhjiudcqfoy", ) 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="vedgty", + name="dhhjiudcqfoy", ) 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="vedgty", + name="dhhjiudcqfoy", ) 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="vedgty", + name="dhhjiudcqfoy", ) @pytest.mark.skip(reason="Mock server tests are disabled") From a2e9fba0d16cfb60cdbc7e98f94adc6dc7f20597 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 17 Jul 2026 01:12:31 +0000 Subject: [PATCH 174/249] 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_notifications.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, 252 insertions(+), 252 deletions(-) diff --git a/.stats.yml b/.stats.yml index 96166b18..2d51f7f3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-aadc8db09f16f7e55f02b26c081a0a1a57f0a730c7c96a4edafae3e693f4b002.yml -openapi_spec_hash: 34c9b28dda609f957abbd3d413fe200a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a281ad8120bcab23714426a32e3b2a2b1f6340101179dd5194f5e13a54c92419.yml +openapi_spec_hash: b0ea15843d5237618d447796c6a1398f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 21b80250..15f6dfce 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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 b6ea397b..032d651c 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="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="eligendi", + 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="eligendi", + 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="eligendi", + 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="eligendi", + 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="eligendi", + 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="eligendi", + 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="eligendi", + 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="eligendi", + 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="eligendi", + 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="eligendi", + 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="eligendi", + 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="eligendi", + 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="eligendi", + 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="eligendi", + 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="eligendi", + 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 83e64966..beb3d11b 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + 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="impedit", + post_id="voluptatem", account="", ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 517ccd47..b65d2efe 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + story_id="officia", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 5c3afb22..15dbf748 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( - "natus", + "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( - "natus", + "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( - "natus", + "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( - "natus", + "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( - "natus", + "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( - "natus", + "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 9848debc..3e11acbc 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="sit", - auth_type="raw_data", - cookies="animi", + auth_id="quia", + auth_type="email_password", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "T+JK4LV-3_3b?`", + "password": "d~e{YF None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="sit", - auth_type="raw_data", - cookies="animi", + auth_id="quia", + auth_type="email_password", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "T+JK4LV-3_3b?`", + "password": "d~e{YF 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 0f3980c1..583d8ad4 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="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="tips", + 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 7f986e85..30cac069 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": ["oixuzikzeiobfew"]}, + filter={"tags": ["ofjmvhr"]}, 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="minus", + smart_link_id="ducimus", ) 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="minus", + smart_link_id="ducimus", 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="minus", + smart_link_id="ducimus", ) 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="minus", + smart_link_id="ducimus", ) 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="repellat", + smart_link_id="quo", ) 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="repellat", + smart_link_id="quo", 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="repellat", + smart_link_id="quo", ) 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="repellat", + smart_link_id="quo", ) 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="laudantium", + smart_link_id="quae", ) 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="laudantium", + smart_link_id="quae", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="laudantium", + smart_link_id="quae", ) assert response.is_closed is True @@ -359,7 +359,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="laudantium", + smart_link_id="quae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="dolor", + smart_link_id="voluptate", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="dolor", + smart_link_id="voluptate", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="dolor", + smart_link_id="voluptate", ) assert response.is_closed is True @@ -412,7 +412,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="dolor", + smart_link_id="voluptate", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="tempora", + smart_link_id="est", ) assert smart_link is None @@ -442,7 +442,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="tempora", + smart_link_id="est", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="tempora", + smart_link_id="est", ) assert response.is_closed is True @@ -465,7 +465,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="tempora", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="quia", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="quia", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="quia", ) assert response.is_closed is True @@ -517,7 +517,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="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["oixuzikzeiobfew"]}, + filter={"tags": ["ofjmvhr"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="minus", + smart_link_id="ducimus", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="minus", + smart_link_id="ducimus", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="minus", + smart_link_id="ducimus", ) assert response.is_closed is True @@ -756,7 +756,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="minus", + smart_link_id="ducimus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="repellat", + smart_link_id="quo", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="repellat", + smart_link_id="quo", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="repellat", + smart_link_id="quo", ) assert response.is_closed is True @@ -814,7 +814,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="repellat", + smart_link_id="quo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="laudantium", + smart_link_id="quae", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="laudantium", + smart_link_id="quae", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="laudantium", + smart_link_id="quae", ) assert response.is_closed is True @@ -873,7 +873,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="laudantium", + smart_link_id="quae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="dolor", + smart_link_id="voluptate", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="dolor", + smart_link_id="voluptate", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="dolor", + smart_link_id="voluptate", ) assert response.is_closed is True @@ -926,7 +926,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="dolor", + smart_link_id="voluptate", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="tempora", + smart_link_id="est", ) assert smart_link is None @@ -956,7 +956,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="tempora", + smart_link_id="est", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="tempora", + smart_link_id="est", ) assert response.is_closed is True @@ -979,7 +979,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="tempora", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="quia", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="quia", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="quia", ) assert response.is_closed is True @@ -1031,7 +1031,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="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 7f3cfe38..3ea934d1 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": "qvtmt", - "tags": ["rbb"], + "search": "ixppgeevgatzepepxifaa", + "tags": ["euzekzc"], }, 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": "lcazpaakghxtjqp", - "tags": ["vhjccgbfuqfghfllnpnf"], + "search": "fqenxfjbvewiifhgspv", + "tags": ["acneauhpxuoomwlbstpj"], }, 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": "ymllodsbt", - "tags": ["hjaesfntacgfov"], + "include_smart_links": False, + "search": "stopvqglkmmpvhgj", + "tags": ["ty"], }, 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": "ienxkxvlxswgzkvvzbdzhck", - "tags": ["dmhwbkeerohqcdsfsocwyn"], + "search": "bgjxknhiafnbxcxbrapebh", + "tags": ["pcyeznwrk"], }, 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": "qvtmt", - "tags": ["rbb"], + "search": "ixppgeevgatzepepxifaa", + "tags": ["euzekzc"], }, 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": "lcazpaakghxtjqp", - "tags": ["vhjccgbfuqfghfllnpnf"], + "search": "fqenxfjbvewiifhgspv", + "tags": ["acneauhpxuoomwlbstpj"], }, 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": "ymllodsbt", - "tags": ["hjaesfntacgfov"], + "include_smart_links": False, + "search": "stopvqglkmmpvhgj", + "tags": ["ty"], }, 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": "ienxkxvlxswgzkvvzbdzhck", - "tags": ["dmhwbkeerohqcdsfsocwyn"], + "search": "bgjxknhiafnbxcxbrapebh", + "tags": ["pcyeznwrk"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index b04c045f..986ea3b8 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="atque", + tracking_link_id="facilis", 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="atque", + tracking_link_id="facilis", 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="atque", + tracking_link_id="facilis", 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="atque", + tracking_link_id="facilis", 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="atque", + tracking_link_id="facilis", 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="atque", + tracking_link_id="facilis", 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="atque", + tracking_link_id="facilis", 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="atque", + tracking_link_id="facilis", 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="molestias", 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="molestias", 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="molestias", 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="molestias", 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="molestias", 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="ipsam", + tracking_link_id="eum", 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="ipsam", + tracking_link_id="eum", 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="ipsam", + tracking_link_id="eum", 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="ipsam", + tracking_link_id="eum", 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="ipsam", + tracking_link_id="eum", 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="atque", + tracking_link_id="facilis", 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="atque", + tracking_link_id="facilis", 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="atque", + tracking_link_id="facilis", 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="atque", + tracking_link_id="facilis", 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="atque", + tracking_link_id="facilis", 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="atque", + tracking_link_id="facilis", 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="atque", + tracking_link_id="facilis", 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="atque", + tracking_link_id="facilis", 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="molestias", 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="molestias", 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="molestias", 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="molestias", 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="molestias", 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="ipsam", + tracking_link_id="eum", 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="ipsam", + tracking_link_id="eum", 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="ipsam", + tracking_link_id="eum", 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="ipsam", + tracking_link_id="eum", 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="ipsam", + tracking_link_id="eum", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 7c825862..2dfb5ca7 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="expedita", + trial_link_id="voluptas", 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="expedita", + trial_link_id="voluptas", 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="expedita", + trial_link_id="voluptas", 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="expedita", + trial_link_id="voluptas", 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="nobis", + trial_link_id="nesciunt", 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="nobis", + trial_link_id="nesciunt", 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="nobis", + trial_link_id="nesciunt", 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="nobis", + trial_link_id="nesciunt", 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="nobis", + trial_link_id="nesciunt", 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="expedita", + trial_link_id="voluptas", 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="expedita", + trial_link_id="voluptas", 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="expedita", + trial_link_id="voluptas", 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="expedita", + trial_link_id="voluptas", 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="nobis", + trial_link_id="nesciunt", 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="nobis", + trial_link_id="nesciunt", 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="nobis", + trial_link_id="nesciunt", 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="nobis", + trial_link_id="nesciunt", 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="nobis", + trial_link_id="nesciunt", 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + 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="voluptas", + trial_link_id="sit", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 93552baf..3339b60c 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="dhhjiudcqfoy", + name="vtjdvjrwhcuxvbjwxduwq", ) 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="dhhjiudcqfoy", + name="vtjdvjrwhcuxvbjwxduwq", ) 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="dhhjiudcqfoy", + name="vtjdvjrwhcuxvbjwxduwq", ) 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="dhhjiudcqfoy", + name="vtjdvjrwhcuxvbjwxduwq", ) @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="dhhjiudcqfoy", + name="vtjdvjrwhcuxvbjwxduwq", ) 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="dhhjiudcqfoy", + name="vtjdvjrwhcuxvbjwxduwq", ) 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="dhhjiudcqfoy", + name="vtjdvjrwhcuxvbjwxduwq", ) 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="dhhjiudcqfoy", + name="vtjdvjrwhcuxvbjwxduwq", ) @pytest.mark.skip(reason="Mock server tests are disabled") From cb6a8a3b99a7803e71fe81c4775d7bc08c75fe8d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 17 Jul 2026 02:12:33 +0000 Subject: [PATCH 175/249] 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 | 100 +++++++++--------- 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, 254 insertions(+), 254 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2d51f7f3..28ab01ee 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a281ad8120bcab23714426a32e3b2a2b1f6340101179dd5194f5e13a54c92419.yml -openapi_spec_hash: b0ea15843d5237618d447796c6a1398f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-be1f3fec683db5e55b47196d3677cb0502c13822eef2b5fcba723ac701d8745c.yml +openapi_spec_hash: d65f87233bd2b9a082858b75eb2a50d6 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 15f6dfce..206af695 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="placeat", 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="placeat", 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="placeat", 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="placeat", 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="placeat", 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="placeat", 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="placeat", 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="placeat", 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="placeat", 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="placeat", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 032d651c..ed043cf5 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", 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="sapiente", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index beb3d11b..25fa36ae 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="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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + post_id="molestias", account="", ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index b65d2efe..4481eb3d 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", 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="ea", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 15dbf748..c6284bc1 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", + "architecto", ) 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", + "architecto", ) 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", + "architecto", ) 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", + "architecto", ) 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", + "architecto", ) 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", + "architecto", ) 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 3e11acbc..a54d735b 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="quia", - auth_type="email_password", - cookies="et", + auth_id="dolore", + auth_type="mobile_app", + cookies="harum", custom_proxy={ "host": "proxy.example.com", - "password": "d~e{YF None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="quia", - auth_type="email_password", - cookies="et", + auth_id="dolore", + auth_type="mobile_app", + cookies="harum", custom_proxy={ "host": "proxy.example.com", - "password": "d~e{YF 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 bd4f6161..65694e23 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 30cac069..c4a97686 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": ["ofjmvhr"]}, + filter={"tags": ["lccakyjmiekyxqxer"]}, 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="ducimus", + smart_link_id="cupiditate", ) 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="ducimus", + smart_link_id="cupiditate", 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="ducimus", + smart_link_id="cupiditate", ) 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="ducimus", + smart_link_id="cupiditate", ) 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="quo", + smart_link_id="quibusdam", ) 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="quo", + smart_link_id="quibusdam", 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="quo", + smart_link_id="quibusdam", ) 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="quo", + smart_link_id="quibusdam", ) 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="quae", + smart_link_id="voluptatem", ) 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="quae", + smart_link_id="voluptatem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="voluptatem", ) assert response.is_closed is True @@ -359,7 +359,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="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="voluptate", + smart_link_id="reprehenderit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="voluptate", + smart_link_id="reprehenderit", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="voluptate", + smart_link_id="reprehenderit", ) assert response.is_closed is True @@ -412,7 +412,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="voluptate", + smart_link_id="reprehenderit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="est", + smart_link_id="sapiente", ) assert smart_link is None @@ -442,7 +442,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="est", + smart_link_id="sapiente", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="est", + smart_link_id="sapiente", ) assert response.is_closed is True @@ -465,7 +465,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="est", + smart_link_id="sapiente", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="aut", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="aut", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="aut", ) assert response.is_closed is True @@ -517,7 +517,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="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["ofjmvhr"]}, + filter={"tags": ["lccakyjmiekyxqxer"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="ducimus", + smart_link_id="cupiditate", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="ducimus", + smart_link_id="cupiditate", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="ducimus", + smart_link_id="cupiditate", ) assert response.is_closed is True @@ -756,7 +756,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="ducimus", + smart_link_id="cupiditate", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="quibusdam", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="quibusdam", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="quibusdam", ) assert response.is_closed is True @@ -814,7 +814,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="quibusdam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="voluptatem", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="voluptatem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="voluptatem", ) assert response.is_closed is True @@ -873,7 +873,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="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="voluptate", + smart_link_id="reprehenderit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="voluptate", + smart_link_id="reprehenderit", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="voluptate", + smart_link_id="reprehenderit", ) assert response.is_closed is True @@ -926,7 +926,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="voluptate", + smart_link_id="reprehenderit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="est", + smart_link_id="sapiente", ) assert smart_link is None @@ -956,7 +956,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="est", + smart_link_id="sapiente", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="est", + smart_link_id="sapiente", ) assert response.is_closed is True @@ -979,7 +979,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="est", + smart_link_id="sapiente", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="aut", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="aut", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="aut", ) assert response.is_closed is True @@ -1031,7 +1031,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="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 3ea934d1..f35b6d58 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": "ixppgeevgatzepepxifaa", - "tags": ["euzekzc"], + "search": "zwwnzjquhesnsgkujxvxqbkxs", + "tags": ["gzldbmry"], }, 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": "fqenxfjbvewiifhgspv", - "tags": ["acneauhpxuoomwlbstpj"], + "search": "jzw", + "tags": ["ohdxotmpncezs"], }, 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": "stopvqglkmmpvhgj", - "tags": ["ty"], + "include_smart_links": True, + "search": "vhdwelrzzwnd", + "tags": ["vauwevpstygekgzvcgso"], }, 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": "bgjxknhiafnbxcxbrapebh", - "tags": ["pcyeznwrk"], + "include_smart_links": False, + "search": "jsaat", + "tags": ["johzsndvzybeqeldqykeypmw"], }, 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": "ixppgeevgatzepepxifaa", - "tags": ["euzekzc"], + "search": "zwwnzjquhesnsgkujxvxqbkxs", + "tags": ["gzldbmry"], }, 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": "fqenxfjbvewiifhgspv", - "tags": ["acneauhpxuoomwlbstpj"], + "search": "jzw", + "tags": ["ohdxotmpncezs"], }, 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": "stopvqglkmmpvhgj", - "tags": ["ty"], + "include_smart_links": True, + "search": "vhdwelrzzwnd", + "tags": ["vauwevpstygekgzvcgso"], }, 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": "bgjxknhiafnbxcxbrapebh", - "tags": ["pcyeznwrk"], + "include_smart_links": False, + "search": "jsaat", + "tags": ["johzsndvzybeqeldqykeypmw"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 986ea3b8..19ee1b5c 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="facilis", + tracking_link_id="itaque", 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="facilis", + tracking_link_id="itaque", 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="facilis", + tracking_link_id="itaque", 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="facilis", + tracking_link_id="itaque", 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="facilis", + tracking_link_id="itaque", 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="facilis", + tracking_link_id="itaque", 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="facilis", + tracking_link_id="itaque", 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="facilis", + tracking_link_id="itaque", 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="molestias", + tracking_link_id="ea", 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="molestias", + tracking_link_id="ea", 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="molestias", + tracking_link_id="ea", 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="molestias", + tracking_link_id="ea", 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="molestias", + tracking_link_id="ea", 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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="facilis", + tracking_link_id="itaque", 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="facilis", + tracking_link_id="itaque", 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="facilis", + tracking_link_id="itaque", 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="facilis", + tracking_link_id="itaque", 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="facilis", + tracking_link_id="itaque", 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="facilis", + tracking_link_id="itaque", 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="facilis", + tracking_link_id="itaque", 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="facilis", + tracking_link_id="itaque", 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="molestias", + tracking_link_id="ea", 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="molestias", + tracking_link_id="ea", 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="molestias", + tracking_link_id="ea", 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="molestias", + tracking_link_id="ea", 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="molestias", + tracking_link_id="ea", 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="eum", + 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="eum", + 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="eum", + 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="eum", + 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="eum", + tracking_link_id="et", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 2dfb5ca7..70cc7b32 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="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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="voluptas", + trial_link_id="deleniti", 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="voluptas", + trial_link_id="deleniti", 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="voluptas", + trial_link_id="deleniti", 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="voluptas", + trial_link_id="deleniti", 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="nesciunt", + trial_link_id="odit", 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="nesciunt", + trial_link_id="odit", 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="nesciunt", + trial_link_id="odit", 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="nesciunt", + trial_link_id="odit", 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="nesciunt", + trial_link_id="odit", 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="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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="voluptas", + trial_link_id="deleniti", 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="voluptas", + trial_link_id="deleniti", 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="voluptas", + trial_link_id="deleniti", 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="voluptas", + trial_link_id="deleniti", 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="nesciunt", + trial_link_id="odit", 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="nesciunt", + trial_link_id="odit", 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="nesciunt", + trial_link_id="odit", 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="nesciunt", + trial_link_id="odit", 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="nesciunt", + trial_link_id="odit", 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="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="sit", + 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="sit", + 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="sit", + 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="sit", + trial_link_id="laborum", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 3339b60c..23160606 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="vtjdvjrwhcuxvbjwxduwq", + name="ssvowwfebrcyegebszgh", ) 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="vtjdvjrwhcuxvbjwxduwq", + name="ssvowwfebrcyegebszgh", ) 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="vtjdvjrwhcuxvbjwxduwq", + name="ssvowwfebrcyegebszgh", ) 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="vtjdvjrwhcuxvbjwxduwq", + name="ssvowwfebrcyegebszgh", ) @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="vtjdvjrwhcuxvbjwxduwq", + name="ssvowwfebrcyegebszgh", ) 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="vtjdvjrwhcuxvbjwxduwq", + name="ssvowwfebrcyegebszgh", ) 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="vtjdvjrwhcuxvbjwxduwq", + name="ssvowwfebrcyegebszgh", ) 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="vtjdvjrwhcuxvbjwxduwq", + name="ssvowwfebrcyegebszgh", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 20288744b129ce287fd92c3ce3d37f8a3cf8b887 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 17 Jul 2026 13:12:33 +0000 Subject: [PATCH 176/249] 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 +-- 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_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, 246 insertions(+), 246 deletions(-) diff --git a/.stats.yml b/.stats.yml index 28ab01ee..57bde836 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-be1f3fec683db5e55b47196d3677cb0502c13822eef2b5fcba723ac701d8745c.yml -openapi_spec_hash: d65f87233bd2b9a082858b75eb2a50d6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-57b731f396b1e439775537f9de5ab9525ed1ac5c0508abffdbe2f6f9810226f8.yml +openapi_spec_hash: e7b2a3c7f5dc89331cedaa0186015f83 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 206af695..ebbb00cc 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="placeat", + message_id="commodi", 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="placeat", + message_id="commodi", 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="placeat", + message_id="commodi", 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="placeat", + message_id="commodi", 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="placeat", + message_id="commodi", 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="placeat", + message_id="commodi", 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="placeat", + message_id="commodi", 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="placeat", + message_id="commodi", 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="placeat", + message_id="commodi", 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="placeat", + message_id="commodi", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index ed043cf5..126fe602 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="sapiente", + list_id="modi", 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="sapiente", + list_id="modi", 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="sapiente", + list_id="modi", 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="sapiente", + list_id="modi", 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="sapiente", + list_id="modi", 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="sapiente", + list_id="modi", 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="sapiente", + list_id="modi", 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="sapiente", + list_id="modi", 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="sapiente", + list_id="modi", 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="sapiente", + list_id="modi", 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="sapiente", + list_id="modi", 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="sapiente", + list_id="modi", 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="sapiente", + list_id="modi", 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="sapiente", + list_id="modi", 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="sapiente", + list_id="modi", 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="sapiente", + list_id="modi", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 25fa36ae..e672602b 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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="illo", 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 7549791e..a62ccbd3 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/test_accounts.py b/tests/api_resources/test_accounts.py index c6284bc1..5c7af9d2 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( - "architecto", + "quos", ) 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( - "architecto", + "quos", ) 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( - "architecto", + "quos", ) 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( - "architecto", + "quos", ) 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( - "architecto", + "quos", ) 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( - "architecto", + "quos", ) 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 a54d735b..3aec0722 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="dolore", - auth_type="mobile_app", - cookies="harum", + auth_id="libero", + auth_type="raw_data", + cookies="totam", custom_proxy={ "host": "proxy.example.com", - "password": 'ct?f"}u0', + "password": "+gna@1", "port": 8080, - "username": "et", + "username": "dicta", }, - email="sedrick30@example.org", - force_connect=True, - name="assumenda", - password="iXoC]'~T,d,0$|\\l", - proxy_country="gb", - user_agent="culpa", - xbc="alias", + email="satterfield.maudie@example.net", + force_connect=False, + name="suscipit", + password="3l3Hl<\"SL19WR'3!=G,^", + proxy_country="uk", + user_agent="minus", + xbc="rerum", ) 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="dolore", - auth_type="mobile_app", - cookies="harum", + auth_id="libero", + auth_type="raw_data", + cookies="totam", custom_proxy={ "host": "proxy.example.com", - "password": 'ct?f"}u0', + "password": "+gna@1", "port": 8080, - "username": "et", + "username": "dicta", }, - email="sedrick30@example.org", - force_connect=True, - name="assumenda", - password="iXoC]'~T,d,0$|\\l", - proxy_country="gb", - user_agent="culpa", - xbc="alias", + email="satterfield.maudie@example.net", + force_connect=False, + name="suscipit", + password="3l3Hl<\"SL19WR'3!=G,^", + proxy_country="uk", + user_agent="minus", + xbc="rerum", ) 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 9249f386..0d035d3b 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="gb", ) 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="gb", ) 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 583d8ad4..0f3980c1 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="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="all", + 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 c4a97686..f0d7dc31 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": ["lccakyjmiekyxqxer"]}, + filter={"tags": ["gdgu"]}, 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="cupiditate", + smart_link_id="temporibus", ) 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="cupiditate", + smart_link_id="temporibus", 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="cupiditate", + smart_link_id="temporibus", ) 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="cupiditate", + smart_link_id="temporibus", ) 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="quibusdam", + smart_link_id="officiis", ) 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="quibusdam", + smart_link_id="officiis", 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="quibusdam", + smart_link_id="officiis", ) 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="quibusdam", + smart_link_id="officiis", ) 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="voluptatem", + smart_link_id="qui", ) 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="voluptatem", + smart_link_id="qui", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="voluptatem", + smart_link_id="qui", ) assert response.is_closed is True @@ -359,7 +359,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="voluptatem", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="reprehenderit", + smart_link_id="et", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="reprehenderit", + smart_link_id="et", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="reprehenderit", + smart_link_id="et", ) assert response.is_closed is True @@ -412,7 +412,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="reprehenderit", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="sapiente", + smart_link_id="dicta", ) assert smart_link is None @@ -442,7 +442,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="sapiente", + smart_link_id="dicta", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="sapiente", + smart_link_id="dicta", ) assert response.is_closed is True @@ -465,7 +465,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="sapiente", + smart_link_id="dicta", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="et", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="et", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="et", ) assert response.is_closed is True @@ -517,7 +517,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="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["lccakyjmiekyxqxer"]}, + filter={"tags": ["gdgu"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="cupiditate", + smart_link_id="temporibus", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="cupiditate", + smart_link_id="temporibus", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="cupiditate", + smart_link_id="temporibus", ) assert response.is_closed is True @@ -756,7 +756,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="cupiditate", + smart_link_id="temporibus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="quibusdam", + smart_link_id="officiis", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="quibusdam", + smart_link_id="officiis", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="quibusdam", + smart_link_id="officiis", ) assert response.is_closed is True @@ -814,7 +814,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="quibusdam", + smart_link_id="officiis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="voluptatem", + smart_link_id="qui", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="voluptatem", + smart_link_id="qui", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="voluptatem", + smart_link_id="qui", ) assert response.is_closed is True @@ -873,7 +873,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="voluptatem", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="reprehenderit", + smart_link_id="et", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="reprehenderit", + smart_link_id="et", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="reprehenderit", + smart_link_id="et", ) assert response.is_closed is True @@ -926,7 +926,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="reprehenderit", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="sapiente", + smart_link_id="dicta", ) assert smart_link is None @@ -956,7 +956,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="sapiente", + smart_link_id="dicta", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="sapiente", + smart_link_id="dicta", ) assert response.is_closed is True @@ -979,7 +979,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="sapiente", + smart_link_id="dicta", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="et", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="et", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="et", ) assert response.is_closed is True @@ -1031,7 +1031,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="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 f35b6d58..537a63ee 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": "zwwnzjquhesnsgkujxvxqbkxs", - "tags": ["gzldbmry"], + "search": "liednkicvyodabidwqopgo", + "tags": ["sscppzbgunooxljahftvyyagk"], }, 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": "jzw", - "tags": ["ohdxotmpncezs"], + "search": "gblaryl", + "tags": ["kuwtgjfvofkfapetgwagqidcs"], }, 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": "vhdwelrzzwnd", - "tags": ["vauwevpstygekgzvcgso"], + "include_smart_links": False, + "search": "rjm", + "tags": ["xugaxzyepbwasek"], }, 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": "jsaat", - "tags": ["johzsndvzybeqeldqykeypmw"], + "search": "lhpqbfezllkrrekfozqvfnlxb", + "tags": ["xsxfiejbwmhchezfjrr"], }, 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": "zwwnzjquhesnsgkujxvxqbkxs", - "tags": ["gzldbmry"], + "search": "liednkicvyodabidwqopgo", + "tags": ["sscppzbgunooxljahftvyyagk"], }, 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": "jzw", - "tags": ["ohdxotmpncezs"], + "search": "gblaryl", + "tags": ["kuwtgjfvofkfapetgwagqidcs"], }, 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": "vhdwelrzzwnd", - "tags": ["vauwevpstygekgzvcgso"], + "include_smart_links": False, + "search": "rjm", + "tags": ["xugaxzyepbwasek"], }, 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": "jsaat", - "tags": ["johzsndvzybeqeldqykeypmw"], + "search": "lhpqbfezllkrrekfozqvfnlxb", + "tags": ["xsxfiejbwmhchezfjrr"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 19ee1b5c..7f0d9894 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="itaque", + tracking_link_id="eos", 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="itaque", + tracking_link_id="eos", 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="itaque", + tracking_link_id="eos", 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="itaque", + tracking_link_id="eos", 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="itaque", + tracking_link_id="eos", 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="itaque", + tracking_link_id="eos", 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="itaque", + tracking_link_id="eos", 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="itaque", + tracking_link_id="eos", 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="et", + tracking_link_id="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="itaque", + tracking_link_id="eos", 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="itaque", + tracking_link_id="eos", 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="itaque", + tracking_link_id="eos", 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="itaque", + tracking_link_id="eos", 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="itaque", + tracking_link_id="eos", 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="itaque", + tracking_link_id="eos", 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="itaque", + tracking_link_id="eos", 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="itaque", + tracking_link_id="eos", 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="et", + tracking_link_id="vel", 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="vel", 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="vel", 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="vel", 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="vel", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 70cc7b32..3e724c82 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="velit", 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="velit", 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="velit", 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="velit", 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="velit", 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="velit", 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="velit", 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="velit", 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="deleniti", + 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="deleniti", + 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="deleniti", + 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="deleniti", + 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="odit", + trial_link_id="eos", 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="odit", + trial_link_id="eos", 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="odit", + trial_link_id="eos", 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="odit", + trial_link_id="eos", 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="odit", + trial_link_id="eos", 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="sequi", 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="sequi", 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="sequi", 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="sequi", 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="sequi", 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="velit", 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="velit", 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="velit", 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="velit", 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="velit", 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="velit", 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="velit", 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="velit", 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="deleniti", + 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="deleniti", + 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="deleniti", + 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="deleniti", + 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="odit", + trial_link_id="eos", 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="odit", + trial_link_id="eos", 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="odit", + trial_link_id="eos", 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="odit", + trial_link_id="eos", 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="odit", + trial_link_id="eos", 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="sequi", 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="sequi", 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="sequi", 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="sequi", 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="sequi", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 23160606..c5b14d66 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="ssvowwfebrcyegebszgh", + name="iwklqkzdkqvrok", ) 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="ssvowwfebrcyegebszgh", + name="iwklqkzdkqvrok", ) 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="ssvowwfebrcyegebszgh", + name="iwklqkzdkqvrok", ) 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="ssvowwfebrcyegebszgh", + name="iwklqkzdkqvrok", ) @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="ssvowwfebrcyegebszgh", + name="iwklqkzdkqvrok", ) 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="ssvowwfebrcyegebszgh", + name="iwklqkzdkqvrok", ) 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="ssvowwfebrcyegebszgh", + name="iwklqkzdkqvrok", ) 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="ssvowwfebrcyegebszgh", + name="iwklqkzdkqvrok", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 727b77d68de20f5ae4ef2a86336e56858fd2b561 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 17 Jul 2026 15:12:32 +0000 Subject: [PATCH 177/249] feat(api): api update --- .stats.yml | 4 +- .../fans/summary_get_summary_response.py | 12 ++- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++--- tests/api_resources/posts/test_comments.py | 40 +++---- .../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 | 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 +-- 16 files changed, 264 insertions(+), 256 deletions(-) diff --git a/.stats.yml b/.stats.yml index 57bde836..8c23dd09 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-57b731f396b1e439775537f9de5ab9525ed1ac5c0508abffdbe2f6f9810226f8.yml -openapi_spec_hash: e7b2a3c7f5dc89331cedaa0186015f83 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-067f0eaf1a03fe125b2b6be34cc6b15ead1a64ca190d9f93170f71de25af0449.yml +openapi_spec_hash: bb7652334ae94968f633868896ed4e73 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/types/fans/summary_get_summary_response.py b/src/onlyfansapi/types/fans/summary_get_summary_response.py index 2457a00e..10a718df 100644 --- a/src/onlyfansapi/types/fans/summary_get_summary_response.py +++ b/src/onlyfansapi/types/fans/summary_get_summary_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional +from typing import List, Optional from ..._models import BaseModel -__all__ = ["SummaryGetSummaryResponse", "SummaryData"] +__all__ = ["SummaryGetSummaryResponse", "CustomField", "SummaryData"] + + +class CustomField(BaseModel): + key: Optional[str] = None + + label: Optional[str] = None class SummaryData(BaseModel): @@ -40,6 +46,8 @@ class SummaryData(BaseModel): class SummaryGetSummaryResponse(BaseModel): analyzed_message_count: Optional[int] = None + custom_fields: Optional[List[CustomField]] = None + error_message: Optional[str] = None last_analyzed_at: Optional[str] = None diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index ebbb00cc..330a2740 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="commodi", + message_id="ea", 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="commodi", + message_id="ea", 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="commodi", + message_id="ea", 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="commodi", + message_id="ea", 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="commodi", + message_id="ea", 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="commodi", + message_id="ea", 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="commodi", + message_id="ea", 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="commodi", + message_id="ea", 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="commodi", + message_id="ea", 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="commodi", + message_id="ea", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 126fe602..75012dab 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="modi", + list_id="esse", 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="modi", + list_id="esse", 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="modi", + list_id="esse", 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="modi", + list_id="esse", 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="modi", + list_id="esse", 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="modi", + list_id="esse", 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="modi", + list_id="esse", 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="modi", + list_id="esse", 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="modi", + list_id="esse", 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="modi", + list_id="esse", 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="modi", + list_id="esse", 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="modi", + list_id="esse", 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="modi", + list_id="esse", 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="modi", + list_id="esse", 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="modi", + list_id="esse", 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="modi", + list_id="esse", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index e672602b..4785a9cf 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + 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="illo", + post_id="nihil", account="", ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 4481eb3d..6510636b 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="ea", + path_story_id="cumque", 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="ea", + path_story_id="cumque", 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="ea", + path_story_id="cumque", 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="ea", + path_story_id="cumque", 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="ea", + story_id="cumque", 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="ea", + story_id="cumque", 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="ea", + story_id="cumque", 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="ea", + story_id="cumque", 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="ea", + path_story_id="cumque", 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="ea", + path_story_id="cumque", 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="ea", + path_story_id="cumque", 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="ea", + path_story_id="cumque", 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="ea", + story_id="cumque", 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="ea", + story_id="cumque", 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="ea", + story_id="cumque", 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="ea", + story_id="cumque", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 5c7af9d2..79c81116 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( - "quos", + "alias", ) 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( - "quos", + "alias", ) 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( - "quos", + "alias", ) 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( - "quos", + "alias", ) 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( - "quos", + "alias", ) 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( - "quos", + "alias", ) 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 3aec0722..e2dfd85e 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="libero", - auth_type="raw_data", - cookies="totam", + auth_id="molestiae", + auth_type="mobile_app", + cookies="ipsa", custom_proxy={ "host": "proxy.example.com", - "password": "+gna@1", + "password": "#O71A3nR?", "port": 8080, - "username": "dicta", + "username": "distinctio", }, - email="satterfield.maudie@example.net", + email="andreanne.rau@example.com", force_connect=False, - name="suscipit", - password="3l3Hl<\"SL19WR'3!=G,^", - proxy_country="uk", - user_agent="minus", - xbc="rerum", + name="temporibus", + password='VYvbo"', + proxy_country="gb", + user_agent="expedita", + xbc="ad", ) 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="libero", - auth_type="raw_data", - cookies="totam", + auth_id="molestiae", + auth_type="mobile_app", + cookies="ipsa", custom_proxy={ "host": "proxy.example.com", - "password": "+gna@1", + "password": "#O71A3nR?", "port": 8080, - "username": "dicta", + "username": "distinctio", }, - email="satterfield.maudie@example.net", + email="andreanne.rau@example.com", force_connect=False, - name="suscipit", - password="3l3Hl<\"SL19WR'3!=G,^", - proxy_country="uk", - user_agent="minus", - xbc="rerum", + name="temporibus", + password='VYvbo"', + proxy_country="gb", + user_agent="expedita", + xbc="ad", ) 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 0d035d3b..9249f386 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="gb", + 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="gb", + 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 0f3980c1..b2158856 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 f0d7dc31..02634eca 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": ["gdgu"]}, + filter={"tags": ["tfwbhueavg"]}, 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="temporibus", + smart_link_id="quis", ) 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="temporibus", + smart_link_id="quis", 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="temporibus", + smart_link_id="quis", ) 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="temporibus", + smart_link_id="quis", ) 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="officiis", + smart_link_id="harum", ) 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="officiis", + smart_link_id="harum", 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="officiis", + smart_link_id="harum", ) 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="officiis", + smart_link_id="harum", ) 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="qui", + smart_link_id="culpa", ) 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="qui", + smart_link_id="culpa", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +347,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="culpa", ) assert response.is_closed is True @@ -359,7 +359,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="culpa", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +381,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="iure", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +389,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="iure", limit=50, min_spend=1, offset=0, @@ -400,7 +400,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="iure", ) assert response.is_closed is True @@ -412,7 +412,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="iure", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +434,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="aliquam", ) assert smart_link is None @@ -442,7 +442,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="aliquam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +453,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="aliquam", ) assert response.is_closed is True @@ -465,7 +465,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="aliquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +487,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="laborum", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +495,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="laborum", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +505,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="laborum", ) assert response.is_closed is True @@ -517,7 +517,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="laborum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,7 +645,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": ["gdgu"]}, + filter={"tags": ["tfwbhueavg"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -722,7 +722,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="temporibus", + smart_link_id="quis", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,7 +730,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="temporibus", + smart_link_id="quis", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,7 +744,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="temporibus", + smart_link_id="quis", ) assert response.is_closed is True @@ -756,7 +756,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="temporibus", + smart_link_id="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,7 +778,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="officiis", + smart_link_id="harum", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,7 +786,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="officiis", + smart_link_id="harum", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,7 +802,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="officiis", + smart_link_id="harum", ) assert response.is_closed is True @@ -814,7 +814,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="officiis", + smart_link_id="harum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,7 +836,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="culpa", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,7 +844,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="culpa", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +861,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="culpa", ) assert response.is_closed is True @@ -873,7 +873,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="culpa", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +895,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="iure", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +903,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="iure", limit=50, min_spend=1, offset=0, @@ -914,7 +914,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="iure", ) assert response.is_closed is True @@ -926,7 +926,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="iure", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +948,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="aliquam", ) assert smart_link is None @@ -956,7 +956,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="aliquam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +967,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="aliquam", ) assert response.is_closed is True @@ -979,7 +979,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="aliquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +1001,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="laborum", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1009,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="laborum", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1019,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="laborum", ) assert response.is_closed is True @@ -1031,7 +1031,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="laborum", ) 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 537a63ee..36929dbe 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": "liednkicvyodabidwqopgo", - "tags": ["sscppzbgunooxljahftvyyagk"], + "search": "glxykaultyqmdeblrrbvhr", + "tags": ["xboxgwrkmxqpvervlyayv"], }, 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": "gblaryl", - "tags": ["kuwtgjfvofkfapetgwagqidcs"], + "search": "wjbggjhdraligrxwzfnddvs", + "tags": ["mqinypjrzuqvqbuc"], }, 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": "rjm", - "tags": ["xugaxzyepbwasek"], + "search": "t", + "tags": ["qbwpdbntfop"], }, 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": "lhpqbfezllkrrekfozqvfnlxb", - "tags": ["xsxfiejbwmhchezfjrr"], + "include_smart_links": True, + "search": "xurnqj", + "tags": ["tphhprmwzh"], }, 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": "liednkicvyodabidwqopgo", - "tags": ["sscppzbgunooxljahftvyyagk"], + "search": "glxykaultyqmdeblrrbvhr", + "tags": ["xboxgwrkmxqpvervlyayv"], }, 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": "gblaryl", - "tags": ["kuwtgjfvofkfapetgwagqidcs"], + "search": "wjbggjhdraligrxwzfnddvs", + "tags": ["mqinypjrzuqvqbuc"], }, 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": "rjm", - "tags": ["xugaxzyepbwasek"], + "search": "t", + "tags": ["qbwpdbntfop"], }, 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": "lhpqbfezllkrrekfozqvfnlxb", - "tags": ["xsxfiejbwmhchezfjrr"], + "include_smart_links": True, + "search": "xurnqj", + "tags": ["tphhprmwzh"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 7f0d9894..6439e627 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="eos", + tracking_link_id="iure", 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="eos", + tracking_link_id="iure", 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="eos", + tracking_link_id="iure", 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="eos", + tracking_link_id="iure", 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="eos", + tracking_link_id="iure", 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="eos", + tracking_link_id="iure", 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="eos", + tracking_link_id="iure", 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="eos", + tracking_link_id="iure", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="eos", + tracking_link_id="iure", 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="eos", + tracking_link_id="iure", 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="eos", + tracking_link_id="iure", 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="eos", + tracking_link_id="iure", 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="eos", + tracking_link_id="iure", 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="eos", + tracking_link_id="iure", 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="eos", + tracking_link_id="iure", 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="eos", + tracking_link_id="iure", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + tracking_link_id="et", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 3e724c82..72ada08a 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="iusto", + trial_link_id="ut", 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="iusto", + trial_link_id="ut", 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="iusto", + trial_link_id="ut", 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="iusto", + trial_link_id="ut", 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="eos", + trial_link_id="aliquam", 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="eos", + trial_link_id="aliquam", 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="eos", + trial_link_id="aliquam", 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="eos", + trial_link_id="aliquam", 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="eos", + trial_link_id="aliquam", 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="iusto", + trial_link_id="ut", 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="iusto", + trial_link_id="ut", 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="iusto", + trial_link_id="ut", 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="iusto", + trial_link_id="ut", 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="eos", + trial_link_id="aliquam", 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="eos", + trial_link_id="aliquam", 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="eos", + trial_link_id="aliquam", 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="eos", + trial_link_id="aliquam", 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="eos", + trial_link_id="aliquam", 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + 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="sequi", + trial_link_id="inventore", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index c5b14d66..3096ddbe 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="iwklqkzdkqvrok", + name="payd", ) 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="iwklqkzdkqvrok", + name="payd", ) 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="iwklqkzdkqvrok", + name="payd", ) 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="iwklqkzdkqvrok", + name="payd", ) @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="iwklqkzdkqvrok", + name="payd", ) 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="iwklqkzdkqvrok", + name="payd", ) 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="iwklqkzdkqvrok", + name="payd", ) 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="iwklqkzdkqvrok", + name="payd", ) @pytest.mark.skip(reason="Mock server tests are disabled") From f3bde0a8124ec521bbb26d670359d590a5b3c532 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 18 Jul 2026 02:00:29 +0000 Subject: [PATCH 178/249] feat(stlc): configurable CI runner and private-production-repo support in workflow templates --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7248fd7c..5ea724d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: lint: timeout-minutes: 10 name: lint - runs-on: ${{ github.repository == 'stainless-sdks/onlyfansapi-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -41,7 +41,7 @@ jobs: permissions: contents: read id-token: write - runs-on: ${{ github.repository == 'stainless-sdks/onlyfansapi-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -78,7 +78,7 @@ jobs: test: timeout-minutes: 10 name: test - runs-on: ${{ github.repository == 'stainless-sdks/onlyfansapi-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 From 977d8f37d552e87d6566fe75c6b15695242891d3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 19 Jul 2026 16:12:33 +0000 Subject: [PATCH 179/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/chats/chats.py | 12 +- src/onlyfansapi/resources/chats/messages.py | 4 +- .../engagement/messages/direct_messages.py | 12 +- .../engagement/messages/mass_messages.py | 12 +- .../resources/engagement/messages/messages.py | 12 +- src/onlyfansapi/resources/fans/fans.py | 32 ++--- src/onlyfansapi/resources/mass_messaging.py | 8 +- .../resources/notifications/notifications.py | 4 +- .../shared_tracking_links.py | 56 +++++++-- .../shared_trial_links/shared_trial_links.py | 26 ++-- src/onlyfansapi/resources/smart_links.py | 8 -- src/onlyfansapi/resources/statistics/reach.py | 4 +- .../resources/statistics/statements.py | 16 +-- .../resources/statistics/statistics.py | 8 +- .../tracking_links/tracking_links.py | 72 +++++------ src/onlyfansapi/resources/transactions.py | 4 +- .../resources/trial_links/trial_links.py | 70 +++++++---- .../types/chat_list_media_params.py | 5 +- src/onlyfansapi/types/chat_list_params.py | 5 +- .../types/chats/message_list_params.py | 2 +- .../message_get_message_buyers_params.py | 2 +- .../message_get_top_message_params.py | 2 +- .../messages/direct_message_chart_params.py | 2 +- .../messages/direct_message_list_params.py | 2 +- .../messages/mass_message_chart_params.py | 2 +- .../messages/mass_message_list_params.py | 2 +- .../types/fan_list_latest_params.py | 4 +- src/onlyfansapi/types/fan_list_top_params.py | 4 +- ...mass_messaging_retrieve_overview_params.py | 2 +- .../types/notification_list_params.py | 2 +- .../types/shared_tracking_link_list_params.py | 28 +++-- .../types/shared_trial_link_list_params.py | 17 +-- .../types/smart_link_list_params.py | 3 - ...tic_calculate_total_transactions_params.py | 6 +- .../reach_get_profile_visitors_params.py | 2 +- .../statement_get_earnings_params.py | 8 +- .../types/tracking_link_list_params.py | 42 ++++--- .../types/transaction_list_params.py | 2 +- .../types/trial_link_list_params.py | 39 ++++-- .../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 +-- .../statistics/test_statements.py | 12 +- .../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_payouts.py | 8 +- .../test_shared_tracking_links.py | 8 ++ .../api_resources/test_shared_trial_links.py | 2 + tests/api_resources/test_smart_links.py | 102 ++++++++-------- tests/api_resources/test_statistics.py | 28 +++-- tests/api_resources/test_stored.py | 40 +++---- tests/api_resources/test_tracking_links.py | 90 +++++++------- tests/api_resources/test_transactions.py | 4 +- tests/api_resources/test_trial_links.py | 112 ++++++++---------- tests/api_resources/test_user_lists.py | 16 +-- 61 files changed, 643 insertions(+), 542 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8c23dd09..22405e2d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-067f0eaf1a03fe125b2b6be34cc6b15ead1a64ca190d9f93170f71de25af0449.yml -openapi_spec_hash: bb7652334ae94968f633868896ed4e73 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-da309dbd1c3d6c45514ff6c1b040914c3cf34cdb03046d7bd35787785e705309.yml +openapi_spec_hash: 18f23f2127e97f6b6510805eec8753b0 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/chats/chats.py b/src/onlyfansapi/resources/chats/chats.py index 1a6591bf..07495710 100644 --- a/src/onlyfansapi/resources/chats/chats.py +++ b/src/onlyfansapi/resources/chats/chats.py @@ -107,7 +107,8 @@ def list( query: Search query to filter chats - skip_users: Whether to skip user details in response (all or none). Default = all + skip_users: Whether to skip user details in the response (`all` or `none`). Defaults to + `all`. extra_headers: Send extra headers @@ -239,7 +240,8 @@ def list_media( offset: Number of medias to skip for pagination - skip_users: Whether to skip user details in response (all or none). Default = all + skip_users: Whether to skip user details in the response (`all` or `none`). Defaults to + `all`. type: Filter by specific media types. Keep empty to return all. @@ -519,7 +521,8 @@ async def list( query: Search query to filter chats - skip_users: Whether to skip user details in response (all or none). Default = all + skip_users: Whether to skip user details in the response (`all` or `none`). Defaults to + `all`. extra_headers: Send extra headers @@ -651,7 +654,8 @@ async def list_media( offset: Number of medias to skip for pagination - skip_users: Whether to skip user details in response (all or none). Default = all + skip_users: Whether to skip user details in the response (`all` or `none`). Defaults to + `all`. type: Filter by specific media types. Keep empty to return all. diff --git a/src/onlyfansapi/resources/chats/messages.py b/src/onlyfansapi/resources/chats/messages.py index b03a0f97..43aef774 100644 --- a/src/onlyfansapi/resources/chats/messages.py +++ b/src/onlyfansapi/resources/chats/messages.py @@ -136,7 +136,7 @@ def list( order: Sort order for messages (desc or asc) - skip_users: Whether to skip user details (all or none) + skip_users: Whether to skip user details (`all` or `none`). extra_headers: Send extra headers @@ -631,7 +631,7 @@ async def list( order: Sort order for messages (desc or asc) - skip_users: Whether to skip user details (all or none) + skip_users: Whether to skip user details (`all` or `none`). extra_headers: Send extra headers diff --git a/src/onlyfansapi/resources/engagement/messages/direct_messages.py b/src/onlyfansapi/resources/engagement/messages/direct_messages.py index 1d1a0864..e8d03427 100644 --- a/src/onlyfansapi/resources/engagement/messages/direct_messages.py +++ b/src/onlyfansapi/resources/engagement/messages/direct_messages.py @@ -62,8 +62,8 @@ def list( List sent direct messages with engagement stats (sent, viewed, purchased, etc.). Args: - end_date: The latest message to retrieve. Keep empty to get all. MUST BE DATE AFTER - `startDate`. This is also used for pagination. + end_date: The latest message to retrieve. Keep empty to get all. It must be after + `startDate` and is also used for pagination. limit: Number of messages to return (default = 10) @@ -123,7 +123,7 @@ def chart( over time. Args: - end_date: End of the chart window in `Y-m-d H:i:s` format. Must be after `startDate`. + end_date: End of the chart window in `Y-m-d H:i:s` format. It must be after `startDate`. start_date: Start of the chart window in `Y-m-d H:i:s` format. @@ -199,8 +199,8 @@ async def list( List sent direct messages with engagement stats (sent, viewed, purchased, etc.). Args: - end_date: The latest message to retrieve. Keep empty to get all. MUST BE DATE AFTER - `startDate`. This is also used for pagination. + end_date: The latest message to retrieve. Keep empty to get all. It must be after + `startDate` and is also used for pagination. limit: Number of messages to return (default = 10) @@ -260,7 +260,7 @@ async def chart( over time. Args: - end_date: End of the chart window in `Y-m-d H:i:s` format. Must be after `startDate`. + end_date: End of the chart window in `Y-m-d H:i:s` format. It must be after `startDate`. start_date: Start of the chart window in `Y-m-d H:i:s` format. diff --git a/src/onlyfansapi/resources/engagement/messages/mass_messages.py b/src/onlyfansapi/resources/engagement/messages/mass_messages.py index 80324372..6b5156bc 100644 --- a/src/onlyfansapi/resources/engagement/messages/mass_messages.py +++ b/src/onlyfansapi/resources/engagement/messages/mass_messages.py @@ -61,8 +61,8 @@ def list( List sent mass messages with engagement stats (sent, viewed, purchased, etc.). Args: - end_date: The latest message to retrieve. Keep empty to get all. MUST BE DATE AFTER - `startDate`. This is also used for pagination. + end_date: The latest message to retrieve. Keep empty to get all. It must be after + `startDate` and is also used for pagination. limit: Number of messages to return (default = 10) @@ -119,7 +119,7 @@ def chart( over time. Args: - end_date: End of the chart window in `Y-m-d H:i:s` format. Must be after `startDate`. + end_date: End of the chart window in `Y-m-d H:i:s` format. It must be after `startDate`. start_date: Start of the chart window in `Y-m-d H:i:s` format. @@ -194,8 +194,8 @@ async def list( List sent mass messages with engagement stats (sent, viewed, purchased, etc.). Args: - end_date: The latest message to retrieve. Keep empty to get all. MUST BE DATE AFTER - `startDate`. This is also used for pagination. + end_date: The latest message to retrieve. Keep empty to get all. It must be after + `startDate` and is also used for pagination. limit: Number of messages to return (default = 10) @@ -252,7 +252,7 @@ async def chart( over time. Args: - end_date: End of the chart window in `Y-m-d H:i:s` format. Must be after `startDate`. + end_date: End of the chart window in `Y-m-d H:i:s` format. It must be after `startDate`. start_date: Start of the chart window in `Y-m-d H:i:s` format. diff --git a/src/onlyfansapi/resources/engagement/messages/messages.py b/src/onlyfansapi/resources/engagement/messages/messages.py index d3cb2d0d..2f00767a 100644 --- a/src/onlyfansapi/resources/engagement/messages/messages.py +++ b/src/onlyfansapi/resources/engagement/messages/messages.py @@ -93,7 +93,7 @@ def get_message_buyers( offset: Offset for pagination (default = 0) - skip_users: Optional flag for subsequent pages (example: all) + skip_users: Optional flag for subsequent pages (example: all). skip_users_dups: Skip duplicate users in results (0/1). Default = 1 @@ -149,8 +149,8 @@ def get_top_message( Get the top performing message by purchases in the selected timeframe. Args: - end_date: The end date for the period. Keep empty to retrieve until now. MUST BE DATE - AFTER `startDate`. + end_date: The end date for the period. Keep empty to retrieve until now. It must be after + `startDate`. start_date: The start date for the period. Keep empty to retrieve from the model start date. @@ -238,7 +238,7 @@ async def get_message_buyers( offset: Offset for pagination (default = 0) - skip_users: Optional flag for subsequent pages (example: all) + skip_users: Optional flag for subsequent pages (example: all). skip_users_dups: Skip duplicate users in results (0/1). Default = 1 @@ -294,8 +294,8 @@ async def get_top_message( Get the top performing message by purchases in the selected timeframe. Args: - end_date: The end date for the period. Keep empty to retrieve until now. MUST BE DATE - AFTER `startDate`. + end_date: The end date for the period. Keep empty to retrieve until now. It must be after + `startDate`. start_date: The start date for the period. Keep empty to retrieve from the model start date. diff --git a/src/onlyfansapi/resources/fans/fans.py b/src/onlyfansapi/resources/fans/fans.py index 906a8738..b8be4415 100644 --- a/src/onlyfansapi/resources/fans/fans.py +++ b/src/onlyfansapi/resources/fans/fans.py @@ -327,16 +327,16 @@ def list_latest( renewals. Newest fans are first. Args: - end_date: End date for filtering (required with start_date). This field is required when - start_date is present. + end_date: End date for filtering (required with start_date). Must be a valid date. Must + not be greater than 255 characters. limit: Number of fans to return (1-50). Must be at least 1. Must not be greater than 100. offset: Number of fans to skip. Must be at least 0. - start_date: Start date for filtering (required with end_date). This field is required when - end_date is present. + start_date: Start date for filtering (required with end_date). Must be a valid date. Must + not be greater than 255 characters. type: Filter by type: total, renew, or new. @@ -393,11 +393,11 @@ def list_top( Args: by: Sort by: total (default), subscribes, tips, messages, post, streams. - end_date: End date for filtering (required with start_date). This field is required when - start_date is present. + end_date: End date for filtering (required with start_date). Must be a valid date. Must + not be greater than 255 characters. - start_date: Start date for filtering (required with end_date). This field is required when - end_date is present. + start_date: Start date for filtering (required with end_date). Must be a valid date. Must + not be greater than 255 characters. extra_headers: Send extra headers @@ -744,16 +744,16 @@ async def list_latest( renewals. Newest fans are first. Args: - end_date: End date for filtering (required with start_date). This field is required when - start_date is present. + end_date: End date for filtering (required with start_date). Must be a valid date. Must + not be greater than 255 characters. limit: Number of fans to return (1-50). Must be at least 1. Must not be greater than 100. offset: Number of fans to skip. Must be at least 0. - start_date: Start date for filtering (required with end_date). This field is required when - end_date is present. + start_date: Start date for filtering (required with end_date). Must be a valid date. Must + not be greater than 255 characters. type: Filter by type: total, renew, or new. @@ -810,11 +810,11 @@ async def list_top( Args: by: Sort by: total (default), subscribes, tips, messages, post, streams. - end_date: End date for filtering (required with start_date). This field is required when - start_date is present. + end_date: End date for filtering (required with start_date). Must be a valid date. Must + not be greater than 255 characters. - start_date: Start date for filtering (required with end_date). This field is required when - end_date is present. + start_date: Start date for filtering (required with end_date). Must be a valid date. Must + not be greater than 255 characters. extra_headers: Send extra headers diff --git a/src/onlyfansapi/resources/mass_messaging.py b/src/onlyfansapi/resources/mass_messaging.py index 417fc523..51062803 100644 --- a/src/onlyfansapi/resources/mass_messaging.py +++ b/src/onlyfansapi/resources/mass_messaging.py @@ -256,8 +256,8 @@ def retrieve_overview( Get an overview of mass messages, showing the send count and view count. Args: - end_date: The latest mass message to retrieve. Keep empty to get all. MUST BE DATE AFTER - `startDate`. This is also used for pagination. + end_date: The latest mass message to retrieve. Keep empty to get all. It must be after + `startDate` and is also used for pagination. limit: Number of mass messages to return (default = 10) @@ -626,8 +626,8 @@ async def retrieve_overview( Get an overview of mass messages, showing the send count and view count. Args: - end_date: The latest mass message to retrieve. Keep empty to get all. MUST BE DATE AFTER - `startDate`. This is also used for pagination. + end_date: The latest mass message to retrieve. Keep empty to get all. It must be after + `startDate` and is also used for pagination. limit: Number of mass messages to return (default = 10) diff --git a/src/onlyfansapi/resources/notifications/notifications.py b/src/onlyfansapi/resources/notifications/notifications.py index 848f1db1..b05b1e7b 100644 --- a/src/onlyfansapi/resources/notifications/notifications.py +++ b/src/onlyfansapi/resources/notifications/notifications.py @@ -98,7 +98,7 @@ def list( limit: The number of notifications. Default `10` - skip_users: Whether to skip user details. Default `all` + skip_users: Whether to skip user details. Defaults to `all`. type: Filter notifications by a specific type @@ -303,7 +303,7 @@ async def list( limit: The number of notifications. Default `10` - skip_users: Whether to skip user details. Default `all` + skip_users: Whether to skip user details. Defaults to `all`. type: Filter notifications by a specific type diff --git a/src/onlyfansapi/resources/shared_tracking_links/shared_tracking_links.py b/src/onlyfansapi/resources/shared_tracking_links/shared_tracking_links.py index f1ee947b..7dbbf4b8 100644 --- a/src/onlyfansapi/resources/shared_tracking_links/shared_tracking_links.py +++ b/src/onlyfansapi/resources/shared_tracking_links/shared_tracking_links.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Optional +from typing_extensions import Literal import httpx @@ -69,7 +69,11 @@ def list( *, limit: int | Omit = omit, offset: int | Omit = omit, - synchronous: Optional[bool] | Omit = omit, + pagination: Literal[0, 1] | Omit = omit, + sorting_deleted: Literal[0, 1] | Omit = omit, + stats: str | Omit = omit, + synchronous: bool | Omit = omit, + with_deleted: Literal[0, 1] | 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, @@ -83,12 +87,21 @@ def list( Calls OnlyFans live and syncs to our cache. Args: - limit: The number of shared tracking links to return. Default `10` + limit: The number of shared tracking links to return. Default `10`. Must be at least 1. + Must not be greater than 100. - offset: The offset used for pagination. Default `0` + offset: The offset used for pagination. Default `0`. Must be at least 0. - synchronous: Wait for the database sync to finish, instead of running it in the background. - **Will result in longer response times, use with caution**. Default `false` + pagination: Whether pagination metadata is enabled. Default `1`. + + sorting_deleted: Whether deleted links participate in sorting. Default `1`. + + stats: Whether statistics are included. Default `true`. Must not be greater than 10 + characters. + + synchronous: Wait for the database sync instead of processing it in the background. + + with_deleted: Whether to include deleted shared tracking links. Default `1`. extra_headers: Send extra headers @@ -111,7 +124,11 @@ def list( { "limit": limit, "offset": offset, + "pagination": pagination, + "sorting_deleted": sorting_deleted, + "stats": stats, "synchronous": synchronous, + "with_deleted": with_deleted, }, shared_tracking_link_list_params.SharedTrackingLinkListParams, ), @@ -198,7 +215,11 @@ async def list( *, limit: int | Omit = omit, offset: int | Omit = omit, - synchronous: Optional[bool] | Omit = omit, + pagination: Literal[0, 1] | Omit = omit, + sorting_deleted: Literal[0, 1] | Omit = omit, + stats: str | Omit = omit, + synchronous: bool | Omit = omit, + with_deleted: Literal[0, 1] | 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, @@ -212,12 +233,21 @@ async def list( Calls OnlyFans live and syncs to our cache. Args: - limit: The number of shared tracking links to return. Default `10` + limit: The number of shared tracking links to return. Default `10`. Must be at least 1. + Must not be greater than 100. + + offset: The offset used for pagination. Default `0`. Must be at least 0. + + pagination: Whether pagination metadata is enabled. Default `1`. + + sorting_deleted: Whether deleted links participate in sorting. Default `1`. + + stats: Whether statistics are included. Default `true`. Must not be greater than 10 + characters. - offset: The offset used for pagination. Default `0` + synchronous: Wait for the database sync instead of processing it in the background. - synchronous: Wait for the database sync to finish, instead of running it in the background. - **Will result in longer response times, use with caution**. Default `false` + with_deleted: Whether to include deleted shared tracking links. Default `1`. extra_headers: Send extra headers @@ -240,7 +270,11 @@ async def list( { "limit": limit, "offset": offset, + "pagination": pagination, + "sorting_deleted": sorting_deleted, + "stats": stats, "synchronous": synchronous, + "with_deleted": with_deleted, }, shared_tracking_link_list_params.SharedTrackingLinkListParams, ), diff --git a/src/onlyfansapi/resources/shared_trial_links/shared_trial_links.py b/src/onlyfansapi/resources/shared_trial_links/shared_trial_links.py index fb81d012..a5d6319e 100644 --- a/src/onlyfansapi/resources/shared_trial_links/shared_trial_links.py +++ b/src/onlyfansapi/resources/shared_trial_links/shared_trial_links.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Optional +from typing_extensions import Literal import httpx @@ -71,7 +71,8 @@ def list( *, limit: int | Omit = omit, offset: int | Omit = omit, - synchronous: Optional[bool] | Omit = omit, + pagination: Literal[0, 1] | Omit = omit, + synchronous: bool | 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, @@ -85,12 +86,12 @@ def list( OnlyFans live and syncs to our cache. Args: - limit: The number of shared trial links to return. Default `10` + limit: The number of shared trial links to return. Default `10`. Must be at least 1. + Must not be greater than 100. - offset: The offset used for pagination. Default `0` + offset: The offset used for pagination. Default `0`. Must be at least 0. - synchronous: Wait for the database sync to finish, instead of running it in the background. - **Will result in longer response times, use with caution**. Default `false` + synchronous: Wait for the database sync instead of processing it in the background. extra_headers: Send extra headers @@ -113,6 +114,7 @@ def list( { "limit": limit, "offset": offset, + "pagination": pagination, "synchronous": synchronous, }, shared_trial_link_list_params.SharedTrialLinkListParams, @@ -202,7 +204,8 @@ async def list( *, limit: int | Omit = omit, offset: int | Omit = omit, - synchronous: Optional[bool] | Omit = omit, + pagination: Literal[0, 1] | Omit = omit, + synchronous: bool | 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, @@ -216,12 +219,12 @@ async def list( OnlyFans live and syncs to our cache. Args: - limit: The number of shared trial links to return. Default `10` + limit: The number of shared trial links to return. Default `10`. Must be at least 1. + Must not be greater than 100. - offset: The offset used for pagination. Default `0` + offset: The offset used for pagination. Default `0`. Must be at least 0. - synchronous: Wait for the database sync to finish, instead of running it in the background. - **Will result in longer response times, use with caution**. Default `false` + synchronous: Wait for the database sync instead of processing it in the background. extra_headers: Send extra headers @@ -244,6 +247,7 @@ async def list( { "limit": limit, "offset": offset, + "pagination": pagination, "synchronous": synchronous, }, shared_trial_link_list_params.SharedTrialLinkListParams, diff --git a/src/onlyfansapi/resources/smart_links.py b/src/onlyfansapi/resources/smart_links.py index 459927a9..24e44bb3 100644 --- a/src/onlyfansapi/resources/smart_links.py +++ b/src/onlyfansapi/resources/smart_links.py @@ -158,7 +158,6 @@ def list( 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, offset: int | Omit = omit, pixel_ids: Optional[str] | Omit = omit, @@ -178,8 +177,6 @@ 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: 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. @@ -206,7 +203,6 @@ def list( "account_ids": account_ids, "filter": filter, "limit": limit, - "meta_pixel_ids": meta_pixel_ids, "name": name, "offset": offset, "pixel_ids": pixel_ids, @@ -754,7 +750,6 @@ async def list( 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, offset: int | Omit = omit, pixel_ids: Optional[str] | Omit = omit, @@ -774,8 +769,6 @@ 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: 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. @@ -802,7 +795,6 @@ async def list( "account_ids": account_ids, "filter": filter, "limit": limit, - "meta_pixel_ids": meta_pixel_ids, "name": name, "offset": offset, "pixel_ids": pixel_ids, diff --git a/src/onlyfansapi/resources/statistics/reach.py b/src/onlyfansapi/resources/statistics/reach.py index 4cb448b4..8c2cd5ae 100644 --- a/src/onlyfansapi/resources/statistics/reach.py +++ b/src/onlyfansapi/resources/statistics/reach.py @@ -66,7 +66,7 @@ def get_profile_visitors( Args: end_date: The end date for the period. - start_date: The start date for the period + start_date: The start date for the period. filter: Optionally, filter the results by `chart` or `topCountries`. See example responses. @@ -154,7 +154,7 @@ async def get_profile_visitors( Args: end_date: The end date for the period. - start_date: The start date for the period + start_date: The start date for the period. filter: Optionally, filter the results by `chart` or `topCountries`. See example responses. diff --git a/src/onlyfansapi/resources/statistics/statements.py b/src/onlyfansapi/resources/statistics/statements.py index 5ee33ad6..5ee8dc65 100644 --- a/src/onlyfansapi/resources/statistics/statements.py +++ b/src/onlyfansapi/resources/statistics/statements.py @@ -47,8 +47,8 @@ def get_earnings( self, account: str, *, + end_date: str, start_date: str, - end_date: str | Omit = omit, type: Literal["total", "subscribes", "tips", "post", "messages", "stream"] | 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. @@ -61,10 +61,10 @@ def get_earnings( Get the earnings for a given period. Args: - start_date: The start date for the period - end_date: The end date for the period. + start_date: The start date for the period. + type: Filter by All / Subscriptions / Tips / Posts / Messages / Streams extra_headers: Send extra headers @@ -86,8 +86,8 @@ def get_earnings( timeout=timeout, query=maybe_transform( { - "start_date": start_date, "end_date": end_date, + "start_date": start_date, "type": type, }, statement_get_earnings_params.StatementGetEarningsParams, @@ -121,8 +121,8 @@ async def get_earnings( self, account: str, *, + end_date: str, start_date: str, - end_date: str | Omit = omit, type: Literal["total", "subscribes", "tips", "post", "messages", "stream"] | 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. @@ -135,10 +135,10 @@ async def get_earnings( Get the earnings for a given period. Args: - start_date: The start date for the period - end_date: The end date for the period. + start_date: The start date for the period. + type: Filter by All / Subscriptions / Tips / Posts / Messages / Streams extra_headers: Send extra headers @@ -160,8 +160,8 @@ async def get_earnings( timeout=timeout, query=await async_maybe_transform( { - "start_date": start_date, "end_date": end_date, + "start_date": start_date, "type": type, }, statement_get_earnings_params.StatementGetEarningsParams, diff --git a/src/onlyfansapi/resources/statistics/statistics.py b/src/onlyfansapi/resources/statistics/statistics.py index 36c1e040..1f65b345 100644 --- a/src/onlyfansapi/resources/statistics/statistics.py +++ b/src/onlyfansapi/resources/statistics/statistics.py @@ -78,8 +78,8 @@ def calculate_total_transactions( self, account: str, *, - end_date: str, - start_date: str, + end_date: str | Omit = omit, + start_date: 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, @@ -266,8 +266,8 @@ async def calculate_total_transactions( self, account: str, *, - end_date: str, - start_date: str, + end_date: str | Omit = omit, + start_date: 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, diff --git a/src/onlyfansapi/resources/tracking_links/tracking_links.py b/src/onlyfansapi/resources/tracking_links/tracking_links.py index 0d65bfbf..1dfe3aaa 100644 --- a/src/onlyfansapi/resources/tracking_links/tracking_links.py +++ b/src/onlyfansapi/resources/tracking_links/tracking_links.py @@ -161,13 +161,14 @@ def list( account: str, *, end_date: Optional[str] | Omit = omit, - limit: Optional[int] | Omit = omit, - offset: Optional[int] | Omit = omit, - sort: Optional[Literal["desc", "asc"]] | Omit = omit, - sortby: Optional[Literal["claims", "created_date"]] | Omit = omit, + limit: int | Omit = omit, + offset: int | Omit = omit, + pagination: Literal[0, 1] | Omit = omit, + sort: Literal["asc", "desc"] | Omit = omit, + sortby: Literal["claims", "created_date"] | Omit = omit, start_date: Optional[str] | Omit = omit, - synchronous: Optional[bool] | Omit = omit, - with_deleted: Optional[bool] | Omit = omit, + synchronous: bool | Omit = omit, + with_deleted: Literal[0, 1] | 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, @@ -179,24 +180,24 @@ def list( List all tracking links for the account and revenue data Args: - end_date: The end date for Tracking Links. Keep empty to get all. + end_date: The end date for tracking links. Keep empty to get all. Must not be greater than + 255 characters. - limit: The number of tracking links to return. Default `3` + limit: The number of tracking links to return. Default `10`. Must be at least 1. Must + not be greater than 100. - offset: The offset used for pagination. Default `0` + offset: The offset used for pagination. Default `0`. Must be at least 0. - sort: Sort the results. Default `desc` + sort: Sort direction. Default `desc`. - sortby: Sort by subscriber count (claims), or creation date + sortby: Sort by subscriber count (`claims`) or creation date (`created_date`). - start_date: The start date for Tracking Links. Keep empty to get all. + start_date: The start date for tracking links. Keep empty to get all. Must not be greater + than 255 characters. - synchronous: Wait for the revenue data to finish processing, instead of processing in the - background. **Will result in longer response times, use with caution**. Default - `false` + synchronous: Wait for revenue calculation instead of processing it in the background. - with_deleted: Whether or not to include deleted tracking links in the response. Default - `false` + with_deleted: Whether to include deleted tracking links. Default `true`. extra_headers: Send extra headers @@ -220,6 +221,7 @@ def list( "end_date": end_date, "limit": limit, "offset": offset, + "pagination": pagination, "sort": sort, "sortby": sortby, "start_date": start_date, @@ -626,13 +628,14 @@ async def list( account: str, *, end_date: Optional[str] | Omit = omit, - limit: Optional[int] | Omit = omit, - offset: Optional[int] | Omit = omit, - sort: Optional[Literal["desc", "asc"]] | Omit = omit, - sortby: Optional[Literal["claims", "created_date"]] | Omit = omit, + limit: int | Omit = omit, + offset: int | Omit = omit, + pagination: Literal[0, 1] | Omit = omit, + sort: Literal["asc", "desc"] | Omit = omit, + sortby: Literal["claims", "created_date"] | Omit = omit, start_date: Optional[str] | Omit = omit, - synchronous: Optional[bool] | Omit = omit, - with_deleted: Optional[bool] | Omit = omit, + synchronous: bool | Omit = omit, + with_deleted: Literal[0, 1] | 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, @@ -644,24 +647,24 @@ async def list( List all tracking links for the account and revenue data Args: - end_date: The end date for Tracking Links. Keep empty to get all. + end_date: The end date for tracking links. Keep empty to get all. Must not be greater than + 255 characters. - limit: The number of tracking links to return. Default `3` + limit: The number of tracking links to return. Default `10`. Must be at least 1. Must + not be greater than 100. - offset: The offset used for pagination. Default `0` + offset: The offset used for pagination. Default `0`. Must be at least 0. - sort: Sort the results. Default `desc` + sort: Sort direction. Default `desc`. - sortby: Sort by subscriber count (claims), or creation date + sortby: Sort by subscriber count (`claims`) or creation date (`created_date`). - start_date: The start date for Tracking Links. Keep empty to get all. + start_date: The start date for tracking links. Keep empty to get all. Must not be greater + than 255 characters. - synchronous: Wait for the revenue data to finish processing, instead of processing in the - background. **Will result in longer response times, use with caution**. Default - `false` + synchronous: Wait for revenue calculation instead of processing it in the background. - with_deleted: Whether or not to include deleted tracking links in the response. Default - `false` + with_deleted: Whether to include deleted tracking links. Default `true`. extra_headers: Send extra headers @@ -685,6 +688,7 @@ async def list( "end_date": end_date, "limit": limit, "offset": offset, + "pagination": pagination, "sort": sort, "sortby": sortby, "start_date": start_date, diff --git a/src/onlyfansapi/resources/transactions.py b/src/onlyfansapi/resources/transactions.py index a9754027..b5f53391 100644 --- a/src/onlyfansapi/resources/transactions.py +++ b/src/onlyfansapi/resources/transactions.py @@ -69,7 +69,7 @@ def list( marker: The marker used for pagination. Default: `null` - start_date: The start date for transactions list. Default: `-30days` + start_date: The start date for the transactions list. Defaults to 30 days ago. tips_source: Filter tips by source. Only applies when `type=tips`. Options: `profile`, `post_all`, `chat`, `stream`, `story` @@ -157,7 +157,7 @@ async def list( marker: The marker used for pagination. Default: `null` - start_date: The start date for transactions list. Default: `-30days` + start_date: The start date for the transactions list. Defaults to 30 days ago. tips_source: Filter tips by source. Only applies when `type=tips`. Options: `profile`, `post_all`, `chat`, `stream`, `story` diff --git a/src/onlyfansapi/resources/trial_links/trial_links.py b/src/onlyfansapi/resources/trial_links/trial_links.py index 5554ee41..89477194 100644 --- a/src/onlyfansapi/resources/trial_links/trial_links.py +++ b/src/onlyfansapi/resources/trial_links/trial_links.py @@ -173,12 +173,14 @@ def list( self, account: str, *, - limit: int, - offset: int, - field: Optional[Literal["create_date", "expire_date", "subscribe_counts", "subscribe_days", "claims_count"]] + end_date: Optional[str] | Omit = omit, + field: Literal["create_date", "expire_date", "subscribe_counts", "subscribe_days", "claims_count"] | Omit = omit, - sort: Optional[Literal["desc", "asc"]] | Omit = omit, - synchronous: Optional[bool] | Omit = omit, + limit: int | Omit = omit, + offset: int | Omit = omit, + sort: Literal["asc", "desc"] | Omit = omit, + start_date: Optional[str] | Omit = omit, + synchronous: bool | 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, @@ -190,17 +192,22 @@ def list( List all free trial links for the account, including the details and statistics Args: - limit: The number of trial links to return. Default `10` + end_date: The end date for trial links. Keep empty to get all. Must not be greater than + 255 characters. - offset: The offset used for pagination. Default `0` + field: Field to sort by. Default `create_date`. - field: Sort the results by a field. Default `create_date` + limit: The number of trial links to return. Default `10`. Must be at least 1. Must not + be greater than 100. - sort: Sort the results. Default `desc` + offset: The offset used for pagination. Default `0`. Must be at least 0. - synchronous: Wait for the revenue data to finish processing, instead of processing in the - background. **Will result in longer response times, use with caution**. Default - `false` + sort: Sort direction. Default `desc`. + + start_date: The start date for trial links. Keep empty to get all. Must not be greater than + 255 characters. + + synchronous: Wait for revenue calculation instead of processing it in the background. extra_headers: Send extra headers @@ -221,10 +228,12 @@ def list( timeout=timeout, query=maybe_transform( { + "end_date": end_date, + "field": field, "limit": limit, "offset": offset, - "field": field, "sort": sort, + "start_date": start_date, "synchronous": synchronous, }, trial_link_list_params.TrialLinkListParams, @@ -624,12 +633,14 @@ async def list( self, account: str, *, - limit: int, - offset: int, - field: Optional[Literal["create_date", "expire_date", "subscribe_counts", "subscribe_days", "claims_count"]] + end_date: Optional[str] | Omit = omit, + field: Literal["create_date", "expire_date", "subscribe_counts", "subscribe_days", "claims_count"] | Omit = omit, - sort: Optional[Literal["desc", "asc"]] | Omit = omit, - synchronous: Optional[bool] | Omit = omit, + limit: int | Omit = omit, + offset: int | Omit = omit, + sort: Literal["asc", "desc"] | Omit = omit, + start_date: Optional[str] | Omit = omit, + synchronous: bool | 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, @@ -641,17 +652,22 @@ async def list( List all free trial links for the account, including the details and statistics Args: - limit: The number of trial links to return. Default `10` + end_date: The end date for trial links. Keep empty to get all. Must not be greater than + 255 characters. - offset: The offset used for pagination. Default `0` + field: Field to sort by. Default `create_date`. - field: Sort the results by a field. Default `create_date` + limit: The number of trial links to return. Default `10`. Must be at least 1. Must not + be greater than 100. - sort: Sort the results. Default `desc` + offset: The offset used for pagination. Default `0`. Must be at least 0. - synchronous: Wait for the revenue data to finish processing, instead of processing in the - background. **Will result in longer response times, use with caution**. Default - `false` + sort: Sort direction. Default `desc`. + + start_date: The start date for trial links. Keep empty to get all. Must not be greater than + 255 characters. + + synchronous: Wait for revenue calculation instead of processing it in the background. extra_headers: Send extra headers @@ -672,10 +688,12 @@ async def list( timeout=timeout, query=await async_maybe_transform( { + "end_date": end_date, + "field": field, "limit": limit, "offset": offset, - "field": field, "sort": sort, + "start_date": start_date, "synchronous": synchronous, }, trial_link_list_params.TrialLinkListParams, diff --git a/src/onlyfansapi/types/chat_list_media_params.py b/src/onlyfansapi/types/chat_list_media_params.py index 8be91bf7..43a4cc6a 100644 --- a/src/onlyfansapi/types/chat_list_media_params.py +++ b/src/onlyfansapi/types/chat_list_media_params.py @@ -18,7 +18,10 @@ class ChatListMediaParams(TypedDict, total=False): """Number of medias to skip for pagination""" skip_users: str - """Whether to skip user details in response (all or none). Default = all""" + """Whether to skip user details in the response (`all` or `none`). + + Defaults to `all`. + """ type: Optional[Literal["photos", "videos", "audios"]] """Filter by specific media types. Keep empty to return all.""" diff --git a/src/onlyfansapi/types/chat_list_params.py b/src/onlyfansapi/types/chat_list_params.py index 8f059008..0bfd48d9 100644 --- a/src/onlyfansapi/types/chat_list_params.py +++ b/src/onlyfansapi/types/chat_list_params.py @@ -24,4 +24,7 @@ class ChatListParams(TypedDict, total=False): """Search query to filter chats""" skip_users: Literal["all", "none"] - """Whether to skip user details in response (all or none). Default = all""" + """Whether to skip user details in the response (`all` or `none`). + + Defaults to `all`. + """ diff --git a/src/onlyfansapi/types/chats/message_list_params.py b/src/onlyfansapi/types/chats/message_list_params.py index d7c0bd75..ded63216 100644 --- a/src/onlyfansapi/types/chats/message_list_params.py +++ b/src/onlyfansapi/types/chats/message_list_params.py @@ -36,4 +36,4 @@ class MessageListParams(TypedDict, total=False): """Sort order for messages (desc or asc)""" skip_users: str - """Whether to skip user details (all or none)""" + """Whether to skip user details (`all` or `none`).""" diff --git a/src/onlyfansapi/types/engagement/message_get_message_buyers_params.py b/src/onlyfansapi/types/engagement/message_get_message_buyers_params.py index 5d382563..8df10841 100644 --- a/src/onlyfansapi/types/engagement/message_get_message_buyers_params.py +++ b/src/onlyfansapi/types/engagement/message_get_message_buyers_params.py @@ -20,7 +20,7 @@ class MessageGetMessageBuyersParams(TypedDict, total=False): """Offset for pagination (default = 0)""" skip_users: str - """Optional flag for subsequent pages (example: all)""" + """Optional flag for subsequent pages (example: all).""" skip_users_dups: int """Skip duplicate users in results (0/1). Default = 1""" diff --git a/src/onlyfansapi/types/engagement/message_get_top_message_params.py b/src/onlyfansapi/types/engagement/message_get_top_message_params.py index 7708fd7b..5fe72470 100644 --- a/src/onlyfansapi/types/engagement/message_get_top_message_params.py +++ b/src/onlyfansapi/types/engagement/message_get_top_message_params.py @@ -13,7 +13,7 @@ class MessageGetTopMessageParams(TypedDict, total=False): end_date: Annotated[str, PropertyInfo(alias="endDate")] """The end date for the period. - Keep empty to retrieve until now. MUST BE DATE AFTER `startDate`. + Keep empty to retrieve until now. It must be after `startDate`. """ start_date: Annotated[str, PropertyInfo(alias="startDate")] diff --git a/src/onlyfansapi/types/engagement/messages/direct_message_chart_params.py b/src/onlyfansapi/types/engagement/messages/direct_message_chart_params.py index 989a95be..6ed59a3f 100644 --- a/src/onlyfansapi/types/engagement/messages/direct_message_chart_params.py +++ b/src/onlyfansapi/types/engagement/messages/direct_message_chart_params.py @@ -11,7 +11,7 @@ class DirectMessageChartParams(TypedDict, total=False): end_date: Annotated[str, PropertyInfo(alias="endDate")] - """End of the chart window in `Y-m-d H:i:s` format. Must be after `startDate`.""" + """End of the chart window in `Y-m-d H:i:s` format. It must be after `startDate`.""" start_date: Annotated[str, PropertyInfo(alias="startDate")] """Start of the chart window in `Y-m-d H:i:s` format.""" diff --git a/src/onlyfansapi/types/engagement/messages/direct_message_list_params.py b/src/onlyfansapi/types/engagement/messages/direct_message_list_params.py index c167da0e..9793f45f 100644 --- a/src/onlyfansapi/types/engagement/messages/direct_message_list_params.py +++ b/src/onlyfansapi/types/engagement/messages/direct_message_list_params.py @@ -13,7 +13,7 @@ class DirectMessageListParams(TypedDict, total=False): end_date: Annotated[str, PropertyInfo(alias="endDate")] """The latest message to retrieve. - Keep empty to get all. MUST BE DATE AFTER `startDate`. This is also used for + Keep empty to get all. It must be after `startDate` and is also used for pagination. """ diff --git a/src/onlyfansapi/types/engagement/messages/mass_message_chart_params.py b/src/onlyfansapi/types/engagement/messages/mass_message_chart_params.py index d4d427e3..5d0c340b 100644 --- a/src/onlyfansapi/types/engagement/messages/mass_message_chart_params.py +++ b/src/onlyfansapi/types/engagement/messages/mass_message_chart_params.py @@ -11,7 +11,7 @@ class MassMessageChartParams(TypedDict, total=False): end_date: Annotated[str, PropertyInfo(alias="endDate")] - """End of the chart window in `Y-m-d H:i:s` format. Must be after `startDate`.""" + """End of the chart window in `Y-m-d H:i:s` format. It must be after `startDate`.""" start_date: Annotated[str, PropertyInfo(alias="startDate")] """Start of the chart window in `Y-m-d H:i:s` format.""" diff --git a/src/onlyfansapi/types/engagement/messages/mass_message_list_params.py b/src/onlyfansapi/types/engagement/messages/mass_message_list_params.py index 2256ffa7..4085ebbb 100644 --- a/src/onlyfansapi/types/engagement/messages/mass_message_list_params.py +++ b/src/onlyfansapi/types/engagement/messages/mass_message_list_params.py @@ -13,7 +13,7 @@ class MassMessageListParams(TypedDict, total=False): end_date: Annotated[str, PropertyInfo(alias="endDate")] """The latest message to retrieve. - Keep empty to get all. MUST BE DATE AFTER `startDate`. This is also used for + Keep empty to get all. It must be after `startDate` and is also used for pagination. """ diff --git a/src/onlyfansapi/types/fan_list_latest_params.py b/src/onlyfansapi/types/fan_list_latest_params.py index e56016a8..afd83825 100644 --- a/src/onlyfansapi/types/fan_list_latest_params.py +++ b/src/onlyfansapi/types/fan_list_latest_params.py @@ -12,7 +12,7 @@ class FanListLatestParams(TypedDict, total=False): end_date: Optional[str] """End date for filtering (required with start_date). - This field is required when start_date is present. + Must be a valid date. Must not be greater than 255 characters. """ limit: int @@ -27,7 +27,7 @@ class FanListLatestParams(TypedDict, total=False): start_date: Optional[str] """Start date for filtering (required with end_date). - This field is required when end_date is present. + Must be a valid date. Must not be greater than 255 characters. """ type: Optional[Literal["total", "renew", "new"]] diff --git a/src/onlyfansapi/types/fan_list_top_params.py b/src/onlyfansapi/types/fan_list_top_params.py index 0ba02df0..b4ffb4f2 100644 --- a/src/onlyfansapi/types/fan_list_top_params.py +++ b/src/onlyfansapi/types/fan_list_top_params.py @@ -15,11 +15,11 @@ class FanListTopParams(TypedDict, total=False): end_date: Optional[str] """End date for filtering (required with start_date). - This field is required when start_date is present. + Must be a valid date. Must not be greater than 255 characters. """ start_date: Optional[str] """Start date for filtering (required with end_date). - This field is required when end_date is present. + Must be a valid date. Must not be greater than 255 characters. """ diff --git a/src/onlyfansapi/types/mass_messaging_retrieve_overview_params.py b/src/onlyfansapi/types/mass_messaging_retrieve_overview_params.py index 7e0f386c..775e8fdb 100644 --- a/src/onlyfansapi/types/mass_messaging_retrieve_overview_params.py +++ b/src/onlyfansapi/types/mass_messaging_retrieve_overview_params.py @@ -13,7 +13,7 @@ class MassMessagingRetrieveOverviewParams(TypedDict, total=False): end_date: Annotated[str, PropertyInfo(alias="endDate")] """The latest mass message to retrieve. - Keep empty to get all. MUST BE DATE AFTER `startDate`. This is also used for + Keep empty to get all. It must be after `startDate` and is also used for pagination. """ diff --git a/src/onlyfansapi/types/notification_list_params.py b/src/onlyfansapi/types/notification_list_params.py index b9aeb0aa..78e69bc9 100644 --- a/src/onlyfansapi/types/notification_list_params.py +++ b/src/onlyfansapi/types/notification_list_params.py @@ -18,7 +18,7 @@ class NotificationListParams(TypedDict, total=False): """The number of notifications. Default `10`""" skip_users: Literal["all", "none"] - """Whether to skip user details. Default `all`""" + """Whether to skip user details. Defaults to `all`.""" type: Literal[ "all", "subscriptions", "onlyfans", "purchases", "tips", "tags", "comments", "mentions", "likes", "promotions" diff --git a/src/onlyfansapi/types/shared_tracking_link_list_params.py b/src/onlyfansapi/types/shared_tracking_link_list_params.py index aab7e30d..74d77314 100644 --- a/src/onlyfansapi/types/shared_tracking_link_list_params.py +++ b/src/onlyfansapi/types/shared_tracking_link_list_params.py @@ -2,21 +2,35 @@ from __future__ import annotations -from typing import Optional -from typing_extensions import TypedDict +from typing_extensions import Literal, TypedDict __all__ = ["SharedTrackingLinkListParams"] class SharedTrackingLinkListParams(TypedDict, total=False): limit: int - """The number of shared tracking links to return. Default `10`""" + """The number of shared tracking links to return. + + Default `10`. Must be at least 1. Must not be greater than 100. + """ offset: int - """The offset used for pagination. Default `0`""" + """The offset used for pagination. Default `0`. Must be at least 0.""" + + pagination: Literal[0, 1] + """Whether pagination metadata is enabled. Default `1`.""" - synchronous: Optional[bool] - """Wait for the database sync to finish, instead of running it in the background. + sorting_deleted: Literal[0, 1] + """Whether deleted links participate in sorting. Default `1`.""" - **Will result in longer response times, use with caution**. Default `false` + stats: str + """Whether statistics are included. + + Default `true`. Must not be greater than 10 characters. """ + + synchronous: bool + """Wait for the database sync instead of processing it in the background.""" + + with_deleted: Literal[0, 1] + """Whether to include deleted shared tracking links. Default `1`.""" diff --git a/src/onlyfansapi/types/shared_trial_link_list_params.py b/src/onlyfansapi/types/shared_trial_link_list_params.py index 42de281a..a387a367 100644 --- a/src/onlyfansapi/types/shared_trial_link_list_params.py +++ b/src/onlyfansapi/types/shared_trial_link_list_params.py @@ -2,21 +2,22 @@ from __future__ import annotations -from typing import Optional -from typing_extensions import TypedDict +from typing_extensions import Literal, TypedDict __all__ = ["SharedTrialLinkListParams"] class SharedTrialLinkListParams(TypedDict, total=False): limit: int - """The number of shared trial links to return. Default `10`""" + """The number of shared trial links to return. + + Default `10`. Must be at least 1. Must not be greater than 100. + """ offset: int - """The offset used for pagination. Default `0`""" + """The offset used for pagination. Default `0`. Must be at least 0.""" - synchronous: Optional[bool] - """Wait for the database sync to finish, instead of running it in the background. + pagination: Literal[0, 1] - **Will result in longer response times, use with caution**. Default `false` - """ + synchronous: bool + """Wait for the database sync instead of processing it in the background.""" diff --git a/src/onlyfansapi/types/smart_link_list_params.py b/src/onlyfansapi/types/smart_link_list_params.py index ed433edf..eb0e6f7a 100644 --- a/src/onlyfansapi/types/smart_link_list_params.py +++ b/src/onlyfansapi/types/smart_link_list_params.py @@ -22,9 +22,6 @@ class SmartLinkListParams(TypedDict, total=False): Default `50`. Must be at least 1. Must not be greater than 1000. """ - meta_pixel_ids: Optional[str] - """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.""" diff --git a/src/onlyfansapi/types/statistic_calculate_total_transactions_params.py b/src/onlyfansapi/types/statistic_calculate_total_transactions_params.py index 66fa41f1..71ea0b05 100644 --- a/src/onlyfansapi/types/statistic_calculate_total_transactions_params.py +++ b/src/onlyfansapi/types/statistic_calculate_total_transactions_params.py @@ -2,14 +2,14 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +from typing_extensions import TypedDict __all__ = ["StatisticCalculateTotalTransactionsParams"] class StatisticCalculateTotalTransactionsParams(TypedDict, total=False): - end_date: Required[str] + end_date: str """The end date for the period. Keep empty to calculate everything.""" - start_date: Required[str] + start_date: str """The start date for the period. Keep empty to calculate everything.""" diff --git a/src/onlyfansapi/types/statistics/reach_get_profile_visitors_params.py b/src/onlyfansapi/types/statistics/reach_get_profile_visitors_params.py index 38a62b8e..69bce51b 100644 --- a/src/onlyfansapi/types/statistics/reach_get_profile_visitors_params.py +++ b/src/onlyfansapi/types/statistics/reach_get_profile_visitors_params.py @@ -13,7 +13,7 @@ class ReachGetProfileVisitorsParams(TypedDict, total=False): """The end date for the period.""" start_date: Required[str] - """The start date for the period""" + """The start date for the period.""" filter: Optional[Literal["chart", "topCountries"]] """Optionally, filter the results by `chart` or `topCountries`. diff --git a/src/onlyfansapi/types/statistics/statement_get_earnings_params.py b/src/onlyfansapi/types/statistics/statement_get_earnings_params.py index 82acb3cd..d04e5695 100644 --- a/src/onlyfansapi/types/statistics/statement_get_earnings_params.py +++ b/src/onlyfansapi/types/statistics/statement_get_earnings_params.py @@ -8,11 +8,11 @@ class StatementGetEarningsParams(TypedDict, total=False): - start_date: Required[str] - """The start date for the period""" - - end_date: str + end_date: Required[str] """The end date for the period.""" + start_date: Required[str] + """The start date for the period.""" + type: Literal["total", "subscribes", "tips", "post", "messages", "stream"] """Filter by All / Subscriptions / Tips / Posts / Messages / Streams""" diff --git a/src/onlyfansapi/types/tracking_link_list_params.py b/src/onlyfansapi/types/tracking_link_list_params.py index da8ad7d6..7b70132b 100644 --- a/src/onlyfansapi/types/tracking_link_list_params.py +++ b/src/onlyfansapi/types/tracking_link_list_params.py @@ -12,32 +12,36 @@ class TrackingLinkListParams(TypedDict, total=False): end_date: Annotated[Optional[str], PropertyInfo(alias="endDate")] - """The end date for Tracking Links. Keep empty to get all.""" + """The end date for tracking links. - limit: Optional[int] - """The number of tracking links to return. Default `3`""" + Keep empty to get all. Must not be greater than 255 characters. + """ + + limit: int + """The number of tracking links to return. + + Default `10`. Must be at least 1. Must not be greater than 100. + """ - offset: Optional[int] - """The offset used for pagination. Default `0`""" + offset: int + """The offset used for pagination. Default `0`. Must be at least 0.""" - sort: Optional[Literal["desc", "asc"]] - """Sort the results. Default `desc`""" + pagination: Literal[0, 1] - sortby: Optional[Literal["claims", "created_date"]] - """Sort by subscriber count (claims), or creation date""" + sort: Literal["asc", "desc"] + """Sort direction. Default `desc`.""" + + sortby: Literal["claims", "created_date"] + """Sort by subscriber count (`claims`) or creation date (`created_date`).""" start_date: Annotated[Optional[str], PropertyInfo(alias="startDate")] - """The start date for Tracking Links. Keep empty to get all.""" + """The start date for tracking links. - synchronous: Optional[bool] - """ - Wait for the revenue data to finish processing, instead of processing in the - background. **Will result in longer response times, use with caution**. Default - `false` + Keep empty to get all. Must not be greater than 255 characters. """ - with_deleted: Optional[bool] - """Whether or not to include deleted tracking links in the response. + synchronous: bool + """Wait for revenue calculation instead of processing it in the background.""" - Default `false` - """ + with_deleted: Literal[0, 1] + """Whether to include deleted tracking links. Default `true`.""" diff --git a/src/onlyfansapi/types/transaction_list_params.py b/src/onlyfansapi/types/transaction_list_params.py index 5ac6a989..eca4ac29 100644 --- a/src/onlyfansapi/types/transaction_list_params.py +++ b/src/onlyfansapi/types/transaction_list_params.py @@ -17,7 +17,7 @@ class TransactionListParams(TypedDict, total=False): """The marker used for pagination. Default: `null`""" start_date: Annotated[str, PropertyInfo(alias="startDate")] - """The start date for transactions list. Default: `-30days`""" + """The start date for the transactions list. Defaults to 30 days ago.""" tips_source: Annotated[str, PropertyInfo(alias="tipsSource")] """Filter tips by source. diff --git a/src/onlyfansapi/types/trial_link_list_params.py b/src/onlyfansapi/types/trial_link_list_params.py index 38cd759d..9a6a2dab 100644 --- a/src/onlyfansapi/types/trial_link_list_params.py +++ b/src/onlyfansapi/types/trial_link_list_params.py @@ -3,27 +3,40 @@ from __future__ import annotations from typing import Optional -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import Literal, Annotated, TypedDict + +from .._utils import PropertyInfo __all__ = ["TrialLinkListParams"] class TrialLinkListParams(TypedDict, total=False): - limit: Required[int] - """The number of trial links to return. Default `10`""" + end_date: Annotated[Optional[str], PropertyInfo(alias="endDate")] + """The end date for trial links. - offset: Required[int] - """The offset used for pagination. Default `0`""" + Keep empty to get all. Must not be greater than 255 characters. + """ - field: Optional[Literal["create_date", "expire_date", "subscribe_counts", "subscribe_days", "claims_count"]] - """Sort the results by a field. Default `create_date`""" + field: Literal["create_date", "expire_date", "subscribe_counts", "subscribe_days", "claims_count"] + """Field to sort by. Default `create_date`.""" - sort: Optional[Literal["desc", "asc"]] - """Sort the results. Default `desc`""" + limit: int + """The number of trial links to return. - synchronous: Optional[bool] + Default `10`. Must be at least 1. Must not be greater than 100. """ - Wait for the revenue data to finish processing, instead of processing in the - background. **Will result in longer response times, use with caution**. Default - `false` + + offset: int + """The offset used for pagination. Default `0`. Must be at least 0.""" + + sort: Literal["asc", "desc"] + """Sort direction. Default `desc`.""" + + start_date: Annotated[Optional[str], PropertyInfo(alias="startDate")] + """The start date for trial links. + + Keep empty to get all. Must not be greater than 255 characters. """ + + synchronous: bool + """Wait for revenue calculation instead of processing it in the background.""" diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 330a2740..ce398661 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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 75012dab..f6545352 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="esse", + list_id="odit", 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="esse", + list_id="odit", 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="esse", + list_id="odit", 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="esse", + list_id="odit", 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="esse", + list_id="odit", 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="esse", + list_id="odit", 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="esse", + list_id="odit", 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="esse", + list_id="odit", 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="esse", + list_id="odit", 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="esse", + list_id="odit", 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="esse", + list_id="odit", 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="esse", + list_id="odit", 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="esse", + list_id="odit", 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="esse", + list_id="odit", 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="esse", + list_id="odit", 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="esse", + list_id="odit", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 4785a9cf..66b11d36 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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="magnam", 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 a62ccbd3..444937ba 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 b5f3d61a..fc7b1635 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/statistics/test_statements.py b/tests/api_resources/statistics/test_statements.py index 760cbd0e..5630a4ac 100644 --- a/tests/api_resources/statistics/test_statements.py +++ b/tests/api_resources/statistics/test_statements.py @@ -22,6 +22,7 @@ class TestStatements: def test_method_get_earnings(self, client: OnlyFansAPI) -> None: statement = client.statistics.statements.get_earnings( account="acct_XXXXXXXXXXXXXXX", + end_date="2025-03-31 23:59:59", start_date="2025-01-01 00:00:00", ) assert_matches_type(StatementGetEarningsResponse, statement, path=["response"]) @@ -31,8 +32,8 @@ def test_method_get_earnings(self, client: OnlyFansAPI) -> None: def test_method_get_earnings_with_all_params(self, client: OnlyFansAPI) -> None: statement = client.statistics.statements.get_earnings( account="acct_XXXXXXXXXXXXXXX", - start_date="2025-01-01 00:00:00", end_date="2025-03-31 23:59:59", + start_date="2025-01-01 00:00:00", type="total", ) assert_matches_type(StatementGetEarningsResponse, statement, path=["response"]) @@ -42,6 +43,7 @@ def test_method_get_earnings_with_all_params(self, client: OnlyFansAPI) -> None: def test_raw_response_get_earnings(self, client: OnlyFansAPI) -> None: response = client.statistics.statements.with_raw_response.get_earnings( account="acct_XXXXXXXXXXXXXXX", + end_date="2025-03-31 23:59:59", start_date="2025-01-01 00:00:00", ) @@ -55,6 +57,7 @@ def test_raw_response_get_earnings(self, client: OnlyFansAPI) -> None: def test_streaming_response_get_earnings(self, client: OnlyFansAPI) -> None: with client.statistics.statements.with_streaming_response.get_earnings( account="acct_XXXXXXXXXXXXXXX", + end_date="2025-03-31 23:59:59", start_date="2025-01-01 00:00:00", ) as response: assert not response.is_closed @@ -71,6 +74,7 @@ def test_path_params_get_earnings(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.statistics.statements.with_raw_response.get_earnings( account="", + end_date="2025-03-31 23:59:59", start_date="2025-01-01 00:00:00", ) @@ -85,6 +89,7 @@ class TestAsyncStatements: async def test_method_get_earnings(self, async_client: AsyncOnlyFansAPI) -> None: statement = await async_client.statistics.statements.get_earnings( account="acct_XXXXXXXXXXXXXXX", + end_date="2025-03-31 23:59:59", start_date="2025-01-01 00:00:00", ) assert_matches_type(StatementGetEarningsResponse, statement, path=["response"]) @@ -94,8 +99,8 @@ async def test_method_get_earnings(self, async_client: AsyncOnlyFansAPI) -> None async def test_method_get_earnings_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: statement = await async_client.statistics.statements.get_earnings( account="acct_XXXXXXXXXXXXXXX", - start_date="2025-01-01 00:00:00", end_date="2025-03-31 23:59:59", + start_date="2025-01-01 00:00:00", type="total", ) assert_matches_type(StatementGetEarningsResponse, statement, path=["response"]) @@ -105,6 +110,7 @@ async def test_method_get_earnings_with_all_params(self, async_client: AsyncOnly async def test_raw_response_get_earnings(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.statistics.statements.with_raw_response.get_earnings( account="acct_XXXXXXXXXXXXXXX", + end_date="2025-03-31 23:59:59", start_date="2025-01-01 00:00:00", ) @@ -118,6 +124,7 @@ async def test_raw_response_get_earnings(self, async_client: AsyncOnlyFansAPI) - async def test_streaming_response_get_earnings(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.statistics.statements.with_streaming_response.get_earnings( account="acct_XXXXXXXXXXXXXXX", + end_date="2025-03-31 23:59:59", start_date="2025-01-01 00:00:00", ) as response: assert not response.is_closed @@ -134,5 +141,6 @@ async def test_path_params_get_earnings(self, async_client: AsyncOnlyFansAPI) -> with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.statistics.statements.with_raw_response.get_earnings( account="", + end_date="2025-03-31 23:59:59", start_date="2025-01-01 00:00:00", ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 6510636b..e6c6066c 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="cumque", + path_story_id="quas", 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="cumque", + path_story_id="quas", 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="cumque", + path_story_id="quas", 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="cumque", + path_story_id="quas", 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="cumque", + story_id="quas", 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="cumque", + story_id="quas", 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="cumque", + story_id="quas", 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="cumque", + story_id="quas", 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="cumque", + path_story_id="quas", 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="cumque", + path_story_id="quas", 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="cumque", + path_story_id="quas", 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="cumque", + path_story_id="quas", 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="cumque", + story_id="quas", 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="cumque", + story_id="quas", 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="cumque", + story_id="quas", 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="cumque", + story_id="quas", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 79c81116..efb9b47d 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( - "alias", + "assumenda", ) 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( - "alias", + "assumenda", ) 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( - "alias", + "assumenda", ) 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( - "alias", + "assumenda", ) 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( - "alias", + "assumenda", ) 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( - "alias", + "assumenda", ) 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 e2dfd85e..30b0f53c 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="molestiae", + auth_id="quia", auth_type="mobile_app", - cookies="ipsa", + cookies="sequi", custom_proxy={ "host": "proxy.example.com", - "password": "#O71A3nR?", + "password": '\\w7O1<{"v', "port": 8080, - "username": "distinctio", + "username": "et", }, - email="andreanne.rau@example.com", + email="jordon.leffler@example.net", force_connect=False, - name="temporibus", - password='VYvbo"', - proxy_country="gb", - user_agent="expedita", - xbc="ad", + name="quia", + password="K)RXLbI+b9pQAg", + proxy_country="us", + user_agent="rerum", + 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="molestiae", + auth_id="quia", auth_type="mobile_app", - cookies="ipsa", + cookies="sequi", custom_proxy={ "host": "proxy.example.com", - "password": "#O71A3nR?", + "password": '\\w7O1<{"v', "port": 8080, - "username": "distinctio", + "username": "et", }, - email="andreanne.rau@example.com", + email="jordon.leffler@example.net", force_connect=False, - name="temporibus", - password='VYvbo"', - proxy_country="gb", - user_agent="expedita", - xbc="ad", + name="quia", + password="K)RXLbI+b9pQAg", + proxy_country="us", + user_agent="rerum", + 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 9249f386..3597ede6 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 b2158856..583d8ad4 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="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="purchases", + type="all", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_payouts.py b/tests/api_resources/test_payouts.py index b365fa0e..6c388e27 100644 --- a/tests/api_resources/test_payouts.py +++ b/tests/api_resources/test_payouts.py @@ -177,8 +177,8 @@ def test_method_retrieve_earning_statistics(self, client: OnlyFansAPI) -> None: def test_method_retrieve_earning_statistics_with_all_params(self, client: OnlyFansAPI) -> None: payout = client.payouts.retrieve_earning_statistics( account="acct_XXXXXXXXXXXXXXX", - end_date="2025-01-01 00:00:00, +30days", - start_date="2025-01-01 00:00:00, -30days", + end_date="2025-01-31 23:59:59", + start_date="2025-01-01 00:00:00", ) assert_matches_type(PayoutRetrieveEarningStatisticsResponse, payout, path=["response"]) @@ -463,8 +463,8 @@ async def test_method_retrieve_earning_statistics(self, async_client: AsyncOnlyF async def test_method_retrieve_earning_statistics_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: payout = await async_client.payouts.retrieve_earning_statistics( account="acct_XXXXXXXXXXXXXXX", - end_date="2025-01-01 00:00:00, +30days", - start_date="2025-01-01 00:00:00, -30days", + end_date="2025-01-31 23:59:59", + start_date="2025-01-01 00:00:00", ) assert_matches_type(PayoutRetrieveEarningStatisticsResponse, payout, path=["response"]) diff --git a/tests/api_resources/test_shared_tracking_links.py b/tests/api_resources/test_shared_tracking_links.py index 3dc77196..df210ec6 100644 --- a/tests/api_resources/test_shared_tracking_links.py +++ b/tests/api_resources/test_shared_tracking_links.py @@ -35,7 +35,11 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, + pagination=1, + sorting_deleted=1, + stats="true", synchronous=False, + with_deleted=1, ) assert_matches_type(SharedTrackingLinkListResponse, shared_tracking_link, path=["response"]) @@ -140,7 +144,11 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, + pagination=1, + sorting_deleted=1, + stats="true", synchronous=False, + with_deleted=1, ) assert_matches_type(SharedTrackingLinkListResponse, shared_tracking_link, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 362e703b..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,6 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -140,6 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 02634eca..1a4240b5 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -131,9 +131,8 @@ 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": ["tfwbhueavg"]}, + filter={"tags": ["bnhxtimiznczqakj"]}, limit=50, - meta_pixel_ids="1,2", name="Instagram", offset=0, pixel_ids="1,2", @@ -208,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="quis", + smart_link_id="minus", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -216,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="quis", + smart_link_id="minus", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -230,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="quis", + smart_link_id="minus", ) assert response.is_closed is True @@ -242,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="quis", + smart_link_id="minus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -264,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="harum", + smart_link_id="fugit", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -272,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="harum", + smart_link_id="fugit", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -288,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="harum", + smart_link_id="fugit", ) assert response.is_closed is True @@ -300,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="harum", + smart_link_id="fugit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -322,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="culpa", + smart_link_id="quo", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -330,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="culpa", + smart_link_id="quo", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -347,7 +346,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="quo", ) assert response.is_closed is True @@ -359,7 +358,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="quo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -381,7 +380,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="iure", + smart_link_id="autem", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -389,7 +388,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="iure", + smart_link_id="autem", limit=50, min_spend=1, offset=0, @@ -400,7 +399,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="iure", + smart_link_id="autem", ) assert response.is_closed is True @@ -412,7 +411,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="iure", + smart_link_id="autem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -434,7 +433,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="aliquam", + smart_link_id="rerum", ) assert smart_link is None @@ -442,7 +441,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="aliquam", + smart_link_id="rerum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -453,7 +452,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="aliquam", + smart_link_id="rerum", ) assert response.is_closed is True @@ -465,7 +464,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="aliquam", + smart_link_id="rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -487,7 +486,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="laborum", + smart_link_id="quia", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -495,7 +494,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="laborum", + smart_link_id="quia", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -505,7 +504,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="laborum", + smart_link_id="quia", ) assert response.is_closed is True @@ -517,7 +516,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="laborum", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,9 +644,8 @@ 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": ["tfwbhueavg"]}, + filter={"tags": ["bnhxtimiznczqakj"]}, limit=50, - meta_pixel_ids="1,2", name="Instagram", offset=0, pixel_ids="1,2", @@ -722,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="quis", + smart_link_id="minus", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -730,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="quis", + smart_link_id="minus", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -744,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="quis", + smart_link_id="minus", ) assert response.is_closed is True @@ -756,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="quis", + smart_link_id="minus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -778,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="harum", + smart_link_id="fugit", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -786,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="harum", + smart_link_id="fugit", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -802,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="harum", + smart_link_id="fugit", ) assert response.is_closed is True @@ -814,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="harum", + smart_link_id="fugit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -836,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="culpa", + smart_link_id="quo", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -844,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="culpa", + smart_link_id="quo", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -861,7 +859,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="quo", ) assert response.is_closed is True @@ -873,7 +871,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="quo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -895,7 +893,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="iure", + smart_link_id="autem", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -903,7 +901,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="iure", + smart_link_id="autem", limit=50, min_spend=1, offset=0, @@ -914,7 +912,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="iure", + smart_link_id="autem", ) assert response.is_closed is True @@ -926,7 +924,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="iure", + smart_link_id="autem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -948,7 +946,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="aliquam", + smart_link_id="rerum", ) assert smart_link is None @@ -956,7 +954,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="aliquam", + smart_link_id="rerum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -967,7 +965,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="aliquam", + smart_link_id="rerum", ) assert response.is_closed is True @@ -979,7 +977,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="aliquam", + smart_link_id="rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1001,7 +999,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="laborum", + smart_link_id="quia", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1009,7 +1007,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="laborum", + smart_link_id="quia", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1019,7 +1017,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="laborum", + smart_link_id="quia", ) assert response.is_closed is True @@ -1031,7 +1029,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="laborum", + 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_statistics.py b/tests/api_resources/test_statistics.py index 664e818b..e2a43787 100644 --- a/tests/api_resources/test_statistics.py +++ b/tests/api_resources/test_statistics.py @@ -24,6 +24,14 @@ class TestStatistics: @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_calculate_total_transactions(self, client: OnlyFansAPI) -> None: + statistic = client.statistics.calculate_total_transactions( + account="acct_XXXXXXXXXXXXXXX", + ) + assert_matches_type(StatisticCalculateTotalTransactionsResponse, statistic, path=["response"]) + + @pytest.mark.skip(reason="Mock server tests are disabled") + @parametrize + def test_method_calculate_total_transactions_with_all_params(self, client: OnlyFansAPI) -> None: statistic = client.statistics.calculate_total_transactions( account="acct_XXXXXXXXXXXXXXX", end_date="2025-03-31 23:59:59", @@ -36,8 +44,6 @@ def test_method_calculate_total_transactions(self, client: OnlyFansAPI) -> None: def test_raw_response_calculate_total_transactions(self, client: OnlyFansAPI) -> None: response = client.statistics.with_raw_response.calculate_total_transactions( account="acct_XXXXXXXXXXXXXXX", - end_date="2025-03-31 23:59:59", - start_date="2025-01-01 00:00:00", ) assert response.is_closed is True @@ -50,8 +56,6 @@ def test_raw_response_calculate_total_transactions(self, client: OnlyFansAPI) -> def test_streaming_response_calculate_total_transactions(self, client: OnlyFansAPI) -> None: with client.statistics.with_streaming_response.calculate_total_transactions( account="acct_XXXXXXXXXXXXXXX", - end_date="2025-03-31 23:59:59", - start_date="2025-01-01 00:00:00", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -67,8 +71,6 @@ def test_path_params_calculate_total_transactions(self, client: OnlyFansAPI) -> with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.statistics.with_raw_response.calculate_total_transactions( account="", - end_date="2025-03-31 23:59:59", - start_date="2025-01-01 00:00:00", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -194,6 +196,14 @@ class TestAsyncStatistics: @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_calculate_total_transactions(self, async_client: AsyncOnlyFansAPI) -> None: + statistic = await async_client.statistics.calculate_total_transactions( + account="acct_XXXXXXXXXXXXXXX", + ) + assert_matches_type(StatisticCalculateTotalTransactionsResponse, statistic, path=["response"]) + + @pytest.mark.skip(reason="Mock server tests are disabled") + @parametrize + async def test_method_calculate_total_transactions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: statistic = await async_client.statistics.calculate_total_transactions( account="acct_XXXXXXXXXXXXXXX", end_date="2025-03-31 23:59:59", @@ -206,8 +216,6 @@ async def test_method_calculate_total_transactions(self, async_client: AsyncOnly async def test_raw_response_calculate_total_transactions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.statistics.with_raw_response.calculate_total_transactions( account="acct_XXXXXXXXXXXXXXX", - end_date="2025-03-31 23:59:59", - start_date="2025-01-01 00:00:00", ) assert response.is_closed is True @@ -220,8 +228,6 @@ async def test_raw_response_calculate_total_transactions(self, async_client: Asy async def test_streaming_response_calculate_total_transactions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.statistics.with_streaming_response.calculate_total_transactions( account="acct_XXXXXXXXXXXXXXX", - end_date="2025-03-31 23:59:59", - start_date="2025-01-01 00:00:00", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -237,8 +243,6 @@ async def test_path_params_calculate_total_transactions(self, async_client: Asyn with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.statistics.with_raw_response.calculate_total_transactions( account="", - end_date="2025-03-31 23:59:59", - start_date="2025-01-01 00:00:00", ) @pytest.mark.skip(reason="Mock server tests are disabled") diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 36929dbe..d93868fc 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": "glxykaultyqmdeblrrbvhr", - "tags": ["xboxgwrkmxqpvervlyayv"], + "search": "zqxquduciiaoqv", + "tags": ["izeilffinshdaizyrtpl"], }, 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": "wjbggjhdraligrxwzfnddvs", - "tags": ["mqinypjrzuqvqbuc"], + "search": "yyvcu", + "tags": ["pvtudkw"], }, 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": "t", - "tags": ["qbwpdbntfop"], + "include_smart_links": True, + "search": "joqbwofxjgmfykwnka", + "tags": ["gtbtqa"], }, 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": "xurnqj", - "tags": ["tphhprmwzh"], + "include_smart_links": False, + "search": "mwbsiwsweqbpmqztlxxnprh", + "tags": ["hms"], }, 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": "glxykaultyqmdeblrrbvhr", - "tags": ["xboxgwrkmxqpvervlyayv"], + "search": "zqxquduciiaoqv", + "tags": ["izeilffinshdaizyrtpl"], }, 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": "wjbggjhdraligrxwzfnddvs", - "tags": ["mqinypjrzuqvqbuc"], + "search": "yyvcu", + "tags": ["pvtudkw"], }, 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": "t", - "tags": ["qbwpdbntfop"], + "include_smart_links": True, + "search": "joqbwofxjgmfykwnka", + "tags": ["gtbtqa"], }, 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": "xurnqj", - "tags": ["tphhprmwzh"], + "include_smart_links": False, + "search": "mwbsiwsweqbpmqztlxxnprh", + "tags": ["hms"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 6439e627..ada6b81f 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="iure", + tracking_link_id="accusantium", 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="iure", + tracking_link_id="accusantium", 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="iure", + tracking_link_id="accusantium", 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="iure", + tracking_link_id="accusantium", account="", ) @@ -146,14 +146,15 @@ def test_method_list(self, client: OnlyFansAPI) -> None: def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.list( account="acct_XXXXXXXXXXXXXXX", - end_date="2025-01-01 00:00:00, now", - limit=3, + end_date="2025-01-31 23:59:59", + limit=10, offset=0, + pagination=1, sort="desc", sortby="claims", - start_date="2025-01-01 00:00:00, -30days", + start_date="2025-01-01 00:00:00", synchronous=False, - with_deleted=False, + with_deleted=1, ) assert_matches_type(TrackingLinkListResponse, tracking_link, path=["response"]) @@ -195,7 +196,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="iure", + tracking_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +205,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="iure", + tracking_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +218,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="iure", + tracking_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +234,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="iure", + tracking_link_id="accusantium", account="", ) @@ -247,7 +248,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="aut", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +257,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="aut", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +269,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="aut", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +282,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="aut", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +298,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="aut", + tracking_link_id="ad", account="", ) @@ -311,7 +312,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="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +321,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="vel", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +332,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="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +345,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="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +361,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="vel", account="", ) @@ -562,7 +563,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="iure", + tracking_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +572,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="iure", + tracking_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +585,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="iure", + tracking_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +601,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="iure", + tracking_link_id="accusantium", account="", ) @@ -623,14 +624,15 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.list( account="acct_XXXXXXXXXXXXXXX", - end_date="2025-01-01 00:00:00, now", - limit=3, + end_date="2025-01-31 23:59:59", + limit=10, offset=0, + pagination=1, sort="desc", sortby="claims", - start_date="2025-01-01 00:00:00, -30days", + start_date="2025-01-01 00:00:00", synchronous=False, - with_deleted=False, + with_deleted=1, ) assert_matches_type(TrackingLinkListResponse, tracking_link, path=["response"]) @@ -672,7 +674,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="iure", + tracking_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +683,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="iure", + tracking_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +696,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="iure", + tracking_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +712,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="iure", + tracking_link_id="accusantium", account="", ) @@ -724,7 +726,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="aut", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +735,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="aut", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +747,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="aut", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +760,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="aut", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +776,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="aut", + tracking_link_id="ad", account="", ) @@ -788,7 +790,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="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +799,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="vel", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +810,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="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +823,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="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +839,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="vel", account="", ) diff --git a/tests/api_resources/test_transactions.py b/tests/api_resources/test_transactions.py index 8e785c06..9ce059f8 100644 --- a/tests/api_resources/test_transactions.py +++ b/tests/api_resources/test_transactions.py @@ -32,7 +32,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit="limit", marker="1739155047", - start_date="2025-01-01 00:00:00, -30days", + start_date="2025-01-01 00:00:00", tips_source="post_all", type="tips", ) @@ -93,7 +93,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit="limit", marker="1739155047", - start_date="2025-01-01 00:00:00, -30days", + start_date="2025-01-01 00:00:00", tips_source="post_all", type="tips", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 72ada08a..34decef5 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="vel", 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="vel", 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="vel", 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="vel", account="", ) @@ -149,8 +149,6 @@ def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: def test_method_list(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list( account="acct_XXXXXXXXXXXXXXX", - limit=10, - offset=0, ) assert_matches_type(TrialLinkListResponse, trial_link, path=["response"]) @@ -159,10 +157,12 @@ def test_method_list(self, client: OnlyFansAPI) -> None: def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list( account="acct_XXXXXXXXXXXXXXX", + end_date="2025-01-31 23:59:59", + field="create_date", limit=10, offset=0, - field="create_date", sort="desc", + start_date="2025-01-01 00:00:00", synchronous=False, ) assert_matches_type(TrialLinkListResponse, trial_link, path=["response"]) @@ -172,8 +172,6 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list( account="acct_XXXXXXXXXXXXXXX", - limit=10, - offset=0, ) assert response.is_closed is True @@ -186,8 +184,6 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list( account="acct_XXXXXXXXXXXXXXX", - limit=10, - offset=0, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -203,15 +199,13 @@ 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.trial_links.with_raw_response.list( account="", - limit=10, - offset=0, ) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="est", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +214,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="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +227,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="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +243,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="vel", account="", ) @@ -327,7 +321,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="modi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +332,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="modi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +347,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="modi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +365,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="modi", account="", limit=10, offset=0, @@ -389,7 +383,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="aliquam", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +392,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="aliquam", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +404,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="aliquam", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +417,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="aliquam", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +433,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="aliquam", + trial_link_id="vel", account="", ) @@ -453,7 +447,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="facilis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +456,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="facilis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +467,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="facilis", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +480,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="facilis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +496,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="facilis", account="", ) @@ -589,7 +583,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="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +592,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="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +605,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="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +621,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="vel", account="", ) @@ -642,8 +636,6 @@ async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> Non async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list( account="acct_XXXXXXXXXXXXXXX", - limit=10, - offset=0, ) assert_matches_type(TrialLinkListResponse, trial_link, path=["response"]) @@ -652,10 +644,12 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list( account="acct_XXXXXXXXXXXXXXX", + end_date="2025-01-31 23:59:59", + field="create_date", limit=10, offset=0, - field="create_date", sort="desc", + start_date="2025-01-01 00:00:00", synchronous=False, ) assert_matches_type(TrialLinkListResponse, trial_link, path=["response"]) @@ -665,8 +659,6 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list( account="acct_XXXXXXXXXXXXXXX", - limit=10, - offset=0, ) assert response.is_closed is True @@ -679,8 +671,6 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list( account="acct_XXXXXXXXXXXXXXX", - limit=10, - offset=0, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -696,15 +686,13 @@ 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.trial_links.with_raw_response.list( account="", - limit=10, - offset=0, ) @pytest.mark.skip(reason="Mock server tests are disabled") @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="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +701,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="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +714,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="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +730,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="vel", account="", ) @@ -820,7 +808,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="modi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +819,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="modi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +834,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="modi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +852,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="modi", account="", limit=10, offset=0, @@ -882,7 +870,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="aliquam", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +879,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="aliquam", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +891,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="aliquam", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +904,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="aliquam", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +920,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="aliquam", + trial_link_id="vel", account="", ) @@ -946,7 +934,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="facilis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +943,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="facilis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +954,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="facilis", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +967,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="facilis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +983,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="facilis", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 3096ddbe..fdbe5a15 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="payd", + name="vuvvswwzxd", ) 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="payd", + name="vuvvswwzxd", ) 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="payd", + name="vuvvswwzxd", ) 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="payd", + name="vuvvswwzxd", ) @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="payd", + name="vuvvswwzxd", ) 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="payd", + name="vuvvswwzxd", ) 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="payd", + name="vuvvswwzxd", ) 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="payd", + name="vuvvswwzxd", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 1c39ee2c56a02ab2c917032244427b5d5c90969d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 19 Jul 2026 23:12:31 +0000 Subject: [PATCH 180/249] 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 +- 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 | 100 +++++++++--------- tests/api_resources/test_stored.py | 32 +++--- tests/api_resources/test_tracking_links.py | 76 ++++++------- 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 22405e2d..bb3a0839 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-da309dbd1c3d6c45514ff6c1b040914c3cf34cdb03046d7bd35787785e705309.yml -openapi_spec_hash: 18f23f2127e97f6b6510805eec8753b0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4c83d011e157cf01b0f121cbb6d59fd74ab5122dd78acd02b3ff051fa7150970.yml +openapi_spec_hash: 03d0968b383d83a28654f111114ef0d2 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index ce398661..06d6f83d 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="natus", 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="natus", 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="natus", 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="natus", 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="natus", 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="natus", 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="natus", 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="natus", 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="natus", 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="natus", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index f6545352..7d9b2606 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="odit", + list_id="quasi", 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="odit", + list_id="quasi", 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="odit", + list_id="quasi", 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="odit", + list_id="quasi", 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="odit", + list_id="quasi", 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="odit", + list_id="quasi", 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="odit", + list_id="quasi", 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="odit", + list_id="quasi", 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="odit", + list_id="quasi", 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="odit", + list_id="quasi", 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="odit", + list_id="quasi", 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="odit", + list_id="quasi", 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="odit", + list_id="quasi", 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="odit", + list_id="quasi", 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="odit", + list_id="quasi", 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="odit", + list_id="quasi", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 66b11d36..1e3a045e 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="magnam", + post_id="inventore", 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="magnam", + post_id="inventore", 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="magnam", + post_id="inventore", 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="magnam", + post_id="inventore", 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="magnam", + post_id="inventore", 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="magnam", + post_id="inventore", 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="magnam", + post_id="inventore", 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="magnam", + post_id="inventore", 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="magnam", + post_id="inventore", 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="magnam", + post_id="inventore", 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="magnam", + post_id="inventore", 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="magnam", + post_id="inventore", 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="magnam", + post_id="inventore", 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="magnam", + post_id="inventore", 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="magnam", + post_id="inventore", 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="magnam", + post_id="inventore", 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="magnam", + post_id="inventore", 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="magnam", + post_id="inventore", 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="magnam", + post_id="inventore", 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="magnam", + post_id="inventore", 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 444937ba..7549791e 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 fc7b1635..9c80483e 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 9664075f..544df889 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 efb9b47d..ed112259 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( - "assumenda", + "ad", ) 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( - "assumenda", + "ad", ) 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( - "assumenda", + "ad", ) 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( - "assumenda", + "ad", ) 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( - "assumenda", + "ad", ) 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( - "assumenda", + "ad", ) 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 30b0f53c..edaa46ae 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="quia", - auth_type="mobile_app", - cookies="sequi", + auth_id="optio", + auth_type="email_password", + cookies="optio", custom_proxy={ "host": "proxy.example.com", - "password": '\\w7O1<{"v', + "password": "b{EE{myHh@r?:/^@5@$", "port": 8080, - "username": "et", + "username": "voluptatem", }, - email="jordon.leffler@example.net", - force_connect=False, - name="quia", - password="K)RXLbI+b9pQAg", - proxy_country="us", - user_agent="rerum", - xbc="quia", + email="tavares24@example.net", + force_connect=True, + name="distinctio", + password='l>Fn"_]C}3E=*Q[Ppk|', + proxy_country="gb", + user_agent="voluptatem", + xbc="nisi", ) 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="quia", - auth_type="mobile_app", - cookies="sequi", + auth_id="optio", + auth_type="email_password", + cookies="optio", custom_proxy={ "host": "proxy.example.com", - "password": '\\w7O1<{"v', + "password": "b{EE{myHh@r?:/^@5@$", "port": 8080, - "username": "et", + "username": "voluptatem", }, - email="jordon.leffler@example.net", - force_connect=False, - name="quia", - password="K)RXLbI+b9pQAg", - proxy_country="us", - user_agent="rerum", - xbc="quia", + email="tavares24@example.net", + force_connect=True, + name="distinctio", + password='l>Fn"_]C}3E=*Q[Ppk|', + proxy_country="gb", + user_agent="voluptatem", + xbc="nisi", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 583d8ad4..aaff3bff 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="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="all", + 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 65694e23..bd4f6161 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 1a4240b5..51f6f62a 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": ["bnhxtimiznczqakj"]}, + filter={"tags": ["agvczvkxrcdjq"]}, limit=50, name="Instagram", offset=0, @@ -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="minus", + smart_link_id="enim", ) 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="minus", + smart_link_id="enim", 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="minus", + smart_link_id="enim", ) 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="minus", + smart_link_id="enim", ) 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="fugit", + smart_link_id="fugiat", ) 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="fugit", + smart_link_id="fugiat", 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="fugit", + smart_link_id="fugiat", ) 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="fugit", + smart_link_id="fugiat", ) 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="quo", + smart_link_id="ut", ) 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="quo", + smart_link_id="ut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="quo", + smart_link_id="ut", ) assert response.is_closed is True @@ -358,7 +358,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="quo", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="autem", + smart_link_id="rem", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="autem", + smart_link_id="rem", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="autem", + smart_link_id="rem", ) assert response.is_closed is True @@ -411,7 +411,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="autem", + smart_link_id="rem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="iste", ) assert smart_link is None @@ -441,7 +441,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="iste", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="iste", ) assert response.is_closed is True @@ -464,7 +464,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="iste", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="magni", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="magni", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="magni", ) assert response.is_closed is True @@ -516,7 +516,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="magni", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["bnhxtimiznczqakj"]}, + filter={"tags": ["agvczvkxrcdjq"]}, limit=50, name="Instagram", offset=0, @@ -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="minus", + smart_link_id="enim", ) 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="minus", + smart_link_id="enim", 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="minus", + smart_link_id="enim", ) 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="minus", + smart_link_id="enim", ) 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="fugit", + smart_link_id="fugiat", ) 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="fugit", + smart_link_id="fugiat", 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="fugit", + smart_link_id="fugiat", ) 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="fugit", + smart_link_id="fugiat", ) 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="quo", + smart_link_id="ut", ) 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="quo", + smart_link_id="ut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="quo", + smart_link_id="ut", ) assert response.is_closed is True @@ -871,7 +871,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="quo", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="autem", + smart_link_id="rem", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="autem", + smart_link_id="rem", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="autem", + smart_link_id="rem", ) assert response.is_closed is True @@ -924,7 +924,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="autem", + smart_link_id="rem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="iste", ) assert smart_link is None @@ -954,7 +954,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="iste", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="iste", ) assert response.is_closed is True @@ -977,7 +977,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="iste", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="magni", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="magni", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="magni", ) assert response.is_closed is True @@ -1029,7 +1029,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="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 d93868fc..91fcb281 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": "zqxquduciiaoqv", - "tags": ["izeilffinshdaizyrtpl"], + "search": "dpqtj", + "tags": ["amqcfwf"], }, 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": "yyvcu", - "tags": ["pvtudkw"], + "search": "s", + "tags": ["eoethnpgoopmuuayzwrtryztn"], }, 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": "joqbwofxjgmfykwnka", - "tags": ["gtbtqa"], + "search": "yimmlinx", + "tags": ["mnahgysl"], }, 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": "mwbsiwsweqbpmqztlxxnprh", - "tags": ["hms"], + "search": "xtwbftwowonwvsygjr", + "tags": ["glnqezh"], }, 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": "zqxquduciiaoqv", - "tags": ["izeilffinshdaizyrtpl"], + "search": "dpqtj", + "tags": ["amqcfwf"], }, 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": "yyvcu", - "tags": ["pvtudkw"], + "search": "s", + "tags": ["eoethnpgoopmuuayzwrtryztn"], }, 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": "joqbwofxjgmfykwnka", - "tags": ["gtbtqa"], + "search": "yimmlinx", + "tags": ["mnahgysl"], }, 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": "mwbsiwsweqbpmqztlxxnprh", - "tags": ["hms"], + "search": "xtwbftwowonwvsygjr", + "tags": ["glnqezh"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index ada6b81f..2fb981ab 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="accusantium", + tracking_link_id="quas", 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="accusantium", + tracking_link_id="quas", 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="accusantium", + tracking_link_id="quas", 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="accusantium", + tracking_link_id="quas", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="accusantium", + tracking_link_id="quas", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="accusantium", + tracking_link_id="quas", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="accusantium", + tracking_link_id="quas", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="accusantium", + tracking_link_id="quas", account="", ) @@ -248,7 +248,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="ad", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="ad", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="ad", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="ad", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="ad", + tracking_link_id="non", account="", ) @@ -312,7 +312,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="vel", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="vel", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="vel", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="vel", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="vel", + tracking_link_id="ut", account="", ) @@ -563,7 +563,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="accusantium", + tracking_link_id="quas", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="accusantium", + tracking_link_id="quas", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="accusantium", + tracking_link_id="quas", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="accusantium", + tracking_link_id="quas", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="accusantium", + tracking_link_id="quas", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="accusantium", + tracking_link_id="quas", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="accusantium", + tracking_link_id="quas", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="accusantium", + tracking_link_id="quas", account="", ) @@ -726,7 +726,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="ad", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="ad", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="ad", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="ad", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="ad", + tracking_link_id="non", account="", ) @@ -790,7 +790,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="vel", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="vel", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="vel", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="vel", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="vel", + tracking_link_id="ut", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 34decef5..7800aa9d 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="vel", + 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="vel", + 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="vel", + 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="vel", + trial_link_id="dolorem", account="", ) @@ -205,7 +205,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="vel", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="vel", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="vel", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="vel", + trial_link_id="dolorem", account="", ) @@ -321,7 +321,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="modi", + trial_link_id="vero", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="modi", + trial_link_id="vero", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="modi", + trial_link_id="vero", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="modi", + trial_link_id="vero", account="", limit=10, offset=0, @@ -383,7 +383,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="vel", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="vel", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="vel", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="vel", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="vel", + trial_link_id="explicabo", account="", ) @@ -447,7 +447,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="facilis", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="facilis", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="facilis", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="facilis", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="facilis", + trial_link_id="consequatur", account="", ) @@ -583,7 +583,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="vel", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="vel", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="vel", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="vel", + trial_link_id="dolorem", account="", ) @@ -692,7 +692,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="vel", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="vel", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="vel", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="vel", + trial_link_id="dolorem", account="", ) @@ -808,7 +808,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="modi", + trial_link_id="vero", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="modi", + trial_link_id="vero", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="modi", + trial_link_id="vero", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="modi", + trial_link_id="vero", account="", limit=10, offset=0, @@ -870,7 +870,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="vel", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="vel", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="vel", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="vel", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="vel", + trial_link_id="explicabo", account="", ) @@ -934,7 +934,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="facilis", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="facilis", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="facilis", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="facilis", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="facilis", + trial_link_id="consequatur", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index fdbe5a15..417e6a67 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="vuvvswwzxd", + name="kyxwsana", ) 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="vuvvswwzxd", + name="kyxwsana", ) 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="vuvvswwzxd", + name="kyxwsana", ) 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="vuvvswwzxd", + name="kyxwsana", ) @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="vuvvswwzxd", + name="kyxwsana", ) 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="vuvvswwzxd", + name="kyxwsana", ) 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="vuvvswwzxd", + name="kyxwsana", ) 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="vuvvswwzxd", + name="kyxwsana", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 1f4ac02a5623e3f65252680e171e052a951ce441 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 12:12:35 +0000 Subject: [PATCH 181/249] 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_profiles.py | 4 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 40 +++---- tests/api_resources/test_tracking_links.py | 76 ++++++------- tests/api_resources/test_trial_links.py | 88 +++++++-------- tests/api_resources/test_user_lists.py | 16 +-- 15 files changed, 264 insertions(+), 264 deletions(-) diff --git a/.stats.yml b/.stats.yml index bb3a0839..0fcca8b2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4c83d011e157cf01b0f121cbb6d59fd74ab5122dd78acd02b3ff051fa7150970.yml -openapi_spec_hash: 03d0968b383d83a28654f111114ef0d2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a3538a60a65c2cb998f7fd63dfb64494f6a567cff01f7ae3932d4dde16fe1d1f.yml +openapi_spec_hash: c19092ffdce3e1fc9b7fb7513035ef5e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 06d6f83d..0123235e 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="natus", + message_id="hic", 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="natus", + message_id="hic", 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="natus", + message_id="hic", 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="natus", + message_id="hic", 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="natus", + message_id="hic", 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="natus", + message_id="hic", 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="natus", + message_id="hic", 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="natus", + message_id="hic", 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="natus", + message_id="hic", 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="natus", + message_id="hic", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 7d9b2606..422d2a14 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="quasi", + list_id="recusandae", 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="quasi", + list_id="recusandae", 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="quasi", + list_id="recusandae", 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="quasi", + list_id="recusandae", 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="quasi", + list_id="recusandae", 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="quasi", + list_id="recusandae", 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="quasi", + list_id="recusandae", 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="quasi", + list_id="recusandae", 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="quasi", + list_id="recusandae", 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="quasi", + list_id="recusandae", 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="quasi", + list_id="recusandae", 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="quasi", + list_id="recusandae", 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="quasi", + list_id="recusandae", 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="quasi", + list_id="recusandae", 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="quasi", + list_id="recusandae", 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="quasi", + list_id="recusandae", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 1e3a045e..f66b90ab 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + post_id="ut", 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 9c80483e..fc7b1635 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 e6c6066c..67b43dc5 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="quas", + 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="quas", + 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="quas", + 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="quas", + 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="quas", + 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="quas", + 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="quas", + 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="quas", + 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="quas", + 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="quas", + 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="quas", + 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="quas", + 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="quas", + 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="quas", + 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="quas", + 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="quas", + story_id="fugiat", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index ed112259..c6284bc1 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( - "ad", + "architecto", ) 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( - "ad", + "architecto", ) 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( - "ad", + "architecto", ) 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( - "ad", + "architecto", ) 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( - "ad", + "architecto", ) 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( - "ad", + "architecto", ) 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 edaa46ae..8dd7e22f 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="optio", - auth_type="email_password", - cookies="optio", + auth_id="accusantium", + auth_type="raw_data", + cookies="aspernatur", custom_proxy={ "host": "proxy.example.com", - "password": "b{EE{myHh@r?:/^@5@$", + "password": "dh}b!GbPxMC.", "port": 8080, - "username": "voluptatem", + "username": "saepe", }, - email="tavares24@example.net", - force_connect=True, - name="distinctio", - password='l>Fn"_]C}3E=*Q[Ppk|', + email="idell.okuneva@example.net", + force_connect=False, + name="incidunt", + password="x@dO1nnVe_", proxy_country="gb", - user_agent="voluptatem", - xbc="nisi", + user_agent="esse", + xbc="dicta", ) 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="optio", - auth_type="email_password", - cookies="optio", + auth_id="accusantium", + auth_type="raw_data", + cookies="aspernatur", custom_proxy={ "host": "proxy.example.com", - "password": "b{EE{myHh@r?:/^@5@$", + "password": "dh}b!GbPxMC.", "port": 8080, - "username": "voluptatem", + "username": "saepe", }, - email="tavares24@example.net", - force_connect=True, - name="distinctio", - password='l>Fn"_]C}3E=*Q[Ppk|', + email="idell.okuneva@example.net", + force_connect=False, + name="incidunt", + password="x@dO1nnVe_", proxy_country="gb", - user_agent="voluptatem", - xbc="nisi", + user_agent="esse", + xbc="dicta", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 51f6f62a..240bf973 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": ["agvczvkxrcdjq"]}, + filter={"tags": ["tiachiihcoi"]}, limit=50, name="Instagram", offset=0, @@ -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="enim", + smart_link_id="quia", ) 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="enim", + smart_link_id="quia", 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="enim", + smart_link_id="quia", ) 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="enim", + smart_link_id="quia", ) 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="fugiat", + smart_link_id="repellendus", ) 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="fugiat", + smart_link_id="repellendus", 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="fugiat", + smart_link_id="repellendus", ) 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="fugiat", + smart_link_id="repellendus", ) 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="ut", + smart_link_id="qui", ) 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="ut", + smart_link_id="qui", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="ut", + smart_link_id="qui", ) assert response.is_closed is True @@ -358,7 +358,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="ut", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="rem", + smart_link_id="reprehenderit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="rem", + smart_link_id="reprehenderit", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="rem", + smart_link_id="reprehenderit", ) assert response.is_closed is True @@ -411,7 +411,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="rem", + smart_link_id="reprehenderit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="iste", + smart_link_id="quos", ) assert smart_link is None @@ -441,7 +441,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="iste", + smart_link_id="quos", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="iste", + smart_link_id="quos", ) assert response.is_closed is True @@ -464,7 +464,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="iste", + smart_link_id="quos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="saepe", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="saepe", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="saepe", ) assert response.is_closed is True @@ -516,7 +516,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="saepe", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["agvczvkxrcdjq"]}, + filter={"tags": ["tiachiihcoi"]}, limit=50, name="Instagram", offset=0, @@ -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="enim", + smart_link_id="quia", ) 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="enim", + smart_link_id="quia", 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="enim", + smart_link_id="quia", ) 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="enim", + smart_link_id="quia", ) 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="fugiat", + smart_link_id="repellendus", ) 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="fugiat", + smart_link_id="repellendus", 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="fugiat", + smart_link_id="repellendus", ) 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="fugiat", + smart_link_id="repellendus", ) 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="ut", + smart_link_id="qui", ) 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="ut", + smart_link_id="qui", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="ut", + smart_link_id="qui", ) assert response.is_closed is True @@ -871,7 +871,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="ut", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="rem", + smart_link_id="reprehenderit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="rem", + smart_link_id="reprehenderit", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="rem", + smart_link_id="reprehenderit", ) assert response.is_closed is True @@ -924,7 +924,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="rem", + smart_link_id="reprehenderit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="iste", + smart_link_id="quos", ) assert smart_link is None @@ -954,7 +954,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="iste", + smart_link_id="quos", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="iste", + smart_link_id="quos", ) assert response.is_closed is True @@ -977,7 +977,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="iste", + smart_link_id="quos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="saepe", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="saepe", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="saepe", ) assert response.is_closed is True @@ -1029,7 +1029,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="saepe", ) 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 91fcb281..355dd07f 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": "dpqtj", - "tags": ["amqcfwf"], + "search": "zaxncrnbetzcpyv", + "tags": ["r"], }, 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": "s", - "tags": ["eoethnpgoopmuuayzwrtryztn"], + "search": "ewtgdftnbnvfmdtc", + "tags": ["zcfjhzogvljnvc"], }, 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": "yimmlinx", - "tags": ["mnahgysl"], + "include_smart_links": False, + "search": "psciwwwzbwxks", + "tags": ["bqdnelcxbcg"], }, 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": "xtwbftwowonwvsygjr", - "tags": ["glnqezh"], + "include_smart_links": True, + "search": "fxnuzfgkbyeqnpaapuzp", + "tags": ["fbmf"], }, 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": "dpqtj", - "tags": ["amqcfwf"], + "search": "zaxncrnbetzcpyv", + "tags": ["r"], }, 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": "s", - "tags": ["eoethnpgoopmuuayzwrtryztn"], + "search": "ewtgdftnbnvfmdtc", + "tags": ["zcfjhzogvljnvc"], }, 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": "yimmlinx", - "tags": ["mnahgysl"], + "include_smart_links": False, + "search": "psciwwwzbwxks", + "tags": ["bqdnelcxbcg"], }, 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": "xtwbftwowonwvsygjr", - "tags": ["glnqezh"], + "include_smart_links": True, + "search": "fxnuzfgkbyeqnpaapuzp", + "tags": ["fbmf"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 2fb981ab..5b56a0f0 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="quas", + 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="quas", + 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="quas", + 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="quas", + tracking_link_id="qui", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="quas", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="quas", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="quas", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="quas", + tracking_link_id="qui", account="", ) @@ -248,7 +248,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="accusantium", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="accusantium", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="accusantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="accusantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="accusantium", account="", ) @@ -312,7 +312,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="saepe", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="saepe", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="saepe", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="saepe", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="saepe", account="", ) @@ -563,7 +563,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="quas", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="quas", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="quas", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="quas", + tracking_link_id="qui", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="quas", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="quas", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="quas", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="quas", + tracking_link_id="qui", account="", ) @@ -726,7 +726,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="accusantium", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="accusantium", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="accusantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="accusantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="accusantium", account="", ) @@ -790,7 +790,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="saepe", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="saepe", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="saepe", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="saepe", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="saepe", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 7800aa9d..4b23f15a 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="nam", 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="nam", 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="nam", 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="nam", account="", ) @@ -205,7 +205,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="nam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="nam", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="nam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="nam", account="", ) @@ -321,7 +321,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="vero", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="vero", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="vero", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="vero", + trial_link_id="distinctio", account="", limit=10, offset=0, @@ -383,7 +383,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="explicabo", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="explicabo", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="explicabo", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="explicabo", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="explicabo", + trial_link_id="aut", account="", ) @@ -447,7 +447,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="consequatur", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="consequatur", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="consequatur", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="consequatur", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="consequatur", + trial_link_id="est", account="", ) @@ -583,7 +583,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="nam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="nam", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="nam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="nam", account="", ) @@ -692,7 +692,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="nam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="nam", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="nam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="nam", account="", ) @@ -808,7 +808,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="vero", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="vero", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="vero", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="vero", + trial_link_id="distinctio", account="", limit=10, offset=0, @@ -870,7 +870,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="explicabo", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="explicabo", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="explicabo", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="explicabo", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="explicabo", + trial_link_id="aut", account="", ) @@ -934,7 +934,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="consequatur", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="consequatur", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="consequatur", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="consequatur", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="consequatur", + trial_link_id="est", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 417e6a67..bd9f79c7 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="kyxwsana", + name="ykrztpzybclmsxxjwf", ) 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="kyxwsana", + name="ykrztpzybclmsxxjwf", ) 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="kyxwsana", + name="ykrztpzybclmsxxjwf", ) 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="kyxwsana", + name="ykrztpzybclmsxxjwf", ) @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="kyxwsana", + name="ykrztpzybclmsxxjwf", ) 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="kyxwsana", + name="ykrztpzybclmsxxjwf", ) 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="kyxwsana", + name="ykrztpzybclmsxxjwf", ) 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="kyxwsana", + name="ykrztpzybclmsxxjwf", ) @pytest.mark.skip(reason="Mock server tests are disabled") From f0d6930cdb58e913f6bf366d4b0efc320178eceb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 14:12:36 +0000 Subject: [PATCH 182/249] 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 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 76 ++++++------- 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 0fcca8b2..1925b412 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a3538a60a65c2cb998f7fd63dfb64494f6a567cff01f7ae3932d4dde16fe1d1f.yml -openapi_spec_hash: c19092ffdce3e1fc9b7fb7513035ef5e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2c3bff053faab91c4b19f9005ee1d08b1c95bbc572b34818b5d6ded6d684bf61.yml +openapi_spec_hash: a00f8341a150e4462efa3b0b5a073fee config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 0123235e..cafae57b 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="hic", + message_id="magni", 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="hic", + message_id="magni", 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="hic", + message_id="magni", 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="hic", + message_id="magni", 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="hic", + message_id="magni", 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="hic", + message_id="magni", 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="hic", + message_id="magni", 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="hic", + message_id="magni", 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="hic", + message_id="magni", 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="hic", + message_id="magni", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 422d2a14..4641577f 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="recusandae", + list_id="rerum", 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="recusandae", + list_id="rerum", 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="recusandae", + list_id="rerum", 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="recusandae", + list_id="rerum", 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="recusandae", + list_id="rerum", 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="recusandae", + list_id="rerum", 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="recusandae", + list_id="rerum", 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="recusandae", + list_id="rerum", 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="recusandae", + list_id="rerum", 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="recusandae", + list_id="rerum", 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="recusandae", + list_id="rerum", 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="recusandae", + list_id="rerum", 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="recusandae", + list_id="rerum", 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="recusandae", + list_id="rerum", 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="recusandae", + list_id="rerum", 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="recusandae", + list_id="rerum", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index f66b90ab..aaf072ff 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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="quaerat", 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 7549791e..444937ba 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 fc7b1635..9c80483e 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 67b43dc5..f16f4260 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="rerum", 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="rerum", 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="rerum", 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="rerum", 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="rerum", 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="rerum", 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="rerum", 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="rerum", 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="rerum", 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="rerum", 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="rerum", 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="rerum", 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="rerum", 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="rerum", 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="rerum", 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="rerum", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index c6284bc1..f9765ad6 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( - "architecto", + "eligendi", ) 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( - "architecto", + "eligendi", ) 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( - "architecto", + "eligendi", ) 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( - "architecto", + "eligendi", ) 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( - "architecto", + "eligendi", ) 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( - "architecto", + "eligendi", ) 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 8dd7e22f..9b30b83f 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="accusantium", - auth_type="raw_data", - cookies="aspernatur", + auth_id="molestiae", + auth_type="mobile_app", + cookies="aut", custom_proxy={ "host": "proxy.example.com", - "password": "dh}b!GbPxMC.", + "password": "aRcXGEP'8Ysj8c|w&", "port": 8080, - "username": "saepe", + "username": "eveniet", }, - email="idell.okuneva@example.net", + email="halvorson.javonte@example.com", force_connect=False, name="incidunt", - password="x@dO1nnVe_", - proxy_country="gb", - user_agent="esse", - xbc="dicta", + password="(&A3awM`CL)N9f8`", + proxy_country="uk", + user_agent="magnam", + xbc="placeat", ) 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="accusantium", - auth_type="raw_data", - cookies="aspernatur", + auth_id="molestiae", + auth_type="mobile_app", + cookies="aut", custom_proxy={ "host": "proxy.example.com", - "password": "dh}b!GbPxMC.", + "password": "aRcXGEP'8Ysj8c|w&", "port": 8080, - "username": "saepe", + "username": "eveniet", }, - email="idell.okuneva@example.net", + email="halvorson.javonte@example.com", force_connect=False, name="incidunt", - password="x@dO1nnVe_", - proxy_country="gb", - user_agent="esse", - xbc="dicta", + password="(&A3awM`CL)N9f8`", + proxy_country="uk", + user_agent="magnam", + xbc="placeat", ) 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 3597ede6..0d035d3b 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="gb", ) 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="gb", ) 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 aaff3bff..1a80b275 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_profiles.py b/tests/api_resources/test_profiles.py index 65694e23..bd4f6161 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 240bf973..6b0d3c2e 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": ["tiachiihcoi"]}, + filter={"tags": ["fqgolhsgmalyqvwcr"]}, limit=50, name="Instagram", offset=0, @@ -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="quia", + smart_link_id="et", ) 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="quia", + smart_link_id="et", 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="quia", + smart_link_id="et", ) 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="quia", + smart_link_id="et", ) 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="repellendus", + smart_link_id="veritatis", ) 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="repellendus", + smart_link_id="veritatis", 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="repellendus", + smart_link_id="veritatis", ) 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="repellendus", + smart_link_id="veritatis", ) 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="qui", + smart_link_id="omnis", ) 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="qui", + smart_link_id="omnis", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="omnis", ) assert response.is_closed is True @@ -358,7 +358,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="omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="reprehenderit", + smart_link_id="numquam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="reprehenderit", + smart_link_id="numquam", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="reprehenderit", + smart_link_id="numquam", ) assert response.is_closed is True @@ -411,7 +411,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="reprehenderit", + smart_link_id="numquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="quos", + smart_link_id="dolores", ) assert smart_link is None @@ -441,7 +441,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="quos", + smart_link_id="dolores", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="quos", + smart_link_id="dolores", ) assert response.is_closed is True @@ -464,7 +464,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="quos", + smart_link_id="dolores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="saepe", + smart_link_id="ad", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="saepe", + smart_link_id="ad", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="saepe", + smart_link_id="ad", ) assert response.is_closed is True @@ -516,7 +516,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="saepe", + smart_link_id="ad", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["tiachiihcoi"]}, + filter={"tags": ["fqgolhsgmalyqvwcr"]}, limit=50, name="Instagram", offset=0, @@ -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="quia", + smart_link_id="et", ) 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="quia", + smart_link_id="et", 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="quia", + smart_link_id="et", ) 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="quia", + smart_link_id="et", ) 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="repellendus", + smart_link_id="veritatis", ) 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="repellendus", + smart_link_id="veritatis", 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="repellendus", + smart_link_id="veritatis", ) 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="repellendus", + smart_link_id="veritatis", ) 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="qui", + smart_link_id="omnis", ) 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="qui", + smart_link_id="omnis", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="omnis", ) assert response.is_closed is True @@ -871,7 +871,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="omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="reprehenderit", + smart_link_id="numquam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="reprehenderit", + smart_link_id="numquam", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="reprehenderit", + smart_link_id="numquam", ) assert response.is_closed is True @@ -924,7 +924,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="reprehenderit", + smart_link_id="numquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="quos", + smart_link_id="dolores", ) assert smart_link is None @@ -954,7 +954,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="quos", + smart_link_id="dolores", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="quos", + smart_link_id="dolores", ) assert response.is_closed is True @@ -977,7 +977,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="quos", + smart_link_id="dolores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="saepe", + smart_link_id="ad", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="saepe", + smart_link_id="ad", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="saepe", + smart_link_id="ad", ) assert response.is_closed is True @@ -1029,7 +1029,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="saepe", + smart_link_id="ad", ) 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 355dd07f..d0fbba24 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": "zaxncrnbetzcpyv", - "tags": ["r"], + "search": "nib", + "tags": ["zhrqvpqp"], }, 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": "ewtgdftnbnvfmdtc", - "tags": ["zcfjhzogvljnvc"], + "search": "xppkhrpdeiqzfbndfgyrgiwse", + "tags": ["lifwziiqmchfmy"], }, 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": "psciwwwzbwxks", - "tags": ["bqdnelcxbcg"], + "include_smart_links": True, + "search": "ignhuqdyjmntmw", + "tags": ["aiwysckhxvirkdtrsdrcmexc"], }, 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": "fxnuzfgkbyeqnpaapuzp", - "tags": ["fbmf"], + "search": "ikqvyamjwczokbwymqy", + "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": "zaxncrnbetzcpyv", - "tags": ["r"], + "search": "nib", + "tags": ["zhrqvpqp"], }, 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": "ewtgdftnbnvfmdtc", - "tags": ["zcfjhzogvljnvc"], + "search": "xppkhrpdeiqzfbndfgyrgiwse", + "tags": ["lifwziiqmchfmy"], }, 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": "psciwwwzbwxks", - "tags": ["bqdnelcxbcg"], + "include_smart_links": True, + "search": "ignhuqdyjmntmw", + "tags": ["aiwysckhxvirkdtrsdrcmexc"], }, 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": "fxnuzfgkbyeqnpaapuzp", - "tags": ["fbmf"], + "search": "ikqvyamjwczokbwymqy", + "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 5b56a0f0..da23d50d 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="a", 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="a", 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="a", 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="a", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="a", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="a", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="a", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="a", account="", ) @@ -248,7 +248,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="accusantium", + tracking_link_id="fugiat", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="accusantium", + tracking_link_id="fugiat", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="accusantium", + tracking_link_id="fugiat", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="accusantium", + tracking_link_id="fugiat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="accusantium", + tracking_link_id="fugiat", account="", ) @@ -312,7 +312,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="saepe", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="saepe", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="saepe", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="saepe", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="saepe", + tracking_link_id="quis", account="", ) @@ -563,7 +563,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="a", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="a", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="a", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="a", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="a", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="a", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="a", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="a", account="", ) @@ -726,7 +726,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="accusantium", + tracking_link_id="fugiat", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="accusantium", + tracking_link_id="fugiat", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="accusantium", + tracking_link_id="fugiat", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="accusantium", + tracking_link_id="fugiat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="accusantium", + tracking_link_id="fugiat", account="", ) @@ -790,7 +790,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="saepe", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="saepe", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="saepe", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="saepe", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="saepe", + tracking_link_id="quis", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 4b23f15a..707f8391 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="nam", + 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="nam", + 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="nam", + 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="nam", + trial_link_id="assumenda", account="", ) @@ -205,7 +205,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="nam", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="nam", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="nam", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="nam", + trial_link_id="assumenda", account="", ) @@ -321,7 +321,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="quam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="quam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="quam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="quam", account="", limit=10, offset=0, @@ -383,7 +383,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="dolores", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="dolores", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="dolores", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="dolores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="dolores", account="", ) @@ -447,7 +447,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="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="voluptatum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="voluptatum", account="", ) @@ -583,7 +583,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="nam", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="nam", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="nam", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="nam", + trial_link_id="assumenda", account="", ) @@ -692,7 +692,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="nam", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="nam", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="nam", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="nam", + trial_link_id="assumenda", account="", ) @@ -808,7 +808,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="quam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="quam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="quam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="quam", account="", limit=10, offset=0, @@ -870,7 +870,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="dolores", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="dolores", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="dolores", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="dolores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="dolores", account="", ) @@ -934,7 +934,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="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="voluptatum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="voluptatum", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index bd9f79c7..60a7edfd 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="ykrztpzybclmsxxjwf", + name="wg", ) 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="ykrztpzybclmsxxjwf", + name="wg", ) 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="ykrztpzybclmsxxjwf", + name="wg", ) 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="ykrztpzybclmsxxjwf", + name="wg", ) @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="ykrztpzybclmsxxjwf", + name="wg", ) 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="ykrztpzybclmsxxjwf", + name="wg", ) 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="ykrztpzybclmsxxjwf", + name="wg", ) 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="ykrztpzybclmsxxjwf", + name="wg", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 3697190051b6031f79d0e309402dbba8d7261eff Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 15:12:33 +0000 Subject: [PATCH 183/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/chats/messages.py | 14 +++ src/onlyfansapi/resources/mass_messaging.py | 29 ++++++ src/onlyfansapi/resources/posts/posts.py | 28 ++++++ .../types/chats/message_send_params.py | 12 ++- .../types/mass_messaging_send_params.py | 12 ++- .../types/mass_messaging_update_params.py | 12 ++- src/onlyfansapi/types/post_create_params.py | 10 +++ src/onlyfansapi/types/post_update_params.py | 10 +++ tests/api_resources/chats/test_messages.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/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_mass_messaging.py | 4 + tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_posts.py | 4 + .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 84 +++++++++--------- 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 ++-- 28 files changed, 388 insertions(+), 257 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1925b412..56a3d36d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2c3bff053faab91c4b19f9005ee1d08b1c95bbc572b34818b5d6ded6d684bf61.yml -openapi_spec_hash: a00f8341a150e4462efa3b0b5a073fee +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2f3054908346ebfa16676ab279293c7425b9babb0870452255c037c15a1d6f9c.yml +openapi_spec_hash: 4c39d709bc6f09eacad77af7cfedaf9b config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/chats/messages.py b/src/onlyfansapi/resources/chats/messages.py index 43aef774..f67a47ff 100644 --- a/src/onlyfansapi/resources/chats/messages.py +++ b/src/onlyfansapi/resources/chats/messages.py @@ -356,6 +356,7 @@ def send( chat_id: str, *, account: str, + block_banned_words: Literal["strict_ban", "risky", "replace_soften"] | Omit = omit, giphy_id: str | Omit = omit, locked_text: bool | Omit = omit, media_files: Iterable[object] | Omit = omit, @@ -377,6 +378,11 @@ def send( Send a new message to a chat. Args: + block_banned_words: Screen `text` for OnlyFans banned words and block the send if any are found + (returns a 422 listing the offending words). `strict_ban` blocks all tiers, + `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften + only. Omit to disable screening. + giphy_id: The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing endpoints (`/giphy/trending`, `/giphy/search`). @@ -419,6 +425,7 @@ def send( path_template("/api/{account}/chats/{chat_id}/messages", account=account, chat_id=chat_id), body=maybe_transform( { + "block_banned_words": block_banned_words, "giphy_id": giphy_id, "locked_text": locked_text, "media_files": media_files, @@ -851,6 +858,7 @@ async def send( chat_id: str, *, account: str, + block_banned_words: Literal["strict_ban", "risky", "replace_soften"] | Omit = omit, giphy_id: str | Omit = omit, locked_text: bool | Omit = omit, media_files: Iterable[object] | Omit = omit, @@ -872,6 +880,11 @@ async def send( Send a new message to a chat. Args: + block_banned_words: Screen `text` for OnlyFans banned words and block the send if any are found + (returns a 422 listing the offending words). `strict_ban` blocks all tiers, + `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften + only. Omit to disable screening. + giphy_id: The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing endpoints (`/giphy/trending`, `/giphy/search`). @@ -914,6 +927,7 @@ async def send( path_template("/api/{account}/chats/{chat_id}/messages", account=account, chat_id=chat_id), body=await async_maybe_transform( { + "block_banned_words": block_banned_words, "giphy_id": giphy_id, "locked_text": locked_text, "media_files": media_files, diff --git a/src/onlyfansapi/resources/mass_messaging.py b/src/onlyfansapi/resources/mass_messaging.py index 51062803..f605feb4 100644 --- a/src/onlyfansapi/resources/mass_messaging.py +++ b/src/onlyfansapi/resources/mass_messaging.py @@ -3,6 +3,7 @@ from __future__ import annotations from typing import Iterable +from typing_extensions import Literal import httpx @@ -90,6 +91,7 @@ def update( *, account: str, text: str, + block_banned_words: Literal["strict_ban", "risky", "replace_soften"] | Omit = omit, giphy_id: str | Omit = omit, locked_text: bool | Omit = omit, media_files: SequenceNotStr[str] | Omit = omit, @@ -111,6 +113,11 @@ def update( Args: text: The message text content + block_banned_words: Screen `text` for OnlyFans banned words and block the update if any are found + (returns a 422 listing the offending words). `strict_ban` blocks all tiers, + `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften + only. Omit to disable screening. + giphy_id: The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing endpoints (`/giphy/trending`, `/giphy/search`). @@ -149,6 +156,7 @@ def update( body=maybe_transform( { "text": text, + "block_banned_words": block_banned_words, "giphy_id": giphy_id, "locked_text": locked_text, "media_files": media_files, @@ -300,6 +308,7 @@ def send( account: str, *, text: str, + block_banned_words: Literal["strict_ban", "risky", "replace_soften"] | Omit = omit, excluded_lists: SequenceNotStr[str] | Omit = omit, giphy_id: str | Omit = omit, locked_text: bool | Omit = omit, @@ -329,6 +338,11 @@ def send( Args: text: The message text content + block_banned_words: Screen `text` for OnlyFans banned words and block the send if any are found + (returns a 422 listing the offending words). `strict_ban` blocks all tiers, + `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften + only. Omit to disable screening. + excluded_lists: Array of user list IDs that the mass message will NOT be sent to. giphy_id: The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing @@ -375,6 +389,7 @@ def send( body=maybe_transform( { "text": text, + "block_banned_words": block_banned_words, "excluded_lists": excluded_lists, "giphy_id": giphy_id, "locked_text": locked_text, @@ -460,6 +475,7 @@ async def update( *, account: str, text: str, + block_banned_words: Literal["strict_ban", "risky", "replace_soften"] | Omit = omit, giphy_id: str | Omit = omit, locked_text: bool | Omit = omit, media_files: SequenceNotStr[str] | Omit = omit, @@ -481,6 +497,11 @@ async def update( Args: text: The message text content + block_banned_words: Screen `text` for OnlyFans banned words and block the update if any are found + (returns a 422 listing the offending words). `strict_ban` blocks all tiers, + `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften + only. Omit to disable screening. + giphy_id: The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing endpoints (`/giphy/trending`, `/giphy/search`). @@ -519,6 +540,7 @@ async def update( body=await async_maybe_transform( { "text": text, + "block_banned_words": block_banned_words, "giphy_id": giphy_id, "locked_text": locked_text, "media_files": media_files, @@ -670,6 +692,7 @@ async def send( account: str, *, text: str, + block_banned_words: Literal["strict_ban", "risky", "replace_soften"] | Omit = omit, excluded_lists: SequenceNotStr[str] | Omit = omit, giphy_id: str | Omit = omit, locked_text: bool | Omit = omit, @@ -699,6 +722,11 @@ async def send( Args: text: The message text content + block_banned_words: Screen `text` for OnlyFans banned words and block the send if any are found + (returns a 422 listing the offending words). `strict_ban` blocks all tiers, + `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften + only. Omit to disable screening. + excluded_lists: Array of user list IDs that the mass message will NOT be sent to. giphy_id: The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing @@ -745,6 +773,7 @@ async def send( body=await async_maybe_transform( { "text": text, + "block_banned_words": block_banned_words, "excluded_lists": excluded_lists, "giphy_id": giphy_id, "locked_text": locked_text, diff --git a/src/onlyfansapi/resources/posts/posts.py b/src/onlyfansapi/resources/posts/posts.py index 5bf6dd37..78aeeba1 100644 --- a/src/onlyfansapi/resources/posts/posts.py +++ b/src/onlyfansapi/resources/posts/posts.py @@ -90,6 +90,7 @@ def create( account: str, *, text: str, + block_banned_words: Literal["strict_ban", "risky", "replace_soften"] | Omit = omit, expire_days: int | Omit = omit, fund_raising_target_amount: int | Omit = omit, fund_raising_tips_presets: SequenceNotStr[str] | Omit = omit, @@ -116,6 +117,11 @@ def create( Args: text: The post text content + block_banned_words: Screen `text` for OnlyFans banned words and block the post if any are found + (returns a 422 listing the offending words). `strict_ban` blocks all tiers, + `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften + only. Omit to disable screening. + expire_days: Number of days after which the post will expire. Between 1 and 30 days. Keep empty for no expiration. @@ -164,6 +170,7 @@ def create( body=maybe_transform( { "text": text, + "block_banned_words": block_banned_words, "expire_days": expire_days, "fund_raising_target_amount": fund_raising_target_amount, "fund_raising_tips_presets": fund_raising_tips_presets, @@ -226,6 +233,7 @@ def update( *, account: str, text: str, + block_banned_words: Literal["strict_ban", "risky", "replace_soften"] | Omit = omit, expire_days: int | Omit = omit, fund_raising_target_amount: int | Omit = omit, fund_raising_tips_presets: SequenceNotStr[str] | Omit = omit, @@ -252,6 +260,11 @@ def update( Args: text: The post text content + block_banned_words: Screen `text` for OnlyFans banned words and block the update if any are found + (returns a 422 listing the offending words). `strict_ban` blocks all tiers, + `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften + only. Omit to disable screening. + expire_days: Number of days after which the post will expire. Between 1 and 30 days. Keep empty for no expiration. @@ -300,6 +313,7 @@ def update( body=maybe_transform( { "text": text, + "block_banned_words": block_banned_words, "expire_days": expire_days, "fund_raising_target_amount": fund_raising_target_amount, "fund_raising_tips_presets": fund_raising_tips_presets, @@ -627,6 +641,7 @@ async def create( account: str, *, text: str, + block_banned_words: Literal["strict_ban", "risky", "replace_soften"] | Omit = omit, expire_days: int | Omit = omit, fund_raising_target_amount: int | Omit = omit, fund_raising_tips_presets: SequenceNotStr[str] | Omit = omit, @@ -653,6 +668,11 @@ async def create( Args: text: The post text content + block_banned_words: Screen `text` for OnlyFans banned words and block the post if any are found + (returns a 422 listing the offending words). `strict_ban` blocks all tiers, + `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften + only. Omit to disable screening. + expire_days: Number of days after which the post will expire. Between 1 and 30 days. Keep empty for no expiration. @@ -701,6 +721,7 @@ async def create( body=await async_maybe_transform( { "text": text, + "block_banned_words": block_banned_words, "expire_days": expire_days, "fund_raising_target_amount": fund_raising_target_amount, "fund_raising_tips_presets": fund_raising_tips_presets, @@ -763,6 +784,7 @@ async def update( *, account: str, text: str, + block_banned_words: Literal["strict_ban", "risky", "replace_soften"] | Omit = omit, expire_days: int | Omit = omit, fund_raising_target_amount: int | Omit = omit, fund_raising_tips_presets: SequenceNotStr[str] | Omit = omit, @@ -789,6 +811,11 @@ async def update( Args: text: The post text content + block_banned_words: Screen `text` for OnlyFans banned words and block the update if any are found + (returns a 422 listing the offending words). `strict_ban` blocks all tiers, + `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften + only. Omit to disable screening. + expire_days: Number of days after which the post will expire. Between 1 and 30 days. Keep empty for no expiration. @@ -837,6 +864,7 @@ async def update( body=await async_maybe_transform( { "text": text, + "block_banned_words": block_banned_words, "expire_days": expire_days, "fund_raising_target_amount": fund_raising_target_amount, "fund_raising_tips_presets": fund_raising_tips_presets, diff --git a/src/onlyfansapi/types/chats/message_send_params.py b/src/onlyfansapi/types/chats/message_send_params.py index 12842b4d..c49e4b75 100644 --- a/src/onlyfansapi/types/chats/message_send_params.py +++ b/src/onlyfansapi/types/chats/message_send_params.py @@ -3,7 +3,7 @@ from __future__ import annotations from typing import Iterable -from typing_extensions import Required, Annotated, TypedDict +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo @@ -13,6 +13,16 @@ class MessageSendParams(TypedDict, total=False): account: Required[str] + block_banned_words: Annotated[ + Literal["strict_ban", "risky", "replace_soften"], PropertyInfo(alias="blockBannedWords") + ] + """ + Screen `text` for OnlyFans banned words and block the send if any are found + (returns a 422 listing the offending words). `strict_ban` blocks all tiers, + `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften + only. Omit to disable screening. + """ + giphy_id: Annotated[str, PropertyInfo(alias="giphyId")] """The ID of the Giphy GIF to attach to the message. diff --git a/src/onlyfansapi/types/mass_messaging_send_params.py b/src/onlyfansapi/types/mass_messaging_send_params.py index c49a5c18..f55b5bb2 100644 --- a/src/onlyfansapi/types/mass_messaging_send_params.py +++ b/src/onlyfansapi/types/mass_messaging_send_params.py @@ -3,7 +3,7 @@ from __future__ import annotations from typing import Iterable -from typing_extensions import Required, Annotated, TypedDict +from typing_extensions import Literal, Required, Annotated, TypedDict from .._types import SequenceNotStr from .._utils import PropertyInfo @@ -15,6 +15,16 @@ class MassMessagingSendParams(TypedDict, total=False): text: Required[str] """The message text content""" + block_banned_words: Annotated[ + Literal["strict_ban", "risky", "replace_soften"], PropertyInfo(alias="blockBannedWords") + ] + """ + Screen `text` for OnlyFans banned words and block the send if any are found + (returns a 422 listing the offending words). `strict_ban` blocks all tiers, + `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften + only. Omit to disable screening. + """ + excluded_lists: Annotated[SequenceNotStr[str], PropertyInfo(alias="excludedLists")] """Array of user list IDs that the mass message will NOT be sent to.""" diff --git a/src/onlyfansapi/types/mass_messaging_update_params.py b/src/onlyfansapi/types/mass_messaging_update_params.py index 70624b78..28684584 100644 --- a/src/onlyfansapi/types/mass_messaging_update_params.py +++ b/src/onlyfansapi/types/mass_messaging_update_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Required, Annotated, TypedDict +from typing_extensions import Literal, Required, Annotated, TypedDict from .._types import SequenceNotStr from .._utils import PropertyInfo @@ -16,6 +16,16 @@ class MassMessagingUpdateParams(TypedDict, total=False): text: Required[str] """The message text content""" + block_banned_words: Annotated[ + Literal["strict_ban", "risky", "replace_soften"], PropertyInfo(alias="blockBannedWords") + ] + """ + Screen `text` for OnlyFans banned words and block the update if any are found + (returns a 422 listing the offending words). `strict_ban` blocks all tiers, + `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften + only. Omit to disable screening. + """ + giphy_id: Annotated[str, PropertyInfo(alias="giphyId")] """The ID of the Giphy GIF to attach to the message. diff --git a/src/onlyfansapi/types/post_create_params.py b/src/onlyfansapi/types/post_create_params.py index 69af87fc..879857b7 100644 --- a/src/onlyfansapi/types/post_create_params.py +++ b/src/onlyfansapi/types/post_create_params.py @@ -15,6 +15,16 @@ class PostCreateParams(TypedDict, total=False): text: Required[str] """The post text content""" + block_banned_words: Annotated[ + Literal["strict_ban", "risky", "replace_soften"], PropertyInfo(alias="blockBannedWords") + ] + """ + Screen `text` for OnlyFans banned words and block the post if any are found + (returns a 422 listing the offending words). `strict_ban` blocks all tiers, + `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften + only. Omit to disable screening. + """ + expire_days: Annotated[int, PropertyInfo(alias="expireDays")] """Number of days after which the post will expire. diff --git a/src/onlyfansapi/types/post_update_params.py b/src/onlyfansapi/types/post_update_params.py index 0e647cf5..8dbef203 100644 --- a/src/onlyfansapi/types/post_update_params.py +++ b/src/onlyfansapi/types/post_update_params.py @@ -16,6 +16,16 @@ class PostUpdateParams(TypedDict, total=False): text: Required[str] """The post text content""" + block_banned_words: Annotated[ + Literal["strict_ban", "risky", "replace_soften"], PropertyInfo(alias="blockBannedWords") + ] + """ + Screen `text` for OnlyFans banned words and block the update if any are found + (returns a 422 listing the offending words). `strict_ban` blocks all tiers, + `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften + only. Omit to disable screening. + """ + expire_days: Annotated[int, PropertyInfo(alias="expireDays")] """Number of days after which the post will expire. diff --git a/tests/api_resources/chats/test_messages.py b/tests/api_resources/chats/test_messages.py index 07c8373f..3a8c8bfc 100644 --- a/tests/api_resources/chats/test_messages.py +++ b/tests/api_resources/chats/test_messages.py @@ -422,6 +422,7 @@ def test_method_send_with_all_params(self, client: OnlyFansAPI) -> None: message = client.chats.messages.send( chat_id="123", account="acct_XXXXXXXXXXXXXXX", + block_banned_words="strict_ban", giphy_id="WAGC3LeqJvXglm5H7a", locked_text=True, media_files=["ofapi_media_abc123", 1234567890], @@ -1007,6 +1008,7 @@ async def test_method_send_with_all_params(self, async_client: AsyncOnlyFansAPI) message = await async_client.chats.messages.send( chat_id="123", account="acct_XXXXXXXXXXXXXXX", + block_banned_words="strict_ban", giphy_id="WAGC3LeqJvXglm5H7a", locked_text=True, media_files=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index cafae57b..b069bed5 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="magni", + message_id="ducimus", 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="magni", + message_id="ducimus", 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="magni", + message_id="ducimus", 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="magni", + message_id="ducimus", 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="magni", + message_id="ducimus", 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="magni", + message_id="ducimus", 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="magni", + message_id="ducimus", 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="magni", + message_id="ducimus", 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="magni", + message_id="ducimus", 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="magni", + message_id="ducimus", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 4641577f..c84c04ec 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="rerum", + list_id="quae", 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="rerum", + list_id="quae", 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="rerum", + list_id="quae", 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="rerum", + list_id="quae", 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="rerum", + list_id="quae", 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="rerum", + list_id="quae", 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="rerum", + list_id="quae", 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="rerum", + list_id="quae", 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="rerum", + list_id="quae", 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="rerum", + list_id="quae", 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="rerum", + list_id="quae", 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="rerum", + list_id="quae", 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="rerum", + list_id="quae", 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="rerum", + list_id="quae", 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="rerum", + list_id="quae", 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="rerum", + list_id="quae", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index aaf072ff..685b531f 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="quaerat", + post_id="ea", 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="quaerat", + post_id="ea", 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="quaerat", + post_id="ea", 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="quaerat", + post_id="ea", 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="quaerat", + post_id="ea", 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="quaerat", + post_id="ea", 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="quaerat", + post_id="ea", 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="quaerat", + post_id="ea", 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="quaerat", + post_id="ea", 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="quaerat", + post_id="ea", 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="quaerat", + post_id="ea", 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="quaerat", + post_id="ea", 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="quaerat", + post_id="ea", 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="quaerat", + post_id="ea", 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="quaerat", + post_id="ea", 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="quaerat", + post_id="ea", 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="quaerat", + post_id="ea", 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="quaerat", + post_id="ea", 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="quaerat", + post_id="ea", 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="quaerat", + post_id="ea", 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 9c80483e..fc7b1635 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 544df889..9664075f 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 f16f4260..b7b68c42 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="rerum", + path_story_id="aperiam", 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="rerum", + path_story_id="aperiam", 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="rerum", + path_story_id="aperiam", 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="rerum", + path_story_id="aperiam", 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="rerum", + story_id="aperiam", 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="rerum", + story_id="aperiam", 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="rerum", + story_id="aperiam", 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="rerum", + story_id="aperiam", 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="rerum", + path_story_id="aperiam", 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="rerum", + path_story_id="aperiam", 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="rerum", + path_story_id="aperiam", 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="rerum", + path_story_id="aperiam", 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="rerum", + story_id="aperiam", 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="rerum", + story_id="aperiam", 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="rerum", + story_id="aperiam", 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="rerum", + story_id="aperiam", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index f9765ad6..57a9cbed 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( - "eligendi", + "necessitatibus", ) 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( - "eligendi", + "necessitatibus", ) 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( - "eligendi", + "necessitatibus", ) 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( - "eligendi", + "necessitatibus", ) 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( - "eligendi", + "necessitatibus", ) 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( - "eligendi", + "necessitatibus", ) 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 9b30b83f..deca6f08 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="molestiae", - auth_type="mobile_app", - cookies="aut", + auth_id="sunt", + auth_type="raw_data", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "aRcXGEP'8Ysj8c|w&", + "password": "@$AALq*,", "port": 8080, - "username": "eveniet", + "username": "sed", }, - email="halvorson.javonte@example.com", + email="dickens.brooklyn@example.com", force_connect=False, - name="incidunt", - password="(&A3awM`CL)N9f8`", + name="earum", + password="xTwQ]0_OyiB|e2MA", proxy_country="uk", - user_agent="magnam", - xbc="placeat", + user_agent="qui", + xbc="voluptates", ) 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="molestiae", - auth_type="mobile_app", - cookies="aut", + auth_id="sunt", + auth_type="raw_data", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "aRcXGEP'8Ysj8c|w&", + "password": "@$AALq*,", "port": 8080, - "username": "eveniet", + "username": "sed", }, - email="halvorson.javonte@example.com", + email="dickens.brooklyn@example.com", force_connect=False, - name="incidunt", - password="(&A3awM`CL)N9f8`", + name="earum", + password="xTwQ]0_OyiB|e2MA", proxy_country="uk", - user_agent="magnam", - xbc="placeat", + user_agent="qui", + xbc="voluptates", ) 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 0d035d3b..3597ede6 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="gb", + 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="gb", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_mass_messaging.py b/tests/api_resources/test_mass_messaging.py index ca7be956..130b5fe1 100644 --- a/tests/api_resources/test_mass_messaging.py +++ b/tests/api_resources/test_mass_messaging.py @@ -93,6 +93,7 @@ def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: id="id", account="acct_XXXXXXXXXXXXXXX", text="Hello!", + block_banned_words="strict_ban", giphy_id="WAGC3LeqJvXglm5H7a", locked_text=True, media_files=["ofapi_media_abc123", "string"], @@ -314,6 +315,7 @@ def test_method_send_with_all_params(self, client: OnlyFansAPI) -> None: mass_messaging = client.mass_messaging.send( account="acct_XXXXXXXXXXXXXXX", text="Hello!", + block_banned_words="strict_ban", excluded_lists=["fans", "recent", "following", "rebill_off", "tagged", "string"], giphy_id="WAGC3LeqJvXglm5H7a", locked_text=True, @@ -442,6 +444,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAP id="id", account="acct_XXXXXXXXXXXXXXX", text="Hello!", + block_banned_words="strict_ban", giphy_id="WAGC3LeqJvXglm5H7a", locked_text=True, media_files=["ofapi_media_abc123", "string"], @@ -663,6 +666,7 @@ async def test_method_send_with_all_params(self, async_client: AsyncOnlyFansAPI) mass_messaging = await async_client.mass_messaging.send( account="acct_XXXXXXXXXXXXXXX", text="Hello!", + block_banned_words="strict_ban", excluded_lists=["fans", "recent", "following", "rebill_off", "tagged", "string"], giphy_id="WAGC3LeqJvXglm5H7a", locked_text=True, diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 1a80b275..583d8ad4 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_posts.py b/tests/api_resources/test_posts.py index cfa5a890..3b6873b1 100644 --- a/tests/api_resources/test_posts.py +++ b/tests/api_resources/test_posts.py @@ -41,6 +41,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: post = client.posts.create( account="acct_XXXXXXXXXXXXXXX", text="Hello!", + block_banned_words="strict_ban", expire_days=3, fund_raising_target_amount=30, fund_raising_tips_presets=["string", "string", "string"], @@ -157,6 +158,7 @@ def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: post_id=1234567890, account="acct_XXXXXXXXXXXXXXX", text="Hello!", + block_banned_words="strict_ban", expire_days=3, fund_raising_target_amount=30, fund_raising_tips_presets=["string", "string", "string"], @@ -552,6 +554,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP post = await async_client.posts.create( account="acct_XXXXXXXXXXXXXXX", text="Hello!", + block_banned_words="strict_ban", expire_days=3, fund_raising_target_amount=30, fund_raising_tips_presets=["string", "string", "string"], @@ -668,6 +671,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAP post_id=1234567890, account="acct_XXXXXXXXXXXXXXX", text="Hello!", + block_banned_words="strict_ban", expire_days=3, fund_raising_target_amount=30, fund_raising_tips_presets=["string", "string", "string"], diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 6b0d3c2e..bab5c3b3 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": ["fqgolhsgmalyqvwcr"]}, + filter={"tags": ["j"]}, limit=50, name="Instagram", offset=0, @@ -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="veritatis", + smart_link_id="sed", ) 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="veritatis", + smart_link_id="sed", 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="veritatis", + smart_link_id="sed", ) 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="veritatis", + smart_link_id="sed", ) 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="omnis", + smart_link_id="quasi", ) 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="omnis", + smart_link_id="quasi", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="omnis", + smart_link_id="quasi", ) assert response.is_closed is True @@ -358,7 +358,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="omnis", + smart_link_id="quasi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="numquam", + smart_link_id="voluptates", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="numquam", + smart_link_id="voluptates", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="numquam", + smart_link_id="voluptates", ) assert response.is_closed is True @@ -411,7 +411,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="numquam", + smart_link_id="voluptates", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="dolores", + smart_link_id="ducimus", ) assert smart_link is None @@ -441,7 +441,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="dolores", + smart_link_id="ducimus", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="dolores", + smart_link_id="ducimus", ) assert response.is_closed is True @@ -464,7 +464,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="dolores", + smart_link_id="ducimus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="ad", + smart_link_id="quos", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="ad", + smart_link_id="quos", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="ad", + smart_link_id="quos", ) assert response.is_closed is True @@ -516,7 +516,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="ad", + smart_link_id="quos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["fqgolhsgmalyqvwcr"]}, + filter={"tags": ["j"]}, limit=50, name="Instagram", offset=0, @@ -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="veritatis", + smart_link_id="sed", ) 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="veritatis", + smart_link_id="sed", 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="veritatis", + smart_link_id="sed", ) 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="veritatis", + smart_link_id="sed", ) 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="omnis", + smart_link_id="quasi", ) 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="omnis", + smart_link_id="quasi", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="omnis", + smart_link_id="quasi", ) assert response.is_closed is True @@ -871,7 +871,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="omnis", + smart_link_id="quasi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="numquam", + smart_link_id="voluptates", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="numquam", + smart_link_id="voluptates", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="numquam", + smart_link_id="voluptates", ) assert response.is_closed is True @@ -924,7 +924,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="numquam", + smart_link_id="voluptates", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="dolores", + smart_link_id="ducimus", ) assert smart_link is None @@ -954,7 +954,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="dolores", + smart_link_id="ducimus", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="dolores", + smart_link_id="ducimus", ) assert response.is_closed is True @@ -977,7 +977,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="dolores", + smart_link_id="ducimus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="ad", + smart_link_id="quos", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="ad", + smart_link_id="quos", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="ad", + smart_link_id="quos", ) assert response.is_closed is True @@ -1029,7 +1029,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="ad", + smart_link_id="quos", ) 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 d0fbba24..78fa0b07 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": "nib", - "tags": ["zhrqvpqp"], + "search": "uqroksrtiabbo", + "tags": ["ceazzelgytfxvpdibm"], }, 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": "xppkhrpdeiqzfbndfgyrgiwse", - "tags": ["lifwziiqmchfmy"], + "search": "dmflfcx", + "tags": ["ipuqpryndbwpzv"], }, 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": "ignhuqdyjmntmw", - "tags": ["aiwysckhxvirkdtrsdrcmexc"], + "search": "p", + "tags": ["nphzgfxiwloxsjtxckzcbux"], }, 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": "ikqvyamjwczokbwymqy", - "tags": ["f"], + "include_smart_links": False, + "search": "etoggjjlfabaxkmxd", + "tags": ["qrimgfgmcn"], }, 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": "nib", - "tags": ["zhrqvpqp"], + "search": "uqroksrtiabbo", + "tags": ["ceazzelgytfxvpdibm"], }, 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": "xppkhrpdeiqzfbndfgyrgiwse", - "tags": ["lifwziiqmchfmy"], + "search": "dmflfcx", + "tags": ["ipuqpryndbwpzv"], }, 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": "ignhuqdyjmntmw", - "tags": ["aiwysckhxvirkdtrsdrcmexc"], + "search": "p", + "tags": ["nphzgfxiwloxsjtxckzcbux"], }, 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": "ikqvyamjwczokbwymqy", - "tags": ["f"], + "include_smart_links": False, + "search": "etoggjjlfabaxkmxd", + "tags": ["qrimgfgmcn"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index da23d50d..c4348383 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="a", + 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="a", + 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="a", + 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="a", + tracking_link_id="non", account="", ) @@ -196,7 +196,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="a", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="a", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="a", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="a", + tracking_link_id="non", account="", ) @@ -248,7 +248,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="fugiat", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="fugiat", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="fugiat", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="fugiat", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="fugiat", + tracking_link_id="iusto", account="", ) @@ -312,7 +312,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="quis", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="quis", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="quis", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="quis", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="quis", + tracking_link_id="voluptatem", account="", ) @@ -563,7 +563,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="a", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="a", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="a", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="a", + tracking_link_id="non", account="", ) @@ -674,7 +674,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="a", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="a", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="a", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="a", + tracking_link_id="non", account="", ) @@ -726,7 +726,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="fugiat", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="fugiat", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="fugiat", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="fugiat", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="fugiat", + tracking_link_id="iusto", account="", ) @@ -790,7 +790,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="quis", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="quis", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="quis", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="quis", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="quis", + tracking_link_id="voluptatem", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 707f8391..996ac716 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="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="assumenda", + 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="assumenda", + 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="assumenda", + trial_link_id="est", account="", ) @@ -205,7 +205,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="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="est", account="", ) @@ -321,7 +321,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="quam", + trial_link_id="occaecati", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="quam", + trial_link_id="occaecati", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="quam", + trial_link_id="occaecati", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="quam", + trial_link_id="occaecati", account="", limit=10, offset=0, @@ -383,7 +383,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="dolores", + trial_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="dolores", + trial_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="dolores", + trial_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="dolores", + trial_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="dolores", + trial_link_id="eveniet", account="", ) @@ -447,7 +447,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="ipsa", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="ipsa", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="ipsa", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="ipsa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="ipsa", account="", ) @@ -583,7 +583,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="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="est", account="", ) @@ -692,7 +692,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="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="est", account="", ) @@ -808,7 +808,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="quam", + trial_link_id="occaecati", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="quam", + trial_link_id="occaecati", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="quam", + trial_link_id="occaecati", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="quam", + trial_link_id="occaecati", account="", limit=10, offset=0, @@ -870,7 +870,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="dolores", + trial_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="dolores", + trial_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="dolores", + trial_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="dolores", + trial_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="dolores", + trial_link_id="eveniet", account="", ) @@ -934,7 +934,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="ipsa", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="ipsa", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="ipsa", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="ipsa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="ipsa", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 60a7edfd..1b808142 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="wg", + name="ejps", ) 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="wg", + name="ejps", ) 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="wg", + name="ejps", ) 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="wg", + name="ejps", ) @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="wg", + name="ejps", ) 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="wg", + name="ejps", ) 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="wg", + name="ejps", ) 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="wg", + name="ejps", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 8bd5d84832181057ef296a044ae4903b7a5017fb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 18:12:35 +0000 Subject: [PATCH 184/249] 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 +- .../api_resources/test_shared_trial_links.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 +-- 16 files changed, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index 56a3d36d..d32738c8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2f3054908346ebfa16676ab279293c7425b9babb0870452255c037c15a1d6f9c.yml -openapi_spec_hash: 4c39d709bc6f09eacad77af7cfedaf9b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-97902ef4cbb263202ea43da4f6b6111d9dc5788b0d26a8ba55168a8ee461c9e0.yml +openapi_spec_hash: 6cf3c58b05423ebab144e2d351c8fb6c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index b069bed5..52e3b0e2 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="ducimus", + message_id="ipsum", 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="ducimus", + message_id="ipsum", 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="ducimus", + message_id="ipsum", 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="ducimus", + message_id="ipsum", 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="ducimus", + message_id="ipsum", 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="ducimus", + message_id="ipsum", 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="ducimus", + message_id="ipsum", 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="ducimus", + message_id="ipsum", 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="ducimus", + message_id="ipsum", 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="ducimus", + message_id="ipsum", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index c84c04ec..406ca503 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="quae", + 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="quae", + 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="quae", + 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="quae", + 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="quae", + 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="quae", + 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="quae", + 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="quae", + 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="quae", + 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="quae", + 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="quae", + 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="quae", + 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="quae", + 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="quae", + 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="quae", + 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="quae", + 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 685b531f..f8f36e84 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="ea", + post_id="eum", 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="ea", + post_id="eum", 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="ea", + post_id="eum", 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="ea", + post_id="eum", 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="ea", + post_id="eum", 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="ea", + post_id="eum", 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="ea", + post_id="eum", 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="ea", + post_id="eum", 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="ea", + post_id="eum", 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="ea", + post_id="eum", 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="ea", + post_id="eum", 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="ea", + post_id="eum", 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="ea", + post_id="eum", 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="ea", + post_id="eum", 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="ea", + post_id="eum", 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="ea", + post_id="eum", 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="ea", + post_id="eum", 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="ea", + post_id="eum", 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="ea", + post_id="eum", 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="ea", + post_id="eum", 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 444937ba..7549791e 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 b7b68c42..50e749cc 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="aperiam", + path_story_id="enim", 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="aperiam", + path_story_id="enim", 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="aperiam", + path_story_id="enim", 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="aperiam", + path_story_id="enim", 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="aperiam", + story_id="enim", 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="aperiam", + story_id="enim", 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="aperiam", + story_id="enim", 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="aperiam", + story_id="enim", 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="aperiam", + path_story_id="enim", 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="aperiam", + path_story_id="enim", 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="aperiam", + path_story_id="enim", 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="aperiam", + path_story_id="enim", 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="aperiam", + story_id="enim", 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="aperiam", + story_id="enim", 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="aperiam", + story_id="enim", 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="aperiam", + story_id="enim", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 57a9cbed..d42d8179 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( - "necessitatibus", + "eum", ) 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( - "necessitatibus", + "eum", ) 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( - "necessitatibus", + "eum", ) 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( - "necessitatibus", + "eum", ) 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( - "necessitatibus", + "eum", ) 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( - "necessitatibus", + "eum", ) 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 deca6f08..4739a912 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="sunt", - auth_type="raw_data", - cookies="et", + auth_id="qui", + auth_type="email_password", + cookies="nam", custom_proxy={ "host": "proxy.example.com", - "password": "@$AALq*,", + "password": ":^h~ax;auy~N", "port": 8080, - "username": "sed", + "username": "illo", }, - email="dickens.brooklyn@example.com", - force_connect=False, - name="earum", - password="xTwQ]0_OyiB|e2MA", + email="alvena94@example.org", + force_connect=True, + name="porro", + password="@(}2=3\\^y", proxy_country="uk", - user_agent="qui", - xbc="voluptates", + user_agent="quam", + xbc="fugit", ) 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="sunt", - auth_type="raw_data", - cookies="et", + auth_id="qui", + auth_type="email_password", + cookies="nam", custom_proxy={ "host": "proxy.example.com", - "password": "@$AALq*,", + "password": ":^h~ax;auy~N", "port": 8080, - "username": "sed", + "username": "illo", }, - email="dickens.brooklyn@example.com", - force_connect=False, - name="earum", - password="xTwQ]0_OyiB|e2MA", + email="alvena94@example.org", + force_connect=True, + name="porro", + password="@(}2=3\\^y", proxy_country="uk", - user_agent="qui", - xbc="voluptates", + user_agent="quam", + xbc="fugit", ) 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 3597ede6..9249f386 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 583d8ad4..4d3e426f 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="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="all", + type="mentions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index bab5c3b3..c764a204 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": ["j"]}, + filter={"tags": ["qhganjuqcdpzzxmyjckkxrp"]}, limit=50, name="Instagram", offset=0, @@ -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="et", + smart_link_id="nulla", ) 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="et", + smart_link_id="nulla", 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="et", + smart_link_id="nulla", ) 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="et", + smart_link_id="nulla", ) 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="sed", + smart_link_id="accusantium", ) 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="sed", + smart_link_id="accusantium", 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="sed", + smart_link_id="accusantium", ) 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="sed", + smart_link_id="accusantium", ) 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="quasi", + smart_link_id="dolorem", ) 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="quasi", + smart_link_id="dolorem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="quasi", + smart_link_id="dolorem", ) assert response.is_closed is True @@ -358,7 +358,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="quasi", + smart_link_id="dolorem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="voluptates", + smart_link_id="quia", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="voluptates", + smart_link_id="quia", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="voluptates", + smart_link_id="quia", ) assert response.is_closed is True @@ -411,7 +411,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="voluptates", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="ducimus", + smart_link_id="qui", ) assert smart_link is None @@ -441,7 +441,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="ducimus", + smart_link_id="qui", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="ducimus", + smart_link_id="qui", ) assert response.is_closed is True @@ -464,7 +464,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="ducimus", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="quos", + smart_link_id="veritatis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="quos", + smart_link_id="veritatis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="quos", + smart_link_id="veritatis", ) assert response.is_closed is True @@ -516,7 +516,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="quos", + smart_link_id="veritatis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["j"]}, + filter={"tags": ["qhganjuqcdpzzxmyjckkxrp"]}, limit=50, name="Instagram", offset=0, @@ -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="et", + smart_link_id="nulla", ) 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="et", + smart_link_id="nulla", 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="et", + smart_link_id="nulla", ) 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="et", + smart_link_id="nulla", ) 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="sed", + smart_link_id="accusantium", ) 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="sed", + smart_link_id="accusantium", 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="sed", + smart_link_id="accusantium", ) 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="sed", + smart_link_id="accusantium", ) 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="quasi", + smart_link_id="dolorem", ) 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="quasi", + smart_link_id="dolorem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="quasi", + smart_link_id="dolorem", ) assert response.is_closed is True @@ -871,7 +871,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="quasi", + smart_link_id="dolorem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="voluptates", + smart_link_id="quia", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="voluptates", + smart_link_id="quia", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="voluptates", + smart_link_id="quia", ) assert response.is_closed is True @@ -924,7 +924,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="voluptates", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="ducimus", + smart_link_id="qui", ) assert smart_link is None @@ -954,7 +954,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="ducimus", + smart_link_id="qui", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="ducimus", + smart_link_id="qui", ) assert response.is_closed is True @@ -977,7 +977,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="ducimus", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="quos", + smart_link_id="veritatis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="quos", + smart_link_id="veritatis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="quos", + smart_link_id="veritatis", ) assert response.is_closed is True @@ -1029,7 +1029,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="quos", + smart_link_id="veritatis", ) 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 78fa0b07..54de2b2c 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": "uqroksrtiabbo", - "tags": ["ceazzelgytfxvpdibm"], + "search": "fpqnuildknb", + "tags": ["nkfvun"], }, 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": "dmflfcx", - "tags": ["ipuqpryndbwpzv"], + "search": "acqmzfldxvbjoyuqbkw", + "tags": ["p"], }, 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": "p", - "tags": ["nphzgfxiwloxsjtxckzcbux"], + "search": "nhxvnskhkwgwmssie", + "tags": ["puyyilzbghwnurefvljx"], }, 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": "etoggjjlfabaxkmxd", - "tags": ["qrimgfgmcn"], + "include_smart_links": True, + "search": "wijpxuhariopmcwpbidhfwabl", + "tags": ["gzsqk"], }, 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": "uqroksrtiabbo", - "tags": ["ceazzelgytfxvpdibm"], + "search": "fpqnuildknb", + "tags": ["nkfvun"], }, 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": "dmflfcx", - "tags": ["ipuqpryndbwpzv"], + "search": "acqmzfldxvbjoyuqbkw", + "tags": ["p"], }, 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": "p", - "tags": ["nphzgfxiwloxsjtxckzcbux"], + "search": "nhxvnskhkwgwmssie", + "tags": ["puyyilzbghwnurefvljx"], }, 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": "etoggjjlfabaxkmxd", - "tags": ["qrimgfgmcn"], + "include_smart_links": True, + "search": "wijpxuhariopmcwpbidhfwabl", + "tags": ["gzsqk"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index c4348383..8d8903ad 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="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="non", + 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="non", + 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="non", + tracking_link_id="laborum", account="", ) @@ -196,7 +196,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="laborum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="laborum", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="laborum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="laborum", account="", ) @@ -248,7 +248,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="natus", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="natus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="natus", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="natus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="natus", account="", ) @@ -312,7 +312,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="voluptatem", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="voluptatem", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="voluptatem", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="voluptatem", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="voluptatem", + tracking_link_id="excepturi", account="", ) @@ -563,7 +563,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="laborum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="laborum", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="laborum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="laborum", account="", ) @@ -674,7 +674,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="laborum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="laborum", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="laborum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="laborum", account="", ) @@ -726,7 +726,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="natus", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="natus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="natus", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="natus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="natus", account="", ) @@ -790,7 +790,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="voluptatem", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="voluptatem", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="voluptatem", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="voluptatem", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="voluptatem", + tracking_link_id="excepturi", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 996ac716..c199ec78 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="possimus", 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="possimus", 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="possimus", 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="possimus", account="", ) @@ -205,7 +205,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="possimus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="possimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="possimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="possimus", account="", ) @@ -321,7 +321,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="occaecati", + trial_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="occaecati", + trial_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="occaecati", + trial_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="occaecati", + trial_link_id="molestiae", account="", limit=10, offset=0, @@ -383,7 +383,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="eveniet", + trial_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="eveniet", + trial_link_id="enim", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="eveniet", + trial_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="eveniet", + trial_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="eveniet", + trial_link_id="enim", account="", ) @@ -447,7 +447,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="repudiandae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="repudiandae", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="repudiandae", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="repudiandae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="repudiandae", account="", ) @@ -583,7 +583,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="possimus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="possimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="possimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="possimus", account="", ) @@ -692,7 +692,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="possimus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="possimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="possimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="possimus", account="", ) @@ -808,7 +808,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="occaecati", + trial_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="occaecati", + trial_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="occaecati", + trial_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="occaecati", + trial_link_id="molestiae", account="", limit=10, offset=0, @@ -870,7 +870,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="eveniet", + trial_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="eveniet", + trial_link_id="enim", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="eveniet", + trial_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="eveniet", + trial_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="eveniet", + trial_link_id="enim", account="", ) @@ -934,7 +934,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="repudiandae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="repudiandae", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="repudiandae", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="repudiandae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="repudiandae", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 1b808142..067a0944 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="ejps", + name="inwsuzlzagypi", ) 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="ejps", + name="inwsuzlzagypi", ) 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="ejps", + name="inwsuzlzagypi", ) 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="ejps", + name="inwsuzlzagypi", ) @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="ejps", + name="inwsuzlzagypi", ) 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="ejps", + name="inwsuzlzagypi", ) 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="ejps", + name="inwsuzlzagypi", ) 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="ejps", + name="inwsuzlzagypi", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 39faabeffb6af7053738be1dad15eea1df0f20e2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 19:12:38 +0000 Subject: [PATCH 185/249] 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_client_sessions.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 40 +++---- tests/api_resources/test_tracking_links.py | 76 ++++++------- 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 d32738c8..ab2b5d70 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-97902ef4cbb263202ea43da4f6b6111d9dc5788b0d26a8ba55168a8ee461c9e0.yml -openapi_spec_hash: 6cf3c58b05423ebab144e2d351c8fb6c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-11a0627173e9c00b01da53d9797226d9df93a606b30d63bbf4fca19f90e870c6.yml +openapi_spec_hash: 65cabda2c9d843f02539f47cd449f62b config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 52e3b0e2..ce398661 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="ipsum", + 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="ipsum", + 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="ipsum", + 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="ipsum", + 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="ipsum", + 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="ipsum", + 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="ipsum", + 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="ipsum", + 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="ipsum", + 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="ipsum", + 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 406ca503..71784680 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", 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="nostrum", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index f8f36e84..ce35449b 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="eum", + post_id="fugiat", 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="eum", + post_id="fugiat", 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="eum", + post_id="fugiat", 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="eum", + post_id="fugiat", 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="eum", + post_id="fugiat", 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="eum", + post_id="fugiat", 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="eum", + post_id="fugiat", 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="eum", + post_id="fugiat", 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="eum", + post_id="fugiat", 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="eum", + post_id="fugiat", 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="eum", + post_id="fugiat", 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="eum", + post_id="fugiat", 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="eum", + post_id="fugiat", 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="eum", + post_id="fugiat", 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="eum", + post_id="fugiat", 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="eum", + post_id="fugiat", 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="eum", + post_id="fugiat", 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="eum", + post_id="fugiat", 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="eum", + post_id="fugiat", 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="eum", + post_id="fugiat", account="", ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 50e749cc..e1fd8753 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="enim", + path_story_id="aut", 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="enim", + path_story_id="aut", 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="enim", + path_story_id="aut", 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="enim", + path_story_id="aut", 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="enim", + story_id="aut", 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="enim", + story_id="aut", 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="enim", + story_id="aut", 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="enim", + story_id="aut", 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="enim", + path_story_id="aut", 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="enim", + path_story_id="aut", 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="enim", + path_story_id="aut", 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="enim", + path_story_id="aut", 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="enim", + story_id="aut", 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="enim", + story_id="aut", 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="enim", + story_id="aut", 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="enim", + story_id="aut", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index d42d8179..b6aae1be 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( - "eum", + "veniam", ) 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( - "eum", + "veniam", ) 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( - "eum", + "veniam", ) 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( - "eum", + "veniam", ) 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( - "eum", + "veniam", ) 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( - "eum", + "veniam", ) 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 4739a912..77481c41 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="qui", - auth_type="email_password", - cookies="nam", + auth_id="distinctio", + auth_type="mobile_app", + cookies="quo", custom_proxy={ "host": "proxy.example.com", - "password": ":^h~ax;auy~N", + "password": "5/$+KH1f^t", "port": 8080, - "username": "illo", + "username": "pariatur", }, - email="alvena94@example.org", - force_connect=True, - name="porro", - password="@(}2=3\\^y", - proxy_country="uk", - user_agent="quam", - xbc="fugit", + email="fiona.schroeder@example.com", + force_connect=False, + name="excepturi", + password="|ZD>q+T]`RE>13V8EfFg", + proxy_country="us", + user_agent="enim", + xbc="atque", ) 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="qui", - auth_type="email_password", - cookies="nam", + auth_id="distinctio", + auth_type="mobile_app", + cookies="quo", custom_proxy={ "host": "proxy.example.com", - "password": ":^h~ax;auy~N", + "password": "5/$+KH1f^t", "port": 8080, - "username": "illo", + "username": "pariatur", }, - email="alvena94@example.org", - force_connect=True, - name="porro", - password="@(}2=3\\^y", - proxy_country="uk", - user_agent="quam", - xbc="fugit", + email="fiona.schroeder@example.com", + force_connect=False, + name="excepturi", + password="|ZD>q+T]`RE>13V8EfFg", + proxy_country="us", + user_agent="enim", + xbc="atque", ) 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 9249f386..3597ede6 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_smart_links.py b/tests/api_resources/test_smart_links.py index c764a204..8d3d0120 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": ["qhganjuqcdpzzxmyjckkxrp"]}, + filter={"tags": ["byxixchhvsiomrq"]}, limit=50, name="Instagram", offset=0, @@ -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="nulla", + smart_link_id="qui", ) 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="nulla", + smart_link_id="qui", 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="nulla", + smart_link_id="qui", ) 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="nulla", + smart_link_id="qui", ) 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="accusantium", + smart_link_id="reprehenderit", ) 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="accusantium", + smart_link_id="reprehenderit", 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="accusantium", + smart_link_id="reprehenderit", ) 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="accusantium", + smart_link_id="reprehenderit", ) 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="dolorem", + 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="dolorem", + smart_link_id="et", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="dolorem", + smart_link_id="et", ) assert response.is_closed is True @@ -358,7 +358,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="dolorem", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="quia", + smart_link_id="quas", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="quia", + smart_link_id="quas", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="quia", + smart_link_id="quas", ) assert response.is_closed is True @@ -411,7 +411,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="quia", + smart_link_id="quas", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="et", ) assert smart_link is None @@ -441,7 +441,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="et", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="et", ) assert response.is_closed is True @@ -464,7 +464,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="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="veritatis", + smart_link_id="ducimus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="veritatis", + smart_link_id="ducimus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="veritatis", + smart_link_id="ducimus", ) assert response.is_closed is True @@ -516,7 +516,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="veritatis", + smart_link_id="ducimus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["qhganjuqcdpzzxmyjckkxrp"]}, + filter={"tags": ["byxixchhvsiomrq"]}, limit=50, name="Instagram", offset=0, @@ -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="nulla", + smart_link_id="qui", ) 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="nulla", + smart_link_id="qui", 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="nulla", + smart_link_id="qui", ) 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="nulla", + smart_link_id="qui", ) 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="accusantium", + smart_link_id="reprehenderit", ) 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="accusantium", + smart_link_id="reprehenderit", 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="accusantium", + smart_link_id="reprehenderit", ) 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="accusantium", + smart_link_id="reprehenderit", ) 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="dolorem", + smart_link_id="et", ) 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="dolorem", + smart_link_id="et", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="dolorem", + smart_link_id="et", ) assert response.is_closed is True @@ -871,7 +871,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="dolorem", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="quia", + smart_link_id="quas", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="quia", + smart_link_id="quas", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="quia", + smart_link_id="quas", ) assert response.is_closed is True @@ -924,7 +924,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="quia", + smart_link_id="quas", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="et", ) assert smart_link is None @@ -954,7 +954,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="et", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="et", ) assert response.is_closed is True @@ -977,7 +977,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="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="veritatis", + smart_link_id="ducimus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="veritatis", + smart_link_id="ducimus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="veritatis", + smart_link_id="ducimus", ) assert response.is_closed is True @@ -1029,7 +1029,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="veritatis", + smart_link_id="ducimus", ) 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 54de2b2c..56548743 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": "fpqnuildknb", - "tags": ["nkfvun"], + "search": "hgeskqdnr", + "tags": ["vqfgpsbugrpjdl"], }, 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": "acqmzfldxvbjoyuqbkw", - "tags": ["p"], + "search": "rs", + "tags": ["lnmgr"], }, 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": "nhxvnskhkwgwmssie", - "tags": ["puyyilzbghwnurefvljx"], + "include_smart_links": False, + "search": "jvurlfrriz", + "tags": ["qcozytdqcnxtikmcojxu"], }, 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": "wijpxuhariopmcwpbidhfwabl", - "tags": ["gzsqk"], + "include_smart_links": False, + "search": "vtfnvysm", + "tags": ["bydqrtj"], }, 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": "fpqnuildknb", - "tags": ["nkfvun"], + "search": "hgeskqdnr", + "tags": ["vqfgpsbugrpjdl"], }, 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": "acqmzfldxvbjoyuqbkw", - "tags": ["p"], + "search": "rs", + "tags": ["lnmgr"], }, 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": "nhxvnskhkwgwmssie", - "tags": ["puyyilzbghwnurefvljx"], + "include_smart_links": False, + "search": "jvurlfrriz", + "tags": ["qcozytdqcnxtikmcojxu"], }, 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": "wijpxuhariopmcwpbidhfwabl", - "tags": ["gzsqk"], + "include_smart_links": False, + "search": "vtfnvysm", + "tags": ["bydqrtj"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 8d8903ad..8912da03 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="voluptas", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="voluptas", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="voluptas", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="voluptas", account="", ) @@ -248,7 +248,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="natus", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="natus", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="natus", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="natus", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="natus", + tracking_link_id="sed", account="", ) @@ -312,7 +312,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="excepturi", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="excepturi", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="excepturi", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="excepturi", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="excepturi", + tracking_link_id="et", account="", ) @@ -563,7 +563,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="voluptas", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="voluptas", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="voluptas", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="voluptas", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="voluptas", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="voluptas", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="voluptas", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="voluptas", account="", ) @@ -726,7 +726,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="natus", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="natus", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="natus", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="natus", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="natus", + tracking_link_id="sed", account="", ) @@ -790,7 +790,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="excepturi", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="excepturi", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="excepturi", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="excepturi", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="excepturi", + tracking_link_id="et", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index c199ec78..ac279063 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="possimus", + trial_link_id="provident", 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="possimus", + trial_link_id="provident", 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="possimus", + trial_link_id="provident", 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="possimus", + trial_link_id="provident", account="", ) @@ -205,7 +205,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="possimus", + trial_link_id="provident", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="possimus", + trial_link_id="provident", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="possimus", + trial_link_id="provident", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="possimus", + trial_link_id="provident", account="", ) @@ -321,7 +321,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="eveniet", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="eveniet", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="eveniet", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="eveniet", account="", limit=10, offset=0, @@ -383,7 +383,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="enim", + trial_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="enim", + trial_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="enim", + trial_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="enim", + trial_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="enim", + trial_link_id="incidunt", account="", ) @@ -447,7 +447,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="repudiandae", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="repudiandae", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="repudiandae", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="repudiandae", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="repudiandae", + trial_link_id="mollitia", account="", ) @@ -583,7 +583,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="possimus", + trial_link_id="provident", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="possimus", + trial_link_id="provident", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="possimus", + trial_link_id="provident", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="possimus", + trial_link_id="provident", account="", ) @@ -692,7 +692,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="possimus", + trial_link_id="provident", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="possimus", + trial_link_id="provident", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="possimus", + trial_link_id="provident", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="possimus", + trial_link_id="provident", account="", ) @@ -808,7 +808,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="eveniet", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="eveniet", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="eveniet", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="eveniet", account="", limit=10, offset=0, @@ -870,7 +870,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="enim", + trial_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="enim", + trial_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="enim", + trial_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="enim", + trial_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="enim", + trial_link_id="incidunt", account="", ) @@ -934,7 +934,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="repudiandae", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="repudiandae", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="repudiandae", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="repudiandae", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="repudiandae", + trial_link_id="mollitia", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 067a0944..caf855c0 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="inwsuzlzagypi", + name="ibgsmlxuwltrsrdap", ) 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="inwsuzlzagypi", + name="ibgsmlxuwltrsrdap", ) 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="inwsuzlzagypi", + name="ibgsmlxuwltrsrdap", ) 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="inwsuzlzagypi", + name="ibgsmlxuwltrsrdap", ) @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="inwsuzlzagypi", + name="ibgsmlxuwltrsrdap", ) 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="inwsuzlzagypi", + name="ibgsmlxuwltrsrdap", ) 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="inwsuzlzagypi", + name="ibgsmlxuwltrsrdap", ) 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="inwsuzlzagypi", + name="ibgsmlxuwltrsrdap", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 3dbd253b28d5fb6e8adb7022b28bc787d1eb73dd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 20:12:34 +0000 Subject: [PATCH 186/249] 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_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 40 +++---- tests/api_resources/test_tracking_links.py | 76 ++++++------- tests/api_resources/test_trial_links.py | 88 +++++++-------- tests/api_resources/test_user_lists.py | 16 +-- 15 files changed, 264 insertions(+), 264 deletions(-) diff --git a/.stats.yml b/.stats.yml index ab2b5d70..e8903048 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-11a0627173e9c00b01da53d9797226d9df93a606b30d63bbf4fca19f90e870c6.yml -openapi_spec_hash: 65cabda2c9d843f02539f47cd449f62b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-39a2103ff4e1500e445e7588d0a44967af270f674815969b620ec187b2756d63.yml +openapi_spec_hash: 8c939d7af4bc22bed15c0b439a427099 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index ce398661..4d599036 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="alias", 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="alias", 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="alias", 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="alias", 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="alias", 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="alias", 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="alias", 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="alias", 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="alias", 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="alias", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 71784680..232832d1 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="nostrum", + list_id="dolores", 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="nostrum", + list_id="dolores", 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="nostrum", + list_id="dolores", 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="nostrum", + list_id="dolores", 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="nostrum", + list_id="dolores", 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="nostrum", + list_id="dolores", 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="nostrum", + list_id="dolores", 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="nostrum", + list_id="dolores", 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="nostrum", + list_id="dolores", 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="nostrum", + list_id="dolores", 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="nostrum", + list_id="dolores", 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="nostrum", + list_id="dolores", 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="nostrum", + list_id="dolores", 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="nostrum", + list_id="dolores", 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="nostrum", + list_id="dolores", 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="nostrum", + list_id="dolores", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index ce35449b..66b938fe 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="fugiat", + post_id="eveniet", 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="fugiat", + post_id="eveniet", 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="fugiat", + post_id="eveniet", 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="fugiat", + post_id="eveniet", 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="fugiat", + post_id="eveniet", 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="fugiat", + post_id="eveniet", 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="fugiat", + post_id="eveniet", 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="fugiat", + post_id="eveniet", 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="fugiat", + post_id="eveniet", 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="fugiat", + post_id="eveniet", 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="fugiat", + post_id="eveniet", 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="fugiat", + post_id="eveniet", 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="fugiat", + post_id="eveniet", 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="fugiat", + post_id="eveniet", 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="fugiat", + post_id="eveniet", 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="fugiat", + post_id="eveniet", 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="fugiat", + post_id="eveniet", 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="fugiat", + post_id="eveniet", 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="fugiat", + post_id="eveniet", 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="fugiat", + post_id="eveniet", 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 fc7b1635..2ced6cb5 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 e1fd8753..32d00b0c 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="aut", + path_story_id="suscipit", 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="aut", + path_story_id="suscipit", 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="aut", + path_story_id="suscipit", 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="aut", + path_story_id="suscipit", 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="aut", + story_id="suscipit", 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="aut", + story_id="suscipit", 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="aut", + story_id="suscipit", 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="aut", + story_id="suscipit", 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="aut", + path_story_id="suscipit", 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="aut", + path_story_id="suscipit", 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="aut", + path_story_id="suscipit", 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="aut", + path_story_id="suscipit", 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="aut", + story_id="suscipit", 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="aut", + story_id="suscipit", 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="aut", + story_id="suscipit", 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="aut", + story_id="suscipit", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index b6aae1be..86e468bd 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( - "veniam", + "magnam", ) 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( - "veniam", + "magnam", ) 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( - "veniam", + "magnam", ) 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( - "veniam", + "magnam", ) 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( - "veniam", + "magnam", ) 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( - "veniam", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 77481c41..65f5b516 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="distinctio", - auth_type="mobile_app", - cookies="quo", + auth_id="laboriosam", + auth_type="raw_data", + cookies="rem", custom_proxy={ "host": "proxy.example.com", - "password": "5/$+KH1f^t", + "password": "@4)55@b`JxoTYN}:/]uR", "port": 8080, - "username": "pariatur", + "username": "dolorem", }, - email="fiona.schroeder@example.com", - force_connect=False, - name="excepturi", - password="|ZD>q+T]`RE>13V8EfFg", + email="domingo25@example.net", + force_connect=True, + name="eaque", + password="R:Fj*sL None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="distinctio", - auth_type="mobile_app", - cookies="quo", + auth_id="laboriosam", + auth_type="raw_data", + cookies="rem", custom_proxy={ "host": "proxy.example.com", - "password": "5/$+KH1f^t", + "password": "@4)55@b`JxoTYN}:/]uR", "port": 8080, - "username": "pariatur", + "username": "dolorem", }, - email="fiona.schroeder@example.com", - force_connect=False, - name="excepturi", - password="|ZD>q+T]`RE>13V8EfFg", + email="domingo25@example.net", + force_connect=True, + name="eaque", + password="R:Fj*sL 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_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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 8d3d0120..eb7a589f 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": ["byxixchhvsiomrq"]}, + filter={"tags": ["tiscvamdplvxcwzsnumid"]}, limit=50, name="Instagram", offset=0, @@ -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="qui", + smart_link_id="nesciunt", ) 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="qui", + smart_link_id="nesciunt", 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="qui", + smart_link_id="nesciunt", ) 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="qui", + smart_link_id="nesciunt", ) 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="reprehenderit", + smart_link_id="consequuntur", ) 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="reprehenderit", + smart_link_id="consequuntur", 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="reprehenderit", + smart_link_id="consequuntur", ) 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="reprehenderit", + smart_link_id="consequuntur", ) 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="nisi", ) 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="nisi", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="nisi", ) assert response.is_closed is True @@ -358,7 +358,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="nisi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="quas", + smart_link_id="pariatur", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="quas", + smart_link_id="pariatur", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="quas", + smart_link_id="pariatur", ) assert response.is_closed is True @@ -411,7 +411,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="quas", + smart_link_id="pariatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="modi", ) assert smart_link is None @@ -441,7 +441,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="modi", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="modi", ) assert response.is_closed is True @@ -464,7 +464,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="modi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="ducimus", + smart_link_id="itaque", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="ducimus", + smart_link_id="itaque", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="ducimus", + smart_link_id="itaque", ) assert response.is_closed is True @@ -516,7 +516,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="ducimus", + smart_link_id="itaque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["byxixchhvsiomrq"]}, + filter={"tags": ["tiscvamdplvxcwzsnumid"]}, limit=50, name="Instagram", offset=0, @@ -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="qui", + smart_link_id="nesciunt", ) 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="qui", + smart_link_id="nesciunt", 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="qui", + smart_link_id="nesciunt", ) 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="qui", + smart_link_id="nesciunt", ) 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="reprehenderit", + smart_link_id="consequuntur", ) 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="reprehenderit", + smart_link_id="consequuntur", 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="reprehenderit", + smart_link_id="consequuntur", ) 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="reprehenderit", + smart_link_id="consequuntur", ) 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="et", + smart_link_id="nisi", ) 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="et", + smart_link_id="nisi", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="nisi", ) assert response.is_closed is True @@ -871,7 +871,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="nisi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="quas", + smart_link_id="pariatur", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="quas", + smart_link_id="pariatur", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="quas", + smart_link_id="pariatur", ) assert response.is_closed is True @@ -924,7 +924,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="quas", + smart_link_id="pariatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="modi", ) assert smart_link is None @@ -954,7 +954,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="modi", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="modi", ) assert response.is_closed is True @@ -977,7 +977,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="modi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="ducimus", + smart_link_id="itaque", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="ducimus", + smart_link_id="itaque", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="ducimus", + smart_link_id="itaque", ) assert response.is_closed is True @@ -1029,7 +1029,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="ducimus", + smart_link_id="itaque", ) 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 56548743..48925976 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": "hgeskqdnr", - "tags": ["vqfgpsbugrpjdl"], + "search": "dsort", + "tags": ["ncujgxckrnbqcp"], }, 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": "rs", - "tags": ["lnmgr"], + "search": "p", + "tags": ["tlczjtblhlugeewpkxi"], }, 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": "jvurlfrriz", - "tags": ["qcozytdqcnxtikmcojxu"], + "include_smart_links": True, + "search": "nbefxcvououvyxzzwbsdju", + "tags": ["szivxqkdybosdvzwpbvgrkos"], }, 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": "vtfnvysm", - "tags": ["bydqrtj"], + "include_smart_links": True, + "search": "evreavmtwvhybtjkhjmhvt", + "tags": ["ebwpqkczszhiouixncuekos"], }, 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": "hgeskqdnr", - "tags": ["vqfgpsbugrpjdl"], + "search": "dsort", + "tags": ["ncujgxckrnbqcp"], }, 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": "rs", - "tags": ["lnmgr"], + "search": "p", + "tags": ["tlczjtblhlugeewpkxi"], }, 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": "jvurlfrriz", - "tags": ["qcozytdqcnxtikmcojxu"], + "include_smart_links": True, + "search": "nbefxcvououvyxzzwbsdju", + "tags": ["szivxqkdybosdvzwpbvgrkos"], }, 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": "vtfnvysm", - "tags": ["bydqrtj"], + "include_smart_links": True, + "search": "evreavmtwvhybtjkhjmhvt", + "tags": ["ebwpqkczszhiouixncuekos"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 8912da03..315fa7a2 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="voluptas", + tracking_link_id="ipsam", 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="voluptas", + tracking_link_id="ipsam", 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="voluptas", + tracking_link_id="ipsam", 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="voluptas", + tracking_link_id="ipsam", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="voluptas", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="voluptas", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="voluptas", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="voluptas", + tracking_link_id="ipsam", account="", ) @@ -248,7 +248,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="sed", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="sed", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="sed", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="sed", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="sed", + tracking_link_id="facere", account="", ) @@ -312,7 +312,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="minus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="minus", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="minus", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="minus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="minus", account="", ) @@ -563,7 +563,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="voluptas", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="voluptas", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="voluptas", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="voluptas", + tracking_link_id="ipsam", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="voluptas", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="voluptas", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="voluptas", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="voluptas", + tracking_link_id="ipsam", account="", ) @@ -726,7 +726,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="sed", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="sed", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="sed", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="sed", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="sed", + tracking_link_id="facere", account="", ) @@ -790,7 +790,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="minus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="minus", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="minus", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="minus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="minus", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index ac279063..3a193e85 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="provident", + 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="provident", + 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="provident", + 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="provident", + trial_link_id="et", account="", ) @@ -205,7 +205,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="provident", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="provident", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="provident", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="provident", + trial_link_id="et", account="", ) @@ -321,7 +321,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="eveniet", + trial_link_id="esse", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="eveniet", + trial_link_id="esse", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="eveniet", + trial_link_id="esse", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="eveniet", + trial_link_id="esse", account="", limit=10, offset=0, @@ -383,7 +383,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="incidunt", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="incidunt", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="incidunt", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="incidunt", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="incidunt", + trial_link_id="qui", account="", ) @@ -447,7 +447,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="mollitia", + trial_link_id="esse", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="mollitia", + trial_link_id="esse", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="mollitia", + trial_link_id="esse", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="mollitia", + trial_link_id="esse", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="mollitia", + trial_link_id="esse", account="", ) @@ -583,7 +583,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="provident", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="provident", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="provident", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="provident", + trial_link_id="et", account="", ) @@ -692,7 +692,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="provident", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="provident", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="provident", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="provident", + trial_link_id="et", account="", ) @@ -808,7 +808,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="eveniet", + trial_link_id="esse", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="eveniet", + trial_link_id="esse", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="eveniet", + trial_link_id="esse", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="eveniet", + trial_link_id="esse", account="", limit=10, offset=0, @@ -870,7 +870,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="incidunt", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="incidunt", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="incidunt", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="incidunt", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="incidunt", + trial_link_id="qui", account="", ) @@ -934,7 +934,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="mollitia", + trial_link_id="esse", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="mollitia", + trial_link_id="esse", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="mollitia", + trial_link_id="esse", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="mollitia", + trial_link_id="esse", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="mollitia", + trial_link_id="esse", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index caf855c0..28558d7f 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="ibgsmlxuwltrsrdap", + name="mans", ) 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="ibgsmlxuwltrsrdap", + name="mans", ) 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="ibgsmlxuwltrsrdap", + name="mans", ) 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="ibgsmlxuwltrsrdap", + name="mans", ) @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="ibgsmlxuwltrsrdap", + name="mans", ) 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="ibgsmlxuwltrsrdap", + name="mans", ) 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="ibgsmlxuwltrsrdap", + name="mans", ) 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="ibgsmlxuwltrsrdap", + name="mans", ) @pytest.mark.skip(reason="Mock server tests are disabled") From a3f36027879b1fedba7b20d6a5a6b13582792ab0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Jul 2026 10:12:36 +0000 Subject: [PATCH 187/249] 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_authenticate.py | 44 ++++---- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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, 258 insertions(+), 258 deletions(-) diff --git a/.stats.yml b/.stats.yml index e8903048..7a485235 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-39a2103ff4e1500e445e7588d0a44967af270f674815969b620ec187b2756d63.yml -openapi_spec_hash: 8c939d7af4bc22bed15c0b439a427099 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-94c07edc67437207a1300a1d91c46760682d0f3551bd3379ffd7b643606a5062.yml +openapi_spec_hash: 9cb9eba31f6c564c33f2a1af7353837c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 4d599036..3ec2b4d5 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="alias", + 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="alias", + 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="alias", + 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="alias", + 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="alias", + 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="alias", + 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="alias", + 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="alias", + 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="alias", + 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="alias", + 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 232832d1..96052b26 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="dolores", + list_id="sunt", 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="dolores", + list_id="sunt", 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="dolores", + list_id="sunt", 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="dolores", + list_id="sunt", 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="dolores", + list_id="sunt", 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="dolores", + list_id="sunt", 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="dolores", + list_id="sunt", 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="dolores", + list_id="sunt", 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="dolores", + list_id="sunt", 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="dolores", + list_id="sunt", 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="dolores", + list_id="sunt", 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="dolores", + list_id="sunt", 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="dolores", + list_id="sunt", 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="dolores", + list_id="sunt", 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="dolores", + list_id="sunt", 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="dolores", + list_id="sunt", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 66b938fe..47693a2c 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="eveniet", + 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="eveniet", + 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="eveniet", + 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="eveniet", + 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="eveniet", + 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="eveniet", + 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="eveniet", + 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="eveniet", + 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="eveniet", + 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="eveniet", + 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="eveniet", + 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="eveniet", + 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="eveniet", + 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="eveniet", + 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="eveniet", + 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="eveniet", + 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="eveniet", + 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="eveniet", + 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="eveniet", + 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="eveniet", + 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 2ced6cb5..9c80483e 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 32d00b0c..2f6fa650 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="suscipit", + path_story_id="voluptas", 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="suscipit", + path_story_id="voluptas", 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="suscipit", + path_story_id="voluptas", 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="suscipit", + path_story_id="voluptas", 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="suscipit", + story_id="voluptas", 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="suscipit", + story_id="voluptas", 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="suscipit", + story_id="voluptas", 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="suscipit", + story_id="voluptas", 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="suscipit", + path_story_id="voluptas", 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="suscipit", + path_story_id="voluptas", 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="suscipit", + path_story_id="voluptas", 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="suscipit", + path_story_id="voluptas", 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="suscipit", + story_id="voluptas", 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="suscipit", + story_id="voluptas", 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="suscipit", + story_id="voluptas", 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="suscipit", + story_id="voluptas", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 65f5b516..ba82eb00 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="laboriosam", - auth_type="raw_data", - cookies="rem", + auth_id="molestiae", + auth_type="mobile_app", + cookies="repellat", custom_proxy={ "host": "proxy.example.com", - "password": "@4)55@b`JxoTYN}:/]uR", + "password": "lBd)mQyE7_y.6\\", "port": 8080, - "username": "dolorem", + "username": "sed", }, - email="domingo25@example.net", - force_connect=True, - name="eaque", - password="R:Fj*sL None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="laboriosam", - auth_type="raw_data", - cookies="rem", + auth_id="molestiae", + auth_type="mobile_app", + cookies="repellat", custom_proxy={ "host": "proxy.example.com", - "password": "@4)55@b`JxoTYN}:/]uR", + "password": "lBd)mQyE7_y.6\\", "port": 8080, - "username": "dolorem", + "username": "sed", }, - email="domingo25@example.net", - force_connect=True, - name="eaque", - password="R:Fj*sL 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 280e3de9..413a2df6 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="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="comments", + type="likes", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index eb7a589f..34b9cc61 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": ["tiscvamdplvxcwzsnumid"]}, + filter={"tags": ["byxnm"]}, limit=50, name="Instagram", offset=0, @@ -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="nesciunt", + smart_link_id="deserunt", ) 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="nesciunt", + smart_link_id="deserunt", 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="nesciunt", + smart_link_id="deserunt", ) 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="nesciunt", + smart_link_id="deserunt", ) 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="consequuntur", + smart_link_id="molestiae", ) 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="consequuntur", + smart_link_id="molestiae", 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="consequuntur", + smart_link_id="molestiae", ) 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="consequuntur", + smart_link_id="molestiae", ) 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="nisi", + smart_link_id="laborum", ) 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="nisi", + smart_link_id="laborum", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="laborum", ) assert response.is_closed is True @@ -358,7 +358,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="laborum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="pariatur", + smart_link_id="perspiciatis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="pariatur", + smart_link_id="perspiciatis", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="pariatur", + smart_link_id="perspiciatis", ) assert response.is_closed is True @@ -411,7 +411,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="pariatur", + smart_link_id="perspiciatis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="modi", + smart_link_id="tenetur", ) assert smart_link is None @@ -441,7 +441,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="modi", + smart_link_id="tenetur", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="modi", + smart_link_id="tenetur", ) assert response.is_closed is True @@ -464,7 +464,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="modi", + smart_link_id="tenetur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="itaque", + smart_link_id="saepe", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="itaque", + smart_link_id="saepe", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="itaque", + smart_link_id="saepe", ) assert response.is_closed is True @@ -516,7 +516,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="itaque", + smart_link_id="saepe", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["tiscvamdplvxcwzsnumid"]}, + filter={"tags": ["byxnm"]}, limit=50, name="Instagram", offset=0, @@ -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="nesciunt", + smart_link_id="deserunt", ) 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="nesciunt", + smart_link_id="deserunt", 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="nesciunt", + smart_link_id="deserunt", ) 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="nesciunt", + smart_link_id="deserunt", ) 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="consequuntur", + smart_link_id="molestiae", ) 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="consequuntur", + smart_link_id="molestiae", 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="consequuntur", + smart_link_id="molestiae", ) 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="consequuntur", + smart_link_id="molestiae", ) 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="nisi", + smart_link_id="laborum", ) 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="nisi", + smart_link_id="laborum", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="laborum", ) assert response.is_closed is True @@ -871,7 +871,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="laborum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="pariatur", + smart_link_id="perspiciatis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="pariatur", + smart_link_id="perspiciatis", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="pariatur", + smart_link_id="perspiciatis", ) assert response.is_closed is True @@ -924,7 +924,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="pariatur", + smart_link_id="perspiciatis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="modi", + smart_link_id="tenetur", ) assert smart_link is None @@ -954,7 +954,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="modi", + smart_link_id="tenetur", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="modi", + smart_link_id="tenetur", ) assert response.is_closed is True @@ -977,7 +977,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="modi", + smart_link_id="tenetur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="itaque", + smart_link_id="saepe", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="itaque", + smart_link_id="saepe", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="itaque", + smart_link_id="saepe", ) assert response.is_closed is True @@ -1029,7 +1029,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="itaque", + smart_link_id="saepe", ) 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 48925976..2c0d1b1c 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": "dsort", - "tags": ["ncujgxckrnbqcp"], + "search": "vfkassuucyeexecmjufk", + "tags": ["pujpbmpwvaeddrwgdxjswbt"], }, 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": ["tlczjtblhlugeewpkxi"], + "search": "uzfmzrzdjokfsgfstiexhhc", + "tags": ["rpexmkrchwuvclmhqzbc"], }, 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": "nbefxcvououvyxzzwbsdju", - "tags": ["szivxqkdybosdvzwpbvgrkos"], + "include_smart_links": False, + "search": "pehiudoksduurubqavmcl", + "tags": ["cqmgsyx"], }, 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": "evreavmtwvhybtjkhjmhvt", - "tags": ["ebwpqkczszhiouixncuekos"], + "include_smart_links": False, + "search": "jftmxkuwgcnigngejnksh", + "tags": ["ilrk"], }, 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": "dsort", - "tags": ["ncujgxckrnbqcp"], + "search": "vfkassuucyeexecmjufk", + "tags": ["pujpbmpwvaeddrwgdxjswbt"], }, 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": ["tlczjtblhlugeewpkxi"], + "search": "uzfmzrzdjokfsgfstiexhhc", + "tags": ["rpexmkrchwuvclmhqzbc"], }, 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": "nbefxcvououvyxzzwbsdju", - "tags": ["szivxqkdybosdvzwpbvgrkos"], + "include_smart_links": False, + "search": "pehiudoksduurubqavmcl", + "tags": ["cqmgsyx"], }, 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": "evreavmtwvhybtjkhjmhvt", - "tags": ["ebwpqkczszhiouixncuekos"], + "include_smart_links": False, + "search": "jftmxkuwgcnigngejnksh", + "tags": ["ilrk"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 315fa7a2..88d7aff9 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="ipsam", + tracking_link_id="eos", 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="ipsam", + tracking_link_id="eos", 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="ipsam", + tracking_link_id="eos", 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="ipsam", + tracking_link_id="eos", account="", ) @@ -196,7 +196,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="ipsam", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="ipsam", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="ipsam", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="ipsam", + tracking_link_id="eos", account="", ) @@ -248,7 +248,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="facere", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="facere", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="facere", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="facere", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="facere", + tracking_link_id="blanditiis", account="", ) @@ -312,7 +312,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="minus", + tracking_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="minus", + tracking_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="minus", + tracking_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="minus", + tracking_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="minus", + tracking_link_id="voluptate", account="", ) @@ -563,7 +563,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="ipsam", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="ipsam", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="ipsam", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="ipsam", + tracking_link_id="eos", account="", ) @@ -674,7 +674,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="ipsam", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="ipsam", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="ipsam", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="ipsam", + tracking_link_id="eos", account="", ) @@ -726,7 +726,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="facere", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="facere", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="facere", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="facere", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="facere", + tracking_link_id="blanditiis", account="", ) @@ -790,7 +790,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="minus", + tracking_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="minus", + tracking_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="minus", + tracking_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="minus", + tracking_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="minus", + tracking_link_id="voluptate", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 3a193e85..69f76f13 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="aliquam", 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="aliquam", 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="aliquam", 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="aliquam", account="", ) @@ -205,7 +205,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="aliquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="aliquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="aliquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="aliquam", account="", ) @@ -321,7 +321,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="esse", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="esse", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="esse", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="esse", + trial_link_id="hic", account="", limit=10, offset=0, @@ -383,7 +383,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="maxime", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="maxime", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="maxime", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="maxime", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="maxime", account="", ) @@ -447,7 +447,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="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="dolorem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="dolorem", account="", ) @@ -583,7 +583,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="aliquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="aliquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="aliquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="aliquam", account="", ) @@ -692,7 +692,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="aliquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="aliquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="aliquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="aliquam", account="", ) @@ -808,7 +808,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="esse", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="esse", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="esse", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="esse", + trial_link_id="hic", account="", limit=10, offset=0, @@ -870,7 +870,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="maxime", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="maxime", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="maxime", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="maxime", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="maxime", account="", ) @@ -934,7 +934,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="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="dolorem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="dolorem", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 28558d7f..052003b4 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="mans", + name="jvi", ) 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="mans", + name="jvi", ) 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="mans", + name="jvi", ) 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="mans", + name="jvi", ) @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="mans", + name="jvi", ) 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="mans", + name="jvi", ) 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="mans", + name="jvi", ) 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="mans", + name="jvi", ) @pytest.mark.skip(reason="Mock server tests are disabled") From c4b4cbc1ebdaaa58f29fc66e6adb94d9bcfbca33 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Jul 2026 14:12:35 +0000 Subject: [PATCH 188/249] 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 | 100 +++++++++--------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 76 ++++++------- tests/api_resources/test_trial_links.py | 88 +++++++-------- tests/api_resources/test_user_lists.py | 16 +-- 18 files changed, 276 insertions(+), 276 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7a485235..07e36940 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-94c07edc67437207a1300a1d91c46760682d0f3551bd3379ffd7b643606a5062.yml -openapi_spec_hash: 9cb9eba31f6c564c33f2a1af7353837c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-465eac4b7df335b90281f9f90f4455eb4567e74f8b592b7c83381153219b3fb2.yml +openapi_spec_hash: 4b0e1da35d79b4463c02c88445d139e4 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 3ec2b4d5..9273750f 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", 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="dolor", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 96052b26..426c32fd 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="sunt", + list_id="saepe", 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="sunt", + list_id="saepe", 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="sunt", + list_id="saepe", 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="sunt", + list_id="saepe", 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="sunt", + list_id="saepe", 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="sunt", + list_id="saepe", 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="sunt", + list_id="saepe", 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="sunt", + list_id="saepe", 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="sunt", + list_id="saepe", 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="sunt", + list_id="saepe", 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="sunt", + list_id="saepe", 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="sunt", + list_id="saepe", 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="sunt", + list_id="saepe", 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="sunt", + list_id="saepe", 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="sunt", + list_id="saepe", 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="sunt", + list_id="saepe", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 47693a2c..566f56e0 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="dolorum", 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="dolorum", 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="dolorum", 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="dolorum", 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="dolorum", 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="dolorum", 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="dolorum", 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="dolorum", 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="dolorum", 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="dolorum", 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="dolorum", 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="dolorum", 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="dolorum", 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="dolorum", 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="dolorum", 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="dolorum", 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="dolorum", 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="dolorum", 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="dolorum", 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="dolorum", 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 7549791e..a62ccbd3 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 9c80483e..b5f3d61a 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 9664075f..544df889 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 2f6fa650..38651b43 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="voluptas", + path_story_id="beatae", 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="voluptas", + path_story_id="beatae", 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="voluptas", + path_story_id="beatae", 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="voluptas", + path_story_id="beatae", 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="voluptas", + story_id="beatae", 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="voluptas", + story_id="beatae", 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="voluptas", + story_id="beatae", 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="voluptas", + story_id="beatae", 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="voluptas", + path_story_id="beatae", 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="voluptas", + path_story_id="beatae", 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="voluptas", + path_story_id="beatae", 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="voluptas", + path_story_id="beatae", 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="voluptas", + story_id="beatae", 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="voluptas", + story_id="beatae", 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="voluptas", + story_id="beatae", 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="voluptas", + story_id="beatae", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 86e468bd..8014f276 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( - "magnam", + "quis", ) 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( - "magnam", + "quis", ) 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( - "magnam", + "quis", ) 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( - "magnam", + "quis", ) 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( - "magnam", + "quis", ) 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( - "magnam", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index ba82eb00..b116b0a3 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="molestiae", - auth_type="mobile_app", - cookies="repellat", + auth_id="repellat", + auth_type="raw_data", + cookies="aut", custom_proxy={ "host": "proxy.example.com", - "password": "lBd)mQyE7_y.6\\", + "password": "*?RMFZ", "port": 8080, - "username": "sed", + "username": "molestiae", }, - email="russ45@example.com", - force_connect=False, - name="corporis", - password="Br:YiLm|:=QE:", - proxy_country="us", - user_agent="voluptatem", - xbc="optio", + email="friesen.gustave@example.org", + force_connect=True, + name="odio", + password="{-03rsh", + proxy_country="gb", + user_agent="sit", + xbc="eligendi", ) 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="molestiae", - auth_type="mobile_app", - cookies="repellat", + auth_id="repellat", + auth_type="raw_data", + cookies="aut", custom_proxy={ "host": "proxy.example.com", - "password": "lBd)mQyE7_y.6\\", + "password": "*?RMFZ", "port": 8080, - "username": "sed", + "username": "molestiae", }, - email="russ45@example.com", - force_connect=False, - name="corporis", - password="Br:YiLm|:=QE:", - proxy_country="us", - user_agent="voluptatem", - xbc="optio", + email="friesen.gustave@example.org", + force_connect=True, + name="odio", + password="{-03rsh", + proxy_country="gb", + user_agent="sit", + xbc="eligendi", ) 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 9249f386..3597ede6 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 413a2df6..1a80b275 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="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="likes", + type="onlyfans", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e23..bd4f6161 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 34b9cc61..4fca7ab6 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": ["byxnm"]}, + filter={"tags": ["frfjiutorogkxjgyriviprd"]}, limit=50, name="Instagram", offset=0, @@ -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="deserunt", + smart_link_id="nulla", ) 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="deserunt", + smart_link_id="nulla", 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="deserunt", + smart_link_id="nulla", ) 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="deserunt", + smart_link_id="nulla", ) 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="molestiae", + smart_link_id="accusantium", ) 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="molestiae", + smart_link_id="accusantium", 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="molestiae", + smart_link_id="accusantium", ) 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="molestiae", + smart_link_id="accusantium", ) 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="laborum", + smart_link_id="quia", ) 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="laborum", + smart_link_id="quia", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="laborum", + smart_link_id="quia", ) assert response.is_closed is True @@ -358,7 +358,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="laborum", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="perspiciatis", + smart_link_id="sunt", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="perspiciatis", + smart_link_id="sunt", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="perspiciatis", + smart_link_id="sunt", ) assert response.is_closed is True @@ -411,7 +411,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="perspiciatis", + smart_link_id="sunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="voluptatem", ) assert smart_link is None @@ -441,7 +441,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="voluptatem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="voluptatem", ) assert response.is_closed is True @@ -464,7 +464,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="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="saepe", + smart_link_id="consequatur", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="saepe", + smart_link_id="consequatur", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="saepe", + smart_link_id="consequatur", ) assert response.is_closed is True @@ -516,7 +516,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="saepe", + smart_link_id="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["byxnm"]}, + filter={"tags": ["frfjiutorogkxjgyriviprd"]}, limit=50, name="Instagram", offset=0, @@ -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="deserunt", + smart_link_id="nulla", ) 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="deserunt", + smart_link_id="nulla", 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="deserunt", + smart_link_id="nulla", ) 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="deserunt", + smart_link_id="nulla", ) 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="molestiae", + smart_link_id="accusantium", ) 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="molestiae", + smart_link_id="accusantium", 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="molestiae", + smart_link_id="accusantium", ) 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="molestiae", + smart_link_id="accusantium", ) 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="laborum", + smart_link_id="quia", ) 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="laborum", + smart_link_id="quia", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="laborum", + smart_link_id="quia", ) assert response.is_closed is True @@ -871,7 +871,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="laborum", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="perspiciatis", + smart_link_id="sunt", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="perspiciatis", + smart_link_id="sunt", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="perspiciatis", + smart_link_id="sunt", ) assert response.is_closed is True @@ -924,7 +924,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="perspiciatis", + smart_link_id="sunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="voluptatem", ) assert smart_link is None @@ -954,7 +954,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="voluptatem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="voluptatem", ) assert response.is_closed is True @@ -977,7 +977,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="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="saepe", + smart_link_id="consequatur", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="saepe", + smart_link_id="consequatur", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="saepe", + smart_link_id="consequatur", ) assert response.is_closed is True @@ -1029,7 +1029,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="saepe", + 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 2c0d1b1c..e0a42d70 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": "vfkassuucyeexecmjufk", - "tags": ["pujpbmpwvaeddrwgdxjswbt"], + "search": "oimzedrvgqaew", + "tags": ["sfumtpcygesdospmuxapqfbi"], }, 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": "uzfmzrzdjokfsgfstiexhhc", - "tags": ["rpexmkrchwuvclmhqzbc"], + "search": "dntmkbxvkokdvdoekfgahlkat", + "tags": ["hopyf"], }, 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": "pehiudoksduurubqavmcl", - "tags": ["cqmgsyx"], + "include_smart_links": True, + "search": "q", + "tags": ["lzgd"], }, 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": "jftmxkuwgcnigngejnksh", - "tags": ["ilrk"], + "search": "hzgald", + "tags": ["z"], }, 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": "vfkassuucyeexecmjufk", - "tags": ["pujpbmpwvaeddrwgdxjswbt"], + "search": "oimzedrvgqaew", + "tags": ["sfumtpcygesdospmuxapqfbi"], }, 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": "uzfmzrzdjokfsgfstiexhhc", - "tags": ["rpexmkrchwuvclmhqzbc"], + "search": "dntmkbxvkokdvdoekfgahlkat", + "tags": ["hopyf"], }, 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": "pehiudoksduurubqavmcl", - "tags": ["cqmgsyx"], + "include_smart_links": True, + "search": "q", + "tags": ["lzgd"], }, 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": "jftmxkuwgcnigngejnksh", - "tags": ["ilrk"], + "search": "hzgald", + "tags": ["z"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 88d7aff9..f7f4fc8a 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="eos", + tracking_link_id="libero", 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="eos", + tracking_link_id="libero", 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="eos", + tracking_link_id="libero", 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="eos", + tracking_link_id="libero", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="eos", + tracking_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="eos", + tracking_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="eos", + tracking_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="eos", + tracking_link_id="libero", account="", ) @@ -248,7 +248,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="blanditiis", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="blanditiis", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="blanditiis", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="blanditiis", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="blanditiis", + tracking_link_id="quia", account="", ) @@ -312,7 +312,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="voluptate", + tracking_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="voluptate", + tracking_link_id="vero", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="voluptate", + tracking_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="voluptate", + tracking_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="voluptate", + tracking_link_id="vero", account="", ) @@ -563,7 +563,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="eos", + tracking_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="eos", + tracking_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="eos", + tracking_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="eos", + tracking_link_id="libero", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="eos", + tracking_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="eos", + tracking_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="eos", + tracking_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="eos", + tracking_link_id="libero", account="", ) @@ -726,7 +726,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="blanditiis", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="blanditiis", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="blanditiis", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="blanditiis", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="blanditiis", + tracking_link_id="quia", account="", ) @@ -790,7 +790,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="voluptate", + tracking_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="voluptate", + tracking_link_id="vero", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="voluptate", + tracking_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="voluptate", + tracking_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="voluptate", + tracking_link_id="vero", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 69f76f13..df479631 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="aliquam", + trial_link_id="vero", 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="aliquam", + trial_link_id="vero", 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="aliquam", + trial_link_id="vero", 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="aliquam", + trial_link_id="vero", account="", ) @@ -205,7 +205,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="aliquam", + trial_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="aliquam", + trial_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="aliquam", + trial_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="aliquam", + trial_link_id="vero", account="", ) @@ -321,7 +321,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="hic", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="hic", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="hic", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="hic", + trial_link_id="officiis", account="", limit=10, offset=0, @@ -383,7 +383,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="maxime", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="maxime", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="maxime", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="maxime", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="maxime", + trial_link_id="modi", account="", ) @@ -447,7 +447,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="ipsum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="ipsum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="ipsum", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="ipsum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="ipsum", account="", ) @@ -583,7 +583,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="aliquam", + trial_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="aliquam", + trial_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="aliquam", + trial_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="aliquam", + trial_link_id="vero", account="", ) @@ -692,7 +692,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="aliquam", + trial_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="aliquam", + trial_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="aliquam", + trial_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="aliquam", + trial_link_id="vero", account="", ) @@ -808,7 +808,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="hic", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="hic", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="hic", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="hic", + trial_link_id="officiis", account="", limit=10, offset=0, @@ -870,7 +870,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="maxime", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="maxime", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="maxime", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="maxime", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="maxime", + trial_link_id="modi", account="", ) @@ -934,7 +934,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="ipsum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="ipsum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="ipsum", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="ipsum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="ipsum", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 052003b4..6085de41 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="jvi", + name="n", ) 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="jvi", + name="n", ) 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="jvi", + name="n", ) 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="jvi", + name="n", ) @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="jvi", + name="n", ) 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="jvi", + name="n", ) 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="jvi", + name="n", ) 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="jvi", + name="n", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 59e47be2ce117f2eab9ee823ac8de52a1396eb8e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Jul 2026 15:12:35 +0000 Subject: [PATCH 189/249] 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 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 76 ++++++------- tests/api_resources/test_trial_links.py | 88 +++++++-------- tests/api_resources/test_user_lists.py | 16 +-- 18 files changed, 274 insertions(+), 274 deletions(-) diff --git a/.stats.yml b/.stats.yml index 07e36940..619d91d0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-465eac4b7df335b90281f9f90f4455eb4567e74f8b592b7c83381153219b3fb2.yml -openapi_spec_hash: 4b0e1da35d79b4463c02c88445d139e4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-cd199f2ebabf57dcdcb7b1884a8cac0959f8f5d817e8d3560ba85aa01ecfc28c.yml +openapi_spec_hash: 87f391adff299fc8309bc1140f03d145 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 9273750f..182b430c 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="dolor", + message_id="ratione", 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="dolor", + message_id="ratione", 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="dolor", + message_id="ratione", 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="dolor", + message_id="ratione", 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="dolor", + message_id="ratione", 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="dolor", + message_id="ratione", 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="dolor", + message_id="ratione", 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="dolor", + message_id="ratione", 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="dolor", + message_id="ratione", 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="dolor", + message_id="ratione", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 426c32fd..270d890f 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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 566f56e0..926b89df 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="dolorum", + post_id="architecto", 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="dolorum", + post_id="architecto", 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="dolorum", + post_id="architecto", 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="dolorum", + post_id="architecto", 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="dolorum", + post_id="architecto", 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="dolorum", + post_id="architecto", 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="dolorum", + post_id="architecto", 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="dolorum", + post_id="architecto", 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="dolorum", + post_id="architecto", 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="dolorum", + post_id="architecto", 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="dolorum", + post_id="architecto", 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="dolorum", + post_id="architecto", 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="dolorum", + post_id="architecto", 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="dolorum", + post_id="architecto", 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="dolorum", + post_id="architecto", 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="dolorum", + post_id="architecto", 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="dolorum", + post_id="architecto", 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="dolorum", + post_id="architecto", 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="dolorum", + post_id="architecto", 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="dolorum", + post_id="architecto", 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 a62ccbd3..aa735c97 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index b5f3d61a..2ced6cb5 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 38651b43..41551672 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + story_id="vero", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 8014f276..d88db697 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( - "quis", + "beatae", ) 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( - "quis", + "beatae", ) 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( - "quis", + "beatae", ) 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( - "quis", + "beatae", ) 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( - "quis", + "beatae", ) 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( - "quis", + "beatae", ) 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 b116b0a3..fcd5af5a 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="repellat", - auth_type="raw_data", - cookies="aut", + auth_id="et", + auth_type="mobile_app", + cookies="vero", custom_proxy={ "host": "proxy.example.com", - "password": "*?RMFZ", + "password": ";!&H0;", "port": 8080, - "username": "molestiae", + "username": "laudantium", }, - email="friesen.gustave@example.org", + email="lubowitz.enid@example.net", force_connect=True, - name="odio", - password="{-03rsh", - proxy_country="gb", - user_agent="sit", - xbc="eligendi", + name="libero", + password="&/*9g.E5OG", + proxy_country="us", + user_agent="neque", + xbc="in", ) 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="repellat", - auth_type="raw_data", - cookies="aut", + auth_id="et", + auth_type="mobile_app", + cookies="vero", custom_proxy={ "host": "proxy.example.com", - "password": "*?RMFZ", + "password": ";!&H0;", "port": 8080, - "username": "molestiae", + "username": "laudantium", }, - email="friesen.gustave@example.org", + email="lubowitz.enid@example.net", force_connect=True, - name="odio", - password="{-03rsh", - proxy_country="gb", - user_agent="sit", - xbc="eligendi", + name="libero", + password="&/*9g.E5OG", + proxy_country="us", + user_agent="neque", + xbc="in", ) 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 3597ede6..0d035d3b 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="gb", ) 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="gb", ) 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 1a80b275..4d3e426f 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="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="onlyfans", + 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 bd4f6161..65694e23 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 4fca7ab6..30006d35 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": ["frfjiutorogkxjgyriviprd"]}, + filter={"tags": ["woct"]}, limit=50, name="Instagram", offset=0, @@ -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="nulla", + smart_link_id="voluptatibus", ) 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="nulla", + smart_link_id="voluptatibus", 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="nulla", + smart_link_id="voluptatibus", ) 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="nulla", + smart_link_id="voluptatibus", ) 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="accusantium", + smart_link_id="maiores", ) 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="accusantium", + smart_link_id="maiores", 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="accusantium", + smart_link_id="maiores", ) 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="accusantium", + smart_link_id="maiores", ) 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="quia", + smart_link_id="adipisci", ) 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="quia", + smart_link_id="adipisci", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="adipisci", ) assert response.is_closed is True @@ -358,7 +358,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="adipisci", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="optio", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="optio", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="optio", ) assert response.is_closed is True @@ -411,7 +411,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="optio", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="voluptatem", + smart_link_id="quia", ) assert smart_link is None @@ -441,7 +441,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="voluptatem", + smart_link_id="quia", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="voluptatem", + smart_link_id="quia", ) assert response.is_closed is True @@ -464,7 +464,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="voluptatem", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="odio", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="odio", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="odio", ) assert response.is_closed is True @@ -516,7 +516,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="odio", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["frfjiutorogkxjgyriviprd"]}, + filter={"tags": ["woct"]}, limit=50, name="Instagram", offset=0, @@ -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="nulla", + smart_link_id="voluptatibus", ) 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="nulla", + smart_link_id="voluptatibus", 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="nulla", + smart_link_id="voluptatibus", ) 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="nulla", + smart_link_id="voluptatibus", ) 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="accusantium", + smart_link_id="maiores", ) 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="accusantium", + smart_link_id="maiores", 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="accusantium", + smart_link_id="maiores", ) 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="accusantium", + smart_link_id="maiores", ) 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="quia", + smart_link_id="adipisci", ) 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="quia", + smart_link_id="adipisci", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="adipisci", ) assert response.is_closed is True @@ -871,7 +871,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="adipisci", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="optio", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="optio", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="optio", ) assert response.is_closed is True @@ -924,7 +924,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="optio", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="voluptatem", + smart_link_id="quia", ) assert smart_link is None @@ -954,7 +954,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="voluptatem", + smart_link_id="quia", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="voluptatem", + smart_link_id="quia", ) assert response.is_closed is True @@ -977,7 +977,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="voluptatem", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="odio", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="odio", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="odio", ) assert response.is_closed is True @@ -1029,7 +1029,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="odio", ) 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 e0a42d70..ed0644bc 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": "oimzedrvgqaew", - "tags": ["sfumtpcygesdospmuxapqfbi"], + "search": "ivkyuuntvi", + "tags": ["qsqzlqzxrcvjsptikjkrhepj"], }, 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": "dntmkbxvkokdvdoekfgahlkat", - "tags": ["hopyf"], + "search": "kbcggfwbqelst", + "tags": ["fxmstusgr"], }, 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": "q", - "tags": ["lzgd"], + "search": "esnk", + "tags": ["ppwmzemv"], }, 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": "hzgald", - "tags": ["z"], + "include_smart_links": True, + "search": "uvpftsev", + "tags": ["suk"], }, 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": "oimzedrvgqaew", - "tags": ["sfumtpcygesdospmuxapqfbi"], + "search": "ivkyuuntvi", + "tags": ["qsqzlqzxrcvjsptikjkrhepj"], }, 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": "dntmkbxvkokdvdoekfgahlkat", - "tags": ["hopyf"], + "search": "kbcggfwbqelst", + "tags": ["fxmstusgr"], }, 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": "q", - "tags": ["lzgd"], + "search": "esnk", + "tags": ["ppwmzemv"], }, 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": "hzgald", - "tags": ["z"], + "include_smart_links": True, + "search": "uvpftsev", + "tags": ["suk"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index f7f4fc8a..70e538d5 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="libero", + tracking_link_id="eveniet", 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="libero", + tracking_link_id="eveniet", 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="libero", + tracking_link_id="eveniet", 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="libero", + tracking_link_id="eveniet", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="libero", + tracking_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="libero", + tracking_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="libero", + tracking_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="libero", + tracking_link_id="eveniet", account="", ) @@ -248,7 +248,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="et", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="et", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="et", account="", ) @@ -312,7 +312,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="vero", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="vero", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="vero", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="vero", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="vero", + tracking_link_id="ad", account="", ) @@ -563,7 +563,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="libero", + tracking_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="libero", + tracking_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="libero", + tracking_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="libero", + tracking_link_id="eveniet", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="libero", + tracking_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="libero", + tracking_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="libero", + tracking_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="libero", + tracking_link_id="eveniet", account="", ) @@ -726,7 +726,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="et", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="et", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="et", account="", ) @@ -790,7 +790,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="vero", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="vero", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="vero", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="vero", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="vero", + tracking_link_id="ad", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index df479631..9d6a4670 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="vero", + 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="vero", + 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="vero", + 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="vero", + trial_link_id="voluptatem", account="", ) @@ -205,7 +205,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="vero", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="vero", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="vero", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="vero", + trial_link_id="voluptatem", account="", ) @@ -321,7 +321,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="officiis", + trial_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="officiis", + trial_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="officiis", + trial_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="officiis", + trial_link_id="architecto", account="", limit=10, offset=0, @@ -383,7 +383,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="modi", + trial_link_id="nam", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="modi", + trial_link_id="nam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="modi", + trial_link_id="nam", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="modi", + trial_link_id="nam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="modi", + trial_link_id="nam", account="", ) @@ -447,7 +447,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="ipsum", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="ipsum", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="ipsum", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="ipsum", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="ipsum", + trial_link_id="hic", account="", ) @@ -583,7 +583,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="vero", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="vero", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="vero", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="vero", + trial_link_id="voluptatem", account="", ) @@ -692,7 +692,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="vero", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="vero", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="vero", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="vero", + trial_link_id="voluptatem", account="", ) @@ -808,7 +808,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="officiis", + trial_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="officiis", + trial_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="officiis", + trial_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="officiis", + trial_link_id="architecto", account="", limit=10, offset=0, @@ -870,7 +870,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="modi", + trial_link_id="nam", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="modi", + trial_link_id="nam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="modi", + trial_link_id="nam", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="modi", + trial_link_id="nam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="modi", + trial_link_id="nam", account="", ) @@ -934,7 +934,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="ipsum", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="ipsum", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="ipsum", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="ipsum", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="ipsum", + trial_link_id="hic", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 6085de41..e4aba720 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="n", + name="xv", ) 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="n", + name="xv", ) 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="n", + name="xv", ) 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="n", + name="xv", ) @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="n", + name="xv", ) 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="n", + name="xv", ) 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="n", + name="xv", ) 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="n", + name="xv", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 2f122524efdf42653d50d895ff8921c37aaedcf7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Jul 2026 16:12:33 +0000 Subject: [PATCH 190/249] 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 +++---- .../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 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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, 254 insertions(+), 254 deletions(-) diff --git a/.stats.yml b/.stats.yml index 619d91d0..e14df4c2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-cd199f2ebabf57dcdcb7b1884a8cac0959f8f5d817e8d3560ba85aa01ecfc28c.yml -openapi_spec_hash: 87f391adff299fc8309bc1140f03d145 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9fa910a0787aa6bf8fef582b865f8d90b2061db422df6521faf2bf7e7fbd43a5.yml +openapi_spec_hash: 6f04e92de0c0aea8212d3f412620940b config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 182b430c..242d6aa8 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="ratione", + message_id="rerum", 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="ratione", + message_id="rerum", 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="ratione", + message_id="rerum", 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="ratione", + message_id="rerum", 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="ratione", + message_id="rerum", 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="ratione", + message_id="rerum", 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="ratione", + message_id="rerum", 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="ratione", + message_id="rerum", 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="ratione", + message_id="rerum", 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="ratione", + message_id="rerum", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 270d890f..31309544 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="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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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="velit", + 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 926b89df..d7be228d 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="architecto", + post_id="fuga", 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="architecto", + post_id="fuga", 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="architecto", + post_id="fuga", 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="architecto", + post_id="fuga", 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="architecto", + post_id="fuga", 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="architecto", + post_id="fuga", 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="architecto", + post_id="fuga", 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="architecto", + post_id="fuga", 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="architecto", + post_id="fuga", 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="architecto", + post_id="fuga", 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="architecto", + post_id="fuga", 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="architecto", + post_id="fuga", 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="architecto", + post_id="fuga", 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="architecto", + post_id="fuga", 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="architecto", + post_id="fuga", 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="architecto", + post_id="fuga", 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="architecto", + post_id="fuga", 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="architecto", + post_id="fuga", 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="architecto", + post_id="fuga", 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="architecto", + post_id="fuga", account="", ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 41551672..6cb4d91c 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index d88db697..5e31d2e0 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( - "beatae", + "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( - "beatae", + "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( - "beatae", + "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( - "beatae", + "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( - "beatae", + "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( - "beatae", + "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 fcd5af5a..5382986a 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="asperiores", auth_type="mobile_app", - cookies="vero", + cookies="quo", custom_proxy={ "host": "proxy.example.com", - "password": ";!&H0;", + "password": "t;RREZ,D\\P1PY6jz", "port": 8080, - "username": "laudantium", + "username": "quia", }, - email="lubowitz.enid@example.net", + email="elvis.funk@example.net", force_connect=True, - name="libero", - password="&/*9g.E5OG", - proxy_country="us", - user_agent="neque", - xbc="in", + name="ab", + password='P1?sfUh7a"OGdHm', + proxy_country="uk", + user_agent="deleniti", + xbc="voluptates", ) 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="asperiores", auth_type="mobile_app", - cookies="vero", + cookies="quo", custom_proxy={ "host": "proxy.example.com", - "password": ";!&H0;", + "password": "t;RREZ,D\\P1PY6jz", "port": 8080, - "username": "laudantium", + "username": "quia", }, - email="lubowitz.enid@example.net", + email="elvis.funk@example.net", force_connect=True, - name="libero", - password="&/*9g.E5OG", - proxy_country="us", - user_agent="neque", - xbc="in", + name="ab", + password='P1?sfUh7a"OGdHm', + proxy_country="uk", + user_agent="deleniti", + xbc="voluptates", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 4d3e426f..583d8ad4 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="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="mentions", + type="all", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 30006d35..af1f8b02 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": ["woct"]}, + filter={"tags": ["oxvnjnxixojgca"]}, limit=50, name="Instagram", offset=0, @@ -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="voluptatibus", + smart_link_id="odit", ) 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="voluptatibus", + smart_link_id="odit", 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="voluptatibus", + smart_link_id="odit", ) 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="voluptatibus", + smart_link_id="odit", ) 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="maiores", + smart_link_id="libero", ) 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="maiores", + smart_link_id="libero", 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="maiores", + smart_link_id="libero", ) 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="maiores", + smart_link_id="libero", ) 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="adipisci", + smart_link_id="veniam", ) 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="adipisci", + smart_link_id="veniam", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="adipisci", + smart_link_id="veniam", ) assert response.is_closed is True @@ -358,7 +358,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="adipisci", + smart_link_id="veniam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="optio", + smart_link_id="blanditiis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="optio", + smart_link_id="blanditiis", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="optio", + smart_link_id="blanditiis", ) assert response.is_closed is True @@ -411,7 +411,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="optio", + smart_link_id="blanditiis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="quia", + smart_link_id="repellat", ) assert smart_link is None @@ -441,7 +441,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="quia", + smart_link_id="repellat", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="quia", + smart_link_id="repellat", ) assert response.is_closed is True @@ -464,7 +464,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="quia", + smart_link_id="repellat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="odio", + smart_link_id="voluptate", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="odio", + smart_link_id="voluptate", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="odio", + smart_link_id="voluptate", ) assert response.is_closed is True @@ -516,7 +516,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="odio", + smart_link_id="voluptate", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["woct"]}, + filter={"tags": ["oxvnjnxixojgca"]}, limit=50, name="Instagram", offset=0, @@ -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="voluptatibus", + smart_link_id="odit", ) 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="voluptatibus", + smart_link_id="odit", 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="voluptatibus", + smart_link_id="odit", ) 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="voluptatibus", + smart_link_id="odit", ) 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="maiores", + smart_link_id="libero", ) 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="maiores", + smart_link_id="libero", 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="maiores", + smart_link_id="libero", ) 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="maiores", + smart_link_id="libero", ) 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="adipisci", + smart_link_id="veniam", ) 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="adipisci", + smart_link_id="veniam", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="adipisci", + smart_link_id="veniam", ) assert response.is_closed is True @@ -871,7 +871,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="adipisci", + smart_link_id="veniam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="optio", + smart_link_id="blanditiis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="optio", + smart_link_id="blanditiis", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="optio", + smart_link_id="blanditiis", ) assert response.is_closed is True @@ -924,7 +924,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="optio", + smart_link_id="blanditiis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="quia", + smart_link_id="repellat", ) assert smart_link is None @@ -954,7 +954,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="quia", + smart_link_id="repellat", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="quia", + smart_link_id="repellat", ) assert response.is_closed is True @@ -977,7 +977,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="quia", + smart_link_id="repellat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="odio", + smart_link_id="voluptate", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="odio", + smart_link_id="voluptate", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="odio", + smart_link_id="voluptate", ) assert response.is_closed is True @@ -1029,7 +1029,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="odio", + smart_link_id="voluptate", ) 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 ed0644bc..19253233 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": "ivkyuuntvi", - "tags": ["qsqzlqzxrcvjsptikjkrhepj"], + "search": "uenjvupsjyqef", + "tags": ["mocnf"], }, 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": "kbcggfwbqelst", - "tags": ["fxmstusgr"], + "search": "hgluurwpvh", + "tags": ["jcmcqijs"], }, 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": "esnk", - "tags": ["ppwmzemv"], + "include_smart_links": False, + "search": "ieiuehis", + "tags": ["hnzdcwyvhmckj"], }, 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": "uvpftsev", - "tags": ["suk"], + "include_smart_links": False, + "search": "rdybgisaft", + "tags": ["nsiwlymqkeyuvqilfbk"], }, 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": "ivkyuuntvi", - "tags": ["qsqzlqzxrcvjsptikjkrhepj"], + "search": "uenjvupsjyqef", + "tags": ["mocnf"], }, 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": "kbcggfwbqelst", - "tags": ["fxmstusgr"], + "search": "hgluurwpvh", + "tags": ["jcmcqijs"], }, 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": "esnk", - "tags": ["ppwmzemv"], + "include_smart_links": False, + "search": "ieiuehis", + "tags": ["hnzdcwyvhmckj"], }, 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": "uvpftsev", - "tags": ["suk"], + "include_smart_links": False, + "search": "rdybgisaft", + "tags": ["nsiwlymqkeyuvqilfbk"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 70e538d5..991afb14 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="eveniet", + tracking_link_id="a", 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="eveniet", + tracking_link_id="a", 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="eveniet", + tracking_link_id="a", 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="eveniet", + tracking_link_id="a", account="", ) @@ -196,7 +196,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="eveniet", + tracking_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="eveniet", + tracking_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="eveniet", + tracking_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="eveniet", + tracking_link_id="a", account="", ) @@ -248,7 +248,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="aliquid", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="aliquid", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="aliquid", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="aliquid", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="aliquid", account="", ) @@ -312,7 +312,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="ad", + tracking_link_id="corporis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="ad", + tracking_link_id="corporis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="ad", + tracking_link_id="corporis", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="ad", + tracking_link_id="corporis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="ad", + tracking_link_id="corporis", account="", ) @@ -563,7 +563,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="eveniet", + tracking_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="eveniet", + tracking_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="eveniet", + tracking_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="eveniet", + tracking_link_id="a", account="", ) @@ -674,7 +674,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="eveniet", + tracking_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="eveniet", + tracking_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="eveniet", + tracking_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="eveniet", + tracking_link_id="a", account="", ) @@ -726,7 +726,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="aliquid", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="aliquid", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="aliquid", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="aliquid", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="aliquid", account="", ) @@ -790,7 +790,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="ad", + tracking_link_id="corporis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="ad", + tracking_link_id="corporis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="ad", + tracking_link_id="corporis", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="ad", + tracking_link_id="corporis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="ad", + tracking_link_id="corporis", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 9d6a4670..ec1e4d11 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="voluptatibus", 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="voluptatibus", 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="voluptatibus", 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="voluptatibus", account="", ) @@ -205,7 +205,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="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="voluptatibus", account="", ) @@ -321,7 +321,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="architecto", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="architecto", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="architecto", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="architecto", + trial_link_id="sit", account="", limit=10, offset=0, @@ -383,7 +383,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="nam", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="nam", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="nam", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="nam", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="nam", + trial_link_id="voluptatem", account="", ) @@ -447,7 +447,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="distinctio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="distinctio", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="distinctio", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="distinctio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="distinctio", account="", ) @@ -583,7 +583,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="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="voluptatibus", account="", ) @@ -692,7 +692,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="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="voluptatibus", account="", ) @@ -808,7 +808,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="architecto", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="architecto", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="architecto", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="architecto", + trial_link_id="sit", account="", limit=10, offset=0, @@ -870,7 +870,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="nam", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="nam", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="nam", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="nam", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="nam", + trial_link_id="voluptatem", account="", ) @@ -934,7 +934,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="distinctio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="distinctio", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="distinctio", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="distinctio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="distinctio", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index e4aba720..62615e81 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="xv", + name="pkeskf", ) 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="xv", + name="pkeskf", ) 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="xv", + name="pkeskf", ) 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="xv", + name="pkeskf", ) @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="xv", + name="pkeskf", ) 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="xv", + name="pkeskf", ) 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="xv", + name="pkeskf", ) 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="xv", + name="pkeskf", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 80174010ca5107a6b01499c7bcd9267f9a750793 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Jul 2026 18:12:34 +0000 Subject: [PATCH 191/249] 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_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, 264 insertions(+), 264 deletions(-) diff --git a/.stats.yml b/.stats.yml index e14df4c2..4af35d16 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9fa910a0787aa6bf8fef582b865f8d90b2061db422df6521faf2bf7e7fbd43a5.yml -openapi_spec_hash: 6f04e92de0c0aea8212d3f412620940b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bf35268f3f090f2f6bfb806fd154df9e3957d92e136953bbd37eddd2c795e01a.yml +openapi_spec_hash: 61906e29e65b2ec4d5f7e6ed9f7616b6 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 242d6aa8..f49aae5f 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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 31309544..fb5327ec 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index d7be228d..e064eead 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="fuga", + post_id="iure", 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="fuga", + post_id="iure", 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="fuga", + post_id="iure", 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="fuga", + post_id="iure", 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="fuga", + post_id="iure", 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="fuga", + post_id="iure", 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="fuga", + post_id="iure", 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="fuga", + post_id="iure", 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="fuga", + post_id="iure", 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="fuga", + post_id="iure", 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="fuga", + post_id="iure", 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="fuga", + post_id="iure", 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="fuga", + post_id="iure", 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="fuga", + post_id="iure", 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="fuga", + post_id="iure", 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="fuga", + post_id="iure", 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="fuga", + post_id="iure", 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="fuga", + post_id="iure", 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="fuga", + post_id="iure", 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="fuga", + post_id="iure", 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 2ced6cb5..b5f3d61a 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 9664075f..544df889 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 6cb4d91c..1568149c 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="necessitatibus", + path_story_id="inventore", 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="necessitatibus", + path_story_id="inventore", 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="necessitatibus", + path_story_id="inventore", 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="necessitatibus", + path_story_id="inventore", 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="necessitatibus", + story_id="inventore", 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="necessitatibus", + story_id="inventore", 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="necessitatibus", + story_id="inventore", 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="necessitatibus", + story_id="inventore", 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="necessitatibus", + path_story_id="inventore", 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="necessitatibus", + path_story_id="inventore", 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="necessitatibus", + path_story_id="inventore", 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="necessitatibus", + path_story_id="inventore", 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="necessitatibus", + story_id="inventore", 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="necessitatibus", + story_id="inventore", 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="necessitatibus", + story_id="inventore", 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="necessitatibus", + story_id="inventore", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 5e31d2e0..761219e8 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", + "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( - "voluptatem", + "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( - "voluptatem", + "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( - "voluptatem", + "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( - "voluptatem", + "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( - "voluptatem", + "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 5382986a..818cc363 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="asperiores", - auth_type="mobile_app", - cookies="quo", + auth_id="quam", + auth_type="raw_data", + cookies="ex", custom_proxy={ "host": "proxy.example.com", - "password": "t;RREZ,D\\P1PY6jz", + "password": "99sjPZLj(0(b!", "port": 8080, - "username": "quia", + "username": "vel", }, - email="elvis.funk@example.net", + email="maggio.haylie@example.com", force_connect=True, - name="ab", - password='P1?sfUh7a"OGdHm', - proxy_country="uk", - user_agent="deleniti", - xbc="voluptates", + name="enim", + password="abD.=YX[", + proxy_country="us", + user_agent="omnis", + 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="asperiores", - auth_type="mobile_app", - cookies="quo", + auth_id="quam", + auth_type="raw_data", + cookies="ex", custom_proxy={ "host": "proxy.example.com", - "password": "t;RREZ,D\\P1PY6jz", + "password": "99sjPZLj(0(b!", "port": 8080, - "username": "quia", + "username": "vel", }, - email="elvis.funk@example.net", + email="maggio.haylie@example.com", force_connect=True, - name="ab", - password='P1?sfUh7a"OGdHm', - proxy_country="uk", - user_agent="deleniti", - xbc="voluptates", + name="enim", + password="abD.=YX[", + proxy_country="us", + user_agent="omnis", + xbc="eum", ) 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 0d035d3b..3597ede6 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="gb", + 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="gb", + 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 583d8ad4..280e3de9 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="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="all", + 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 65694e23..bd4f6161 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 af1f8b02..8e174e12 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": ["oxvnjnxixojgca"]}, + filter={"tags": ["nqew"]}, limit=50, name="Instagram", offset=0, @@ -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="odit", + smart_link_id="quis", ) 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="odit", + smart_link_id="quis", 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="odit", + smart_link_id="quis", ) 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="odit", + smart_link_id="quis", ) 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="libero", + smart_link_id="sint", ) 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="libero", + smart_link_id="sint", 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="libero", + smart_link_id="sint", ) 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="libero", + smart_link_id="sint", ) 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="veniam", + smart_link_id="blanditiis", ) 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="veniam", + smart_link_id="blanditiis", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="veniam", + smart_link_id="blanditiis", ) assert response.is_closed is True @@ -358,7 +358,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="veniam", + smart_link_id="blanditiis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="blanditiis", + smart_link_id="dolores", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="blanditiis", + smart_link_id="dolores", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="blanditiis", + smart_link_id="dolores", ) assert response.is_closed is True @@ -411,7 +411,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="blanditiis", + smart_link_id="dolores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="repellat", + smart_link_id="porro", ) assert smart_link is None @@ -441,7 +441,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="repellat", + smart_link_id="porro", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="repellat", + smart_link_id="porro", ) assert response.is_closed is True @@ -464,7 +464,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="repellat", + smart_link_id="porro", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="voluptate", + smart_link_id="et", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="voluptate", + smart_link_id="et", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="voluptate", + smart_link_id="et", ) assert response.is_closed is True @@ -516,7 +516,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="voluptate", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["oxvnjnxixojgca"]}, + filter={"tags": ["nqew"]}, limit=50, name="Instagram", offset=0, @@ -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="odit", + smart_link_id="quis", ) 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="odit", + smart_link_id="quis", 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="odit", + smart_link_id="quis", ) 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="odit", + smart_link_id="quis", ) 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="libero", + smart_link_id="sint", ) 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="libero", + smart_link_id="sint", 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="libero", + smart_link_id="sint", ) 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="libero", + smart_link_id="sint", ) 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="veniam", + smart_link_id="blanditiis", ) 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="veniam", + smart_link_id="blanditiis", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="veniam", + smart_link_id="blanditiis", ) assert response.is_closed is True @@ -871,7 +871,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="veniam", + smart_link_id="blanditiis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="blanditiis", + smart_link_id="dolores", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="blanditiis", + smart_link_id="dolores", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="blanditiis", + smart_link_id="dolores", ) assert response.is_closed is True @@ -924,7 +924,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="blanditiis", + smart_link_id="dolores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="repellat", + smart_link_id="porro", ) assert smart_link is None @@ -954,7 +954,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="repellat", + smart_link_id="porro", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="repellat", + smart_link_id="porro", ) assert response.is_closed is True @@ -977,7 +977,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="repellat", + smart_link_id="porro", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="voluptate", + smart_link_id="et", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="voluptate", + smart_link_id="et", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="voluptate", + smart_link_id="et", ) assert response.is_closed is True @@ -1029,7 +1029,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="voluptate", + 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 19253233..ee2dde97 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": "uenjvupsjyqef", - "tags": ["mocnf"], + "search": "mhachvseflms", + "tags": ["nzenhe"], }, 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": "hgluurwpvh", - "tags": ["jcmcqijs"], + "search": "fzmbcfsplxdx", + "tags": ["wwzzzfyvzfmhqvhace"], }, 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": "ieiuehis", - "tags": ["hnzdcwyvhmckj"], + "include_smart_links": True, + "search": "walmwfmrgatzoajwuuerxjqay", + "tags": ["js"], }, 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": "rdybgisaft", - "tags": ["nsiwlymqkeyuvqilfbk"], + "search": "cpdvwcucezetzuc", + "tags": ["uuhv"], }, 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": "uenjvupsjyqef", - "tags": ["mocnf"], + "search": "mhachvseflms", + "tags": ["nzenhe"], }, 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": "hgluurwpvh", - "tags": ["jcmcqijs"], + "search": "fzmbcfsplxdx", + "tags": ["wwzzzfyvzfmhqvhace"], }, 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": "ieiuehis", - "tags": ["hnzdcwyvhmckj"], + "include_smart_links": True, + "search": "walmwfmrgatzoajwuuerxjqay", + "tags": ["js"], }, 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": "rdybgisaft", - "tags": ["nsiwlymqkeyuvqilfbk"], + "search": "cpdvwcucezetzuc", + "tags": ["uuhv"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 991afb14..c744db64 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="a", + tracking_link_id="excepturi", 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="a", + tracking_link_id="excepturi", 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="a", + tracking_link_id="excepturi", 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="a", + tracking_link_id="excepturi", account="", ) @@ -196,7 +196,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="a", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="a", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="a", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="a", + tracking_link_id="excepturi", account="", ) @@ -248,7 +248,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="aliquid", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="aliquid", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="aliquid", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="aliquid", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="aliquid", + tracking_link_id="vel", account="", ) @@ -312,7 +312,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="corporis", + tracking_link_id="provident", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="corporis", + tracking_link_id="provident", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="corporis", + tracking_link_id="provident", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="corporis", + tracking_link_id="provident", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="corporis", + tracking_link_id="provident", account="", ) @@ -563,7 +563,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="a", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="a", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="a", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="a", + tracking_link_id="excepturi", account="", ) @@ -674,7 +674,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="a", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="a", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="a", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="a", + tracking_link_id="excepturi", account="", ) @@ -726,7 +726,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="aliquid", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="aliquid", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="aliquid", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="aliquid", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="aliquid", + tracking_link_id="vel", account="", ) @@ -790,7 +790,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="corporis", + tracking_link_id="provident", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="corporis", + tracking_link_id="provident", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="corporis", + tracking_link_id="provident", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="corporis", + tracking_link_id="provident", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="corporis", + tracking_link_id="provident", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index ec1e4d11..42d78f1c 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="voluptatibus", + trial_link_id="totam", 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="voluptatibus", + trial_link_id="totam", 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="voluptatibus", + trial_link_id="totam", 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="voluptatibus", + trial_link_id="totam", account="", ) @@ -205,7 +205,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="voluptatibus", + trial_link_id="totam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="voluptatibus", + trial_link_id="totam", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="voluptatibus", + trial_link_id="totam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="voluptatibus", + trial_link_id="totam", account="", ) @@ -321,7 +321,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="sit", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="sit", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="sit", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="sit", + trial_link_id="quia", account="", limit=10, offset=0, @@ -383,7 +383,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="voluptatem", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="voluptatem", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="voluptatem", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="voluptatem", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="voluptatem", + trial_link_id="ut", account="", ) @@ -447,7 +447,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="distinctio", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="distinctio", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="distinctio", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="distinctio", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="distinctio", + trial_link_id="explicabo", account="", ) @@ -583,7 +583,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="voluptatibus", + trial_link_id="totam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="voluptatibus", + trial_link_id="totam", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="voluptatibus", + trial_link_id="totam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="voluptatibus", + trial_link_id="totam", account="", ) @@ -692,7 +692,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="voluptatibus", + trial_link_id="totam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="voluptatibus", + trial_link_id="totam", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="voluptatibus", + trial_link_id="totam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="voluptatibus", + trial_link_id="totam", account="", ) @@ -808,7 +808,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="sit", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="sit", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="sit", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="sit", + trial_link_id="quia", account="", limit=10, offset=0, @@ -870,7 +870,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="voluptatem", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="voluptatem", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="voluptatem", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="voluptatem", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="voluptatem", + trial_link_id="ut", account="", ) @@ -934,7 +934,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="distinctio", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="distinctio", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="distinctio", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="distinctio", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="distinctio", + trial_link_id="explicabo", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 62615e81..bd351482 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="pkeskf", + name="heiehlytxdhbivvld", ) 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="pkeskf", + name="heiehlytxdhbivvld", ) 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="pkeskf", + name="heiehlytxdhbivvld", ) 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="pkeskf", + name="heiehlytxdhbivvld", ) @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="pkeskf", + name="heiehlytxdhbivvld", ) 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="pkeskf", + name="heiehlytxdhbivvld", ) 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="pkeskf", + name="heiehlytxdhbivvld", ) 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="pkeskf", + name="heiehlytxdhbivvld", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 98d06fae448d4f214bd3ebfe44df6c62825c4655 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 22 Jul 2026 11:12:35 +0000 Subject: [PATCH 192/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/smart_links.py | 8 +- .../smart_link_list_conversions_params.py | 4 +- .../types/smart_link_list_fans_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 +++---- .../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 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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 +-- 18 files changed, 267 insertions(+), 259 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4af35d16..16f3bf2c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bf35268f3f090f2f6bfb806fd154df9e3957d92e136953bbd37eddd2c795e01a.yml -openapi_spec_hash: 61906e29e65b2ec4d5f7e6ed9f7616b6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fd5f9eb8881ccbf40e52feb97c1fe147a8a6e38b8c71ce3afffa4779aa2651a2.yml +openapi_spec_hash: 9d488b784a710d4a43fc8e3c754a42cc config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/smart_links.py b/src/onlyfansapi/resources/smart_links.py index 24e44bb3..675edf24 100644 --- a/src/onlyfansapi/resources/smart_links.py +++ b/src/onlyfansapi/resources/smart_links.py @@ -315,7 +315,9 @@ def list_conversions( self, smart_link_id: str, *, - conversion_type: Literal["new_subscriber", "new_transaction", "message_received", "fan_sent_3_messages"] + conversion_type: Literal[ + "new_subscriber", "new_transaction", "message_received", "fan_sent_1_message", "fan_sent_3_messages" + ] | Omit = omit, date_end: str | Omit = omit, date_start: str | Omit = omit, @@ -907,7 +909,9 @@ async def list_conversions( self, smart_link_id: str, *, - conversion_type: Literal["new_subscriber", "new_transaction", "message_received", "fan_sent_3_messages"] + conversion_type: Literal[ + "new_subscriber", "new_transaction", "message_received", "fan_sent_1_message", "fan_sent_3_messages" + ] | Omit = omit, date_end: str | Omit = omit, date_start: str | Omit = omit, diff --git a/src/onlyfansapi/types/smart_link_list_conversions_params.py b/src/onlyfansapi/types/smart_link_list_conversions_params.py index 671c1455..b0ddfb5b 100644 --- a/src/onlyfansapi/types/smart_link_list_conversions_params.py +++ b/src/onlyfansapi/types/smart_link_list_conversions_params.py @@ -8,7 +8,9 @@ class SmartLinkListConversionsParams(TypedDict, total=False): - conversion_type: Literal["new_subscriber", "new_transaction", "message_received", "fan_sent_3_messages"] + conversion_type: Literal[ + "new_subscriber", "new_transaction", "message_received", "fan_sent_1_message", "fan_sent_3_messages" + ] """Optional conversion type filter""" date_end: str diff --git a/src/onlyfansapi/types/smart_link_list_fans_response.py b/src/onlyfansapi/types/smart_link_list_fans_response.py index 43e52a6f..4074d4d2 100644 --- a/src/onlyfansapi/types/smart_link_list_fans_response.py +++ b/src/onlyfansapi/types/smart_link_list_fans_response.py @@ -115,6 +115,8 @@ class DataRow(BaseModel): class DataSummary(BaseModel): fans_total: Optional[int] = None + fans_with_1_plus_messages_total: Optional[int] = None + fans_with_3_plus_messages_total: Optional[int] = None revenue_net_total: Optional[int] = None diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index f49aae5f..7506a921 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="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="porro", + 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="porro", + 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="porro", + 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="porro", + 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="porro", + 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="porro", + 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="porro", + 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="porro", + 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="porro", + 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 fb5327ec..126fe602 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="accusamus", + list_id="modi", 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="accusamus", + list_id="modi", 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="accusamus", + list_id="modi", 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="accusamus", + list_id="modi", 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="accusamus", + list_id="modi", 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="accusamus", + list_id="modi", 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="accusamus", + list_id="modi", 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="accusamus", + list_id="modi", 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="accusamus", + list_id="modi", 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="accusamus", + list_id="modi", 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="accusamus", + list_id="modi", 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="accusamus", + list_id="modi", 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="accusamus", + list_id="modi", 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="accusamus", + list_id="modi", 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="accusamus", + list_id="modi", 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="accusamus", + list_id="modi", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index e064eead..c8a1277d 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + 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="iure", + post_id="saepe", account="", ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 1568149c..f16f4260 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="inventore", + path_story_id="rerum", 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="inventore", + path_story_id="rerum", 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="inventore", + path_story_id="rerum", 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="inventore", + path_story_id="rerum", 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="inventore", + story_id="rerum", 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="inventore", + story_id="rerum", 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="inventore", + story_id="rerum", 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="inventore", + story_id="rerum", 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="inventore", + path_story_id="rerum", 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="inventore", + path_story_id="rerum", 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="inventore", + path_story_id="rerum", 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="inventore", + path_story_id="rerum", 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="inventore", + story_id="rerum", 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="inventore", + story_id="rerum", 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="inventore", + story_id="rerum", 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="inventore", + story_id="rerum", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 761219e8..c747c743 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( - "perspiciatis", + "minus", ) 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( - "perspiciatis", + "minus", ) 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( - "perspiciatis", + "minus", ) 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( - "perspiciatis", + "minus", ) 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( - "perspiciatis", + "minus", ) 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( - "perspiciatis", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 818cc363..4ceb0210 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="ex", + auth_id="hic", + auth_type="mobile_app", + cookies="fuga", custom_proxy={ "host": "proxy.example.com", - "password": "99sjPZLj(0(b!", + "password": "WzuNb.[5", "port": 8080, - "username": "vel", + "username": "ipsa", }, - email="maggio.haylie@example.com", + email="mcglynn.anais@example.net", force_connect=True, - name="enim", - password="abD.=YX[", - proxy_country="us", - user_agent="omnis", - xbc="eum", + name="facilis", + password=",P]9#B_\\B", + proxy_country="gb", + user_agent="dolorem", + xbc="quod", ) 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="ex", + auth_id="hic", + auth_type="mobile_app", + cookies="fuga", custom_proxy={ "host": "proxy.example.com", - "password": "99sjPZLj(0(b!", + "password": "WzuNb.[5", "port": 8080, - "username": "vel", + "username": "ipsa", }, - email="maggio.haylie@example.com", + email="mcglynn.anais@example.net", force_connect=True, - name="enim", - password="abD.=YX[", - proxy_country="us", - user_agent="omnis", - xbc="eum", + name="facilis", + password=",P]9#B_\\B", + proxy_country="gb", + user_agent="dolorem", + xbc="quod", ) 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 3597ede6..9249f386 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 280e3de9..583d8ad4 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="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="comments", + type="all", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 8e174e12..dc2e375a 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": ["nqew"]}, + filter={"tags": ["uviea"]}, limit=50, name="Instagram", offset=0, @@ -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="quis", + smart_link_id="minima", ) 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="quis", + smart_link_id="minima", 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="quis", + smart_link_id="minima", ) 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="quis", + smart_link_id="minima", ) 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="sint", + smart_link_id="magnam", ) 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="sint", + smart_link_id="magnam", 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="sint", + smart_link_id="magnam", ) 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="sint", + smart_link_id="magnam", ) 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="blanditiis", + smart_link_id="cum", ) 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="blanditiis", + smart_link_id="cum", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="cum", ) assert response.is_closed is True @@ -358,7 +358,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="cum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="dolores", + smart_link_id="aut", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="dolores", + smart_link_id="aut", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="dolores", + smart_link_id="aut", ) assert response.is_closed is True @@ -411,7 +411,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="dolores", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="porro", + smart_link_id="libero", ) assert smart_link is None @@ -441,7 +441,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="porro", + smart_link_id="libero", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="porro", + smart_link_id="libero", ) assert response.is_closed is True @@ -464,7 +464,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="porro", + smart_link_id="libero", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="culpa", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="culpa", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="culpa", ) assert response.is_closed is True @@ -516,7 +516,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="culpa", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["nqew"]}, + filter={"tags": ["uviea"]}, limit=50, name="Instagram", offset=0, @@ -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="quis", + smart_link_id="minima", ) 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="quis", + smart_link_id="minima", 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="quis", + smart_link_id="minima", ) 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="quis", + smart_link_id="minima", ) 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="sint", + smart_link_id="magnam", ) 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="sint", + smart_link_id="magnam", 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="sint", + smart_link_id="magnam", ) 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="sint", + smart_link_id="magnam", ) 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="blanditiis", + smart_link_id="cum", ) 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="blanditiis", + smart_link_id="cum", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="cum", ) assert response.is_closed is True @@ -871,7 +871,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="cum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="dolores", + smart_link_id="aut", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="dolores", + smart_link_id="aut", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="dolores", + smart_link_id="aut", ) assert response.is_closed is True @@ -924,7 +924,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="dolores", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="porro", + smart_link_id="libero", ) assert smart_link is None @@ -954,7 +954,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="porro", + smart_link_id="libero", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="porro", + smart_link_id="libero", ) assert response.is_closed is True @@ -977,7 +977,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="porro", + smart_link_id="libero", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="culpa", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="culpa", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="culpa", ) assert response.is_closed is True @@ -1029,7 +1029,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="culpa", ) 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 ee2dde97..a9243590 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": "mhachvseflms", - "tags": ["nzenhe"], + "search": "jkifmkarjaelcoh", + "tags": ["wqmmprgmjpahckderddjnswu"], }, 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": "fzmbcfsplxdx", - "tags": ["wwzzzfyvzfmhqvhace"], + "search": "sugeavx", + "tags": ["sbtbdmaqvwnucvwydfxxkn"], }, 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": "walmwfmrgatzoajwuuerxjqay", - "tags": ["js"], + "include_smart_links": False, + "search": "szltddhxawbtanb", + "tags": ["qgpimatvf"], }, 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": "cpdvwcucezetzuc", - "tags": ["uuhv"], + "include_smart_links": True, + "search": "megzwsvzrsdytctmnf", + "tags": ["hak"], }, 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": "mhachvseflms", - "tags": ["nzenhe"], + "search": "jkifmkarjaelcoh", + "tags": ["wqmmprgmjpahckderddjnswu"], }, 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": "fzmbcfsplxdx", - "tags": ["wwzzzfyvzfmhqvhace"], + "search": "sugeavx", + "tags": ["sbtbdmaqvwnucvwydfxxkn"], }, 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": "walmwfmrgatzoajwuuerxjqay", - "tags": ["js"], + "include_smart_links": False, + "search": "szltddhxawbtanb", + "tags": ["qgpimatvf"], }, 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": "cpdvwcucezetzuc", - "tags": ["uuhv"], + "include_smart_links": True, + "search": "megzwsvzrsdytctmnf", + "tags": ["hak"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index c744db64..1e9a7648 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="excepturi", + tracking_link_id="minus", 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="excepturi", + tracking_link_id="minus", 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="excepturi", + tracking_link_id="minus", 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="excepturi", + tracking_link_id="minus", account="", ) @@ -196,7 +196,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="excepturi", + tracking_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="excepturi", + tracking_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="excepturi", + tracking_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="excepturi", + tracking_link_id="minus", account="", ) @@ -248,7 +248,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="vel", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="vel", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="vel", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="vel", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="vel", + tracking_link_id="atque", account="", ) @@ -312,7 +312,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="provident", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="provident", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="provident", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="provident", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="provident", + tracking_link_id="excepturi", account="", ) @@ -563,7 +563,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="excepturi", + tracking_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="excepturi", + tracking_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="excepturi", + tracking_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="excepturi", + tracking_link_id="minus", account="", ) @@ -674,7 +674,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="excepturi", + tracking_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="excepturi", + tracking_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="excepturi", + tracking_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="excepturi", + tracking_link_id="minus", account="", ) @@ -726,7 +726,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="vel", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="vel", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="vel", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="vel", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="vel", + tracking_link_id="atque", account="", ) @@ -790,7 +790,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="provident", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="provident", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="provident", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="provident", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="provident", + tracking_link_id="excepturi", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 42d78f1c..418ecc8b 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="totam", + trial_link_id="laboriosam", 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="totam", + trial_link_id="laboriosam", 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="totam", + trial_link_id="laboriosam", 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="totam", + trial_link_id="laboriosam", account="", ) @@ -205,7 +205,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="totam", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="totam", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="totam", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="totam", + trial_link_id="laboriosam", account="", ) @@ -321,7 +321,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="quia", + trial_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="quia", + trial_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="quia", + trial_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="quia", + trial_link_id="voluptas", account="", limit=10, offset=0, @@ -383,7 +383,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="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="voluptatem", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="voluptatem", account="", ) @@ -447,7 +447,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="explicabo", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="explicabo", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="explicabo", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="explicabo", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="explicabo", + trial_link_id="et", account="", ) @@ -583,7 +583,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="totam", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="totam", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="totam", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="totam", + trial_link_id="laboriosam", account="", ) @@ -692,7 +692,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="totam", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="totam", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="totam", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="totam", + trial_link_id="laboriosam", account="", ) @@ -808,7 +808,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="quia", + trial_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="quia", + trial_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="quia", + trial_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="quia", + trial_link_id="voluptas", account="", limit=10, offset=0, @@ -870,7 +870,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="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="voluptatem", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="voluptatem", account="", ) @@ -934,7 +934,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="explicabo", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="explicabo", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="explicabo", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="explicabo", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="explicabo", + trial_link_id="et", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index bd351482..4036f9db 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="heiehlytxdhbivvld", + name="qugsdwwq", ) 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="heiehlytxdhbivvld", + name="qugsdwwq", ) 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="heiehlytxdhbivvld", + name="qugsdwwq", ) 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="heiehlytxdhbivvld", + name="qugsdwwq", ) @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="heiehlytxdhbivvld", + name="qugsdwwq", ) 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="heiehlytxdhbivvld", + name="qugsdwwq", ) 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="heiehlytxdhbivvld", + name="qugsdwwq", ) 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="heiehlytxdhbivvld", + name="qugsdwwq", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 81f42ffb06fa8bffcec38c37e281f0fce5767563 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 22 Jul 2026 12:12:41 +0000 Subject: [PATCH 193/249] 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 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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, 270 insertions(+), 270 deletions(-) diff --git a/.stats.yml b/.stats.yml index 16f3bf2c..601a5025 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fd5f9eb8881ccbf40e52feb97c1fe147a8a6e38b8c71ce3afffa4779aa2651a2.yml -openapi_spec_hash: 9d488b784a710d4a43fc8e3c754a42cc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5575f166374495bdf576019f2cef05ea8482587d161a5c5c095b732f13edf467.yml +openapi_spec_hash: 0b398a29d51d7c33984c69d078183389 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 7506a921..cbe09155 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 126fe602..270d890f 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="modi", + 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="modi", + 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="modi", + 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="modi", + 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="modi", + 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="modi", + 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="modi", + 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="modi", + 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="modi", + 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="modi", + 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="modi", + 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="modi", + 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="modi", + 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="modi", + 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="modi", + 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="modi", + 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 c8a1277d..f66b90ab 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="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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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="saepe", + 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 aa735c97..a62ccbd3 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 b5f3d61a..2ced6cb5 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 544df889..9664075f 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 f16f4260..93ea4a7d 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="rerum", + path_story_id="ipsum", 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="rerum", + path_story_id="ipsum", 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="rerum", + path_story_id="ipsum", 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="rerum", + path_story_id="ipsum", 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="rerum", + story_id="ipsum", 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="rerum", + story_id="ipsum", 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="rerum", + story_id="ipsum", 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="rerum", + story_id="ipsum", 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="rerum", + path_story_id="ipsum", 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="rerum", + path_story_id="ipsum", 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="rerum", + path_story_id="ipsum", 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="rerum", + path_story_id="ipsum", 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="rerum", + story_id="ipsum", 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="rerum", + story_id="ipsum", 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="rerum", + story_id="ipsum", 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="rerum", + story_id="ipsum", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index c747c743..66a8a949 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( - "minus", + "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( - "minus", + "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( - "minus", + "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( - "minus", + "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( - "minus", + "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( - "minus", + "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 4ceb0210..171adc3c 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="hic", + auth_id="in", auth_type="mobile_app", - cookies="fuga", + cookies="quidem", custom_proxy={ "host": "proxy.example.com", - "password": "WzuNb.[5", + "password": "4'3[XWPK@\\GU.Ot2ii2", "port": 8080, - "username": "ipsa", + "username": "qui", }, - email="mcglynn.anais@example.net", - force_connect=True, - name="facilis", - password=",P]9#B_\\B", + email="sporer.percival@example.net", + force_connect=False, + name="possimus", + password="7|q-dF-0-S'f", proxy_country="gb", - user_agent="dolorem", - xbc="quod", + user_agent="vel", + 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="hic", + auth_id="in", auth_type="mobile_app", - cookies="fuga", + cookies="quidem", custom_proxy={ "host": "proxy.example.com", - "password": "WzuNb.[5", + "password": "4'3[XWPK@\\GU.Ot2ii2", "port": 8080, - "username": "ipsa", + "username": "qui", }, - email="mcglynn.anais@example.net", - force_connect=True, - name="facilis", - password=",P]9#B_\\B", + email="sporer.percival@example.net", + force_connect=False, + name="possimus", + password="7|q-dF-0-S'f", proxy_country="gb", - user_agent="dolorem", - xbc="quod", + user_agent="vel", + 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 9249f386..0d035d3b 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="gb", ) 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="gb", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index dc2e375a..8d323233 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": ["uviea"]}, + filter={"tags": ["yyaerkqjgfshglohuzm"]}, limit=50, name="Instagram", offset=0, @@ -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="minima", + smart_link_id="quos", ) 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="minima", + smart_link_id="quos", 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="minima", + smart_link_id="quos", ) 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="minima", + smart_link_id="quos", ) 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="magnam", + smart_link_id="incidunt", ) 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="magnam", + smart_link_id="incidunt", 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="magnam", + smart_link_id="incidunt", ) 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="magnam", + smart_link_id="incidunt", ) 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="cum", + smart_link_id="quaerat", ) 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="cum", + smart_link_id="quaerat", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="cum", + smart_link_id="quaerat", ) assert response.is_closed is True @@ -358,7 +358,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="cum", + smart_link_id="quaerat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="corrupti", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="corrupti", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="corrupti", ) assert response.is_closed is True @@ -411,7 +411,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="corrupti", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="occaecati", ) assert smart_link is None @@ -441,7 +441,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="occaecati", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="occaecati", ) assert response.is_closed is True @@ -464,7 +464,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="occaecati", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="culpa", + smart_link_id="voluptatibus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="culpa", + smart_link_id="voluptatibus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="culpa", + smart_link_id="voluptatibus", ) assert response.is_closed is True @@ -516,7 +516,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="culpa", + smart_link_id="voluptatibus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["uviea"]}, + filter={"tags": ["yyaerkqjgfshglohuzm"]}, limit=50, name="Instagram", offset=0, @@ -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="minima", + smart_link_id="quos", ) 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="minima", + smart_link_id="quos", 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="minima", + smart_link_id="quos", ) 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="minima", + smart_link_id="quos", ) 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="magnam", + smart_link_id="incidunt", ) 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="magnam", + smart_link_id="incidunt", 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="magnam", + smart_link_id="incidunt", ) 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="magnam", + smart_link_id="incidunt", ) 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="cum", + smart_link_id="quaerat", ) 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="cum", + smart_link_id="quaerat", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="cum", + smart_link_id="quaerat", ) assert response.is_closed is True @@ -871,7 +871,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="cum", + smart_link_id="quaerat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="corrupti", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="corrupti", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="corrupti", ) assert response.is_closed is True @@ -924,7 +924,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="corrupti", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="occaecati", ) assert smart_link is None @@ -954,7 +954,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="occaecati", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="occaecati", ) assert response.is_closed is True @@ -977,7 +977,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="occaecati", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="culpa", + smart_link_id="voluptatibus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="culpa", + smart_link_id="voluptatibus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="culpa", + smart_link_id="voluptatibus", ) assert response.is_closed is True @@ -1029,7 +1029,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="culpa", + smart_link_id="voluptatibus", ) 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 a9243590..d20c2984 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": "jkifmkarjaelcoh", - "tags": ["wqmmprgmjpahckderddjnswu"], + "search": "gallylznkrifrixc", + "tags": ["vdx"], }, 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": "sugeavx", - "tags": ["sbtbdmaqvwnucvwydfxxkn"], + "search": "apqbb", + "tags": ["uzurcjgjkozti"], }, 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": "szltddhxawbtanb", - "tags": ["qgpimatvf"], + "include_smart_links": True, + "search": "bhftlq", + "tags": ["rawowe"], }, 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": "megzwsvzrsdytctmnf", - "tags": ["hak"], + "include_smart_links": False, + "search": "fizrjivpidxddvdkeodkfubwo", + "tags": ["wgfzz"], }, 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": "jkifmkarjaelcoh", - "tags": ["wqmmprgmjpahckderddjnswu"], + "search": "gallylznkrifrixc", + "tags": ["vdx"], }, 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": "sugeavx", - "tags": ["sbtbdmaqvwnucvwydfxxkn"], + "search": "apqbb", + "tags": ["uzurcjgjkozti"], }, 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": "szltddhxawbtanb", - "tags": ["qgpimatvf"], + "include_smart_links": True, + "search": "bhftlq", + "tags": ["rawowe"], }, 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": "megzwsvzrsdytctmnf", - "tags": ["hak"], + "include_smart_links": False, + "search": "fizrjivpidxddvdkeodkfubwo", + "tags": ["wgfzz"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 1e9a7648..738d4fde 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="minus", + tracking_link_id="veniam", 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="minus", + tracking_link_id="veniam", 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="minus", + tracking_link_id="veniam", 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="minus", + tracking_link_id="veniam", account="", ) @@ -196,7 +196,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="minus", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="minus", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="minus", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="minus", + tracking_link_id="veniam", account="", ) @@ -248,7 +248,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="enim", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="enim", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="enim", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="enim", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="enim", account="", ) @@ -312,7 +312,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="excepturi", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="excepturi", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="excepturi", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="excepturi", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="excepturi", + tracking_link_id="maxime", account="", ) @@ -563,7 +563,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="minus", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="minus", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="minus", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="minus", + tracking_link_id="veniam", account="", ) @@ -674,7 +674,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="minus", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="minus", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="minus", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="minus", + tracking_link_id="veniam", account="", ) @@ -726,7 +726,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="enim", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="enim", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="enim", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="enim", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="enim", account="", ) @@ -790,7 +790,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="excepturi", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="excepturi", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="excepturi", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="excepturi", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="excepturi", + tracking_link_id="maxime", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 418ecc8b..11ff6ff3 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="laboriosam", + trial_link_id="placeat", 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="laboriosam", + trial_link_id="placeat", 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="laboriosam", + trial_link_id="placeat", 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="laboriosam", + trial_link_id="placeat", account="", ) @@ -205,7 +205,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="laboriosam", + trial_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="laboriosam", + trial_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="laboriosam", + trial_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="laboriosam", + trial_link_id="placeat", account="", ) @@ -321,7 +321,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="voluptas", + trial_link_id="dolor", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="voluptas", + trial_link_id="dolor", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="voluptas", + trial_link_id="dolor", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="voluptas", + trial_link_id="dolor", account="", limit=10, offset=0, @@ -383,7 +383,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="voluptatem", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="voluptatem", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="voluptatem", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="voluptatem", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="voluptatem", + trial_link_id="fuga", account="", ) @@ -447,7 +447,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="aut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="aut", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="aut", account="", ) @@ -583,7 +583,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="laboriosam", + trial_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="laboriosam", + trial_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="laboriosam", + trial_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="laboriosam", + trial_link_id="placeat", account="", ) @@ -692,7 +692,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="laboriosam", + trial_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="laboriosam", + trial_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="laboriosam", + trial_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="laboriosam", + trial_link_id="placeat", account="", ) @@ -808,7 +808,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="voluptas", + trial_link_id="dolor", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="voluptas", + trial_link_id="dolor", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="voluptas", + trial_link_id="dolor", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="voluptas", + trial_link_id="dolor", account="", limit=10, offset=0, @@ -870,7 +870,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="voluptatem", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="voluptatem", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="voluptatem", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="voluptatem", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="voluptatem", + trial_link_id="fuga", account="", ) @@ -934,7 +934,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="aut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="aut", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="aut", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 4036f9db..31e88831 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="qugsdwwq", + name="ppxbqqrrjvkyfk", ) 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="qugsdwwq", + name="ppxbqqrrjvkyfk", ) 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="qugsdwwq", + name="ppxbqqrrjvkyfk", ) 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="qugsdwwq", + name="ppxbqqrrjvkyfk", ) @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="qugsdwwq", + name="ppxbqqrrjvkyfk", ) 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="qugsdwwq", + name="ppxbqqrrjvkyfk", ) 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="qugsdwwq", + name="ppxbqqrrjvkyfk", ) 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="qugsdwwq", + name="ppxbqqrrjvkyfk", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 81376103c50a835a8aa6e5b4430c594f87168b86 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 22 Jul 2026 17:12:34 +0000 Subject: [PATCH 194/249] 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 +++---- .../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 +- .../api_resources/test_shared_trial_links.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, 258 insertions(+), 258 deletions(-) diff --git a/.stats.yml b/.stats.yml index 601a5025..dfef46ee 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5575f166374495bdf576019f2cef05ea8482587d161a5c5c095b732f13edf467.yml -openapi_spec_hash: 0b398a29d51d7c33984c69d078183389 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-86dacbc074afe939b748380749cf4c3a563aa539d716347f6a4b8372c14fed90.yml +openapi_spec_hash: 69618a1c2b6cdbc93a820bb191ccf268 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index cbe09155..c5669599 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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="sit", + 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 270d890f..de76d677 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index f66b90ab..dc2aa474 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="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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + post_id="beatae", account="", ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075f..544df889 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 93ea4a7d..46294895 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="ipsum", + path_story_id="sed", 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="ipsum", + path_story_id="sed", 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="ipsum", + path_story_id="sed", 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="ipsum", + path_story_id="sed", 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="ipsum", + story_id="sed", 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="ipsum", + story_id="sed", 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="ipsum", + story_id="sed", 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="ipsum", + story_id="sed", 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="ipsum", + path_story_id="sed", 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="ipsum", + path_story_id="sed", 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="ipsum", + path_story_id="sed", 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="ipsum", + path_story_id="sed", 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="ipsum", + story_id="sed", 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="ipsum", + story_id="sed", 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="ipsum", + story_id="sed", 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="ipsum", + story_id="sed", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 66a8a949..6203e982 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", + "autem", ) 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", + "autem", ) 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", + "autem", ) 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", + "autem", ) 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", + "autem", ) 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", + "autem", ) 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 171adc3c..0f6b4092 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="in", - auth_type="mobile_app", - cookies="quidem", + auth_id="voluptates", + auth_type="raw_data", + cookies="accusantium", custom_proxy={ "host": "proxy.example.com", - "password": "4'3[XWPK@\\GU.Ot2ii2", + "password": "Pp]h>]-9kMf2@{S0i8!", "port": 8080, - "username": "qui", + "username": "aliquam", }, - email="sporer.percival@example.net", + email="dlind@example.org", force_connect=False, - name="possimus", - password="7|q-dF-0-S'f", - proxy_country="gb", - user_agent="vel", - xbc="illum", + name="ipsum", + password="J;~0Jj3FD0G{", + proxy_country="uk", + user_agent="amet", + xbc="ea", ) 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="in", - auth_type="mobile_app", - cookies="quidem", + auth_id="voluptates", + auth_type="raw_data", + cookies="accusantium", custom_proxy={ "host": "proxy.example.com", - "password": "4'3[XWPK@\\GU.Ot2ii2", + "password": "Pp]h>]-9kMf2@{S0i8!", "port": 8080, - "username": "qui", + "username": "aliquam", }, - email="sporer.percival@example.net", + email="dlind@example.org", force_connect=False, - name="possimus", - password="7|q-dF-0-S'f", - proxy_country="gb", - user_agent="vel", - xbc="illum", + name="ipsum", + password="J;~0Jj3FD0G{", + proxy_country="uk", + user_agent="amet", + xbc="ea", ) 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 0d035d3b..9249f386 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="gb", + 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="gb", + 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 583d8ad4..aaff3bff 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="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="all", + 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 bd4f6161..65694e23 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 8d323233..0f2ebab9 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": ["yyaerkqjgfshglohuzm"]}, + filter={"tags": ["xdcmugxymix"]}, limit=50, name="Instagram", offset=0, @@ -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="quos", + smart_link_id="enim", ) 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="quos", + smart_link_id="enim", 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="quos", + smart_link_id="enim", ) 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="quos", + smart_link_id="enim", ) 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="incidunt", + smart_link_id="porro", ) 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="incidunt", + smart_link_id="porro", 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="incidunt", + smart_link_id="porro", ) 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="incidunt", + smart_link_id="porro", ) 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="quaerat", + smart_link_id="voluptatem", ) 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="quaerat", + smart_link_id="voluptatem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="quaerat", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -358,7 +358,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="quaerat", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="corrupti", + smart_link_id="voluptatem", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="corrupti", + smart_link_id="voluptatem", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="corrupti", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -411,7 +411,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="corrupti", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="occaecati", + smart_link_id="atque", ) assert smart_link is None @@ -441,7 +441,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="occaecati", + smart_link_id="atque", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="occaecati", + smart_link_id="atque", ) assert response.is_closed is True @@ -464,7 +464,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="occaecati", + smart_link_id="atque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="voluptatibus", + smart_link_id="qui", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="voluptatibus", + smart_link_id="qui", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="voluptatibus", + smart_link_id="qui", ) assert response.is_closed is True @@ -516,7 +516,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="voluptatibus", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["yyaerkqjgfshglohuzm"]}, + filter={"tags": ["xdcmugxymix"]}, limit=50, name="Instagram", offset=0, @@ -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="quos", + smart_link_id="enim", ) 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="quos", + smart_link_id="enim", 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="quos", + smart_link_id="enim", ) 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="quos", + smart_link_id="enim", ) 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="incidunt", + smart_link_id="porro", ) 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="incidunt", + smart_link_id="porro", 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="incidunt", + smart_link_id="porro", ) 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="incidunt", + smart_link_id="porro", ) 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="quaerat", + smart_link_id="voluptatem", ) 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="quaerat", + smart_link_id="voluptatem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="quaerat", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -871,7 +871,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="quaerat", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="corrupti", + smart_link_id="voluptatem", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="corrupti", + smart_link_id="voluptatem", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="corrupti", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -924,7 +924,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="corrupti", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="occaecati", + smart_link_id="atque", ) assert smart_link is None @@ -954,7 +954,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="occaecati", + smart_link_id="atque", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="occaecati", + smart_link_id="atque", ) assert response.is_closed is True @@ -977,7 +977,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="occaecati", + smart_link_id="atque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="voluptatibus", + smart_link_id="qui", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="voluptatibus", + smart_link_id="qui", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="voluptatibus", + smart_link_id="qui", ) assert response.is_closed is True @@ -1029,7 +1029,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="voluptatibus", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index d20c2984..105bf7d6 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": "gallylznkrifrixc", - "tags": ["vdx"], + "search": "odcdqprycxusk", + "tags": ["t"], }, 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": "apqbb", - "tags": ["uzurcjgjkozti"], + "search": "zurcwgaifungmejugibpwqsrg", + "tags": ["ebictjohtidbbznnnpoz"], }, 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": "bhftlq", - "tags": ["rawowe"], + "search": "piszxzcpjzvsqrr", + "tags": ["jxinjzlaigtswpgiuoesz"], }, 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": "fizrjivpidxddvdkeodkfubwo", - "tags": ["wgfzz"], + "include_smart_links": True, + "search": "paglyqgloqmprpffbvuulls", + "tags": ["xudynnrbshhchtqtdgqb"], }, 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": "gallylznkrifrixc", - "tags": ["vdx"], + "search": "odcdqprycxusk", + "tags": ["t"], }, 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": "apqbb", - "tags": ["uzurcjgjkozti"], + "search": "zurcwgaifungmejugibpwqsrg", + "tags": ["ebictjohtidbbznnnpoz"], }, 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": "bhftlq", - "tags": ["rawowe"], + "search": "piszxzcpjzvsqrr", + "tags": ["jxinjzlaigtswpgiuoesz"], }, 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": "fizrjivpidxddvdkeodkfubwo", - "tags": ["wgfzz"], + "include_smart_links": True, + "search": "paglyqgloqmprpffbvuulls", + "tags": ["xudynnrbshhchtqtdgqb"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 738d4fde..843dffa9 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="veniam", + tracking_link_id="illo", 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="veniam", + tracking_link_id="illo", 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="veniam", + tracking_link_id="illo", 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="veniam", + tracking_link_id="illo", account="", ) @@ -196,7 +196,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="veniam", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="veniam", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="veniam", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="veniam", + tracking_link_id="illo", account="", ) @@ -248,7 +248,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="enim", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="enim", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="enim", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="enim", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="enim", + tracking_link_id="in", account="", ) @@ -312,7 +312,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="dolorum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="dolorum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="dolorum", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="dolorum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="dolorum", account="", ) @@ -563,7 +563,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="veniam", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="veniam", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="veniam", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="veniam", + tracking_link_id="illo", account="", ) @@ -674,7 +674,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="veniam", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="veniam", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="veniam", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="veniam", + tracking_link_id="illo", account="", ) @@ -726,7 +726,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="enim", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="enim", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="enim", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="enim", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="enim", + tracking_link_id="in", account="", ) @@ -790,7 +790,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="dolorum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="dolorum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="dolorum", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="dolorum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="dolorum", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 11ff6ff3..08f29b01 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="placeat", + trial_link_id="qui", 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="placeat", + trial_link_id="qui", 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="placeat", + trial_link_id="qui", 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="placeat", + trial_link_id="qui", account="", ) @@ -205,7 +205,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="placeat", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="placeat", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="placeat", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="placeat", + trial_link_id="qui", account="", ) @@ -321,7 +321,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="dolor", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="dolor", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="dolor", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="dolor", + trial_link_id="qui", account="", limit=10, offset=0, @@ -383,7 +383,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="ab", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="ab", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="ab", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="ab", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="ab", account="", ) @@ -447,7 +447,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="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="qui", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="qui", account="", ) @@ -583,7 +583,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="placeat", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="placeat", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="placeat", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="placeat", + trial_link_id="qui", account="", ) @@ -692,7 +692,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="placeat", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="placeat", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="placeat", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="placeat", + trial_link_id="qui", account="", ) @@ -808,7 +808,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="dolor", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="dolor", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="dolor", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="dolor", + trial_link_id="qui", account="", limit=10, offset=0, @@ -870,7 +870,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="ab", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="ab", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="ab", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="ab", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="ab", account="", ) @@ -934,7 +934,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="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="qui", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="qui", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 31e88831..5c8fa8a9 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="ppxbqqrrjvkyfk", + name="osofacedbpqnfmbcvvw", ) 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="ppxbqqrrjvkyfk", + name="osofacedbpqnfmbcvvw", ) 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="ppxbqqrrjvkyfk", + name="osofacedbpqnfmbcvvw", ) 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="ppxbqqrrjvkyfk", + name="osofacedbpqnfmbcvvw", ) @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="ppxbqqrrjvkyfk", + name="osofacedbpqnfmbcvvw", ) 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="ppxbqqrrjvkyfk", + name="osofacedbpqnfmbcvvw", ) 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="ppxbqqrrjvkyfk", + name="osofacedbpqnfmbcvvw", ) 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="ppxbqqrrjvkyfk", + name="osofacedbpqnfmbcvvw", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 4ecc6fea51ce942e0b3c87b06f7000b26020fdfc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2026 14:12:33 +0000 Subject: [PATCH 195/249] 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_profiles.py | 4 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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 +-- 19 files changed, 274 insertions(+), 274 deletions(-) diff --git a/.stats.yml b/.stats.yml index dfef46ee..f2a66157 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-86dacbc074afe939b748380749cf4c3a563aa539d716347f6a4b8372c14fed90.yml -openapi_spec_hash: 69618a1c2b6cdbc93a820bb191ccf268 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b373d508b827f74dfea7e42bbcdf19b6a82a04bc6b34f04dc75d678326506607.yml +openapi_spec_hash: b93bd0c5bd3e528ef814ae267651ced5 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index c5669599..41ee2000 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", 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="corporis", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index de76d677..33281cd2 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index dc2aa474..e1ef0f76 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="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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + post_id="tenetur", 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 a62ccbd3..444937ba 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 2ced6cb5..b5f3d61a 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 544df889..9664075f 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 46294895..4481eb3d 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="sed", + path_story_id="ea", 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="sed", + path_story_id="ea", 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="sed", + path_story_id="ea", 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="sed", + path_story_id="ea", 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="sed", + story_id="ea", 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="sed", + story_id="ea", 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="sed", + story_id="ea", 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="sed", + story_id="ea", 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="sed", + path_story_id="ea", 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="sed", + path_story_id="ea", 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="sed", + path_story_id="ea", 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="sed", + path_story_id="ea", 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="sed", + story_id="ea", 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="sed", + story_id="ea", 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="sed", + story_id="ea", 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="sed", + story_id="ea", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 6203e982..0b8f88f0 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( - "autem", + "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( - "autem", + "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( - "autem", + "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( - "autem", + "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( - "autem", + "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( - "autem", + "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 0f6b4092..09af03cc 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="voluptates", - auth_type="raw_data", - cookies="accusantium", + auth_id="eos", + auth_type="mobile_app", + cookies="id", custom_proxy={ "host": "proxy.example.com", - "password": "Pp]h>]-9kMf2@{S0i8!", + "password": "^;k,JGLNd<", "port": 8080, - "username": "aliquam", + "username": "et", }, - email="dlind@example.org", + email="boyer.anais@example.com", force_connect=False, - name="ipsum", - password="J;~0Jj3FD0G{", + name="cum", + password="w-`?p`-FZp", proxy_country="uk", - user_agent="amet", - xbc="ea", + user_agent="officiis", + xbc="voluptatem", ) 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="voluptates", - auth_type="raw_data", - cookies="accusantium", + auth_id="eos", + auth_type="mobile_app", + cookies="id", custom_proxy={ "host": "proxy.example.com", - "password": "Pp]h>]-9kMf2@{S0i8!", + "password": "^;k,JGLNd<", "port": 8080, - "username": "aliquam", + "username": "et", }, - email="dlind@example.org", + email="boyer.anais@example.com", force_connect=False, - name="ipsum", - password="J;~0Jj3FD0G{", + name="cum", + password="w-`?p`-FZp", proxy_country="uk", - user_agent="amet", - xbc="ea", + user_agent="officiis", + xbc="voluptatem", ) 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 9249f386..0d035d3b 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="gb", ) 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="gb", ) 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 aaff3bff..bea1ef2e 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 65694e23..bd4f6161 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 0f2ebab9..bef76a37 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": ["xdcmugxymix"]}, + filter={"tags": ["idmiuuqgxkqylmno"]}, limit=50, name="Instagram", offset=0, @@ -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="enim", + smart_link_id="animi", ) 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="enim", + smart_link_id="animi", 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="enim", + smart_link_id="animi", ) 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="enim", + smart_link_id="animi", ) 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="porro", + smart_link_id="et", ) 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="porro", + smart_link_id="et", 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="porro", + smart_link_id="et", ) 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="porro", + smart_link_id="et", ) 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="voluptatem", + smart_link_id="esse", ) 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="voluptatem", + smart_link_id="esse", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="voluptatem", + smart_link_id="esse", ) assert response.is_closed is True @@ -358,7 +358,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="voluptatem", + smart_link_id="esse", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="voluptatem", + smart_link_id="possimus", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="voluptatem", + smart_link_id="possimus", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="voluptatem", + smart_link_id="possimus", ) assert response.is_closed is True @@ -411,7 +411,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="voluptatem", + smart_link_id="possimus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="voluptatem", ) assert smart_link is None @@ -441,7 +441,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="voluptatem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="voluptatem", ) assert response.is_closed is True @@ -464,7 +464,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="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="qui", + smart_link_id="deserunt", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="qui", + smart_link_id="deserunt", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="qui", + smart_link_id="deserunt", ) assert response.is_closed is True @@ -516,7 +516,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="qui", + smart_link_id="deserunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["xdcmugxymix"]}, + filter={"tags": ["idmiuuqgxkqylmno"]}, limit=50, name="Instagram", offset=0, @@ -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="enim", + smart_link_id="animi", ) 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="enim", + smart_link_id="animi", 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="enim", + smart_link_id="animi", ) 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="enim", + smart_link_id="animi", ) 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="porro", + smart_link_id="et", ) 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="porro", + smart_link_id="et", 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="porro", + smart_link_id="et", ) 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="porro", + smart_link_id="et", ) 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="voluptatem", + smart_link_id="esse", ) 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="voluptatem", + smart_link_id="esse", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="voluptatem", + smart_link_id="esse", ) assert response.is_closed is True @@ -871,7 +871,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="voluptatem", + smart_link_id="esse", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="voluptatem", + smart_link_id="possimus", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="voluptatem", + smart_link_id="possimus", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="voluptatem", + smart_link_id="possimus", ) assert response.is_closed is True @@ -924,7 +924,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="voluptatem", + smart_link_id="possimus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="voluptatem", ) assert smart_link is None @@ -954,7 +954,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="voluptatem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="voluptatem", ) assert response.is_closed is True @@ -977,7 +977,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="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="qui", + smart_link_id="deserunt", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="qui", + smart_link_id="deserunt", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="qui", + smart_link_id="deserunt", ) assert response.is_closed is True @@ -1029,7 +1029,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="qui", + smart_link_id="deserunt", ) 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 105bf7d6..612f82ff 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": "odcdqprycxusk", - "tags": ["t"], + "search": "lmistdpz", + "tags": ["xctrjnrveqdjo"], }, 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": "zurcwgaifungmejugibpwqsrg", - "tags": ["ebictjohtidbbznnnpoz"], + "search": "xrwbmw", + "tags": ["evcmsyx"], }, 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": "piszxzcpjzvsqrr", - "tags": ["jxinjzlaigtswpgiuoesz"], + "include_smart_links": False, + "search": "blukazjwjlmatxbcymdhrw", + "tags": ["buuwqqatqtlm"], }, 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": "paglyqgloqmprpffbvuulls", - "tags": ["xudynnrbshhchtqtdgqb"], + "include_smart_links": False, + "search": "rzlyzzpvxacaptlo", + "tags": ["nnsb"], }, 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": "odcdqprycxusk", - "tags": ["t"], + "search": "lmistdpz", + "tags": ["xctrjnrveqdjo"], }, 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": "zurcwgaifungmejugibpwqsrg", - "tags": ["ebictjohtidbbznnnpoz"], + "search": "xrwbmw", + "tags": ["evcmsyx"], }, 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": "piszxzcpjzvsqrr", - "tags": ["jxinjzlaigtswpgiuoesz"], + "include_smart_links": False, + "search": "blukazjwjlmatxbcymdhrw", + "tags": ["buuwqqatqtlm"], }, 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": "paglyqgloqmprpffbvuulls", - "tags": ["xudynnrbshhchtqtdgqb"], + "include_smart_links": False, + "search": "rzlyzzpvxacaptlo", + "tags": ["nnsb"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 843dffa9..bb540559 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="illo", + tracking_link_id="tenetur", 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="illo", + tracking_link_id="tenetur", 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="illo", + tracking_link_id="tenetur", 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="illo", + tracking_link_id="tenetur", account="", ) @@ -196,7 +196,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="illo", + tracking_link_id="tenetur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="illo", + tracking_link_id="tenetur", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="illo", + tracking_link_id="tenetur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="illo", + tracking_link_id="tenetur", account="", ) @@ -248,7 +248,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="ea", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="ea", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="ea", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="ea", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="ea", account="", ) @@ -312,7 +312,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="dolorum", + tracking_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="dolorum", + tracking_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="dolorum", + tracking_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="dolorum", + tracking_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="dolorum", + tracking_link_id="consectetur", account="", ) @@ -563,7 +563,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="illo", + tracking_link_id="tenetur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="illo", + tracking_link_id="tenetur", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="illo", + tracking_link_id="tenetur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="illo", + tracking_link_id="tenetur", account="", ) @@ -674,7 +674,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="illo", + tracking_link_id="tenetur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="illo", + tracking_link_id="tenetur", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="illo", + tracking_link_id="tenetur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="illo", + tracking_link_id="tenetur", account="", ) @@ -726,7 +726,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="ea", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="ea", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="ea", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="ea", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="ea", account="", ) @@ -790,7 +790,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="dolorum", + tracking_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="dolorum", + tracking_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="dolorum", + tracking_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="dolorum", + tracking_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="dolorum", + tracking_link_id="consectetur", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 08f29b01..51c94487 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="qui", + trial_link_id="sit", 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="qui", + trial_link_id="sit", 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="qui", + trial_link_id="sit", 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="qui", + trial_link_id="sit", account="", ) @@ -205,7 +205,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="qui", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="qui", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="qui", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="qui", + trial_link_id="sit", account="", ) @@ -321,7 +321,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="doloremque", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="doloremque", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="doloremque", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="doloremque", account="", limit=10, offset=0, @@ -383,7 +383,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="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="rerum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="rerum", account="", ) @@ -447,7 +447,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="qui", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="qui", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="qui", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="qui", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="qui", + trial_link_id="dolorem", account="", ) @@ -583,7 +583,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="qui", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="qui", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="qui", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="qui", + trial_link_id="sit", account="", ) @@ -692,7 +692,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="qui", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="qui", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="qui", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="qui", + trial_link_id="sit", account="", ) @@ -808,7 +808,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="doloremque", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="doloremque", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="doloremque", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="doloremque", account="", limit=10, offset=0, @@ -870,7 +870,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="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="rerum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="rerum", account="", ) @@ -934,7 +934,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="qui", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="qui", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="qui", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="qui", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="qui", + trial_link_id="dolorem", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 5c8fa8a9..06e8480c 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="osofacedbpqnfmbcvvw", + name="eliewjdpzgqfuxzpdlew", ) 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="osofacedbpqnfmbcvvw", + name="eliewjdpzgqfuxzpdlew", ) 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="osofacedbpqnfmbcvvw", + name="eliewjdpzgqfuxzpdlew", ) 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="osofacedbpqnfmbcvvw", + name="eliewjdpzgqfuxzpdlew", ) @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="osofacedbpqnfmbcvvw", + name="eliewjdpzgqfuxzpdlew", ) 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="osofacedbpqnfmbcvvw", + name="eliewjdpzgqfuxzpdlew", ) 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="osofacedbpqnfmbcvvw", + name="eliewjdpzgqfuxzpdlew", ) 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="osofacedbpqnfmbcvvw", + name="eliewjdpzgqfuxzpdlew", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 91252eef3de9b5add88105c123ba34e59790164d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2026 15:12:45 +0000 Subject: [PATCH 196/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/fans/fans.py | 66 ++++++++++---- .../types/fan_list_active_params.py | 30 +++++-- src/onlyfansapi/types/fan_list_all_params.py | 30 +++++-- .../types/fan_list_expired_params.py | 30 +++++-- .../types/fan_list_latest_params.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 | 44 +++++----- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 84 +++++++++--------- tests/api_resources/test_stored.py | 36 ++++---- tests/api_resources/test_tracking_links.py | 76 ++++++++-------- tests/api_resources/test_trial_links.py | 88 +++++++++---------- tests/api_resources/test_user_lists.py | 16 ++-- 21 files changed, 383 insertions(+), 299 deletions(-) diff --git a/.stats.yml b/.stats.yml index f2a66157..602c0849 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b373d508b827f74dfea7e42bbcdf19b6a82a04bc6b34f04dc75d678326506607.yml -openapi_spec_hash: b93bd0c5bd3e528ef814ae267651ced5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-42fa35231d794b0bfd70bc9535f8c7c4de1637f2bf7efab0d20640f55d717daf.yml +openapi_spec_hash: 7c3baec99afe2fe96c534aabaa94b77e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/fans/fans.py b/src/onlyfansapi/resources/fans/fans.py index b8be4415..56b5e1e4 100644 --- a/src/onlyfansapi/resources/fans/fans.py +++ b/src/onlyfansapi/resources/fans/fans.py @@ -141,11 +141,17 @@ def list_active( ) -> FanListActiveResponse: """Get a paginated list of fans for an Account. - Newest fans are first. + Newest fans are first. Paginate by + following `_pagination.next_page` until it is null (`data.hasMore` is the + authoritative flag). Do NOT use the page's item count to detect the last page — + OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on + a non-final page because it filters entries server-side; no fans are skipped. To + track progress, GET /{account}/me returns data.subscribersCount (the current + active-subscriber count) as a total. Args: - limit: Number of fans to return (1-50). Must be at least 1. Must not be greater - than 20. + limit: Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. + Must be at least 1. Must not be greater than 20. offset: Number of fans to skip. Must be at least 0. @@ -202,11 +208,15 @@ def list_all( ) -> FanListAllResponse: """Get a paginated list of fans for an Account. - Newest fans are first. + Newest fans are first. Paginate by + following `_pagination.next_page` until it is null (`data.hasMore` is the + authoritative flag). Do NOT use the page's item count to detect the last page — + OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on + a non-final page because it filters entries server-side; no fans are skipped. Args: - limit: Number of fans to return (1-50). Must be at least 1. Must not be greater - than 20. + limit: Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. + Must be at least 1. Must not be greater than 20. offset: Number of fans to skip. Must be at least 0. @@ -264,10 +274,15 @@ def list_expired( """Get a paginated list of expired fans for an Account. Newest fans are first. + Paginate by following `_pagination.next_page` until it is null (`data.hasMore` + is the authoritative flag). Do NOT use the page's item count to detect the last + page — OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for + limit=20) on a non-final page because it filters entries server-side; no fans + are skipped. Args: - limit: Number of fans to return (1-50). Must be at least 1. Must not be greater - than 20. + limit: Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. + Must be at least 1. Must not be greater than 20. offset: Number of fans to skip. Must be at least 0. @@ -331,7 +346,7 @@ def list_latest( not be greater than 255 characters. limit: Number of fans to return (1-50). Must be at least 1. Must not be greater - than 100. + than 50. offset: Number of fans to skip. Must be at least 0. @@ -558,11 +573,17 @@ async def list_active( ) -> FanListActiveResponse: """Get a paginated list of fans for an Account. - Newest fans are first. + Newest fans are first. Paginate by + following `_pagination.next_page` until it is null (`data.hasMore` is the + authoritative flag). Do NOT use the page's item count to detect the last page — + OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on + a non-final page because it filters entries server-side; no fans are skipped. To + track progress, GET /{account}/me returns data.subscribersCount (the current + active-subscriber count) as a total. Args: - limit: Number of fans to return (1-50). Must be at least 1. Must not be greater - than 20. + limit: Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. + Must be at least 1. Must not be greater than 20. offset: Number of fans to skip. Must be at least 0. @@ -619,11 +640,15 @@ async def list_all( ) -> FanListAllResponse: """Get a paginated list of fans for an Account. - Newest fans are first. + Newest fans are first. Paginate by + following `_pagination.next_page` until it is null (`data.hasMore` is the + authoritative flag). Do NOT use the page's item count to detect the last page — + OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on + a non-final page because it filters entries server-side; no fans are skipped. Args: - limit: Number of fans to return (1-50). Must be at least 1. Must not be greater - than 20. + limit: Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. + Must be at least 1. Must not be greater than 20. offset: Number of fans to skip. Must be at least 0. @@ -681,10 +706,15 @@ async def list_expired( """Get a paginated list of expired fans for an Account. Newest fans are first. + Paginate by following `_pagination.next_page` until it is null (`data.hasMore` + is the authoritative flag). Do NOT use the page's item count to detect the last + page — OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for + limit=20) on a non-final page because it filters entries server-side; no fans + are skipped. Args: - limit: Number of fans to return (1-50). Must be at least 1. Must not be greater - than 20. + limit: Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. + Must be at least 1. Must not be greater than 20. offset: Number of fans to skip. Must be at least 0. @@ -748,7 +778,7 @@ async def list_latest( not be greater than 255 characters. limit: Number of fans to return (1-50). Must be at least 1. Must not be greater - than 100. + than 50. offset: Number of fans to skip. Must be at least 0. diff --git a/src/onlyfansapi/types/fan_list_active_params.py b/src/onlyfansapi/types/fan_list_active_params.py index a87a84e0..7ab2017e 100644 --- a/src/onlyfansapi/types/fan_list_active_params.py +++ b/src/onlyfansapi/types/fan_list_active_params.py @@ -12,9 +12,10 @@ class FanListActiveParams(TypedDict, total=False): filter: Filter limit: int - """Number of fans to return (1-50). + """Number of fans to return (1-20). - Must be at least 1. Must not be greater than 20. + OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be + greater than 20. """ offset: int @@ -29,13 +30,30 @@ class FanListActiveParams(TypedDict, total=False): class Filter(TypedDict, total=False): duration: int - """Filter by minimum subscription duration in months. Must be at least 0.""" + """Filter by minimum subscription duration in months. + + Must use bracket syntax: filter[duration]=1 — the dot form (filter.duration=1) + is NOT supported and will be ignored. Must be at least 0. + """ online: Optional[Literal[1, 0]] - """Filter by online status (`1` for online fans).""" + """Filter by online status (`1` for online fans). + + Must use bracket syntax: filter[online]=1 — the dot form (filter.online=1) is + NOT supported and will be ignored. + """ tips: int - """Filter by minimum tips. Must be at least 0.""" + """Filter by minimum tips. + + Must use bracket syntax: filter[tips]=100 — the dot form (filter.tips=100) is + NOT supported and will be ignored. Must be at least 0. + """ total_spent: int - """Filter by minimum amount total spent by a fan. Must be at least 0.""" + """Filter by minimum amount total spent by a fan. + + Must use bracket syntax: filter[total_spent]=100 — the dot form + (filter.total_spent=100) is NOT supported and will be ignored. Must be at + least 0. + """ diff --git a/src/onlyfansapi/types/fan_list_all_params.py b/src/onlyfansapi/types/fan_list_all_params.py index 87a19c10..93864589 100644 --- a/src/onlyfansapi/types/fan_list_all_params.py +++ b/src/onlyfansapi/types/fan_list_all_params.py @@ -12,9 +12,10 @@ class FanListAllParams(TypedDict, total=False): filter: Filter limit: int - """Number of fans to return (1-50). + """Number of fans to return (1-20). - Must be at least 1. Must not be greater than 20. + OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be + greater than 20. """ offset: int @@ -29,13 +30,30 @@ class FanListAllParams(TypedDict, total=False): class Filter(TypedDict, total=False): duration: int - """Filter by minimum subscription duration in months. Must be at least 0.""" + """Filter by minimum subscription duration in months. + + Must use bracket syntax: filter[duration]=1 — the dot form (filter.duration=1) + is NOT supported and will be ignored. Must be at least 0. + """ online: Optional[Literal[1, 0]] - """Filter by online status (`1` for online fans).""" + """Filter by online status (`1` for online fans). + + Must use bracket syntax: filter[online]=1 — the dot form (filter.online=1) is + NOT supported and will be ignored. + """ tips: int - """Filter by minimum tips. Must be at least 0.""" + """Filter by minimum tips. + + Must use bracket syntax: filter[tips]=100 — the dot form (filter.tips=100) is + NOT supported and will be ignored. Must be at least 0. + """ total_spent: int - """Filter by minimum amount total spent by a fan. Must be at least 0.""" + """Filter by minimum amount total spent by a fan. + + Must use bracket syntax: filter[total_spent]=100 — the dot form + (filter.total_spent=100) is NOT supported and will be ignored. Must be at + least 0. + """ diff --git a/src/onlyfansapi/types/fan_list_expired_params.py b/src/onlyfansapi/types/fan_list_expired_params.py index 1643328e..e91eed41 100644 --- a/src/onlyfansapi/types/fan_list_expired_params.py +++ b/src/onlyfansapi/types/fan_list_expired_params.py @@ -12,9 +12,10 @@ class FanListExpiredParams(TypedDict, total=False): filter: Filter limit: int - """Number of fans to return (1-50). + """Number of fans to return (1-20). - Must be at least 1. Must not be greater than 20. + OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be + greater than 20. """ offset: int @@ -29,13 +30,30 @@ class FanListExpiredParams(TypedDict, total=False): class Filter(TypedDict, total=False): duration: int - """Filter by minimum subscription duration in months. Must be at least 0.""" + """Filter by minimum subscription duration in months. + + Must use bracket syntax: filter[duration]=1 — the dot form (filter.duration=1) + is NOT supported and will be ignored. Must be at least 0. + """ online: Optional[Literal[1, 0]] - """Filter by online status (`1` for online fans).""" + """Filter by online status (`1` for online fans). + + Must use bracket syntax: filter[online]=1 — the dot form (filter.online=1) is + NOT supported and will be ignored. + """ tips: int - """Filter by minimum tips. Must be at least 0.""" + """Filter by minimum tips. + + Must use bracket syntax: filter[tips]=100 — the dot form (filter.tips=100) is + NOT supported and will be ignored. Must be at least 0. + """ total_spent: int - """Filter by minimum amount total spent by a fan. Must be at least 0.""" + """Filter by minimum amount total spent by a fan. + + Must use bracket syntax: filter[total_spent]=100 — the dot form + (filter.total_spent=100) is NOT supported and will be ignored. Must be at + least 0. + """ diff --git a/src/onlyfansapi/types/fan_list_latest_params.py b/src/onlyfansapi/types/fan_list_latest_params.py index afd83825..19b4d08a 100644 --- a/src/onlyfansapi/types/fan_list_latest_params.py +++ b/src/onlyfansapi/types/fan_list_latest_params.py @@ -18,7 +18,7 @@ class FanListLatestParams(TypedDict, total=False): limit: int """Number of fans to return (1-50). - Must be at least 1. Must not be greater than 100. + Must be at least 1. Must not be greater than 50. """ offset: int diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 41ee2000..e2f03c72 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="corporis", + message_id="quaerat", 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="corporis", + message_id="quaerat", 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="corporis", + message_id="quaerat", 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="corporis", + message_id="quaerat", 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="corporis", + message_id="quaerat", 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="corporis", + message_id="quaerat", 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="corporis", + message_id="quaerat", 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="corporis", + message_id="quaerat", 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="corporis", + message_id="quaerat", 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="corporis", + message_id="quaerat", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 33281cd2..353bde14 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="fuga", + list_id="repellendus", 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="fuga", + list_id="repellendus", 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="fuga", + list_id="repellendus", 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="fuga", + list_id="repellendus", 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="fuga", + list_id="repellendus", 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="fuga", + list_id="repellendus", 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="fuga", + list_id="repellendus", 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="fuga", + list_id="repellendus", 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="fuga", + list_id="repellendus", 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="fuga", + list_id="repellendus", 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="fuga", + list_id="repellendus", 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="fuga", + list_id="repellendus", 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="fuga", + list_id="repellendus", 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="fuga", + list_id="repellendus", 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="fuga", + list_id="repellendus", 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="fuga", + list_id="repellendus", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index e1ef0f76..d7be228d 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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="fuga", 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 444937ba..7549791e 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 b5f3d61a..2ced6cb5 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 4481eb3d..97b2e5fa 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + 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="ea", + story_id="quidem", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 0b8f88f0..92eea1a1 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", + "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( - "qui", + "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( - "qui", + "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( - "qui", + "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( - "qui", + "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( - "qui", + "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 09af03cc..5b2abe76 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="eos", + auth_id="ea", auth_type="mobile_app", - cookies="id", + cookies="accusantium", custom_proxy={ "host": "proxy.example.com", - "password": "^;k,JGLNd<", + "password": "Af'd0*", "port": 8080, - "username": "et", + "username": "corrupti", }, - email="boyer.anais@example.com", - force_connect=False, - name="cum", - password="w-`?p`-FZp", - proxy_country="uk", - user_agent="officiis", - xbc="voluptatem", + email="malachi22@example.com", + force_connect=True, + name="molestiae", + password='US7HYC"C$', + proxy_country="us", + user_agent="est", + xbc="sit", ) 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="eos", + auth_id="ea", auth_type="mobile_app", - cookies="id", + cookies="accusantium", custom_proxy={ "host": "proxy.example.com", - "password": "^;k,JGLNd<", + "password": "Af'd0*", "port": 8080, - "username": "et", + "username": "corrupti", }, - email="boyer.anais@example.com", - force_connect=False, - name="cum", - password="w-`?p`-FZp", - proxy_country="uk", - user_agent="officiis", - xbc="voluptatem", + email="malachi22@example.com", + force_connect=True, + name="molestiae", + password='US7HYC"C$', + proxy_country="us", + user_agent="est", + xbc="sit", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index bea1ef2e..583d8ad4 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="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="tags", + type="all", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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 bef76a37..ea47db97 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": ["idmiuuqgxkqylmno"]}, + filter={"tags": ["lfddooixicafwyq"]}, limit=50, name="Instagram", offset=0, @@ -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="animi", + smart_link_id="soluta", ) 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="animi", + smart_link_id="soluta", 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="animi", + smart_link_id="soluta", ) 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="animi", + smart_link_id="soluta", ) 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="esse", + smart_link_id="vero", ) 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="esse", + smart_link_id="vero", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="esse", + smart_link_id="vero", ) assert response.is_closed is True @@ -358,7 +358,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="esse", + smart_link_id="vero", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="possimus", + smart_link_id="sit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="possimus", + smart_link_id="sit", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="possimus", + smart_link_id="sit", ) assert response.is_closed is True @@ -411,7 +411,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="possimus", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="voluptatem", + smart_link_id="exercitationem", ) assert smart_link is None @@ -441,7 +441,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="voluptatem", + smart_link_id="exercitationem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="voluptatem", + smart_link_id="exercitationem", ) assert response.is_closed is True @@ -464,7 +464,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="voluptatem", + smart_link_id="exercitationem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="deserunt", + smart_link_id="voluptatibus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="deserunt", + smart_link_id="voluptatibus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="deserunt", + smart_link_id="voluptatibus", ) assert response.is_closed is True @@ -516,7 +516,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="deserunt", + smart_link_id="voluptatibus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["idmiuuqgxkqylmno"]}, + filter={"tags": ["lfddooixicafwyq"]}, limit=50, name="Instagram", offset=0, @@ -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="animi", + smart_link_id="soluta", ) 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="animi", + smart_link_id="soluta", 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="animi", + smart_link_id="soluta", ) 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="animi", + smart_link_id="soluta", ) 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="esse", + smart_link_id="vero", ) 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="esse", + smart_link_id="vero", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="esse", + smart_link_id="vero", ) assert response.is_closed is True @@ -871,7 +871,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="esse", + smart_link_id="vero", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="possimus", + smart_link_id="sit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="possimus", + smart_link_id="sit", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="possimus", + smart_link_id="sit", ) assert response.is_closed is True @@ -924,7 +924,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="possimus", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="voluptatem", + smart_link_id="exercitationem", ) assert smart_link is None @@ -954,7 +954,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="voluptatem", + smart_link_id="exercitationem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="voluptatem", + smart_link_id="exercitationem", ) assert response.is_closed is True @@ -977,7 +977,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="voluptatem", + smart_link_id="exercitationem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="deserunt", + smart_link_id="voluptatibus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="deserunt", + smart_link_id="voluptatibus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="deserunt", + smart_link_id="voluptatibus", ) assert response.is_closed is True @@ -1029,7 +1029,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="deserunt", + smart_link_id="voluptatibus", ) 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 612f82ff..4a3cf1ac 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": "lmistdpz", - "tags": ["xctrjnrveqdjo"], + "search": "nyseq", + "tags": ["w"], }, 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": "xrwbmw", - "tags": ["evcmsyx"], + "search": "fdqfbrnsj", + "tags": ["ewlbesojbzosvrxsavu"], }, 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": "blukazjwjlmatxbcymdhrw", - "tags": ["buuwqqatqtlm"], + "search": "ligvzqvzxajuoioeibp", + "tags": ["asosgwjsipnafba"], }, 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": "rzlyzzpvxacaptlo", - "tags": ["nnsb"], + "include_smart_links": True, + "search": "ginfwebj", + "tags": ["vlhsrpmhaqyclsu"], }, 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": "lmistdpz", - "tags": ["xctrjnrveqdjo"], + "search": "nyseq", + "tags": ["w"], }, 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": "xrwbmw", - "tags": ["evcmsyx"], + "search": "fdqfbrnsj", + "tags": ["ewlbesojbzosvrxsavu"], }, 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": "blukazjwjlmatxbcymdhrw", - "tags": ["buuwqqatqtlm"], + "search": "ligvzqvzxajuoioeibp", + "tags": ["asosgwjsipnafba"], }, 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": "rzlyzzpvxacaptlo", - "tags": ["nnsb"], + "include_smart_links": True, + "search": "ginfwebj", + "tags": ["vlhsrpmhaqyclsu"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index bb540559..e377b814 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="tenetur", + 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="tenetur", + 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="tenetur", + 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="tenetur", + tracking_link_id="quia", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="tenetur", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="tenetur", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="tenetur", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="tenetur", + tracking_link_id="quia", account="", ) @@ -248,7 +248,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="ea", + tracking_link_id="eaque", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="ea", + tracking_link_id="eaque", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="ea", + tracking_link_id="eaque", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="ea", + tracking_link_id="eaque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="ea", + tracking_link_id="eaque", account="", ) @@ -312,7 +312,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="consectetur", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="consectetur", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="consectetur", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="consectetur", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="consectetur", + tracking_link_id="illo", account="", ) @@ -563,7 +563,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="tenetur", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="tenetur", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="tenetur", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="tenetur", + tracking_link_id="quia", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="tenetur", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="tenetur", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="tenetur", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="tenetur", + tracking_link_id="quia", account="", ) @@ -726,7 +726,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="ea", + tracking_link_id="eaque", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="ea", + tracking_link_id="eaque", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="ea", + tracking_link_id="eaque", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="ea", + tracking_link_id="eaque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="ea", + tracking_link_id="eaque", account="", ) @@ -790,7 +790,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="consectetur", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="consectetur", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="consectetur", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="consectetur", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="consectetur", + tracking_link_id="illo", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 51c94487..5e7c2430 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="sit", + trial_link_id="neque", 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="sit", + trial_link_id="neque", 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="sit", + trial_link_id="neque", 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="sit", + trial_link_id="neque", account="", ) @@ -205,7 +205,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="sit", + trial_link_id="neque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="sit", + trial_link_id="neque", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="sit", + trial_link_id="neque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="sit", + trial_link_id="neque", account="", ) @@ -321,7 +321,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="doloremque", + trial_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="doloremque", + trial_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="doloremque", + trial_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="doloremque", + trial_link_id="blanditiis", account="", limit=10, offset=0, @@ -383,7 +383,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="enim", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="enim", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="enim", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="enim", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="enim", account="", ) @@ -447,7 +447,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="temporibus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="temporibus", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="temporibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="temporibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="temporibus", account="", ) @@ -583,7 +583,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="sit", + trial_link_id="neque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="sit", + trial_link_id="neque", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="sit", + trial_link_id="neque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="sit", + trial_link_id="neque", account="", ) @@ -692,7 +692,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="sit", + trial_link_id="neque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="sit", + trial_link_id="neque", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="sit", + trial_link_id="neque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="sit", + trial_link_id="neque", account="", ) @@ -808,7 +808,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="doloremque", + trial_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="doloremque", + trial_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="doloremque", + trial_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="doloremque", + trial_link_id="blanditiis", account="", limit=10, offset=0, @@ -870,7 +870,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="enim", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="enim", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="enim", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="enim", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="enim", account="", ) @@ -934,7 +934,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="temporibus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="temporibus", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="temporibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="temporibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="temporibus", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 06e8480c..df054b4b 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="eliewjdpzgqfuxzpdlew", + name="pxtvwfysvmbazvtqlypv", ) 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="eliewjdpzgqfuxzpdlew", + name="pxtvwfysvmbazvtqlypv", ) 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="eliewjdpzgqfuxzpdlew", + name="pxtvwfysvmbazvtqlypv", ) 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="eliewjdpzgqfuxzpdlew", + name="pxtvwfysvmbazvtqlypv", ) @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="eliewjdpzgqfuxzpdlew", + name="pxtvwfysvmbazvtqlypv", ) 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="eliewjdpzgqfuxzpdlew", + name="pxtvwfysvmbazvtqlypv", ) 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="eliewjdpzgqfuxzpdlew", + name="pxtvwfysvmbazvtqlypv", ) 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="eliewjdpzgqfuxzpdlew", + name="pxtvwfysvmbazvtqlypv", ) @pytest.mark.skip(reason="Mock server tests are disabled") From bc13cfa62a0ba7eab9a1bddc4d3cae039ba7b520 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2026 16:12:36 +0000 Subject: [PATCH 197/249] 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 +++---- .../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_profiles.py | 4 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 76 ++++++------- tests/api_resources/test_trial_links.py | 72 ++++++------- tests/api_resources/test_user_lists.py | 16 +-- 17 files changed, 250 insertions(+), 250 deletions(-) diff --git a/.stats.yml b/.stats.yml index 602c0849..7d3f9bdb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-42fa35231d794b0bfd70bc9535f8c7c4de1637f2bf7efab0d20640f55d717daf.yml -openapi_spec_hash: 7c3baec99afe2fe96c534aabaa94b77e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0c1400f2d2673186ba78e4c245b8a9be95f0838ddeab0aed0113e2b3b7a886a3.yml +openapi_spec_hash: 984f4f233bee708607f2651a31eb5d7f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index e2f03c72..c1c7f058 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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="quaerat", + 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 353bde14..261d1023 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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="repellendus", + 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 d7be228d..685b531f 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="fuga", + post_id="ea", 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="fuga", + post_id="ea", 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="fuga", + post_id="ea", 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="fuga", + post_id="ea", 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="fuga", + post_id="ea", 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="fuga", + post_id="ea", 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="fuga", + post_id="ea", 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="fuga", + post_id="ea", 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="fuga", + post_id="ea", 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="fuga", + post_id="ea", 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="fuga", + post_id="ea", 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="fuga", + post_id="ea", 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="fuga", + post_id="ea", 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="fuga", + post_id="ea", 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="fuga", + post_id="ea", 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="fuga", + post_id="ea", 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="fuga", + post_id="ea", 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="fuga", + post_id="ea", 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="fuga", + post_id="ea", 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="fuga", + post_id="ea", account="", ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075f..544df889 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 97b2e5fa..2f0f7ed1 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", 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="recusandae", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 92eea1a1..5c3afb22 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", + "natus", ) 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", + "natus", ) 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", + "natus", ) 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", + "natus", ) 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", + "natus", ) 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", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 5b2abe76..0b23851d 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="ea", + auth_id="cum", auth_type="mobile_app", - cookies="accusantium", + cookies="minus", custom_proxy={ "host": "proxy.example.com", - "password": "Af'd0*", + "password": ",?Gg/{fJzJ`hWB", "port": 8080, - "username": "corrupti", + "username": "aut", }, - email="malachi22@example.com", - force_connect=True, - name="molestiae", - password='US7HYC"C$', + email="estrella41@example.org", + force_connect=False, + name="in", + password="ifPGBdJTu9l=Vr*IV", proxy_country="us", - user_agent="est", - xbc="sit", + user_agent="ad", + 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="ea", + auth_id="cum", auth_type="mobile_app", - cookies="accusantium", + cookies="minus", custom_proxy={ "host": "proxy.example.com", - "password": "Af'd0*", + "password": ",?Gg/{fJzJ`hWB", "port": 8080, - "username": "corrupti", + "username": "aut", }, - email="malachi22@example.com", - force_connect=True, - name="molestiae", - password='US7HYC"C$', + email="estrella41@example.org", + force_connect=False, + name="in", + password="ifPGBdJTu9l=Vr*IV", proxy_country="us", - user_agent="est", - xbc="sit", + user_agent="ad", + 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 0d035d3b..9249f386 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="gb", + 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="gb", + 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 583d8ad4..280e3de9 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="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="all", + 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 65694e23..bd4f6161 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index ea47db97..89ea8180 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": ["lfddooixicafwyq"]}, + filter={"tags": ["nckuruogmwnnutsfalhydjjwg"]}, limit=50, name="Instagram", offset=0, @@ -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="soluta", + smart_link_id="ex", ) 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="soluta", + smart_link_id="ex", 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="soluta", + smart_link_id="ex", ) 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="soluta", + smart_link_id="ex", ) 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="et", + smart_link_id="optio", ) 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="et", + smart_link_id="optio", 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="et", + smart_link_id="optio", ) 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="et", + smart_link_id="optio", ) 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="vero", + smart_link_id="pariatur", ) 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="vero", + smart_link_id="pariatur", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="vero", + smart_link_id="pariatur", ) assert response.is_closed is True @@ -358,7 +358,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="vero", + smart_link_id="pariatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="placeat", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="placeat", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="placeat", ) assert response.is_closed is True @@ -411,7 +411,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="placeat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="enim", ) assert smart_link is None @@ -441,7 +441,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="enim", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="enim", ) assert response.is_closed is True @@ -464,7 +464,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="enim", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="voluptatibus", + smart_link_id="delectus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="voluptatibus", + smart_link_id="delectus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="voluptatibus", + smart_link_id="delectus", ) assert response.is_closed is True @@ -516,7 +516,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="voluptatibus", + smart_link_id="delectus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["lfddooixicafwyq"]}, + filter={"tags": ["nckuruogmwnnutsfalhydjjwg"]}, limit=50, name="Instagram", offset=0, @@ -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="soluta", + smart_link_id="ex", ) 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="soluta", + smart_link_id="ex", 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="soluta", + smart_link_id="ex", ) 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="soluta", + smart_link_id="ex", ) 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="et", + smart_link_id="optio", ) 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="et", + smart_link_id="optio", 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="et", + smart_link_id="optio", ) 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="et", + smart_link_id="optio", ) 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="vero", + smart_link_id="pariatur", ) 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="vero", + smart_link_id="pariatur", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="vero", + smart_link_id="pariatur", ) assert response.is_closed is True @@ -871,7 +871,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="vero", + smart_link_id="pariatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="placeat", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="placeat", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="placeat", ) assert response.is_closed is True @@ -924,7 +924,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="placeat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="enim", ) assert smart_link is None @@ -954,7 +954,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="enim", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="enim", ) assert response.is_closed is True @@ -977,7 +977,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="enim", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="voluptatibus", + smart_link_id="delectus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="voluptatibus", + smart_link_id="delectus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="voluptatibus", + smart_link_id="delectus", ) assert response.is_closed is True @@ -1029,7 +1029,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="voluptatibus", + smart_link_id="delectus", ) 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 4a3cf1ac..72066ea3 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": "nyseq", - "tags": ["w"], + "search": "frlnpmbhpvqs", + "tags": ["nqjdiqpahpkodyxgfmcgktm"], }, 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": "fdqfbrnsj", - "tags": ["ewlbesojbzosvrxsavu"], + "search": "lilsjamqhiektgwttlkhi", + "tags": ["vdboywuxmwrsrnudztpteniv"], }, 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": "ligvzqvzxajuoioeibp", - "tags": ["asosgwjsipnafba"], + "search": "bufx", + "tags": ["tgbnsqwbpihqqwicopwen"], }, 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": "ginfwebj", - "tags": ["vlhsrpmhaqyclsu"], + "include_smart_links": False, + "search": "wdxydrvvtebompzykb", + "tags": ["tghadkrvwwzjaxyrm"], }, 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": "nyseq", - "tags": ["w"], + "search": "frlnpmbhpvqs", + "tags": ["nqjdiqpahpkodyxgfmcgktm"], }, 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": "fdqfbrnsj", - "tags": ["ewlbesojbzosvrxsavu"], + "search": "lilsjamqhiektgwttlkhi", + "tags": ["vdboywuxmwrsrnudztpteniv"], }, 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": "ligvzqvzxajuoioeibp", - "tags": ["asosgwjsipnafba"], + "search": "bufx", + "tags": ["tgbnsqwbpihqqwicopwen"], }, 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": "ginfwebj", - "tags": ["vlhsrpmhaqyclsu"], + "include_smart_links": False, + "search": "wdxydrvvtebompzykb", + "tags": ["tghadkrvwwzjaxyrm"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index e377b814..ca76969f 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="voluptas", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="voluptas", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="voluptas", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="voluptas", account="", ) @@ -248,7 +248,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="eaque", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="eaque", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="eaque", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="eaque", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="eaque", + tracking_link_id="ipsam", account="", ) @@ -312,7 +312,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="illo", + tracking_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="illo", + tracking_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="illo", + tracking_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="illo", + tracking_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="illo", + tracking_link_id="fuga", account="", ) @@ -563,7 +563,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="voluptas", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="voluptas", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="voluptas", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="voluptas", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="voluptas", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="voluptas", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="voluptas", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="voluptas", account="", ) @@ -726,7 +726,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="eaque", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="eaque", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="eaque", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="eaque", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="eaque", + tracking_link_id="ipsam", account="", ) @@ -790,7 +790,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="illo", + tracking_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="illo", + tracking_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="illo", + tracking_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="illo", + tracking_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="illo", + tracking_link_id="fuga", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 5e7c2430..7ae67802 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="neque", + 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="neque", + 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="neque", + 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="neque", + trial_link_id="rerum", account="", ) @@ -205,7 +205,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="neque", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="neque", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="neque", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="neque", + trial_link_id="rerum", account="", ) @@ -383,7 +383,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="enim", + trial_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="enim", + trial_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="enim", + trial_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="enim", + trial_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="enim", + trial_link_id="reprehenderit", account="", ) @@ -447,7 +447,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="temporibus", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="temporibus", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="temporibus", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="temporibus", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="temporibus", + trial_link_id="saepe", account="", ) @@ -583,7 +583,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="neque", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="neque", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="neque", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="neque", + trial_link_id="rerum", account="", ) @@ -692,7 +692,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="neque", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="neque", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="neque", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="neque", + trial_link_id="rerum", account="", ) @@ -870,7 +870,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="enim", + trial_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="enim", + trial_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="enim", + trial_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="enim", + trial_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="enim", + trial_link_id="reprehenderit", account="", ) @@ -934,7 +934,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="temporibus", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="temporibus", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="temporibus", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="temporibus", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="temporibus", + trial_link_id="saepe", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index df054b4b..2dadca04 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="pxtvwfysvmbazvtqlypv", + name="gtyaevtnisqrzebhwcv", ) 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="pxtvwfysvmbazvtqlypv", + name="gtyaevtnisqrzebhwcv", ) 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="pxtvwfysvmbazvtqlypv", + name="gtyaevtnisqrzebhwcv", ) 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="pxtvwfysvmbazvtqlypv", + name="gtyaevtnisqrzebhwcv", ) @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="pxtvwfysvmbazvtqlypv", + name="gtyaevtnisqrzebhwcv", ) 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="pxtvwfysvmbazvtqlypv", + name="gtyaevtnisqrzebhwcv", ) 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="pxtvwfysvmbazvtqlypv", + name="gtyaevtnisqrzebhwcv", ) 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="pxtvwfysvmbazvtqlypv", + name="gtyaevtnisqrzebhwcv", ) @pytest.mark.skip(reason="Mock server tests are disabled") From ee28e926834d57e16d1de4ed6c95a533d5672c02 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2026 17:12:36 +0000 Subject: [PATCH 198/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/fans/fans.py | 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 +-- .../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 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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 +-- 18 files changed, 266 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7d3f9bdb..86a62496 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0c1400f2d2673186ba78e4c245b8a9be95f0838ddeab0aed0113e2b3b7a886a3.yml -openapi_spec_hash: 984f4f233bee708607f2651a31eb5d7f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-445eb492f26fedc978dca7dd3d47bec133960dc431aed4279e2a3587c7250649.yml +openapi_spec_hash: 8216c1487eb858df08449e7b45db8de0 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/fans/fans.py b/src/onlyfansapi/resources/fans/fans.py index 56b5e1e4..f2ae9c2b 100644 --- a/src/onlyfansapi/resources/fans/fans.py +++ b/src/onlyfansapi/resources/fans/fans.py @@ -146,7 +146,7 @@ def list_active( authoritative flag). Do NOT use the page's item count to detect the last page — OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on a non-final page because it filters entries server-side; no fans are skipped. To - track progress, GET /{account}/me returns data.subscribersCount (the current + track progress, GET `/{account}/me` returns data.subscribersCount (the current active-subscriber count) as a total. Args: @@ -578,7 +578,7 @@ async def list_active( authoritative flag). Do NOT use the page's item count to detect the last page — OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on a non-final page because it filters entries server-side; no fans are skipped. To - track progress, GET /{account}/me returns data.subscribersCount (the current + track progress, GET `/{account}/me` returns data.subscribersCount (the current active-subscriber count) as a total. Args: diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 261d1023..20717815 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", 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="debitis", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 685b531f..b956228d 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="ea", + post_id="a", 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="ea", + post_id="a", 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="ea", + post_id="a", 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="ea", + post_id="a", 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="ea", + post_id="a", 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="ea", + post_id="a", 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="ea", + post_id="a", 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="ea", + post_id="a", 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="ea", + post_id="a", 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="ea", + post_id="a", 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="ea", + post_id="a", 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="ea", + post_id="a", 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="ea", + post_id="a", 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="ea", + post_id="a", 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="ea", + post_id="a", 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="ea", + post_id="a", 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="ea", + post_id="a", 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="ea", + post_id="a", 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="ea", + post_id="a", 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="ea", + post_id="a", 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 7549791e..a62ccbd3 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 2ced6cb5..b5f3d61a 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 544df889..9664075f 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 2f0f7ed1..97b2e5fa 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + 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="recusandae", + story_id="quidem", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 5c3afb22..13f09d9a 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( - "natus", + "tenetur", ) 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( - "natus", + "tenetur", ) 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( - "natus", + "tenetur", ) 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( - "natus", + "tenetur", ) 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( - "natus", + "tenetur", ) 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( - "natus", + "tenetur", ) 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 0b23851d..76223af4 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="cum", + auth_id="et", auth_type="mobile_app", - cookies="minus", + cookies="vitae", custom_proxy={ "host": "proxy.example.com", - "password": ",?Gg/{fJzJ`hWB", + "password": "Plzjy7t_<~k*", "port": 8080, - "username": "aut", + "username": "aspernatur", }, - email="estrella41@example.org", - force_connect=False, - name="in", - password="ifPGBdJTu9l=Vr*IV", - proxy_country="us", - user_agent="ad", - xbc="omnis", + email="peter.blanda@example.org", + force_connect=True, + name="enim", + password="+-GG2LN:k\\vj>EK", + proxy_country="gb", + user_agent="velit", + xbc="at", ) 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="cum", + auth_id="et", auth_type="mobile_app", - cookies="minus", + cookies="vitae", custom_proxy={ "host": "proxy.example.com", - "password": ",?Gg/{fJzJ`hWB", + "password": "Plzjy7t_<~k*", "port": 8080, - "username": "aut", + "username": "aspernatur", }, - email="estrella41@example.org", - force_connect=False, - name="in", - password="ifPGBdJTu9l=Vr*IV", - proxy_country="us", - user_agent="ad", - xbc="omnis", + email="peter.blanda@example.org", + force_connect=True, + name="enim", + password="+-GG2LN:k\\vj>EK", + proxy_country="gb", + user_agent="velit", + xbc="at", ) 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 9249f386..3597ede6 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 280e3de9..583d8ad4 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="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="comments", + type="all", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 89ea8180..8356f3a9 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": ["nckuruogmwnnutsfalhydjjwg"]}, + filter={"tags": ["acxuqopzgikrvrjndlkxkb"]}, limit=50, name="Instagram", offset=0, @@ -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="ex", + smart_link_id="id", ) 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="ex", + smart_link_id="id", 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="ex", + smart_link_id="id", ) 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="ex", + smart_link_id="id", ) 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="optio", + smart_link_id="quas", ) 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="optio", + smart_link_id="quas", 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="optio", + smart_link_id="quas", ) 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="optio", + smart_link_id="quas", ) 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="pariatur", + smart_link_id="nisi", ) 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="pariatur", + smart_link_id="nisi", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="pariatur", + smart_link_id="nisi", ) assert response.is_closed is True @@ -358,7 +358,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="pariatur", + smart_link_id="nisi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="placeat", + smart_link_id="soluta", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="placeat", + smart_link_id="soluta", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="placeat", + smart_link_id="soluta", ) assert response.is_closed is True @@ -411,7 +411,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="placeat", + smart_link_id="soluta", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="enim", + smart_link_id="quas", ) assert smart_link is None @@ -441,7 +441,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="enim", + smart_link_id="quas", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="enim", + smart_link_id="quas", ) assert response.is_closed is True @@ -464,7 +464,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="enim", + smart_link_id="quas", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="delectus", + smart_link_id="voluptas", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="delectus", + smart_link_id="voluptas", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="delectus", + smart_link_id="voluptas", ) assert response.is_closed is True @@ -516,7 +516,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="delectus", + smart_link_id="voluptas", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["nckuruogmwnnutsfalhydjjwg"]}, + filter={"tags": ["acxuqopzgikrvrjndlkxkb"]}, limit=50, name="Instagram", offset=0, @@ -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="ex", + smart_link_id="id", ) 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="ex", + smart_link_id="id", 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="ex", + smart_link_id="id", ) 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="ex", + smart_link_id="id", ) 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="optio", + smart_link_id="quas", ) 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="optio", + smart_link_id="quas", 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="optio", + smart_link_id="quas", ) 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="optio", + smart_link_id="quas", ) 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="pariatur", + smart_link_id="nisi", ) 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="pariatur", + smart_link_id="nisi", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="pariatur", + smart_link_id="nisi", ) assert response.is_closed is True @@ -871,7 +871,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="pariatur", + smart_link_id="nisi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="placeat", + smart_link_id="soluta", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="placeat", + smart_link_id="soluta", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="placeat", + smart_link_id="soluta", ) assert response.is_closed is True @@ -924,7 +924,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="placeat", + smart_link_id="soluta", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="enim", + smart_link_id="quas", ) assert smart_link is None @@ -954,7 +954,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="enim", + smart_link_id="quas", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="enim", + smart_link_id="quas", ) assert response.is_closed is True @@ -977,7 +977,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="enim", + smart_link_id="quas", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="delectus", + smart_link_id="voluptas", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="delectus", + smart_link_id="voluptas", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="delectus", + smart_link_id="voluptas", ) assert response.is_closed is True @@ -1029,7 +1029,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="delectus", + 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 72066ea3..553f276b 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": "frlnpmbhpvqs", - "tags": ["nqjdiqpahpkodyxgfmcgktm"], + "search": "tsx", + "tags": ["vuouhmnuxyfwqt"], }, 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": "lilsjamqhiektgwttlkhi", - "tags": ["vdboywuxmwrsrnudztpteniv"], + "search": "zraccufb", + "tags": ["bikfakajclulyccifqafwqv"], }, 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": "bufx", - "tags": ["tgbnsqwbpihqqwicopwen"], + "include_smart_links": True, + "search": "cestaxbet", + "tags": ["i"], }, 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": "wdxydrvvtebompzykb", - "tags": ["tghadkrvwwzjaxyrm"], + "include_smart_links": True, + "search": "haggbmbxmdfuunffbwdb", + "tags": ["pptmglyhfygvthjqhqxn"], }, 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": "frlnpmbhpvqs", - "tags": ["nqjdiqpahpkodyxgfmcgktm"], + "search": "tsx", + "tags": ["vuouhmnuxyfwqt"], }, 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": "lilsjamqhiektgwttlkhi", - "tags": ["vdboywuxmwrsrnudztpteniv"], + "search": "zraccufb", + "tags": ["bikfakajclulyccifqafwqv"], }, 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": "bufx", - "tags": ["tgbnsqwbpihqqwicopwen"], + "include_smart_links": True, + "search": "cestaxbet", + "tags": ["i"], }, 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": "wdxydrvvtebompzykb", - "tags": ["tghadkrvwwzjaxyrm"], + "include_smart_links": True, + "search": "haggbmbxmdfuunffbwdb", + "tags": ["pptmglyhfygvthjqhqxn"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index ca76969f..524f9b8a 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="voluptas", + tracking_link_id="neque", 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="voluptas", + tracking_link_id="neque", 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="voluptas", + tracking_link_id="neque", 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="voluptas", + tracking_link_id="neque", account="", ) @@ -196,7 +196,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="voluptas", + tracking_link_id="neque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="voluptas", + tracking_link_id="neque", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="voluptas", + tracking_link_id="neque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="voluptas", + tracking_link_id="neque", account="", ) @@ -248,7 +248,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="ipsam", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="ipsam", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="ipsam", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="ipsam", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="ipsam", + tracking_link_id="quia", account="", ) @@ -312,7 +312,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="fuga", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="fuga", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="fuga", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="fuga", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="fuga", + tracking_link_id="voluptates", account="", ) @@ -563,7 +563,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="voluptas", + tracking_link_id="neque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="voluptas", + tracking_link_id="neque", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="voluptas", + tracking_link_id="neque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="voluptas", + tracking_link_id="neque", account="", ) @@ -674,7 +674,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="voluptas", + tracking_link_id="neque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="voluptas", + tracking_link_id="neque", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="voluptas", + tracking_link_id="neque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="voluptas", + tracking_link_id="neque", account="", ) @@ -726,7 +726,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="ipsam", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="ipsam", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="ipsam", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="ipsam", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="ipsam", + tracking_link_id="quia", account="", ) @@ -790,7 +790,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="fuga", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="fuga", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="fuga", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="fuga", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="fuga", + tracking_link_id="voluptates", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 7ae67802..0e3ff575 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="vel", 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="vel", 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="vel", 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="vel", account="", ) @@ -205,7 +205,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="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="vel", account="", ) @@ -321,7 +321,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="blanditiis", + trial_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="blanditiis", + trial_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="blanditiis", + trial_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="blanditiis", + trial_link_id="ipsam", account="", limit=10, offset=0, @@ -383,7 +383,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="reprehenderit", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="reprehenderit", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="reprehenderit", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="reprehenderit", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="reprehenderit", + trial_link_id="quidem", account="", ) @@ -447,7 +447,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="saepe", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="saepe", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="saepe", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="saepe", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="saepe", + trial_link_id="eos", account="", ) @@ -583,7 +583,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="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="vel", account="", ) @@ -692,7 +692,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="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="vel", account="", ) @@ -808,7 +808,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="blanditiis", + trial_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="blanditiis", + trial_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="blanditiis", + trial_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="blanditiis", + trial_link_id="ipsam", account="", limit=10, offset=0, @@ -870,7 +870,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="reprehenderit", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="reprehenderit", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="reprehenderit", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="reprehenderit", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="reprehenderit", + trial_link_id="quidem", account="", ) @@ -934,7 +934,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="saepe", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="saepe", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="saepe", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="saepe", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="saepe", + trial_link_id="eos", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 2dadca04..e6c77ba3 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="gtyaevtnisqrzebhwcv", + name="xtztgkcrtnrshuysrlypyv", ) 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="gtyaevtnisqrzebhwcv", + name="xtztgkcrtnrshuysrlypyv", ) 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="gtyaevtnisqrzebhwcv", + name="xtztgkcrtnrshuysrlypyv", ) 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="gtyaevtnisqrzebhwcv", + name="xtztgkcrtnrshuysrlypyv", ) @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="gtyaevtnisqrzebhwcv", + name="xtztgkcrtnrshuysrlypyv", ) 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="gtyaevtnisqrzebhwcv", + name="xtztgkcrtnrshuysrlypyv", ) 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="gtyaevtnisqrzebhwcv", + name="xtztgkcrtnrshuysrlypyv", ) 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="gtyaevtnisqrzebhwcv", + name="xtztgkcrtnrshuysrlypyv", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 3d4e82a74cd17580af41d4692c5eb252c4901be4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2026 22:12:33 +0000 Subject: [PATCH 199/249] 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 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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 86a62496..b2ca7f4b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-445eb492f26fedc978dca7dd3d47bec133960dc431aed4279e2a3587c7250649.yml -openapi_spec_hash: 8216c1487eb858df08449e7b45db8de0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-472164393adecbcbd3440db6a85eae0183969929872aa88c4f04fe98a0b32211.yml +openapi_spec_hash: ad9388a6b39b592c09d882570d47d170 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index c1c7f058..0123235e 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", 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="hic", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 20717815..e9eceb62 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="debitis", + list_id="ipsam", 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="debitis", + list_id="ipsam", 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="debitis", + list_id="ipsam", 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="debitis", + list_id="ipsam", 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="debitis", + list_id="ipsam", 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="debitis", + list_id="ipsam", 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="debitis", + list_id="ipsam", 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="debitis", + list_id="ipsam", 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="debitis", + list_id="ipsam", 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="debitis", + list_id="ipsam", 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="debitis", + list_id="ipsam", 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="debitis", + list_id="ipsam", 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="debitis", + list_id="ipsam", 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="debitis", + list_id="ipsam", 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="debitis", + list_id="ipsam", 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="debitis", + list_id="ipsam", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index b956228d..0099633f 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="a", + post_id="nulla", 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="a", + post_id="nulla", 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="a", + post_id="nulla", 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="a", + post_id="nulla", 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="a", + post_id="nulla", 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="a", + post_id="nulla", 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="a", + post_id="nulla", 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="a", + post_id="nulla", 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="a", + post_id="nulla", 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="a", + post_id="nulla", 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="a", + post_id="nulla", 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="a", + post_id="nulla", 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="a", + post_id="nulla", 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="a", + post_id="nulla", 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="a", + post_id="nulla", 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="a", + post_id="nulla", 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="a", + post_id="nulla", 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="a", + post_id="nulla", 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="a", + post_id="nulla", 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="a", + post_id="nulla", 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 a62ccbd3..7549791e 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 b5f3d61a..9c80483e 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 97b2e5fa..b593ca99 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="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="quidem", + 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="quidem", + 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="quidem", + 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="quidem", + 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="quidem", + 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="quidem", + 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="quidem", + 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="quidem", + 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="quidem", + 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="quidem", + 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="quidem", + 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="quidem", + 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="quidem", + 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="quidem", + 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="quidem", + story_id="distinctio", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 13f09d9a..61da8092 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( - "tenetur", + "vel", ) 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( - "tenetur", + "vel", ) 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( - "tenetur", + "vel", ) 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( - "tenetur", + "vel", ) 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( - "tenetur", + "vel", ) 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( - "tenetur", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 76223af4..c59a4364 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_type="mobile_app", - cookies="vitae", + auth_id="repellat", + auth_type="raw_data", + cookies="amet", custom_proxy={ "host": "proxy.example.com", - "password": "Plzjy7t_<~k*", + "password": "o/T@RC/0,9", "port": 8080, - "username": "aspernatur", + "username": "sed", }, - email="peter.blanda@example.org", + email="erling.ryan@example.net", force_connect=True, - name="enim", - password="+-GG2LN:k\\vj>EK", + name="sit", + password="V(76ji9QN'", proxy_country="gb", - user_agent="velit", - xbc="at", + user_agent="nesciunt", + xbc="dolorem", ) 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_type="mobile_app", - cookies="vitae", + auth_id="repellat", + auth_type="raw_data", + cookies="amet", custom_proxy={ "host": "proxy.example.com", - "password": "Plzjy7t_<~k*", + "password": "o/T@RC/0,9", "port": 8080, - "username": "aspernatur", + "username": "sed", }, - email="peter.blanda@example.org", + email="erling.ryan@example.net", force_connect=True, - name="enim", - password="+-GG2LN:k\\vj>EK", + name="sit", + password="V(76ji9QN'", proxy_country="gb", - user_agent="velit", - xbc="at", + user_agent="nesciunt", + xbc="dolorem", ) 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 3597ede6..0d035d3b 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="gb", ) 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="gb", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 8356f3a9..fed66abe 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": ["acxuqopzgikrvrjndlkxkb"]}, + filter={"tags": ["xzxitbflzrfpmscjqi"]}, limit=50, name="Instagram", offset=0, @@ -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="id", + smart_link_id="repudiandae", ) 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="id", + smart_link_id="repudiandae", 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="id", + smart_link_id="repudiandae", ) 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="id", + smart_link_id="repudiandae", ) 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="quas", + smart_link_id="nihil", ) 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="quas", + smart_link_id="nihil", 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="quas", + smart_link_id="nihil", ) 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="quas", + smart_link_id="nihil", ) 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="nisi", + smart_link_id="reprehenderit", ) 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="nisi", + smart_link_id="reprehenderit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="reprehenderit", ) assert response.is_closed is True @@ -358,7 +358,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="reprehenderit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="soluta", + smart_link_id="animi", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="soluta", + smart_link_id="animi", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="soluta", + smart_link_id="animi", ) assert response.is_closed is True @@ -411,7 +411,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="soluta", + smart_link_id="animi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="quas", + smart_link_id="quia", ) assert smart_link is None @@ -441,7 +441,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="quas", + smart_link_id="quia", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="quas", + smart_link_id="quia", ) assert response.is_closed is True @@ -464,7 +464,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="quas", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="temporibus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="temporibus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="temporibus", ) assert response.is_closed is True @@ -516,7 +516,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="temporibus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["acxuqopzgikrvrjndlkxkb"]}, + filter={"tags": ["xzxitbflzrfpmscjqi"]}, limit=50, name="Instagram", offset=0, @@ -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="id", + smart_link_id="repudiandae", ) 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="id", + smart_link_id="repudiandae", 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="id", + smart_link_id="repudiandae", ) 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="id", + smart_link_id="repudiandae", ) 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="quas", + smart_link_id="nihil", ) 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="quas", + smart_link_id="nihil", 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="quas", + smart_link_id="nihil", ) 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="quas", + smart_link_id="nihil", ) 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="nisi", + smart_link_id="reprehenderit", ) 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="nisi", + smart_link_id="reprehenderit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="reprehenderit", ) assert response.is_closed is True @@ -871,7 +871,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="reprehenderit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="soluta", + smart_link_id="animi", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="soluta", + smart_link_id="animi", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="soluta", + smart_link_id="animi", ) assert response.is_closed is True @@ -924,7 +924,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="soluta", + smart_link_id="animi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="quas", + smart_link_id="quia", ) assert smart_link is None @@ -954,7 +954,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="quas", + smart_link_id="quia", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="quas", + smart_link_id="quia", ) assert response.is_closed is True @@ -977,7 +977,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="quas", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="temporibus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="temporibus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="temporibus", ) assert response.is_closed is True @@ -1029,7 +1029,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="temporibus", ) 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 553f276b..40b638fe 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": "tsx", - "tags": ["vuouhmnuxyfwqt"], + "search": "qbdzft", + "tags": ["qcvl"], }, 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": "zraccufb", - "tags": ["bikfakajclulyccifqafwqv"], + "search": "jgxwjrjkspngkvukookjfqczj", + "tags": ["c"], }, 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": "cestaxbet", - "tags": ["i"], + "include_smart_links": False, + "search": "zspopaizfjkv", + "tags": ["oxymbyloehygfetfbdhg"], }, 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": "haggbmbxmdfuunffbwdb", - "tags": ["pptmglyhfygvthjqhqxn"], + "include_smart_links": False, + "search": "ploabynwqytndypwm", + "tags": ["vksmqontoemkx"], }, 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": "tsx", - "tags": ["vuouhmnuxyfwqt"], + "search": "qbdzft", + "tags": ["qcvl"], }, 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": "zraccufb", - "tags": ["bikfakajclulyccifqafwqv"], + "search": "jgxwjrjkspngkvukookjfqczj", + "tags": ["c"], }, 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": "cestaxbet", - "tags": ["i"], + "include_smart_links": False, + "search": "zspopaizfjkv", + "tags": ["oxymbyloehygfetfbdhg"], }, 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": "haggbmbxmdfuunffbwdb", - "tags": ["pptmglyhfygvthjqhqxn"], + "include_smart_links": False, + "search": "ploabynwqytndypwm", + "tags": ["vksmqontoemkx"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 524f9b8a..cc44895d 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="neque", + tracking_link_id="incidunt", 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="neque", + tracking_link_id="incidunt", 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="neque", + tracking_link_id="incidunt", 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="neque", + tracking_link_id="incidunt", account="", ) @@ -196,7 +196,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="neque", + tracking_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="neque", + tracking_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="neque", + tracking_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="neque", + tracking_link_id="incidunt", account="", ) @@ -248,7 +248,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="error", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="error", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="error", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="error", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="error", account="", ) @@ -312,7 +312,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="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="est", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="est", account="", ) @@ -563,7 +563,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="neque", + tracking_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="neque", + tracking_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="neque", + tracking_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="neque", + tracking_link_id="incidunt", account="", ) @@ -674,7 +674,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="neque", + tracking_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="neque", + tracking_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="neque", + tracking_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="neque", + tracking_link_id="incidunt", account="", ) @@ -726,7 +726,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="error", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="error", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="error", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="error", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="error", account="", ) @@ -790,7 +790,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="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="est", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="est", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 0e3ff575..aaf7372c 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="vel", + trial_link_id="consequuntur", 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="vel", + trial_link_id="consequuntur", 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="vel", + trial_link_id="consequuntur", 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="vel", + trial_link_id="consequuntur", account="", ) @@ -205,7 +205,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="vel", + trial_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="vel", + trial_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="vel", + trial_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="vel", + trial_link_id="consequuntur", account="", ) @@ -321,7 +321,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="ipsam", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="ipsam", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="ipsam", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="ipsam", + trial_link_id="consectetur", account="", limit=10, offset=0, @@ -383,7 +383,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="quidem", + trial_link_id="repellendus", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="quidem", + trial_link_id="repellendus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="quidem", + trial_link_id="repellendus", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="quidem", + trial_link_id="repellendus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="quidem", + trial_link_id="repellendus", account="", ) @@ -447,7 +447,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="unde", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="unde", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="unde", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="unde", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="unde", account="", ) @@ -583,7 +583,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="vel", + trial_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="vel", + trial_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="vel", + trial_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="vel", + trial_link_id="consequuntur", account="", ) @@ -692,7 +692,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="vel", + trial_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="vel", + trial_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="vel", + trial_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="vel", + trial_link_id="consequuntur", account="", ) @@ -808,7 +808,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="ipsam", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="ipsam", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="ipsam", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="ipsam", + trial_link_id="consectetur", account="", limit=10, offset=0, @@ -870,7 +870,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="quidem", + trial_link_id="repellendus", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="quidem", + trial_link_id="repellendus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="quidem", + trial_link_id="repellendus", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="quidem", + trial_link_id="repellendus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="quidem", + trial_link_id="repellendus", account="", ) @@ -934,7 +934,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="unde", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="unde", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="unde", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="unde", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="unde", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index e6c77ba3..bdc6e797 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="xtztgkcrtnrshuysrlypyv", + name="bsykyiuieejhnohobnfbmpwcw", ) 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="xtztgkcrtnrshuysrlypyv", + name="bsykyiuieejhnohobnfbmpwcw", ) 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="xtztgkcrtnrshuysrlypyv", + name="bsykyiuieejhnohobnfbmpwcw", ) 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="xtztgkcrtnrshuysrlypyv", + name="bsykyiuieejhnohobnfbmpwcw", ) @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="xtztgkcrtnrshuysrlypyv", + name="bsykyiuieejhnohobnfbmpwcw", ) 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="xtztgkcrtnrshuysrlypyv", + name="bsykyiuieejhnohobnfbmpwcw", ) 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="xtztgkcrtnrshuysrlypyv", + name="bsykyiuieejhnohobnfbmpwcw", ) 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="xtztgkcrtnrshuysrlypyv", + name="bsykyiuieejhnohobnfbmpwcw", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 9b58972a7e11f356300d950591b739f3db725b0c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 24 Jul 2026 16:13:58 +0000 Subject: [PATCH 200/249] 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 | 48 ++++----- 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 | 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, 272 insertions(+), 272 deletions(-) diff --git a/.stats.yml b/.stats.yml index b2ca7f4b..2d1cda3a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-472164393adecbcbd3440db6a85eae0183969929872aa88c4f04fe98a0b32211.yml -openapi_spec_hash: ad9388a6b39b592c09d882570d47d170 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8213256f6e0cc4f6df8d5b934e3da25a285184c159e4efa01820f0eda5624cf7.yml +openapi_spec_hash: 4937641fede443de6a09b5657448b2cb config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 0123235e..3ec2b4d5 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="hic", + 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="hic", + 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="hic", + 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="hic", + 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="hic", + 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="hic", + 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="hic", + 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="hic", + 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="hic", + 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="hic", + 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 e9eceb62..440e3903 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="ipsam", + 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="ipsam", + 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="ipsam", + 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="ipsam", + 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="ipsam", + 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="ipsam", + 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="ipsam", + 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="ipsam", + 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="ipsam", + 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="ipsam", + 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="ipsam", + 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="ipsam", + 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="ipsam", + 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="ipsam", + 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="ipsam", + 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="ipsam", + list_id="voluptas", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 0099633f..58959cc7 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + 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="nulla", + post_id="aspernatur", 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 7549791e..a62ccbd3 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 9c80483e..b5f3d61a 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 b593ca99..75c8be26 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", 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="sit", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 61da8092..3fd0e53a 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( - "vel", + "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( - "vel", + "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( - "vel", + "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( - "vel", + "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( - "vel", + "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( - "vel", + "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 c59a4364..483f0eb5 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="repellat", - auth_type="raw_data", - cookies="amet", + auth_id="nisi", + auth_type="email_password", + cookies="consequuntur", custom_proxy={ "host": "proxy.example.com", - "password": "o/T@RC/0,9", + "password": 'St>PW!evI5"|s|9', "port": 8080, - "username": "sed", + "username": "quia", }, - email="erling.ryan@example.net", - force_connect=True, - name="sit", - password="V(76ji9QN'", - proxy_country="gb", - user_agent="nesciunt", - xbc="dolorem", + email="ohowell@example.net", + force_connect=False, + name="voluptatem", + password="|,HdT3Q)OWX?5lmI", + proxy_country="us", + user_agent="est", + xbc="placeat", ) 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="repellat", - auth_type="raw_data", - cookies="amet", + auth_id="nisi", + auth_type="email_password", + cookies="consequuntur", custom_proxy={ "host": "proxy.example.com", - "password": "o/T@RC/0,9", + "password": 'St>PW!evI5"|s|9', "port": 8080, - "username": "sed", + "username": "quia", }, - email="erling.ryan@example.net", - force_connect=True, - name="sit", - password="V(76ji9QN'", - proxy_country="gb", - user_agent="nesciunt", - xbc="dolorem", + email="ohowell@example.net", + force_connect=False, + name="voluptatem", + password="|,HdT3Q)OWX?5lmI", + proxy_country="us", + user_agent="est", + xbc="placeat", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 583d8ad4..aaff3bff 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="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="all", + 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 bd4f6161..65694e23 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 fed66abe..2a58660b 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": ["xzxitbflzrfpmscjqi"]}, + filter={"tags": ["chnobkhvsziouneyidxdiw"]}, limit=50, name="Instagram", offset=0, @@ -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="repudiandae", + smart_link_id="commodi", ) 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="repudiandae", + smart_link_id="commodi", 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="repudiandae", + smart_link_id="commodi", ) 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="repudiandae", + smart_link_id="commodi", ) 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="nihil", + smart_link_id="id", ) 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="nihil", + smart_link_id="id", 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="nihil", + smart_link_id="id", ) 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="nihil", + smart_link_id="id", ) 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="reprehenderit", + smart_link_id="laudantium", ) 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="reprehenderit", + smart_link_id="laudantium", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="reprehenderit", + smart_link_id="laudantium", ) assert response.is_closed is True @@ -358,7 +358,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="reprehenderit", + smart_link_id="laudantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="animi", + smart_link_id="id", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="animi", + smart_link_id="id", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="animi", + smart_link_id="id", ) assert response.is_closed is True @@ -411,7 +411,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="animi", + smart_link_id="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="quia", + smart_link_id="inventore", ) assert smart_link is None @@ -441,7 +441,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="quia", + smart_link_id="inventore", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="quia", + smart_link_id="inventore", ) assert response.is_closed is True @@ -464,7 +464,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="quia", + smart_link_id="inventore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="temporibus", + smart_link_id="accusantium", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="temporibus", + smart_link_id="accusantium", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="temporibus", + smart_link_id="accusantium", ) assert response.is_closed is True @@ -516,7 +516,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="temporibus", + smart_link_id="accusantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["xzxitbflzrfpmscjqi"]}, + filter={"tags": ["chnobkhvsziouneyidxdiw"]}, limit=50, name="Instagram", offset=0, @@ -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="repudiandae", + smart_link_id="commodi", ) 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="repudiandae", + smart_link_id="commodi", 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="repudiandae", + smart_link_id="commodi", ) 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="repudiandae", + smart_link_id="commodi", ) 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="nihil", + smart_link_id="id", ) 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="nihil", + smart_link_id="id", 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="nihil", + smart_link_id="id", ) 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="nihil", + smart_link_id="id", ) 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="reprehenderit", + smart_link_id="laudantium", ) 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="reprehenderit", + smart_link_id="laudantium", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="reprehenderit", + smart_link_id="laudantium", ) assert response.is_closed is True @@ -871,7 +871,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="reprehenderit", + smart_link_id="laudantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="animi", + smart_link_id="id", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="animi", + smart_link_id="id", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="animi", + smart_link_id="id", ) assert response.is_closed is True @@ -924,7 +924,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="animi", + smart_link_id="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="quia", + smart_link_id="inventore", ) assert smart_link is None @@ -954,7 +954,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="quia", + smart_link_id="inventore", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="quia", + smart_link_id="inventore", ) assert response.is_closed is True @@ -977,7 +977,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="quia", + smart_link_id="inventore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="temporibus", + smart_link_id="accusantium", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="temporibus", + smart_link_id="accusantium", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="temporibus", + smart_link_id="accusantium", ) assert response.is_closed is True @@ -1029,7 +1029,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="temporibus", + smart_link_id="accusantium", ) 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 40b638fe..af334908 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": "qbdzft", - "tags": ["qcvl"], + "search": "snssbfzaagtgz", + "tags": ["vkkojbhdqudkhpeamv"], }, 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": "jgxwjrjkspngkvukookjfqczj", - "tags": ["c"], + "search": "voups", + "tags": ["qgpatmmtuhamsizrquixvhb"], }, 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": "zspopaizfjkv", - "tags": ["oxymbyloehygfetfbdhg"], + "include_smart_links": True, + "search": "m", + "tags": ["l"], }, 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": "ploabynwqytndypwm", - "tags": ["vksmqontoemkx"], + "include_smart_links": True, + "search": "irmfvvrdowcjasmqoca", + "tags": ["bwucywr"], }, 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": "qbdzft", - "tags": ["qcvl"], + "search": "snssbfzaagtgz", + "tags": ["vkkojbhdqudkhpeamv"], }, 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": "jgxwjrjkspngkvukookjfqczj", - "tags": ["c"], + "search": "voups", + "tags": ["qgpatmmtuhamsizrquixvhb"], }, 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": "zspopaizfjkv", - "tags": ["oxymbyloehygfetfbdhg"], + "include_smart_links": True, + "search": "m", + "tags": ["l"], }, 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": "ploabynwqytndypwm", - "tags": ["vksmqontoemkx"], + "include_smart_links": True, + "search": "irmfvvrdowcjasmqoca", + "tags": ["bwucywr"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index cc44895d..7bd27a57 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="incidunt", + tracking_link_id="consequatur", 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="incidunt", + tracking_link_id="consequatur", 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="incidunt", + tracking_link_id="consequatur", 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="incidunt", + tracking_link_id="consequatur", account="", ) @@ -196,7 +196,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="incidunt", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="incidunt", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="incidunt", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="incidunt", + tracking_link_id="consequatur", account="", ) @@ -248,7 +248,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="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="reprehenderit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="reprehenderit", account="", ) @@ -312,7 +312,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="est", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="est", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="est", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="est", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="est", + tracking_link_id="vel", account="", ) @@ -563,7 +563,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="incidunt", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="incidunt", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="incidunt", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="incidunt", + tracking_link_id="consequatur", account="", ) @@ -674,7 +674,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="incidunt", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="incidunt", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="incidunt", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="incidunt", + tracking_link_id="consequatur", account="", ) @@ -726,7 +726,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="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="reprehenderit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="reprehenderit", account="", ) @@ -790,7 +790,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="est", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="est", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="est", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="est", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="est", + tracking_link_id="vel", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index aaf7372c..07a04cb0 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="consequuntur", + 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="consequuntur", + 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="consequuntur", + 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="consequuntur", + trial_link_id="et", account="", ) @@ -205,7 +205,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="consequuntur", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="consequuntur", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="consequuntur", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="consequuntur", + trial_link_id="et", account="", ) @@ -321,7 +321,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="consectetur", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="consectetur", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="consectetur", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="consectetur", + trial_link_id="modi", account="", limit=10, offset=0, @@ -383,7 +383,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="repellendus", + trial_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="repellendus", + trial_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="repellendus", + trial_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="repellendus", + trial_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="repellendus", + trial_link_id="quaerat", account="", ) @@ -447,7 +447,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="unde", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="unde", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="unde", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="unde", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="unde", + trial_link_id="eum", account="", ) @@ -583,7 +583,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="consequuntur", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="consequuntur", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="consequuntur", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="consequuntur", + trial_link_id="et", account="", ) @@ -692,7 +692,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="consequuntur", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="consequuntur", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="consequuntur", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="consequuntur", + trial_link_id="et", account="", ) @@ -808,7 +808,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="consectetur", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="consectetur", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="consectetur", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="consectetur", + trial_link_id="modi", account="", limit=10, offset=0, @@ -870,7 +870,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="repellendus", + trial_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="repellendus", + trial_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="repellendus", + trial_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="repellendus", + trial_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="repellendus", + trial_link_id="quaerat", account="", ) @@ -934,7 +934,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="unde", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="unde", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="unde", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="unde", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="unde", + trial_link_id="eum", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index bdc6e797..036d3b79 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="bsykyiuieejhnohobnfbmpwcw", + name="stz", ) 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="bsykyiuieejhnohobnfbmpwcw", + name="stz", ) 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="bsykyiuieejhnohobnfbmpwcw", + name="stz", ) 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="bsykyiuieejhnohobnfbmpwcw", + name="stz", ) @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="bsykyiuieejhnohobnfbmpwcw", + name="stz", ) 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="bsykyiuieejhnohobnfbmpwcw", + name="stz", ) 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="bsykyiuieejhnohobnfbmpwcw", + name="stz", ) 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="bsykyiuieejhnohobnfbmpwcw", + name="stz", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 60d3eac8991bd7cec36ecb3f99f7984e6d333212 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 24 Jul 2026 17:12:35 +0000 Subject: [PATCH 201/249] 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_profiles.py | 4 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 32 +++--- tests/api_resources/test_tracking_links.py | 76 ++++++------- tests/api_resources/test_trial_links.py | 88 +++++++-------- tests/api_resources/test_user_lists.py | 16 +-- 19 files changed, 274 insertions(+), 274 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2d1cda3a..3eb96a8c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8213256f6e0cc4f6df8d5b934e3da25a285184c159e4efa01820f0eda5624cf7.yml -openapi_spec_hash: 4937641fede443de6a09b5657448b2cb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d42187bbe311c249da9d900335a3e1cab032e3c291c93083200e7cde0232ea27.yml +openapi_spec_hash: c5fb30fd4724d69ba4b4bd519497bf35 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 3ec2b4d5..15f6dfce 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="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="itaque", + 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="itaque", + 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="itaque", + 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="itaque", + 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="itaque", + 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="itaque", + 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="itaque", + 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="itaque", + 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="itaque", + 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 440e3903..05029cf5 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", 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="non", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 58959cc7..f66b90ab 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="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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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="aspernatur", + 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 a62ccbd3..aa735c97 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index b5f3d61a..2ced6cb5 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 9664075f..544df889 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 75c8be26..41cb7ae4 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="sit", + path_story_id="ipsam", 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="sit", + path_story_id="ipsam", 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="sit", + path_story_id="ipsam", 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="sit", + path_story_id="ipsam", 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="sit", + story_id="ipsam", 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="sit", + story_id="ipsam", 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="sit", + story_id="ipsam", 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="sit", + story_id="ipsam", 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="sit", + path_story_id="ipsam", 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="sit", + path_story_id="ipsam", 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="sit", + path_story_id="ipsam", 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="sit", + path_story_id="ipsam", 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="sit", + story_id="ipsam", 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="sit", + story_id="ipsam", 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="sit", + story_id="ipsam", 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="sit", + story_id="ipsam", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 3fd0e53a..5c7af9d2 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", + "quos", ) 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", + "quos", ) 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", + "quos", ) 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", + "quos", ) 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", + "quos", ) 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", + "quos", ) 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 483f0eb5..3d099bee 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_type="email_password", - cookies="consequuntur", + auth_id="consequatur", + auth_type="mobile_app", + cookies="sint", custom_proxy={ "host": "proxy.example.com", - "password": 'St>PW!evI5"|s|9', + "password": "EZ5;@rd6ZFj/CG\\x:Y%x", "port": 8080, - "username": "quia", + "username": "qui", }, - email="ohowell@example.net", + email="qschumm@example.com", force_connect=False, - name="voluptatem", - password="|,HdT3Q)OWX?5lmI", - proxy_country="us", - user_agent="est", - xbc="placeat", + name="ratione", + password="rc::?<$_K=j", + proxy_country="gb", + user_agent="nobis", + xbc="temporibus", ) 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="nisi", - auth_type="email_password", - cookies="consequuntur", + auth_id="consequatur", + auth_type="mobile_app", + cookies="sint", custom_proxy={ "host": "proxy.example.com", - "password": 'St>PW!evI5"|s|9', + "password": "EZ5;@rd6ZFj/CG\\x:Y%x", "port": 8080, - "username": "quia", + "username": "qui", }, - email="ohowell@example.net", + email="qschumm@example.com", force_connect=False, - name="voluptatem", - password="|,HdT3Q)OWX?5lmI", - proxy_country="us", - user_agent="est", - xbc="placeat", + name="ratione", + password="rc::?<$_K=j", + proxy_country="gb", + user_agent="nobis", + xbc="temporibus", ) 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 0d035d3b..9249f386 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="gb", + 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="gb", + 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 aaff3bff..280e3de9 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_profiles.py b/tests/api_resources/test_profiles.py index 65694e23..bd4f6161 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 2a58660b..59b01fc3 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": ["chnobkhvsziouneyidxdiw"]}, + filter={"tags": ["hzuetrlokqwojagyfemx"]}, limit=50, name="Instagram", offset=0, @@ -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="commodi", + smart_link_id="iusto", ) 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="commodi", + smart_link_id="iusto", 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="commodi", + smart_link_id="iusto", ) 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="commodi", + smart_link_id="iusto", ) 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="id", + smart_link_id="quia", ) 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="id", + smart_link_id="quia", 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="id", + smart_link_id="quia", ) 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="id", + smart_link_id="quia", ) 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="laudantium", + smart_link_id="aperiam", ) 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="laudantium", + smart_link_id="aperiam", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="laudantium", + smart_link_id="aperiam", ) assert response.is_closed is True @@ -358,7 +358,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="laudantium", + smart_link_id="aperiam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="id", + smart_link_id="quaerat", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="id", + smart_link_id="quaerat", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="id", + smart_link_id="quaerat", ) assert response.is_closed is True @@ -411,7 +411,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="id", + smart_link_id="quaerat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="inventore", + smart_link_id="esse", ) assert smart_link is None @@ -441,7 +441,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="inventore", + smart_link_id="esse", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="inventore", + smart_link_id="esse", ) assert response.is_closed is True @@ -464,7 +464,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="inventore", + smart_link_id="esse", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="accusantium", + smart_link_id="minima", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="accusantium", + smart_link_id="minima", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="accusantium", + smart_link_id="minima", ) assert response.is_closed is True @@ -516,7 +516,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="accusantium", + smart_link_id="minima", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["chnobkhvsziouneyidxdiw"]}, + filter={"tags": ["hzuetrlokqwojagyfemx"]}, limit=50, name="Instagram", offset=0, @@ -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="commodi", + smart_link_id="iusto", ) 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="commodi", + smart_link_id="iusto", 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="commodi", + smart_link_id="iusto", ) 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="commodi", + smart_link_id="iusto", ) 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="id", + smart_link_id="quia", ) 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="id", + smart_link_id="quia", 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="id", + smart_link_id="quia", ) 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="id", + smart_link_id="quia", ) 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="laudantium", + smart_link_id="aperiam", ) 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="laudantium", + smart_link_id="aperiam", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="laudantium", + smart_link_id="aperiam", ) assert response.is_closed is True @@ -871,7 +871,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="laudantium", + smart_link_id="aperiam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="id", + smart_link_id="quaerat", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="id", + smart_link_id="quaerat", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="id", + smart_link_id="quaerat", ) assert response.is_closed is True @@ -924,7 +924,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="id", + smart_link_id="quaerat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="inventore", + smart_link_id="esse", ) assert smart_link is None @@ -954,7 +954,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="inventore", + smart_link_id="esse", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="inventore", + smart_link_id="esse", ) assert response.is_closed is True @@ -977,7 +977,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="inventore", + smart_link_id="esse", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="accusantium", + smart_link_id="minima", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="accusantium", + smart_link_id="minima", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="accusantium", + smart_link_id="minima", ) assert response.is_closed is True @@ -1029,7 +1029,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="accusantium", + smart_link_id="minima", ) 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 af334908..cbb37c3c 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": "snssbfzaagtgz", - "tags": ["vkkojbhdqudkhpeamv"], + "search": "husyy", + "tags": ["jkdflckzcqjjzsy"], }, 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": "voups", - "tags": ["qgpatmmtuhamsizrquixvhb"], + "search": "pg", + "tags": ["jhkulxzqcvlpvoxmkh"], }, 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": "m", - "tags": ["l"], + "search": "anuukenttclsdhmcpxirxjse", + "tags": ["khmsusstabzmjxnneuwripst"], }, 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": "irmfvvrdowcjasmqoca", - "tags": ["bwucywr"], + "search": "gpfei", + "tags": ["uxmbzlkxyefvumjrierbiwm"], }, 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": "snssbfzaagtgz", - "tags": ["vkkojbhdqudkhpeamv"], + "search": "husyy", + "tags": ["jkdflckzcqjjzsy"], }, 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": "voups", - "tags": ["qgpatmmtuhamsizrquixvhb"], + "search": "pg", + "tags": ["jhkulxzqcvlpvoxmkh"], }, 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": "m", - "tags": ["l"], + "search": "anuukenttclsdhmcpxirxjse", + "tags": ["khmsusstabzmjxnneuwripst"], }, 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": "irmfvvrdowcjasmqoca", - "tags": ["bwucywr"], + "search": "gpfei", + "tags": ["uxmbzlkxyefvumjrierbiwm"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 7bd27a57..af28f61c 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="consequatur", + tracking_link_id="deleniti", 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="consequatur", + tracking_link_id="deleniti", 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="consequatur", + tracking_link_id="deleniti", 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="consequatur", + tracking_link_id="deleniti", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="consequatur", + tracking_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="consequatur", + tracking_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="consequatur", + tracking_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="consequatur", + tracking_link_id="deleniti", account="", ) @@ -248,7 +248,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="fugit", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="fugit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="fugit", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="fugit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="fugit", account="", ) @@ -312,7 +312,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="vel", + tracking_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="vel", + tracking_link_id="id", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="vel", + tracking_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="vel", + tracking_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="vel", + tracking_link_id="id", account="", ) @@ -563,7 +563,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="consequatur", + tracking_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="consequatur", + tracking_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="consequatur", + tracking_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="consequatur", + tracking_link_id="deleniti", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="consequatur", + tracking_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="consequatur", + tracking_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="consequatur", + tracking_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="consequatur", + tracking_link_id="deleniti", account="", ) @@ -726,7 +726,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="fugit", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="fugit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="fugit", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="fugit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="fugit", account="", ) @@ -790,7 +790,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="vel", + tracking_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="vel", + tracking_link_id="id", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="vel", + tracking_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="vel", + tracking_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="vel", + tracking_link_id="id", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 07a04cb0..c68b418d 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="molestias", 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="molestias", 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="molestias", 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="molestias", account="", ) @@ -205,7 +205,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="molestias", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="molestias", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="molestias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="molestias", account="", ) @@ -321,7 +321,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="modi", + trial_link_id="animi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="modi", + trial_link_id="animi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="modi", + trial_link_id="animi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="modi", + trial_link_id="animi", account="", limit=10, offset=0, @@ -383,7 +383,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="quaerat", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="quaerat", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="quaerat", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="quaerat", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="quaerat", + trial_link_id="rerum", account="", ) @@ -447,7 +447,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="eum", + trial_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="eum", + trial_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="eum", + trial_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="eum", + trial_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="eum", + trial_link_id="consequuntur", account="", ) @@ -583,7 +583,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="molestias", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="molestias", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="molestias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="molestias", account="", ) @@ -692,7 +692,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="molestias", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="molestias", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="molestias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="molestias", account="", ) @@ -808,7 +808,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="modi", + trial_link_id="animi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="modi", + trial_link_id="animi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="modi", + trial_link_id="animi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="modi", + trial_link_id="animi", account="", limit=10, offset=0, @@ -870,7 +870,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="quaerat", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="quaerat", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="quaerat", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="quaerat", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="quaerat", + trial_link_id="rerum", account="", ) @@ -934,7 +934,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="eum", + trial_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="eum", + trial_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="eum", + trial_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="eum", + trial_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="eum", + trial_link_id="consequuntur", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 036d3b79..0e3642ed 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="stz", + name="igbiekqpqjcrwhkrleaozvktd", ) 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="stz", + name="igbiekqpqjcrwhkrleaozvktd", ) 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="stz", + name="igbiekqpqjcrwhkrleaozvktd", ) 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="stz", + name="igbiekqpqjcrwhkrleaozvktd", ) @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="stz", + name="igbiekqpqjcrwhkrleaozvktd", ) 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="stz", + name="igbiekqpqjcrwhkrleaozvktd", ) 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="stz", + name="igbiekqpqjcrwhkrleaozvktd", ) 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="stz", + name="igbiekqpqjcrwhkrleaozvktd", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 5a1cd93679d57d6f7931de339b21bfaaa5fd144e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 27 Jul 2026 07:12:33 +0000 Subject: [PATCH 202/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/chats/messages.py | 8 +- src/onlyfansapi/resources/mass_messaging.py | 16 +-- .../types/chats/message_send_params.py | 4 +- .../types/mass_messaging_send_params.py | 4 +- .../types/mass_messaging_update_params.py | 4 +- tests/api_resources/chats/test_messages.py | 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 | 40 +++---- tests/api_resources/test_mass_messaging.py | 8 +- tests/api_resources/test_notifications.py | 4 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 76 ++++++------- tests/api_resources/test_trial_links.py | 88 +++++++-------- tests/api_resources/test_user_lists.py | 16 +-- 21 files changed, 276 insertions(+), 276 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3eb96a8c..8d1d2029 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d42187bbe311c249da9d900335a3e1cab032e3c291c93083200e7cde0232ea27.yml -openapi_spec_hash: c5fb30fd4724d69ba4b4bd519497bf35 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2589d34f2558e14affdae826ce1c96c76ebf0659c44350e0c9f23a8b74758a68.yml +openapi_spec_hash: e5fc1e707177a3938b504eb815ebc379 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/chats/messages.py b/src/onlyfansapi/resources/chats/messages.py index f67a47ff..8cfd0367 100644 --- a/src/onlyfansapi/resources/chats/messages.py +++ b/src/onlyfansapi/resources/chats/messages.py @@ -361,7 +361,7 @@ def send( locked_text: bool | Omit = omit, media_files: Iterable[object] | Omit = omit, previews: Iterable[object] | Omit = omit, - price: int | Omit = omit, + price: float | Omit = omit, reply_to_message_id: int | Omit = omit, rf_guest: str | Omit = omit, rf_partner: str | Omit = omit, @@ -395,7 +395,7 @@ def send( referencing uploaded files in `mediaFiles`. Will be shown if `price` is provided. - price: Price for paid content (0 or between 3-200). In case this is not zero, + price: Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required reply_to_message_id: Mark this message as a reply to another (can be either your own, or the @@ -863,7 +863,7 @@ async def send( locked_text: bool | Omit = omit, media_files: Iterable[object] | Omit = omit, previews: Iterable[object] | Omit = omit, - price: int | Omit = omit, + price: float | Omit = omit, reply_to_message_id: int | Omit = omit, rf_guest: str | Omit = omit, rf_partner: str | Omit = omit, @@ -897,7 +897,7 @@ async def send( referencing uploaded files in `mediaFiles`. Will be shown if `price` is provided. - price: Price for paid content (0 or between 3-200). In case this is not zero, + price: Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required reply_to_message_id: Mark this message as a reply to another (can be either your own, or the diff --git a/src/onlyfansapi/resources/mass_messaging.py b/src/onlyfansapi/resources/mass_messaging.py index f605feb4..796b6ea1 100644 --- a/src/onlyfansapi/resources/mass_messaging.py +++ b/src/onlyfansapi/resources/mass_messaging.py @@ -96,7 +96,7 @@ def update( locked_text: bool | Omit = omit, media_files: SequenceNotStr[str] | Omit = omit, previews: SequenceNotStr[str] | Omit = omit, - price: int | Omit = omit, + price: float | Omit = omit, scheduled_date: str | Omit = omit, user_ids: SequenceNotStr[str] | Omit = omit, user_lists: SequenceNotStr[str] | Omit = omit, @@ -130,7 +130,7 @@ def update( not 0). Will be shown if `price` is provided. All `previews` values must also exist in the `mediaFiles` array. - price: Price for paid content (0 or between 3-200). In case this is not zero, + price: Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required scheduled_date: Schedule the chat message in the future (UTC timezone). @@ -314,7 +314,7 @@ def send( locked_text: bool | Omit = omit, media_files: Iterable[object] | Omit = omit, previews: Iterable[object] | Omit = omit, - price: int | Omit = omit, + price: float | Omit = omit, rf_guest: str | Omit = omit, rf_partner: str | Omit = omit, rf_tag: str | Omit = omit, @@ -357,7 +357,7 @@ def send( referencing uploaded files in `mediaFiles`. Will be shown if `price` is provided. - price: Price for paid content (0 or between 3-200). In case this is not zero, + price: Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required rf_guest: Array of OnlyFans Release Form Guest IDs to tag in your mass message @@ -480,7 +480,7 @@ async def update( locked_text: bool | Omit = omit, media_files: SequenceNotStr[str] | Omit = omit, previews: SequenceNotStr[str] | Omit = omit, - price: int | Omit = omit, + price: float | Omit = omit, scheduled_date: str | Omit = omit, user_ids: SequenceNotStr[str] | Omit = omit, user_lists: SequenceNotStr[str] | Omit = omit, @@ -514,7 +514,7 @@ async def update( not 0). Will be shown if `price` is provided. All `previews` values must also exist in the `mediaFiles` array. - price: Price for paid content (0 or between 3-200). In case this is not zero, + price: Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required scheduled_date: Schedule the chat message in the future (UTC timezone). @@ -698,7 +698,7 @@ async def send( locked_text: bool | Omit = omit, media_files: Iterable[object] | Omit = omit, previews: Iterable[object] | Omit = omit, - price: int | Omit = omit, + price: float | Omit = omit, rf_guest: str | Omit = omit, rf_partner: str | Omit = omit, rf_tag: str | Omit = omit, @@ -741,7 +741,7 @@ async def send( referencing uploaded files in `mediaFiles`. Will be shown if `price` is provided. - price: Price for paid content (0 or between 3-200). In case this is not zero, + price: Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required rf_guest: Array of OnlyFans Release Form Guest IDs to tag in your mass message diff --git a/src/onlyfansapi/types/chats/message_send_params.py b/src/onlyfansapi/types/chats/message_send_params.py index c49e4b75..c2e93616 100644 --- a/src/onlyfansapi/types/chats/message_send_params.py +++ b/src/onlyfansapi/types/chats/message_send_params.py @@ -45,8 +45,8 @@ class MessageSendParams(TypedDict, total=False): provided. """ - price: int - """Price for paid content (0 or between 3-200). + price: float + """Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required """ diff --git a/src/onlyfansapi/types/mass_messaging_send_params.py b/src/onlyfansapi/types/mass_messaging_send_params.py index f55b5bb2..93fec255 100644 --- a/src/onlyfansapi/types/mass_messaging_send_params.py +++ b/src/onlyfansapi/types/mass_messaging_send_params.py @@ -50,8 +50,8 @@ class MassMessagingSendParams(TypedDict, total=False): provided. """ - price: int - """Price for paid content (0 or between 3-200). + price: float + """Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required """ diff --git a/src/onlyfansapi/types/mass_messaging_update_params.py b/src/onlyfansapi/types/mass_messaging_update_params.py index 28684584..267e9b26 100644 --- a/src/onlyfansapi/types/mass_messaging_update_params.py +++ b/src/onlyfansapi/types/mass_messaging_update_params.py @@ -48,8 +48,8 @@ class MassMessagingUpdateParams(TypedDict, total=False): exist in the `mediaFiles` array. """ - price: int - """Price for paid content (0 or between 3-200). + price: float + """Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required """ diff --git a/tests/api_resources/chats/test_messages.py b/tests/api_resources/chats/test_messages.py index 3a8c8bfc..33f58913 100644 --- a/tests/api_resources/chats/test_messages.py +++ b/tests/api_resources/chats/test_messages.py @@ -427,7 +427,7 @@ def test_method_send_with_all_params(self, client: OnlyFansAPI) -> None: locked_text=True, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], - price=10, + price=6.97, reply_to_message_id=123456789, rf_guest="rfGuest", rf_partner="rfPartner", @@ -1013,7 +1013,7 @@ async def test_method_send_with_all_params(self, async_client: AsyncOnlyFansAPI) locked_text=True, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], - price=10, + price=6.97, reply_to_message_id=123456789, rf_guest="rfGuest", rf_partner="rfPartner", diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 15f6dfce..774db1ab 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="voluptate", 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="voluptate", 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="voluptate", 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="voluptate", 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="voluptate", 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="voluptate", 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="voluptate", 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="voluptate", 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="voluptate", 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="voluptate", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 05029cf5..283ca8bb 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="non", + list_id="qui", 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="non", + list_id="qui", 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="non", + list_id="qui", 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="non", + list_id="qui", 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="non", + list_id="qui", 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="non", + list_id="qui", 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="non", + list_id="qui", 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="non", + list_id="qui", 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="non", + list_id="qui", 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="non", + list_id="qui", 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="non", + list_id="qui", 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="non", + list_id="qui", 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="non", + list_id="qui", 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="non", + list_id="qui", 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="non", + list_id="qui", 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="non", + list_id="qui", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index f66b90ab..0099633f 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="nulla", 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="nulla", 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="nulla", 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="nulla", 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="nulla", 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="nulla", 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="nulla", 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="nulla", 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="nulla", 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="nulla", 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="nulla", 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="nulla", 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="nulla", 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="nulla", 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="nulla", 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="nulla", 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="nulla", 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="nulla", 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="nulla", 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="nulla", account="", ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 41cb7ae4..50e749cc 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="ipsam", + path_story_id="enim", 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="ipsam", + path_story_id="enim", 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="ipsam", + path_story_id="enim", 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="ipsam", + path_story_id="enim", 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="ipsam", + story_id="enim", 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="ipsam", + story_id="enim", 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="ipsam", + story_id="enim", 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="ipsam", + story_id="enim", 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="ipsam", + path_story_id="enim", 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="ipsam", + path_story_id="enim", 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="ipsam", + path_story_id="enim", 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="ipsam", + path_story_id="enim", 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="ipsam", + story_id="enim", 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="ipsam", + story_id="enim", 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="ipsam", + story_id="enim", 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="ipsam", + story_id="enim", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 5c7af9d2..f419ed75 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( - "quos", + "illo", ) 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( - "quos", + "illo", ) 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( - "quos", + "illo", ) 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( - "quos", + "illo", ) 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( - "quos", + "illo", ) 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( - "quos", + "illo", ) 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 3d099bee..11cdbdd0 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="consequatur", + auth_id="ut", auth_type="mobile_app", - cookies="sint", + cookies="odit", custom_proxy={ "host": "proxy.example.com", - "password": "EZ5;@rd6ZFj/CG\\x:Y%x", + "password": "&Au{SMGl_gfz", "port": 8080, - "username": "qui", + "username": "iste", }, - email="qschumm@example.com", - force_connect=False, - name="ratione", - password="rc::?<$_K=j", + email="hgrady@example.com", + force_connect=True, + name="vel", + password=">/9\\b^,F~", proxy_country="gb", - user_agent="nobis", - xbc="temporibus", + user_agent="quisquam", + 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="consequatur", + auth_id="ut", auth_type="mobile_app", - cookies="sint", + cookies="odit", custom_proxy={ "host": "proxy.example.com", - "password": "EZ5;@rd6ZFj/CG\\x:Y%x", + "password": "&Au{SMGl_gfz", "port": 8080, - "username": "qui", + "username": "iste", }, - email="qschumm@example.com", - force_connect=False, - name="ratione", - password="rc::?<$_K=j", + email="hgrady@example.com", + force_connect=True, + name="vel", + password=">/9\\b^,F~", proxy_country="gb", - user_agent="nobis", - xbc="temporibus", + user_agent="quisquam", + xbc="et", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_mass_messaging.py b/tests/api_resources/test_mass_messaging.py index 130b5fe1..f73a0bc0 100644 --- a/tests/api_resources/test_mass_messaging.py +++ b/tests/api_resources/test_mass_messaging.py @@ -98,7 +98,7 @@ def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: locked_text=True, media_files=["ofapi_media_abc123", "string"], previews=["ofapi_media_abc123", "string"], - price=100, + price=6.97, scheduled_date="2025-01-01T00:00:00.000Z", user_ids=["string"], user_lists=["fans", "recent", "following", "rebill_off", "tagged", "string"], @@ -321,7 +321,7 @@ def test_method_send_with_all_params(self, client: OnlyFansAPI) -> None: locked_text=True, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], - price=100, + price=6.97, rf_guest="rfGuest", rf_partner="rfPartner", rf_tag="rfTag", @@ -449,7 +449,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAP locked_text=True, media_files=["ofapi_media_abc123", "string"], previews=["ofapi_media_abc123", "string"], - price=100, + price=6.97, scheduled_date="2025-01-01T00:00:00.000Z", user_ids=["string"], user_lists=["fans", "recent", "following", "rebill_off", "tagged", "string"], @@ -672,7 +672,7 @@ async def test_method_send_with_all_params(self, async_client: AsyncOnlyFansAPI) locked_text=True, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], - price=100, + price=6.97, rf_guest="rfGuest", rf_partner="rfPartner", rf_tag="rfTag", diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 280e3de9..bea1ef2e 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="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="comments", + type="tags", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 59b01fc3..65e531da 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": ["hzuetrlokqwojagyfemx"]}, + filter={"tags": ["dgwzantvaqmfnjgwwikgltwzf"]}, limit=50, name="Instagram", offset=0, @@ -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="iusto", + smart_link_id="labore", ) 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="iusto", + smart_link_id="labore", 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="iusto", + smart_link_id="labore", ) 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="iusto", + smart_link_id="labore", ) 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="quia", + smart_link_id="unde", ) 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="quia", + smart_link_id="unde", 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="quia", + smart_link_id="unde", ) 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="quia", + smart_link_id="unde", ) 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="aperiam", + smart_link_id="quia", ) 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="aperiam", + smart_link_id="quia", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="aperiam", + smart_link_id="quia", ) assert response.is_closed is True @@ -358,7 +358,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="aperiam", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="quaerat", + smart_link_id="reprehenderit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="quaerat", + smart_link_id="reprehenderit", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="quaerat", + smart_link_id="reprehenderit", ) assert response.is_closed is True @@ -411,7 +411,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="quaerat", + smart_link_id="reprehenderit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="autem", ) assert smart_link is None @@ -441,7 +441,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="autem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="autem", ) assert response.is_closed is True @@ -464,7 +464,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="autem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="minima", + smart_link_id="voluptate", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="minima", + smart_link_id="voluptate", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="minima", + smart_link_id="voluptate", ) assert response.is_closed is True @@ -516,7 +516,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="minima", + smart_link_id="voluptate", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["hzuetrlokqwojagyfemx"]}, + filter={"tags": ["dgwzantvaqmfnjgwwikgltwzf"]}, limit=50, name="Instagram", offset=0, @@ -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="iusto", + smart_link_id="labore", ) 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="iusto", + smart_link_id="labore", 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="iusto", + smart_link_id="labore", ) 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="iusto", + smart_link_id="labore", ) 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="quia", + smart_link_id="unde", ) 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="quia", + smart_link_id="unde", 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="quia", + smart_link_id="unde", ) 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="quia", + smart_link_id="unde", ) 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="aperiam", + smart_link_id="quia", ) 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="aperiam", + smart_link_id="quia", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="aperiam", + smart_link_id="quia", ) assert response.is_closed is True @@ -871,7 +871,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="aperiam", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="quaerat", + smart_link_id="reprehenderit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="quaerat", + smart_link_id="reprehenderit", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="quaerat", + smart_link_id="reprehenderit", ) assert response.is_closed is True @@ -924,7 +924,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="quaerat", + smart_link_id="reprehenderit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="autem", ) assert smart_link is None @@ -954,7 +954,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="autem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="autem", ) assert response.is_closed is True @@ -977,7 +977,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="autem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="minima", + smart_link_id="voluptate", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="minima", + smart_link_id="voluptate", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="minima", + smart_link_id="voluptate", ) assert response.is_closed is True @@ -1029,7 +1029,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="minima", + smart_link_id="voluptate", ) 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 cbb37c3c..fb36af27 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": "husyy", - "tags": ["jkdflckzcqjjzsy"], + "search": "yt", + "tags": ["qhhzt"], }, 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": "pg", - "tags": ["jhkulxzqcvlpvoxmkh"], + "search": "yjfmwfz", + "tags": ["kfwqvrzfq"], }, 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": "anuukenttclsdhmcpxirxjse", - "tags": ["khmsusstabzmjxnneuwripst"], + "search": "e", + "tags": ["prhumvzz"], }, 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": "gpfei", - "tags": ["uxmbzlkxyefvumjrierbiwm"], + "include_smart_links": False, + "search": "ogpjbkuvvjjckogfywjtnxb", + "tags": ["lyjdiebkydrufekquu"], }, 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": "husyy", - "tags": ["jkdflckzcqjjzsy"], + "search": "yt", + "tags": ["qhhzt"], }, 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": "pg", - "tags": ["jhkulxzqcvlpvoxmkh"], + "search": "yjfmwfz", + "tags": ["kfwqvrzfq"], }, 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": "anuukenttclsdhmcpxirxjse", - "tags": ["khmsusstabzmjxnneuwripst"], + "search": "e", + "tags": ["prhumvzz"], }, 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": "gpfei", - "tags": ["uxmbzlkxyefvumjrierbiwm"], + "include_smart_links": False, + "search": "ogpjbkuvvjjckogfywjtnxb", + "tags": ["lyjdiebkydrufekquu"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index af28f61c..7ea204fb 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="deleniti", + tracking_link_id="at", 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="deleniti", + tracking_link_id="at", 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="deleniti", + tracking_link_id="at", 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="deleniti", + tracking_link_id="at", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="deleniti", + tracking_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="deleniti", + tracking_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="deleniti", + tracking_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="deleniti", + tracking_link_id="at", account="", ) @@ -248,7 +248,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="fugit", + tracking_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="fugit", + tracking_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="fugit", + tracking_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="fugit", + tracking_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="fugit", + tracking_link_id="nihil", account="", ) @@ -312,7 +312,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="id", + tracking_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="id", + tracking_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="id", + tracking_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="id", + tracking_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="id", + tracking_link_id="laboriosam", account="", ) @@ -563,7 +563,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="deleniti", + tracking_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="deleniti", + tracking_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="deleniti", + tracking_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="deleniti", + tracking_link_id="at", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="deleniti", + tracking_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="deleniti", + tracking_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="deleniti", + tracking_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="deleniti", + tracking_link_id="at", account="", ) @@ -726,7 +726,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="fugit", + tracking_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="fugit", + tracking_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="fugit", + tracking_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="fugit", + tracking_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="fugit", + tracking_link_id="nihil", account="", ) @@ -790,7 +790,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="id", + tracking_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="id", + tracking_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="id", + tracking_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="id", + tracking_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="id", + tracking_link_id="laboriosam", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index c68b418d..3d616b0a 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + trial_link_id="culpa", account="", ) @@ -205,7 +205,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="molestias", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="molestias", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="molestias", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="molestias", + trial_link_id="culpa", account="", ) @@ -321,7 +321,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="animi", + trial_link_id="sint", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="animi", + trial_link_id="sint", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="animi", + trial_link_id="sint", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="animi", + trial_link_id="sint", account="", limit=10, offset=0, @@ -383,7 +383,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="sint", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="sint", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="sint", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="sint", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="sint", account="", ) @@ -447,7 +447,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="consequuntur", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="consequuntur", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="consequuntur", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="consequuntur", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="consequuntur", + trial_link_id="numquam", account="", ) @@ -583,7 +583,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="molestias", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="molestias", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="molestias", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="molestias", + trial_link_id="culpa", account="", ) @@ -692,7 +692,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="molestias", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="molestias", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="molestias", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="molestias", + trial_link_id="culpa", account="", ) @@ -808,7 +808,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="animi", + trial_link_id="sint", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="animi", + trial_link_id="sint", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="animi", + trial_link_id="sint", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="animi", + trial_link_id="sint", account="", limit=10, offset=0, @@ -870,7 +870,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="sint", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="sint", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="sint", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="sint", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="sint", account="", ) @@ -934,7 +934,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="consequuntur", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="consequuntur", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="consequuntur", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="consequuntur", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="consequuntur", + trial_link_id="numquam", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 0e3642ed..999c0152 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="igbiekqpqjcrwhkrleaozvktd", + name="yhahkdzarvxodjk", ) 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="igbiekqpqjcrwhkrleaozvktd", + name="yhahkdzarvxodjk", ) 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="igbiekqpqjcrwhkrleaozvktd", + name="yhahkdzarvxodjk", ) 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="igbiekqpqjcrwhkrleaozvktd", + name="yhahkdzarvxodjk", ) @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="igbiekqpqjcrwhkrleaozvktd", + name="yhahkdzarvxodjk", ) 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="igbiekqpqjcrwhkrleaozvktd", + name="yhahkdzarvxodjk", ) 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="igbiekqpqjcrwhkrleaozvktd", + name="yhahkdzarvxodjk", ) 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="igbiekqpqjcrwhkrleaozvktd", + name="yhahkdzarvxodjk", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 5fea6cca3d9a706df74b61e9e734d35382def2e4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 27 Jul 2026 08:12:33 +0000 Subject: [PATCH 203/249] 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 | 40 +++---- 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, 256 insertions(+), 256 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8d1d2029..ca877a6f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2589d34f2558e14affdae826ce1c96c76ebf0659c44350e0c9f23a8b74758a68.yml -openapi_spec_hash: e5fc1e707177a3938b504eb815ebc379 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8617a19243245a950f0ae828b466a20067be8a118712b68264c974c57acfe6a2.yml +openapi_spec_hash: 7052a0a6ed40b45993cdd68cd9c873cc config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 774db1ab..ce398661 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="voluptate", + 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="voluptate", + 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="voluptate", + 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="voluptate", + 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="voluptate", + 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="voluptate", + 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="voluptate", + 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="voluptate", + 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="voluptate", + 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="voluptate", + 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 283ca8bb..cd43c0b0 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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 0099633f..ba29aae1 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="nulla", + post_id="culpa", 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="nulla", + post_id="culpa", 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="nulla", + post_id="culpa", 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="nulla", + post_id="culpa", 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="nulla", + post_id="culpa", 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="nulla", + post_id="culpa", 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="nulla", + post_id="culpa", 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="nulla", + post_id="culpa", 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="nulla", + post_id="culpa", 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="nulla", + post_id="culpa", 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="nulla", + post_id="culpa", 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="nulla", + post_id="culpa", 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="nulla", + post_id="culpa", 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="nulla", + post_id="culpa", 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="nulla", + post_id="culpa", 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="nulla", + post_id="culpa", 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="nulla", + post_id="culpa", 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="nulla", + post_id="culpa", 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="nulla", + post_id="culpa", 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="nulla", + post_id="culpa", 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 aa735c97..7549791e 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 50e749cc..bee32fe6 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="enim", + path_story_id="in", 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="enim", + path_story_id="in", 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="enim", + path_story_id="in", 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="enim", + path_story_id="in", 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="enim", + story_id="in", 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="enim", + story_id="in", 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="enim", + story_id="in", 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="enim", + story_id="in", 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="enim", + path_story_id="in", 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="enim", + path_story_id="in", 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="enim", + path_story_id="in", 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="enim", + path_story_id="in", 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="enim", + story_id="in", 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="enim", + story_id="in", 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="enim", + story_id="in", 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="enim", + story_id="in", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index f419ed75..af0c2ffb 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( - "illo", + "iste", ) 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( - "illo", + "iste", ) 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( - "illo", + "iste", ) 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( - "illo", + "iste", ) 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( - "illo", + "iste", ) 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( - "illo", + "iste", ) 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 11cdbdd0..eadbe1ec 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="mobile_app", - cookies="odit", + auth_id="qui", + auth_type="email_password", + cookies="debitis", custom_proxy={ "host": "proxy.example.com", - "password": "&Au{SMGl_gfz", + "password": "vQ.;te;`BZzcu&ck]", "port": 8080, - "username": "iste", + "username": "quia", }, - email="hgrady@example.com", + email="xrogahn@example.net", force_connect=True, - name="vel", - password=">/9\\b^,F~", + name="est", + password="Dp]Y/ 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="mobile_app", - cookies="odit", + auth_id="qui", + auth_type="email_password", + cookies="debitis", custom_proxy={ "host": "proxy.example.com", - "password": "&Au{SMGl_gfz", + "password": "vQ.;te;`BZzcu&ck]", "port": 8080, - "username": "iste", + "username": "quia", }, - email="hgrady@example.com", + email="xrogahn@example.net", force_connect=True, - name="vel", - password=">/9\\b^,F~", + name="est", + password="Dp]Y/ None: from_id=123, limit=10, skip_users="all", - type="tags", + 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="tags", + type="subscriptions", ) 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 65e531da..2b46a2aa 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": ["dgwzantvaqmfnjgwwikgltwzf"]}, + filter={"tags": ["ymouebckinecbrddylnvgjncl"]}, limit=50, name="Instagram", offset=0, @@ -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="labore", + smart_link_id="aut", ) 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="labore", + smart_link_id="aut", 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="labore", + smart_link_id="aut", ) 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="labore", + smart_link_id="aut", ) 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="unde", + smart_link_id="qui", ) 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="unde", + smart_link_id="qui", 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="unde", + smart_link_id="qui", ) 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="unde", + smart_link_id="qui", ) 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="quia", + 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="quia", + smart_link_id="est", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="est", ) assert response.is_closed is True @@ -358,7 +358,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="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="reprehenderit", + smart_link_id="odit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="reprehenderit", + smart_link_id="odit", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="reprehenderit", + smart_link_id="odit", ) assert response.is_closed is True @@ -411,7 +411,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="reprehenderit", + smart_link_id="odit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="autem", + smart_link_id="nostrum", ) assert smart_link is None @@ -441,7 +441,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="autem", + smart_link_id="nostrum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="autem", + smart_link_id="nostrum", ) assert response.is_closed is True @@ -464,7 +464,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="autem", + smart_link_id="nostrum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="voluptate", + smart_link_id="ullam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="voluptate", + smart_link_id="ullam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="voluptate", + smart_link_id="ullam", ) assert response.is_closed is True @@ -516,7 +516,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="voluptate", + smart_link_id="ullam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["dgwzantvaqmfnjgwwikgltwzf"]}, + filter={"tags": ["ymouebckinecbrddylnvgjncl"]}, limit=50, name="Instagram", offset=0, @@ -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="labore", + smart_link_id="aut", ) 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="labore", + smart_link_id="aut", 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="labore", + smart_link_id="aut", ) 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="labore", + smart_link_id="aut", ) 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="qui", ) 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="qui", 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="qui", ) 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="qui", ) 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="quia", + 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="quia", + smart_link_id="est", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="est", ) assert response.is_closed is True @@ -871,7 +871,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="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="reprehenderit", + smart_link_id="odit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="reprehenderit", + smart_link_id="odit", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="reprehenderit", + smart_link_id="odit", ) assert response.is_closed is True @@ -924,7 +924,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="reprehenderit", + smart_link_id="odit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="autem", + smart_link_id="nostrum", ) assert smart_link is None @@ -954,7 +954,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="autem", + smart_link_id="nostrum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="autem", + smart_link_id="nostrum", ) assert response.is_closed is True @@ -977,7 +977,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="autem", + smart_link_id="nostrum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="voluptate", + smart_link_id="ullam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="voluptate", + smart_link_id="ullam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="voluptate", + smart_link_id="ullam", ) assert response.is_closed is True @@ -1029,7 +1029,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="voluptate", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index fb36af27..35091ccd 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": "yt", - "tags": ["qhhzt"], + "search": "qnmyinyrfp", + "tags": ["oxampcjkkqgbwlr"], }, 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": "yjfmwfz", - "tags": ["kfwqvrzfq"], + "search": "aasbtouibqqffhlfprcgt", + "tags": ["puwjxhap"], }, 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": "e", - "tags": ["prhumvzz"], + "search": "srmxtrtwyy", + "tags": ["tnmew"], }, 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": "ogpjbkuvvjjckogfywjtnxb", - "tags": ["lyjdiebkydrufekquu"], + "search": "bvmsdxsunxshvzsbpatp", + "tags": ["foslkcsqciovkwrvwjcpia"], }, 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": "yt", - "tags": ["qhhzt"], + "search": "qnmyinyrfp", + "tags": ["oxampcjkkqgbwlr"], }, 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": "yjfmwfz", - "tags": ["kfwqvrzfq"], + "search": "aasbtouibqqffhlfprcgt", + "tags": ["puwjxhap"], }, 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": "e", - "tags": ["prhumvzz"], + "search": "srmxtrtwyy", + "tags": ["tnmew"], }, 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": "ogpjbkuvvjjckogfywjtnxb", - "tags": ["lyjdiebkydrufekquu"], + "search": "bvmsdxsunxshvzsbpatp", + "tags": ["foslkcsqciovkwrvwjcpia"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 7ea204fb..b4bb78e1 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="at", + tracking_link_id="numquam", 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="at", + tracking_link_id="numquam", 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="at", + tracking_link_id="numquam", 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="at", + tracking_link_id="numquam", account="", ) @@ -196,7 +196,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="at", + tracking_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="at", + tracking_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="at", + tracking_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="at", + tracking_link_id="numquam", account="", ) @@ -248,7 +248,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="nihil", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="nihil", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="nihil", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="nihil", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="nihil", + tracking_link_id="qui", account="", ) @@ -312,7 +312,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="laboriosam", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="laboriosam", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="laboriosam", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="laboriosam", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="laboriosam", + tracking_link_id="laborum", account="", ) @@ -563,7 +563,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="at", + tracking_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="at", + tracking_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="at", + tracking_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="at", + tracking_link_id="numquam", account="", ) @@ -674,7 +674,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="at", + tracking_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="at", + tracking_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="at", + tracking_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="at", + tracking_link_id="numquam", account="", ) @@ -726,7 +726,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="nihil", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="nihil", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="nihil", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="nihil", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="nihil", + tracking_link_id="qui", account="", ) @@ -790,7 +790,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="laboriosam", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="laboriosam", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="laboriosam", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="laboriosam", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="laboriosam", + tracking_link_id="laborum", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 3d616b0a..cebcb405 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="eligendi", 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="eligendi", 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="eligendi", 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="eligendi", account="", ) @@ -205,7 +205,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="eligendi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="eligendi", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="eligendi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="eligendi", account="", ) @@ -321,7 +321,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="sint", + trial_link_id="iure", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="sint", + trial_link_id="iure", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="sint", + trial_link_id="iure", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="sint", + trial_link_id="iure", account="", limit=10, offset=0, @@ -383,7 +383,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="sint", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="sint", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="sint", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="sint", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="sint", + trial_link_id="officiis", account="", ) @@ -447,7 +447,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="numquam", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="numquam", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="numquam", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="numquam", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="numquam", + trial_link_id="sit", account="", ) @@ -583,7 +583,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="eligendi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="eligendi", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="eligendi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="eligendi", account="", ) @@ -692,7 +692,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="eligendi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="eligendi", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="eligendi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="eligendi", account="", ) @@ -808,7 +808,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="sint", + trial_link_id="iure", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="sint", + trial_link_id="iure", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="sint", + trial_link_id="iure", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="sint", + trial_link_id="iure", account="", limit=10, offset=0, @@ -870,7 +870,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="sint", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="sint", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="sint", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="sint", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="sint", + trial_link_id="officiis", account="", ) @@ -934,7 +934,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="numquam", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="numquam", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="numquam", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="numquam", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="numquam", + trial_link_id="sit", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 999c0152..83415adc 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="yhahkdzarvxodjk", + name="quwgwlaqvwpvskghhgsps", ) 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="yhahkdzarvxodjk", + name="quwgwlaqvwpvskghhgsps", ) 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="yhahkdzarvxodjk", + name="quwgwlaqvwpvskghhgsps", ) 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="yhahkdzarvxodjk", + name="quwgwlaqvwpvskghhgsps", ) @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="yhahkdzarvxodjk", + name="quwgwlaqvwpvskghhgsps", ) 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="yhahkdzarvxodjk", + name="quwgwlaqvwpvskghhgsps", ) 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="yhahkdzarvxodjk", + name="quwgwlaqvwpvskghhgsps", ) 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="yhahkdzarvxodjk", + name="quwgwlaqvwpvskghhgsps", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 3d3c32a37b1f8326e4ffff6ccd0c105de24bad18 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 28 Jul 2026 14:12:38 +0000 Subject: [PATCH 204/249] 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 | 48 ++++----- tests/api_resources/test_notifications.py | 4 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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, 264 insertions(+), 264 deletions(-) diff --git a/.stats.yml b/.stats.yml index ca877a6f..ffefb493 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8617a19243245a950f0ae828b466a20067be8a118712b68264c974c57acfe6a2.yml -openapi_spec_hash: 7052a0a6ed40b45993cdd68cd9c873cc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6f461bdebf5c8d8f2045ebf7cf3ec224d4918ebab907dd862e4cb14d6d558956.yml +openapi_spec_hash: 3192c58a8a2c404c1484b5b42af52a30 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index ce398661..441328b4 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="pariatur", 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="pariatur", 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="pariatur", 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="pariatur", 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="pariatur", 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="pariatur", 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="pariatur", 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="pariatur", 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="pariatur", 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="pariatur", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index cd43c0b0..4e59b8e6 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="aspernatur", 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="aspernatur", 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="aspernatur", 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="aspernatur", 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="aspernatur", 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="aspernatur", 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="aspernatur", 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="aspernatur", 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="aspernatur", 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="aspernatur", 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="aspernatur", 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="aspernatur", 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="aspernatur", 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="aspernatur", 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="aspernatur", 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="aspernatur", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index ba29aae1..f59fb349 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + 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="culpa", + post_id="adipisci", 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 2ced6cb5..9c80483e 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 bee32fe6..08b0ea47 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="in", + path_story_id="qui", 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="in", + path_story_id="qui", 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="in", + path_story_id="qui", 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="in", + path_story_id="qui", 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="in", + story_id="qui", 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="in", + story_id="qui", 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="in", + story_id="qui", 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="in", + story_id="qui", 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="in", + path_story_id="qui", 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="in", + path_story_id="qui", 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="in", + path_story_id="qui", 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="in", + path_story_id="qui", 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="in", + story_id="qui", 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="in", + story_id="qui", 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="in", + story_id="qui", 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="in", + story_id="qui", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index af0c2ffb..bfe0342d 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( - "iste", + "fugiat", ) 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( - "iste", + "fugiat", ) 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( - "iste", + "fugiat", ) 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( - "iste", + "fugiat", ) 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( - "iste", + "fugiat", ) 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( - "iste", + "fugiat", ) 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 eadbe1ec..260b4b52 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="qui", - auth_type="email_password", - cookies="debitis", + auth_id="ut", + auth_type="raw_data", + cookies="molestiae", custom_proxy={ "host": "proxy.example.com", - "password": "vQ.;te;`BZzcu&ck]", + "password": "vGb.y[}QpQS9vd", "port": 8080, - "username": "quia", + "username": "voluptas", }, - email="xrogahn@example.net", - force_connect=True, - name="est", - password="Dp]Y/ None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="qui", - auth_type="email_password", - cookies="debitis", + auth_id="ut", + auth_type="raw_data", + cookies="molestiae", custom_proxy={ "host": "proxy.example.com", - "password": "vQ.;te;`BZzcu&ck]", + "password": "vGb.y[}QpQS9vd", "port": 8080, - "username": "quia", + "username": "voluptas", }, - email="xrogahn@example.net", - force_connect=True, - name="est", - password="Dp]Y/ None: from_id=123, limit=10, skip_users="all", - type="subscriptions", + 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="subscriptions", + type="onlyfans", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 2b46a2aa..9999609f 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": ["ymouebckinecbrddylnvgjncl"]}, + filter={"tags": ["qzvsqlfitiiqhdyyh"]}, limit=50, name="Instagram", offset=0, @@ -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="est", ) 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="est", 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="est", ) 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="est", ) 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="qui", + smart_link_id="debitis", ) 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="qui", + smart_link_id="debitis", 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="qui", + smart_link_id="debitis", ) 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="qui", + smart_link_id="debitis", ) 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="est", + smart_link_id="qui", ) 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="est", + smart_link_id="qui", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="qui", ) assert response.is_closed is True @@ -358,7 +358,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="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="excepturi", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="excepturi", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="excepturi", ) assert response.is_closed is True @@ -411,7 +411,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="excepturi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="nostrum", + smart_link_id="nobis", ) assert smart_link is None @@ -441,7 +441,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="nostrum", + smart_link_id="nobis", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="nostrum", + smart_link_id="nobis", ) assert response.is_closed is True @@ -464,7 +464,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="nostrum", + smart_link_id="nobis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="ullam", + smart_link_id="quam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="ullam", + smart_link_id="quam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="ullam", + smart_link_id="quam", ) assert response.is_closed is True @@ -516,7 +516,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="ullam", + smart_link_id="quam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["ymouebckinecbrddylnvgjncl"]}, + filter={"tags": ["qzvsqlfitiiqhdyyh"]}, limit=50, name="Instagram", offset=0, @@ -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="aut", + smart_link_id="est", ) 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="aut", + smart_link_id="est", 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="aut", + smart_link_id="est", ) 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="aut", + smart_link_id="est", ) 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="qui", + smart_link_id="debitis", ) 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="qui", + smart_link_id="debitis", 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="qui", + smart_link_id="debitis", ) 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="qui", + smart_link_id="debitis", ) 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="qui", ) 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="qui", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="qui", ) assert response.is_closed is True @@ -871,7 +871,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="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="excepturi", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="excepturi", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="excepturi", ) assert response.is_closed is True @@ -924,7 +924,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="excepturi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="nostrum", + smart_link_id="nobis", ) assert smart_link is None @@ -954,7 +954,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="nostrum", + smart_link_id="nobis", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="nostrum", + smart_link_id="nobis", ) assert response.is_closed is True @@ -977,7 +977,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="nostrum", + smart_link_id="nobis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="ullam", + smart_link_id="quam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="ullam", + smart_link_id="quam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="ullam", + smart_link_id="quam", ) assert response.is_closed is True @@ -1029,7 +1029,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="ullam", + smart_link_id="quam", ) 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 35091ccd..505ad9fb 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": "qnmyinyrfp", - "tags": ["oxampcjkkqgbwlr"], + "search": "cxydccyfacpcloyuidqqqwlhb", + "tags": ["g"], }, 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": "aasbtouibqqffhlfprcgt", - "tags": ["puwjxhap"], + "search": "uiwghmqko", + "tags": ["rawggufhqdycglwpwgrmledbp"], }, 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": "srmxtrtwyy", - "tags": ["tnmew"], + "include_smart_links": False, + "search": "xcdt", + "tags": ["yecwxphakdcygno"], }, 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": "bvmsdxsunxshvzsbpatp", - "tags": ["foslkcsqciovkwrvwjcpia"], + "include_smart_links": True, + "search": "qjclzdttwk", + "tags": ["aoxxxdcdfeddmj"], }, 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": "qnmyinyrfp", - "tags": ["oxampcjkkqgbwlr"], + "search": "cxydccyfacpcloyuidqqqwlhb", + "tags": ["g"], }, 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": "aasbtouibqqffhlfprcgt", - "tags": ["puwjxhap"], + "search": "uiwghmqko", + "tags": ["rawggufhqdycglwpwgrmledbp"], }, 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": "srmxtrtwyy", - "tags": ["tnmew"], + "include_smart_links": False, + "search": "xcdt", + "tags": ["yecwxphakdcygno"], }, 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": "bvmsdxsunxshvzsbpatp", - "tags": ["foslkcsqciovkwrvwjcpia"], + "include_smart_links": True, + "search": "qjclzdttwk", + "tags": ["aoxxxdcdfeddmj"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index b4bb78e1..dcece5b8 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="numquam", + tracking_link_id="id", 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="numquam", + tracking_link_id="id", 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="numquam", + tracking_link_id="id", 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="numquam", + tracking_link_id="id", account="", ) @@ -196,7 +196,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="numquam", + tracking_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="numquam", + tracking_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="numquam", + tracking_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="numquam", + tracking_link_id="id", account="", ) @@ -248,7 +248,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="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="voluptatibus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="voluptatibus", account="", ) @@ -312,7 +312,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="laborum", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="laborum", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="laborum", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="laborum", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="laborum", + tracking_link_id="molestiae", account="", ) @@ -563,7 +563,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="numquam", + tracking_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="numquam", + tracking_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="numquam", + tracking_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="numquam", + tracking_link_id="id", account="", ) @@ -674,7 +674,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="numquam", + tracking_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="numquam", + tracking_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="numquam", + tracking_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="numquam", + tracking_link_id="id", account="", ) @@ -726,7 +726,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="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="voluptatibus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="voluptatibus", account="", ) @@ -790,7 +790,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="laborum", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="laborum", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="laborum", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="laborum", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="laborum", + tracking_link_id="molestiae", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index cebcb405..0524907b 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="eligendi", + trial_link_id="deleniti", 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="eligendi", + trial_link_id="deleniti", 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="eligendi", + trial_link_id="deleniti", 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="eligendi", + trial_link_id="deleniti", account="", ) @@ -205,7 +205,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="eligendi", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="eligendi", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="eligendi", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="eligendi", + trial_link_id="deleniti", account="", ) @@ -321,7 +321,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="autem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="autem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="autem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="autem", account="", limit=10, offset=0, @@ -383,7 +383,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="eius", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="eius", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="eius", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="eius", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="eius", account="", ) @@ -447,7 +447,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="aperiam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="aperiam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="aperiam", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="aperiam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="aperiam", account="", ) @@ -583,7 +583,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="eligendi", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="eligendi", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="eligendi", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="eligendi", + trial_link_id="deleniti", account="", ) @@ -692,7 +692,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="eligendi", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="eligendi", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="eligendi", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="eligendi", + trial_link_id="deleniti", account="", ) @@ -808,7 +808,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="autem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="autem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="autem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="autem", account="", limit=10, offset=0, @@ -870,7 +870,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="eius", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="eius", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="eius", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="eius", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="eius", account="", ) @@ -934,7 +934,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="aperiam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="aperiam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="aperiam", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="aperiam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="aperiam", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 83415adc..7bd348e2 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="quwgwlaqvwpvskghhgsps", + name="uopqbezqdvxomnnbvnysw", ) 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="quwgwlaqvwpvskghhgsps", + name="uopqbezqdvxomnnbvnysw", ) 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="quwgwlaqvwpvskghhgsps", + name="uopqbezqdvxomnnbvnysw", ) 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="quwgwlaqvwpvskghhgsps", + name="uopqbezqdvxomnnbvnysw", ) @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="quwgwlaqvwpvskghhgsps", + name="uopqbezqdvxomnnbvnysw", ) 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="quwgwlaqvwpvskghhgsps", + name="uopqbezqdvxomnnbvnysw", ) 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="quwgwlaqvwpvskghhgsps", + name="uopqbezqdvxomnnbvnysw", ) 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="quwgwlaqvwpvskghhgsps", + name="uopqbezqdvxomnnbvnysw", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 58a4812b204afbd08b301063b4f34613cacc836f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 31 Jul 2026 14:12:34 +0000 Subject: [PATCH 205/249] 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 | 40 +++---- tests/api_resources/test_notifications.py | 4 +- .../api_resources/test_shared_trial_links.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 +-- 16 files changed, 258 insertions(+), 258 deletions(-) diff --git a/.stats.yml b/.stats.yml index ffefb493..b863200d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6f461bdebf5c8d8f2045ebf7cf3ec224d4918ebab907dd862e4cb14d6d558956.yml -openapi_spec_hash: 3192c58a8a2c404c1484b5b42af52a30 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-446dd37bf3f946b78c1871965d6c8615b1827af5f92cc5827541cebf5b66d2db.yml +openapi_spec_hash: f7cbc12eeba246d3ce34207b61508856 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 441328b4..a2586a4b 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="pariatur", + message_id="libero", 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="pariatur", + message_id="libero", 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="pariatur", + message_id="libero", 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="pariatur", + message_id="libero", 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="pariatur", + message_id="libero", 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="pariatur", + message_id="libero", 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="pariatur", + message_id="libero", 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="pariatur", + message_id="libero", 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="pariatur", + message_id="libero", 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="pariatur", + message_id="libero", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 4e59b8e6..cb6bd90f 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="aspernatur", + list_id="adipisci", 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="aspernatur", + list_id="adipisci", 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="aspernatur", + list_id="adipisci", 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="aspernatur", + list_id="adipisci", 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="aspernatur", + list_id="adipisci", 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="aspernatur", + list_id="adipisci", 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="aspernatur", + list_id="adipisci", 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="aspernatur", + list_id="adipisci", 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="aspernatur", + list_id="adipisci", 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="aspernatur", + list_id="adipisci", 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="aspernatur", + list_id="adipisci", 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="aspernatur", + list_id="adipisci", 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="aspernatur", + list_id="adipisci", 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="aspernatur", + list_id="adipisci", 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="aspernatur", + list_id="adipisci", 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="aspernatur", + list_id="adipisci", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index f59fb349..446660ec 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="facilis", 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="facilis", 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="facilis", 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="facilis", 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="facilis", 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="facilis", 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="facilis", 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="facilis", 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="facilis", 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="facilis", 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="facilis", 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="facilis", 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="facilis", 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="facilis", 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="facilis", 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="facilis", 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="facilis", 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="facilis", 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="facilis", 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="facilis", 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 7549791e..aa735c97 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 9664075f..544df889 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 08b0ea47..ca6e1620 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="qui", + path_story_id="harum", 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="qui", + path_story_id="harum", 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="qui", + path_story_id="harum", 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="qui", + path_story_id="harum", 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="qui", + story_id="harum", 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="qui", + story_id="harum", 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="qui", + story_id="harum", 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="qui", + story_id="harum", 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="qui", + path_story_id="harum", 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="qui", + path_story_id="harum", 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="qui", + path_story_id="harum", 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="qui", + path_story_id="harum", 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="qui", + story_id="harum", 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="qui", + story_id="harum", 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="qui", + story_id="harum", 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="qui", + story_id="harum", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index bfe0342d..69e1fa47 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( - "fugiat", + "tempore", ) 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( - "fugiat", + "tempore", ) 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( - "fugiat", + "tempore", ) 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( - "fugiat", + "tempore", ) 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( - "fugiat", + "tempore", ) 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( - "fugiat", + "tempore", ) 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 260b4b52..07a92e8f 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="molestiae", + auth_id="quibusdam", + auth_type="mobile_app", + cookies="sint", custom_proxy={ "host": "proxy.example.com", - "password": "vGb.y[}QpQS9vd", + "password": "Y&,wj82d", "port": 8080, - "username": "voluptas", + "username": "praesentium", }, - email="gprosacco@example.net", + email="botsford.antonio@example.net", force_connect=False, - name="in", - password="Z!}6;k3$+3@}Ygqyis", + name="veritatis", + password="Vw%-.U", proxy_country="us", - user_agent="ut", - xbc="necessitatibus", + user_agent="esse", + xbc="neque", ) 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="molestiae", + auth_id="quibusdam", + auth_type="mobile_app", + cookies="sint", custom_proxy={ "host": "proxy.example.com", - "password": "vGb.y[}QpQS9vd", + "password": "Y&,wj82d", "port": 8080, - "username": "voluptas", + "username": "praesentium", }, - email="gprosacco@example.net", + email="botsford.antonio@example.net", force_connect=False, - name="in", - password="Z!}6;k3$+3@}Ygqyis", + name="veritatis", + password="Vw%-.U", proxy_country="us", - user_agent="ut", - xbc="necessitatibus", + user_agent="esse", + xbc="neque", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 1a80b275..4d3e426f 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="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="onlyfans", + type="mentions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 9999609f..0ccd85f4 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": ["qzvsqlfitiiqhdyyh"]}, + filter={"tags": ["xmjaddgbzmmq"]}, limit=50, name="Instagram", offset=0, @@ -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="est", + smart_link_id="delectus", ) 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="est", + smart_link_id="delectus", 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="est", + smart_link_id="delectus", ) 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="est", + smart_link_id="delectus", ) 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="debitis", + smart_link_id="enim", ) 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="debitis", + smart_link_id="enim", 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="debitis", + smart_link_id="enim", ) 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="debitis", + smart_link_id="enim", ) 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="qui", + smart_link_id="hic", ) 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="qui", + smart_link_id="hic", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="hic", ) assert response.is_closed is True @@ -358,7 +358,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="hic", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="excepturi", + smart_link_id="quia", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="excepturi", + smart_link_id="quia", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="excepturi", + smart_link_id="quia", ) assert response.is_closed is True @@ -411,7 +411,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="excepturi", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="nobis", + smart_link_id="ipsa", ) assert smart_link is None @@ -441,7 +441,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="nobis", + smart_link_id="ipsa", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="nobis", + smart_link_id="ipsa", ) assert response.is_closed is True @@ -464,7 +464,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="nobis", + smart_link_id="ipsa", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="quam", + smart_link_id="omnis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="quam", + smart_link_id="omnis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="quam", + smart_link_id="omnis", ) assert response.is_closed is True @@ -516,7 +516,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="quam", + smart_link_id="omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["qzvsqlfitiiqhdyyh"]}, + filter={"tags": ["xmjaddgbzmmq"]}, limit=50, name="Instagram", offset=0, @@ -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="est", + smart_link_id="delectus", ) 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="est", + smart_link_id="delectus", 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="est", + smart_link_id="delectus", ) 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="est", + smart_link_id="delectus", ) 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="debitis", + smart_link_id="enim", ) 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="debitis", + smart_link_id="enim", 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="debitis", + smart_link_id="enim", ) 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="debitis", + smart_link_id="enim", ) 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="qui", + smart_link_id="hic", ) 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="qui", + smart_link_id="hic", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="hic", ) assert response.is_closed is True @@ -871,7 +871,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="hic", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="excepturi", + smart_link_id="quia", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="excepturi", + smart_link_id="quia", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="excepturi", + smart_link_id="quia", ) assert response.is_closed is True @@ -924,7 +924,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="excepturi", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="nobis", + smart_link_id="ipsa", ) assert smart_link is None @@ -954,7 +954,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="nobis", + smart_link_id="ipsa", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="nobis", + smart_link_id="ipsa", ) assert response.is_closed is True @@ -977,7 +977,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="nobis", + smart_link_id="ipsa", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="quam", + smart_link_id="omnis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="quam", + smart_link_id="omnis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="quam", + smart_link_id="omnis", ) assert response.is_closed is True @@ -1029,7 +1029,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="quam", + 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 505ad9fb..87d79abe 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": "cxydccyfacpcloyuidqqqwlhb", - "tags": ["g"], + "search": "imvuuaakwyh", + "tags": ["lzuzw"], }, 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": "uiwghmqko", - "tags": ["rawggufhqdycglwpwgrmledbp"], + "search": "cydlolxlvppcl", + "tags": ["tdrvmm"], }, 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": "xcdt", - "tags": ["yecwxphakdcygno"], + "search": "ifurz", + "tags": ["ouwqgxfluznexsy"], }, 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": "qjclzdttwk", - "tags": ["aoxxxdcdfeddmj"], + "search": "nqaqesbuuvfiidsiolvgp", + "tags": ["ccwna"], }, 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": "cxydccyfacpcloyuidqqqwlhb", - "tags": ["g"], + "search": "imvuuaakwyh", + "tags": ["lzuzw"], }, 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": "uiwghmqko", - "tags": ["rawggufhqdycglwpwgrmledbp"], + "search": "cydlolxlvppcl", + "tags": ["tdrvmm"], }, 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": "xcdt", - "tags": ["yecwxphakdcygno"], + "search": "ifurz", + "tags": ["ouwqgxfluznexsy"], }, 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": "qjclzdttwk", - "tags": ["aoxxxdcdfeddmj"], + "search": "nqaqesbuuvfiidsiolvgp", + "tags": ["ccwna"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index dcece5b8..b3d8c762 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="id", + 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="id", + 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="id", + 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="id", + tracking_link_id="tempora", account="", ) @@ -196,7 +196,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="id", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="id", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="id", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="id", + tracking_link_id="tempora", account="", ) @@ -248,7 +248,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="voluptatibus", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="voluptatibus", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="voluptatibus", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="voluptatibus", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="voluptatibus", + tracking_link_id="non", account="", ) @@ -312,7 +312,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="dolores", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="dolores", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="dolores", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="dolores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="dolores", account="", ) @@ -563,7 +563,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="id", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="id", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="id", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="id", + tracking_link_id="tempora", account="", ) @@ -674,7 +674,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="id", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="id", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="id", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="id", + tracking_link_id="tempora", account="", ) @@ -726,7 +726,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="voluptatibus", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="voluptatibus", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="voluptatibus", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="voluptatibus", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="voluptatibus", + tracking_link_id="non", account="", ) @@ -790,7 +790,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="dolores", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="dolores", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="dolores", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="dolores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="dolores", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 0524907b..113eb252 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="deleniti", + trial_link_id="aperiam", 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="deleniti", + trial_link_id="aperiam", 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="deleniti", + trial_link_id="aperiam", 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="deleniti", + trial_link_id="aperiam", account="", ) @@ -205,7 +205,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="deleniti", + trial_link_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="deleniti", + trial_link_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="deleniti", + trial_link_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="deleniti", + trial_link_id="aperiam", account="", ) @@ -321,7 +321,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="autem", + trial_link_id="magni", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="autem", + trial_link_id="magni", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="autem", + trial_link_id="magni", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="autem", + trial_link_id="magni", account="", limit=10, offset=0, @@ -383,7 +383,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="ipsa", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="ipsa", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="ipsa", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="ipsa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="ipsa", account="", ) @@ -447,7 +447,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="aperiam", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="aperiam", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="aperiam", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="aperiam", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="aperiam", + trial_link_id="sapiente", account="", ) @@ -583,7 +583,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="deleniti", + trial_link_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="deleniti", + trial_link_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="deleniti", + trial_link_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="deleniti", + trial_link_id="aperiam", account="", ) @@ -692,7 +692,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="deleniti", + trial_link_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="deleniti", + trial_link_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="deleniti", + trial_link_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="deleniti", + trial_link_id="aperiam", account="", ) @@ -808,7 +808,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="autem", + trial_link_id="magni", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="autem", + trial_link_id="magni", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="autem", + trial_link_id="magni", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="autem", + trial_link_id="magni", account="", limit=10, offset=0, @@ -870,7 +870,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="ipsa", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="ipsa", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="ipsa", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="ipsa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="ipsa", account="", ) @@ -934,7 +934,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="aperiam", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="aperiam", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="aperiam", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="aperiam", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="aperiam", + trial_link_id="sapiente", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 7bd348e2..b10a5e3f 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="uopqbezqdvxomnnbvnysw", + name="pmfrvgxsohkgrve", ) 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="uopqbezqdvxomnnbvnysw", + name="pmfrvgxsohkgrve", ) 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="uopqbezqdvxomnnbvnysw", + name="pmfrvgxsohkgrve", ) 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="uopqbezqdvxomnnbvnysw", + name="pmfrvgxsohkgrve", ) @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="uopqbezqdvxomnnbvnysw", + name="pmfrvgxsohkgrve", ) 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="uopqbezqdvxomnnbvnysw", + name="pmfrvgxsohkgrve", ) 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="uopqbezqdvxomnnbvnysw", + name="pmfrvgxsohkgrve", ) 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="uopqbezqdvxomnnbvnysw", + name="pmfrvgxsohkgrve", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 9193673f40a967a7c979465fd0b691a4b1e59bc8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 1 Aug 2026 00:12:34 +0000 Subject: [PATCH 206/249] 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_profiles.py | 4 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 32 +++--- tests/api_resources/test_tracking_links.py | 76 ++++++------- tests/api_resources/test_trial_links.py | 72 ++++++------- tests/api_resources/test_user_lists.py | 16 +-- 19 files changed, 264 insertions(+), 264 deletions(-) diff --git a/.stats.yml b/.stats.yml index b863200d..ad875e50 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-446dd37bf3f946b78c1871965d6c8615b1827af5f92cc5827541cebf5b66d2db.yml -openapi_spec_hash: f7cbc12eeba246d3ce34207b61508856 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-28befbb82cb087540ae046ba8dbad14f696cd9c7b2b3c8398228f0c1779c9e89.yml +openapi_spec_hash: e13fdb92655650972f93ad491a9b4561 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index a2586a4b..80387cfd 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="libero", + message_id="accusamus", 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="libero", + message_id="accusamus", 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="libero", + message_id="accusamus", 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="libero", + message_id="accusamus", 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="libero", + message_id="accusamus", 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="libero", + message_id="accusamus", 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="libero", + message_id="accusamus", 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="libero", + message_id="accusamus", 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="libero", + message_id="accusamus", 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="libero", + message_id="accusamus", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index cb6bd90f..73719d84 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="adipisci", + list_id="pariatur", 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="adipisci", + list_id="pariatur", 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="adipisci", + list_id="pariatur", 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="adipisci", + list_id="pariatur", 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="adipisci", + list_id="pariatur", 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="adipisci", + list_id="pariatur", 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="adipisci", + list_id="pariatur", 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="adipisci", + list_id="pariatur", 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="adipisci", + list_id="pariatur", 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="adipisci", + list_id="pariatur", 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="adipisci", + list_id="pariatur", 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="adipisci", + list_id="pariatur", 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="adipisci", + list_id="pariatur", 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="adipisci", + list_id="pariatur", 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="adipisci", + list_id="pariatur", 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="adipisci", + list_id="pariatur", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 446660ec..25fa36ae 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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 aa735c97..7549791e 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 9c80483e..2ced6cb5 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 ca6e1620..0ad56d28 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="harum", + path_story_id="dolorem", 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="harum", + path_story_id="dolorem", 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="harum", + path_story_id="dolorem", 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="harum", + path_story_id="dolorem", 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="harum", + story_id="dolorem", 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="harum", + story_id="dolorem", 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="harum", + story_id="dolorem", 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="harum", + story_id="dolorem", 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="harum", + path_story_id="dolorem", 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="harum", + path_story_id="dolorem", 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="harum", + path_story_id="dolorem", 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="harum", + path_story_id="dolorem", 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="harum", + story_id="dolorem", 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="harum", + story_id="dolorem", 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="harum", + story_id="dolorem", 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="harum", + story_id="dolorem", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 69e1fa47..320a26e8 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( - "tempore", + "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( - "tempore", + "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( - "tempore", + "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( - "tempore", + "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( - "tempore", + "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( - "tempore", + "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 07a92e8f..b9542702 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="quibusdam", - auth_type="mobile_app", - cookies="sint", + auth_id="animi", + auth_type="email_password", + cookies="temporibus", custom_proxy={ "host": "proxy.example.com", - "password": "Y&,wj82d", + "password": 'e?J34`nTd,!i"y', "port": 8080, - "username": "praesentium", + "username": "sit", }, - email="botsford.antonio@example.net", + email="trever05@example.org", force_connect=False, - name="veritatis", - password="Vw%-.U", + name="sit", + password='"NgX$wz=HAN', proxy_country="us", - user_agent="esse", - xbc="neque", + user_agent="velit", + xbc="beatae", ) 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="quibusdam", - auth_type="mobile_app", - cookies="sint", + auth_id="animi", + auth_type="email_password", + cookies="temporibus", custom_proxy={ "host": "proxy.example.com", - "password": "Y&,wj82d", + "password": 'e?J34`nTd,!i"y', "port": 8080, - "username": "praesentium", + "username": "sit", }, - email="botsford.antonio@example.net", + email="trever05@example.org", force_connect=False, - name="veritatis", - password="Vw%-.U", + name="sit", + password='"NgX$wz=HAN', proxy_country="us", - user_agent="esse", - xbc="neque", + user_agent="velit", + xbc="beatae", ) 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 9249f386..3597ede6 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 4d3e426f..0f3980c1 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="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="mentions", + 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 bd4f6161..65694e23 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 0ccd85f4..72a2d21e 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": ["xmjaddgbzmmq"]}, + filter={"tags": ["rzwjjfyr"]}, limit=50, name="Instagram", offset=0, @@ -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="delectus", + smart_link_id="voluptatem", ) 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="delectus", + smart_link_id="voluptatem", 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="delectus", + smart_link_id="voluptatem", ) 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="delectus", + smart_link_id="voluptatem", ) 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="enim", + smart_link_id="aut", ) 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="enim", + smart_link_id="aut", 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="enim", + smart_link_id="aut", ) 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="enim", + smart_link_id="aut", ) 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="hic", + smart_link_id="molestiae", ) 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="hic", + smart_link_id="molestiae", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="hic", + smart_link_id="molestiae", ) assert response.is_closed is True @@ -358,7 +358,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="hic", + smart_link_id="molestiae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="quia", + smart_link_id="blanditiis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="quia", + smart_link_id="blanditiis", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="quia", + smart_link_id="blanditiis", ) assert response.is_closed is True @@ -411,7 +411,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="quia", + smart_link_id="blanditiis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="ipsa", + smart_link_id="cupiditate", ) assert smart_link is None @@ -441,7 +441,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="ipsa", + smart_link_id="cupiditate", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="ipsa", + smart_link_id="cupiditate", ) assert response.is_closed is True @@ -464,7 +464,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="ipsa", + smart_link_id="cupiditate", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="accusamus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="accusamus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="accusamus", ) assert response.is_closed is True @@ -516,7 +516,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="accusamus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["xmjaddgbzmmq"]}, + filter={"tags": ["rzwjjfyr"]}, limit=50, name="Instagram", offset=0, @@ -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="delectus", + smart_link_id="voluptatem", ) 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="delectus", + smart_link_id="voluptatem", 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="delectus", + smart_link_id="voluptatem", ) 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="delectus", + smart_link_id="voluptatem", ) 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="enim", + smart_link_id="aut", ) 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="enim", + smart_link_id="aut", 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="enim", + smart_link_id="aut", ) 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="enim", + smart_link_id="aut", ) 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="hic", + smart_link_id="molestiae", ) 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="hic", + smart_link_id="molestiae", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="hic", + smart_link_id="molestiae", ) assert response.is_closed is True @@ -871,7 +871,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="hic", + smart_link_id="molestiae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="quia", + smart_link_id="blanditiis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="quia", + smart_link_id="blanditiis", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="quia", + smart_link_id="blanditiis", ) assert response.is_closed is True @@ -924,7 +924,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="quia", + smart_link_id="blanditiis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="ipsa", + smart_link_id="cupiditate", ) assert smart_link is None @@ -954,7 +954,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="ipsa", + smart_link_id="cupiditate", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="ipsa", + smart_link_id="cupiditate", ) assert response.is_closed is True @@ -977,7 +977,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="ipsa", + smart_link_id="cupiditate", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="accusamus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="accusamus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="accusamus", ) assert response.is_closed is True @@ -1029,7 +1029,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="accusamus", ) 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 87d79abe..491da06a 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": "imvuuaakwyh", - "tags": ["lzuzw"], + "search": "nrdsbga", + "tags": ["oxttoxbtnxwztdpmlvxu"], }, 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": "cydlolxlvppcl", - "tags": ["tdrvmm"], + "search": "wjlfyyiwnzdblcmgvrugldkwz", + "tags": ["xe"], }, 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": "ifurz", - "tags": ["ouwqgxfluznexsy"], + "search": "phmcqmrvafnquvcofytgxd", + "tags": ["hghsqzkelvkgbxgxiyj"], }, 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": "nqaqesbuuvfiidsiolvgp", - "tags": ["ccwna"], + "search": "ljutvxbiwepowrf", + "tags": ["gwftakjrpizrddvhj"], }, 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": "imvuuaakwyh", - "tags": ["lzuzw"], + "search": "nrdsbga", + "tags": ["oxttoxbtnxwztdpmlvxu"], }, 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": "cydlolxlvppcl", - "tags": ["tdrvmm"], + "search": "wjlfyyiwnzdblcmgvrugldkwz", + "tags": ["xe"], }, 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": "ifurz", - "tags": ["ouwqgxfluznexsy"], + "search": "phmcqmrvafnquvcofytgxd", + "tags": ["hghsqzkelvkgbxgxiyj"], }, 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": "nqaqesbuuvfiidsiolvgp", - "tags": ["ccwna"], + "search": "ljutvxbiwepowrf", + "tags": ["gwftakjrpizrddvhj"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index b3d8c762..cd45d775 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="tempora", + tracking_link_id="ea", 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="tempora", + tracking_link_id="ea", 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="tempora", + tracking_link_id="ea", 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="tempora", + tracking_link_id="ea", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="tempora", + tracking_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="tempora", + tracking_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="tempora", + tracking_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="tempora", + tracking_link_id="ea", account="", ) @@ -248,7 +248,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="corporis", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="corporis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="corporis", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="corporis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="corporis", account="", ) @@ -312,7 +312,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="dolores", + tracking_link_id="dolore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="dolores", + tracking_link_id="dolore", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="dolores", + tracking_link_id="dolore", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="dolores", + tracking_link_id="dolore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="dolores", + tracking_link_id="dolore", account="", ) @@ -563,7 +563,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="tempora", + tracking_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="tempora", + tracking_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="tempora", + tracking_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="tempora", + tracking_link_id="ea", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="tempora", + tracking_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="tempora", + tracking_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="tempora", + tracking_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="tempora", + tracking_link_id="ea", account="", ) @@ -726,7 +726,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="corporis", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="corporis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="corporis", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="corporis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="corporis", account="", ) @@ -790,7 +790,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="dolores", + tracking_link_id="dolore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="dolores", + tracking_link_id="dolore", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="dolores", + tracking_link_id="dolore", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="dolores", + tracking_link_id="dolore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="dolores", + tracking_link_id="dolore", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 113eb252..c23273b7 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="aperiam", + 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="aperiam", + 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="aperiam", + 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="aperiam", + trial_link_id="et", account="", ) @@ -205,7 +205,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="aperiam", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="aperiam", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="aperiam", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="aperiam", + trial_link_id="et", account="", ) @@ -383,7 +383,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="ipsa", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="ipsa", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="ipsa", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="ipsa", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="ipsa", + trial_link_id="sunt", account="", ) @@ -447,7 +447,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="sapiente", + trial_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="sapiente", + trial_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="sapiente", + trial_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="sapiente", + trial_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="sapiente", + trial_link_id="magnam", account="", ) @@ -583,7 +583,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="aperiam", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="aperiam", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="aperiam", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="aperiam", + trial_link_id="et", account="", ) @@ -692,7 +692,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="aperiam", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="aperiam", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="aperiam", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="aperiam", + trial_link_id="et", account="", ) @@ -870,7 +870,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="ipsa", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="ipsa", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="ipsa", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="ipsa", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="ipsa", + trial_link_id="sunt", account="", ) @@ -934,7 +934,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="sapiente", + trial_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="sapiente", + trial_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="sapiente", + trial_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="sapiente", + trial_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="sapiente", + trial_link_id="magnam", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index b10a5e3f..0e327fbe 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="pmfrvgxsohkgrve", + name="jile", ) 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="pmfrvgxsohkgrve", + name="jile", ) 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="pmfrvgxsohkgrve", + name="jile", ) 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="pmfrvgxsohkgrve", + name="jile", ) @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="pmfrvgxsohkgrve", + name="jile", ) 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="pmfrvgxsohkgrve", + name="jile", ) 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="pmfrvgxsohkgrve", + name="jile", ) 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="pmfrvgxsohkgrve", + name="jile", ) @pytest.mark.skip(reason="Mock server tests are disabled") From ed4c419b5d56cddcc27679ff2158f58d3e827cb4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 1 Aug 2026 05:12:30 +0000 Subject: [PATCH 207/249] 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_profiles.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 +-- 17 files changed, 268 insertions(+), 268 deletions(-) diff --git a/.stats.yml b/.stats.yml index ad875e50..2c89b128 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-28befbb82cb087540ae046ba8dbad14f696cd9c7b2b3c8398228f0c1779c9e89.yml -openapi_spec_hash: e13fdb92655650972f93ad491a9b4561 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7c98fc095cb32510deb3d4cd9aa224171d93cf460e9463eaf197fe2f3f19cff8.yml +openapi_spec_hash: dc682bf7cc4a4368874fe6191fd66287 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 80387cfd..a4e86aa2 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="accusamus", + message_id="voluptatem", 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="accusamus", + message_id="voluptatem", 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="accusamus", + message_id="voluptatem", 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="accusamus", + message_id="voluptatem", 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="accusamus", + message_id="voluptatem", 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="accusamus", + message_id="voluptatem", 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="accusamus", + message_id="voluptatem", 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="accusamus", + message_id="voluptatem", 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="accusamus", + message_id="voluptatem", 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="accusamus", + message_id="voluptatem", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 73719d84..eab16a1b 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="pariatur", + list_id="voluptatem", 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="pariatur", + list_id="voluptatem", 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="pariatur", + list_id="voluptatem", 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="pariatur", + list_id="voluptatem", 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="pariatur", + list_id="voluptatem", 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="pariatur", + list_id="voluptatem", 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="pariatur", + list_id="voluptatem", 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="pariatur", + list_id="voluptatem", 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="pariatur", + list_id="voluptatem", 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="pariatur", + list_id="voluptatem", 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="pariatur", + list_id="voluptatem", 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="pariatur", + list_id="voluptatem", 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="pariatur", + list_id="voluptatem", 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="pariatur", + list_id="voluptatem", 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="pariatur", + list_id="voluptatem", 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="pariatur", + list_id="voluptatem", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 25fa36ae..f66b90ab 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="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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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="molestias", + 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 7549791e..aa735c97 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 2ced6cb5..b5f3d61a 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 9664075f..544df889 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 0ad56d28..06d474b9 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="dolorem", + path_story_id="autem", 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="dolorem", + path_story_id="autem", 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="dolorem", + path_story_id="autem", 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="dolorem", + path_story_id="autem", 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="dolorem", + story_id="autem", 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="dolorem", + story_id="autem", 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="dolorem", + story_id="autem", 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="dolorem", + story_id="autem", 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="dolorem", + path_story_id="autem", 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="dolorem", + path_story_id="autem", 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="dolorem", + path_story_id="autem", 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="dolorem", + path_story_id="autem", 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="dolorem", + story_id="autem", 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="dolorem", + story_id="autem", 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="dolorem", + story_id="autem", 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="dolorem", + story_id="autem", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 320a26e8..772c9036 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", + "facere", ) 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", + "facere", ) 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", + "facere", ) 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", + "facere", ) 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", + "facere", ) 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", + "facere", ) 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 b9542702..cce84074 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="animi", - auth_type="email_password", - cookies="temporibus", + auth_id="est", + auth_type="raw_data", + cookies="illum", custom_proxy={ "host": "proxy.example.com", - "password": 'e?J34`nTd,!i"y', + "password": "!idjqr^*mIS~O!3", "port": 8080, - "username": "sit", + "username": "temporibus", }, - email="trever05@example.org", + email="ejaskolski@example.org", force_connect=False, - name="sit", - password='"NgX$wz=HAN', - proxy_country="us", - user_agent="velit", - xbc="beatae", + name="velit", + password="p}=irJ!S$6p~*E:]`]oN", + proxy_country="uk", + user_agent="numquam", + 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="animi", - auth_type="email_password", - cookies="temporibus", + auth_id="est", + auth_type="raw_data", + cookies="illum", custom_proxy={ "host": "proxy.example.com", - "password": 'e?J34`nTd,!i"y', + "password": "!idjqr^*mIS~O!3", "port": 8080, - "username": "sit", + "username": "temporibus", }, - email="trever05@example.org", + email="ejaskolski@example.org", force_connect=False, - name="sit", - password='"NgX$wz=HAN', - proxy_country="us", - user_agent="velit", - xbc="beatae", + name="velit", + password="p}=irJ!S$6p~*E:]`]oN", + proxy_country="uk", + user_agent="numquam", + xbc="et", ) 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 3597ede6..0d035d3b 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="gb", ) 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="gb", ) 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 65694e23..bd4f6161 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 72a2d21e..50e86357 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": ["rzwjjfyr"]}, + filter={"tags": ["esx"]}, limit=50, name="Instagram", offset=0, @@ -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="voluptatem", + smart_link_id="nesciunt", ) 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="voluptatem", + smart_link_id="nesciunt", 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="voluptatem", + smart_link_id="nesciunt", ) 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="voluptatem", + smart_link_id="nesciunt", ) 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="aut", + smart_link_id="non", ) 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="aut", + smart_link_id="non", 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="aut", + smart_link_id="non", ) 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="aut", + smart_link_id="non", ) 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="molestiae", + smart_link_id="sit", ) 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="molestiae", + smart_link_id="sit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="molestiae", + smart_link_id="sit", ) assert response.is_closed is True @@ -358,7 +358,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="molestiae", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="blanditiis", + smart_link_id="occaecati", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="blanditiis", + smart_link_id="occaecati", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="blanditiis", + smart_link_id="occaecati", ) assert response.is_closed is True @@ -411,7 +411,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="blanditiis", + smart_link_id="occaecati", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="cupiditate", + smart_link_id="consectetur", ) assert smart_link is None @@ -441,7 +441,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="cupiditate", + smart_link_id="consectetur", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="cupiditate", + smart_link_id="consectetur", ) assert response.is_closed is True @@ -464,7 +464,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="cupiditate", + smart_link_id="consectetur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="accusamus", + smart_link_id="consectetur", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="accusamus", + smart_link_id="consectetur", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="accusamus", + smart_link_id="consectetur", ) assert response.is_closed is True @@ -516,7 +516,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="accusamus", + smart_link_id="consectetur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["rzwjjfyr"]}, + filter={"tags": ["esx"]}, limit=50, name="Instagram", offset=0, @@ -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="voluptatem", + smart_link_id="nesciunt", ) 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="voluptatem", + smart_link_id="nesciunt", 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="voluptatem", + smart_link_id="nesciunt", ) 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="voluptatem", + smart_link_id="nesciunt", ) 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="aut", + smart_link_id="non", ) 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="aut", + smart_link_id="non", 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="aut", + smart_link_id="non", ) 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="aut", + smart_link_id="non", ) 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="molestiae", + smart_link_id="sit", ) 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="molestiae", + smart_link_id="sit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="molestiae", + smart_link_id="sit", ) assert response.is_closed is True @@ -871,7 +871,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="molestiae", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="blanditiis", + smart_link_id="occaecati", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="blanditiis", + smart_link_id="occaecati", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="blanditiis", + smart_link_id="occaecati", ) assert response.is_closed is True @@ -924,7 +924,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="blanditiis", + smart_link_id="occaecati", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="cupiditate", + smart_link_id="consectetur", ) assert smart_link is None @@ -954,7 +954,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="cupiditate", + smart_link_id="consectetur", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="cupiditate", + smart_link_id="consectetur", ) assert response.is_closed is True @@ -977,7 +977,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="cupiditate", + smart_link_id="consectetur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="accusamus", + smart_link_id="consectetur", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="accusamus", + smart_link_id="consectetur", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="accusamus", + smart_link_id="consectetur", ) assert response.is_closed is True @@ -1029,7 +1029,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="accusamus", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index 491da06a..74ec6457 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": "nrdsbga", - "tags": ["oxttoxbtnxwztdpmlvxu"], + "search": "nfoczodnpekllp", + "tags": ["zsgnkqekaxbiyxmsauzbvuohn"], }, 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": "wjlfyyiwnzdblcmgvrugldkwz", - "tags": ["xe"], + "search": "nzmeq", + "tags": ["yfxdnksreej"], }, 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": "phmcqmrvafnquvcofytgxd", - "tags": ["hghsqzkelvkgbxgxiyj"], + "search": "tyfuckkkyyyqgfktt", + "tags": ["prxoznabhwrecydv"], }, 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": "ljutvxbiwepowrf", - "tags": ["gwftakjrpizrddvhj"], + "search": "ascakqgdro", + "tags": ["yzokcbvyklbxcsohp"], }, 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": "nrdsbga", - "tags": ["oxttoxbtnxwztdpmlvxu"], + "search": "nfoczodnpekllp", + "tags": ["zsgnkqekaxbiyxmsauzbvuohn"], }, 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": "wjlfyyiwnzdblcmgvrugldkwz", - "tags": ["xe"], + "search": "nzmeq", + "tags": ["yfxdnksreej"], }, 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": "phmcqmrvafnquvcofytgxd", - "tags": ["hghsqzkelvkgbxgxiyj"], + "search": "tyfuckkkyyyqgfktt", + "tags": ["prxoznabhwrecydv"], }, 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": "ljutvxbiwepowrf", - "tags": ["gwftakjrpizrddvhj"], + "search": "ascakqgdro", + "tags": ["yzokcbvyklbxcsohp"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index cd45d775..1d094b12 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="ea", + 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="ea", + 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="ea", + 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="ea", + tracking_link_id="qui", account="", ) @@ -196,7 +196,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="ea", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="ea", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="ea", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="ea", + tracking_link_id="qui", account="", ) @@ -248,7 +248,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="corporis", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="corporis", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="corporis", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="corporis", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="corporis", + tracking_link_id="harum", account="", ) @@ -312,7 +312,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="dolore", + tracking_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="dolore", + tracking_link_id="eum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="dolore", + tracking_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="dolore", + tracking_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="dolore", + tracking_link_id="eum", account="", ) @@ -563,7 +563,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="ea", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="ea", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="ea", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="ea", + tracking_link_id="qui", account="", ) @@ -674,7 +674,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="ea", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="ea", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="ea", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="ea", + tracking_link_id="qui", account="", ) @@ -726,7 +726,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="corporis", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="corporis", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="corporis", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="corporis", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="corporis", + tracking_link_id="harum", account="", ) @@ -790,7 +790,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="dolore", + tracking_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="dolore", + tracking_link_id="eum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="dolore", + tracking_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="dolore", + tracking_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="dolore", + tracking_link_id="eum", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index c23273b7..ba89f968 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="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="et", + 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="et", + 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="et", + trial_link_id="ut", account="", ) @@ -205,7 +205,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="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="ut", account="", ) @@ -321,7 +321,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="magni", + trial_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="magni", + trial_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="magni", + trial_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="magni", + trial_link_id="maiores", account="", limit=10, offset=0, @@ -383,7 +383,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="sunt", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="sunt", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="sunt", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="sunt", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="sunt", + trial_link_id="sit", account="", ) @@ -447,7 +447,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="magnam", + trial_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="magnam", + trial_link_id="quod", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="magnam", + trial_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="magnam", + trial_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="magnam", + trial_link_id="quod", account="", ) @@ -583,7 +583,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="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="ut", account="", ) @@ -692,7 +692,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="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="ut", account="", ) @@ -808,7 +808,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="magni", + trial_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="magni", + trial_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="magni", + trial_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="magni", + trial_link_id="maiores", account="", limit=10, offset=0, @@ -870,7 +870,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="sunt", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="sunt", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="sunt", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="sunt", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="sunt", + trial_link_id="sit", account="", ) @@ -934,7 +934,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="magnam", + trial_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="magnam", + trial_link_id="quod", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="magnam", + trial_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="magnam", + trial_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="magnam", + trial_link_id="quod", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 0e327fbe..11877d1c 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="jile", + name="abykovvfeteq", ) 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="jile", + name="abykovvfeteq", ) 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="jile", + name="abykovvfeteq", ) 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="jile", + name="abykovvfeteq", ) @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="jile", + name="abykovvfeteq", ) 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="jile", + name="abykovvfeteq", ) 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="jile", + name="abykovvfeteq", ) 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="jile", + name="abykovvfeteq", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 95218c90954a7f89c429153e2e39a74edae409ab Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 2 Aug 2026 20:12:38 +0000 Subject: [PATCH 208/249] 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_smart_links.py | 84 +++++++++--------- 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, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2c89b128..32142ff8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7c98fc095cb32510deb3d4cd9aa224171d93cf460e9463eaf197fe2f3f19cff8.yml -openapi_spec_hash: dc682bf7cc4a4368874fe6191fd66287 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b8aa3dc8ecdb7abf50457c39f0ea5f32393832702742ac62df27924edd929acd.yml +openapi_spec_hash: 99c1fa667a4dabaf3eb6d8bb8c874536 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index a4e86aa2..fdd373c5 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", 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="labore", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index eab16a1b..729a944d 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + list_id="id", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index f66b90ab..ff92f5c8 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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="atque", 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 aa735c97..a62ccbd3 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 b5f3d61a..9c80483e 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 06d474b9..ad9c9b25 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="rem", 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="rem", 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="rem", 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="rem", 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="rem", 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="rem", 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="rem", 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="rem", 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="rem", 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="rem", 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="rem", 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="rem", 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="rem", 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="rem", 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="rem", 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="rem", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 772c9036..9725452e 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( - "facere", + "amet", ) 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( - "facere", + "amet", ) 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( - "facere", + "amet", ) 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( - "facere", + "amet", ) 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( - "facere", + "amet", ) 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( - "facere", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index cce84074..f37135ac 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="raw_data", - cookies="illum", + auth_id="odio", + auth_type="email_password", + cookies="adipisci", custom_proxy={ "host": "proxy.example.com", - "password": "!idjqr^*mIS~O!3", + "password": "`{Y:~5?N6", "port": 8080, - "username": "temporibus", + "username": "laborum", }, - email="ejaskolski@example.org", + email="micah.jaskolski@example.net", force_connect=False, - name="velit", - password="p}=irJ!S$6p~*E:]`]oN", - proxy_country="uk", - user_agent="numquam", - xbc="et", + name="sed", + password="m?5FQ(", + proxy_country="us", + user_agent="fuga", + xbc="enim", ) 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="raw_data", - cookies="illum", + auth_id="odio", + auth_type="email_password", + cookies="adipisci", custom_proxy={ "host": "proxy.example.com", - "password": "!idjqr^*mIS~O!3", + "password": "`{Y:~5?N6", "port": 8080, - "username": "temporibus", + "username": "laborum", }, - email="ejaskolski@example.org", + email="micah.jaskolski@example.net", force_connect=False, - name="velit", - password="p}=irJ!S$6p~*E:]`]oN", - proxy_country="uk", - user_agent="numquam", - xbc="et", + name="sed", + password="m?5FQ(", + proxy_country="us", + user_agent="fuga", + xbc="enim", ) 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 0d035d3b..3597ede6 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="gb", + 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="gb", + 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 0f3980c1..1a80b275 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="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="tips", + 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 50e86357..f7a54dd8 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": ["esx"]}, + filter={"tags": ["ansbbaeywmpsm"]}, limit=50, name="Instagram", offset=0, @@ -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="nesciunt", + smart_link_id="quam", ) 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="nesciunt", + smart_link_id="quam", 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="nesciunt", + smart_link_id="quam", ) 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="nesciunt", + smart_link_id="quam", ) 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="sit", + 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="sit", + smart_link_id="est", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="sit", + smart_link_id="est", ) assert response.is_closed is True @@ -358,7 +358,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="sit", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="occaecati", + smart_link_id="possimus", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="occaecati", + smart_link_id="possimus", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="occaecati", + smart_link_id="possimus", ) assert response.is_closed is True @@ -411,7 +411,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="occaecati", + smart_link_id="possimus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="eveniet", ) assert smart_link is None @@ -441,7 +441,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="eveniet", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="eveniet", ) assert response.is_closed is True @@ -464,7 +464,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="eveniet", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="consectetur", + smart_link_id="nihil", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="consectetur", + smart_link_id="nihil", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="consectetur", + smart_link_id="nihil", ) assert response.is_closed is True @@ -516,7 +516,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="consectetur", + smart_link_id="nihil", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["esx"]}, + filter={"tags": ["ansbbaeywmpsm"]}, limit=50, name="Instagram", offset=0, @@ -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="nesciunt", + smart_link_id="quam", ) 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="nesciunt", + smart_link_id="quam", 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="nesciunt", + smart_link_id="quam", ) 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="nesciunt", + smart_link_id="quam", ) 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="sit", + 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="sit", + smart_link_id="est", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="sit", + smart_link_id="est", ) assert response.is_closed is True @@ -871,7 +871,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="sit", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="occaecati", + smart_link_id="possimus", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="occaecati", + smart_link_id="possimus", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="occaecati", + smart_link_id="possimus", ) assert response.is_closed is True @@ -924,7 +924,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="occaecati", + smart_link_id="possimus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="eveniet", ) assert smart_link is None @@ -954,7 +954,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="eveniet", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="eveniet", ) assert response.is_closed is True @@ -977,7 +977,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="eveniet", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="consectetur", + smart_link_id="nihil", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="consectetur", + smart_link_id="nihil", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="consectetur", + smart_link_id="nihil", ) assert response.is_closed is True @@ -1029,7 +1029,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="consectetur", + smart_link_id="nihil", ) 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 74ec6457..9ccfb9c1 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": "nfoczodnpekllp", - "tags": ["zsgnkqekaxbiyxmsauzbvuohn"], + "search": "p", + "tags": ["rbaxmgtthaj"], }, 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": "nzmeq", - "tags": ["yfxdnksreej"], + "search": "pygmoevmi", + "tags": ["uzqgldgcjdm"], }, 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": "tyfuckkkyyyqgfktt", - "tags": ["prxoznabhwrecydv"], + "include_smart_links": True, + "search": "xagdioeikvz", + "tags": ["sy"], }, 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": "ascakqgdro", - "tags": ["yzokcbvyklbxcsohp"], + "include_smart_links": False, + "search": "rvh", + "tags": ["xiktjfr"], }, 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": "nfoczodnpekllp", - "tags": ["zsgnkqekaxbiyxmsauzbvuohn"], + "search": "p", + "tags": ["rbaxmgtthaj"], }, 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": "nzmeq", - "tags": ["yfxdnksreej"], + "search": "pygmoevmi", + "tags": ["uzqgldgcjdm"], }, 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": "tyfuckkkyyyqgfktt", - "tags": ["prxoznabhwrecydv"], + "include_smart_links": True, + "search": "xagdioeikvz", + "tags": ["sy"], }, 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": "ascakqgdro", - "tags": ["yzokcbvyklbxcsohp"], + "include_smart_links": False, + "search": "rvh", + "tags": ["xiktjfr"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 1d094b12..17fee181 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="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="qui", + 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="qui", + 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="qui", + tracking_link_id="voluptates", account="", ) @@ -196,7 +196,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="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="voluptates", account="", ) @@ -248,7 +248,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="eaque", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="eaque", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="eaque", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="eaque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="eaque", account="", ) @@ -312,7 +312,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="eum", + tracking_link_id="cumque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="eum", + tracking_link_id="cumque", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="eum", + tracking_link_id="cumque", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="eum", + tracking_link_id="cumque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="eum", + tracking_link_id="cumque", account="", ) @@ -563,7 +563,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="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="voluptates", account="", ) @@ -674,7 +674,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="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="voluptates", account="", ) @@ -726,7 +726,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="eaque", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="eaque", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="eaque", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="eaque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="eaque", account="", ) @@ -790,7 +790,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="eum", + tracking_link_id="cumque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="eum", + tracking_link_id="cumque", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="eum", + tracking_link_id="cumque", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="eum", + tracking_link_id="cumque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="eum", + tracking_link_id="cumque", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index ba89f968..a27e33ca 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="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="ut", + 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="ut", + 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="ut", + trial_link_id="mollitia", account="", ) @@ -205,7 +205,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="mollitia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="mollitia", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="mollitia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="mollitia", account="", ) @@ -321,7 +321,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="maiores", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="maiores", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="maiores", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="maiores", + trial_link_id="ut", account="", limit=10, offset=0, @@ -383,7 +383,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="sit", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="sit", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="sit", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="sit", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="sit", + trial_link_id="possimus", account="", ) @@ -447,7 +447,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="quod", + trial_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="quod", + trial_link_id="minus", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="quod", + trial_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="quod", + trial_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="quod", + trial_link_id="minus", account="", ) @@ -583,7 +583,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="mollitia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="mollitia", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="mollitia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="mollitia", account="", ) @@ -692,7 +692,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="mollitia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="mollitia", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="mollitia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="mollitia", account="", ) @@ -808,7 +808,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="maiores", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="maiores", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="maiores", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="maiores", + trial_link_id="ut", account="", limit=10, offset=0, @@ -870,7 +870,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="sit", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="sit", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="sit", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="sit", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="sit", + trial_link_id="possimus", account="", ) @@ -934,7 +934,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="quod", + trial_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="quod", + trial_link_id="minus", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="quod", + trial_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="quod", + trial_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="quod", + trial_link_id="minus", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 11877d1c..f164fe79 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="abykovvfeteq", + name="gayvcxm", ) 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="abykovvfeteq", + name="gayvcxm", ) 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="abykovvfeteq", + name="gayvcxm", ) 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="abykovvfeteq", + name="gayvcxm", ) @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="abykovvfeteq", + name="gayvcxm", ) 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="abykovvfeteq", + name="gayvcxm", ) 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="abykovvfeteq", + name="gayvcxm", ) 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="abykovvfeteq", + name="gayvcxm", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 32c6f88e69572a26f95de0a553786bff41dc6dc2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 2 Aug 2026 21:12:33 +0000 Subject: [PATCH 209/249] 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 +- .../api_resources/test_shared_trial_links.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 | 72 ++++++------- tests/api_resources/test_user_lists.py | 16 +-- 17 files changed, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index 32142ff8..da5df7c1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b8aa3dc8ecdb7abf50457c39f0ea5f32393832702742ac62df27924edd929acd.yml -openapi_spec_hash: 99c1fa667a4dabaf3eb6d8bb8c874536 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6da1904c4307508964dcc9f4cced7299a06a93982eceb54f02779ad5f1601f48.yml +openapi_spec_hash: 4cccfe7876171811f8b719a203d45740 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index fdd373c5..77e54590 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="labore", + message_id="dolores", 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="labore", + message_id="dolores", 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="labore", + message_id="dolores", 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="labore", + message_id="dolores", 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="labore", + message_id="dolores", 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="labore", + message_id="dolores", 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="labore", + message_id="dolores", 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="labore", + message_id="dolores", 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="labore", + message_id="dolores", 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="labore", + message_id="dolores", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 729a944d..3f828857 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="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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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="id", + 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 ff92f5c8..bfa9708b 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="atque", + post_id="ipsa", 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="atque", + post_id="ipsa", 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="atque", + post_id="ipsa", 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="atque", + post_id="ipsa", 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="atque", + post_id="ipsa", 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="atque", + post_id="ipsa", 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="atque", + post_id="ipsa", 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="atque", + post_id="ipsa", 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="atque", + post_id="ipsa", 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="atque", + post_id="ipsa", 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="atque", + post_id="ipsa", 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="atque", + post_id="ipsa", 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="atque", + post_id="ipsa", 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="atque", + post_id="ipsa", 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="atque", + post_id="ipsa", 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="atque", + post_id="ipsa", 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="atque", + post_id="ipsa", 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="atque", + post_id="ipsa", 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="atque", + post_id="ipsa", 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="atque", + post_id="ipsa", 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 a62ccbd3..aa735c97 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 9c80483e..b5f3d61a 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 544df889..9664075f 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 ad9c9b25..506c2ed9 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + story_id="et", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 9725452e..0b8f88f0 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( - "amet", + "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( - "amet", + "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( - "amet", + "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( - "amet", + "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( - "amet", + "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( - "amet", + "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 f37135ac..7c55497f 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="odio", - auth_type="email_password", - cookies="adipisci", + auth_id="assumenda", + auth_type="mobile_app", + cookies="perspiciatis", custom_proxy={ "host": "proxy.example.com", - "password": "`{Y:~5?N6", + "password": "ycWDfIxza", "port": 8080, - "username": "laborum", + "username": "voluptatem", }, - email="micah.jaskolski@example.net", + email="idicki@example.org", force_connect=False, - name="sed", - password="m?5FQ(", - proxy_country="us", - user_agent="fuga", - xbc="enim", + name="ullam", + password="LE.coe0ozQ", + proxy_country="gb", + user_agent="dolor", + 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="odio", - auth_type="email_password", - cookies="adipisci", + auth_id="assumenda", + auth_type="mobile_app", + cookies="perspiciatis", custom_proxy={ "host": "proxy.example.com", - "password": "`{Y:~5?N6", + "password": "ycWDfIxza", "port": 8080, - "username": "laborum", + "username": "voluptatem", }, - email="micah.jaskolski@example.net", + email="idicki@example.org", force_connect=False, - name="sed", - password="m?5FQ(", - proxy_country="us", - user_agent="fuga", - xbc="enim", + name="ullam", + password="LE.coe0ozQ", + proxy_country="gb", + user_agent="dolor", + 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 1a80b275..413a2df6 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="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="onlyfans", + type="likes", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index f7a54dd8..9e42ede8 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": ["ansbbaeywmpsm"]}, + filter={"tags": ["psgtnwkwcqlwvuxcev"]}, limit=50, name="Instagram", offset=0, @@ -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="quam", + smart_link_id="at", ) 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="quam", + smart_link_id="at", 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="quam", + smart_link_id="at", ) 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="quam", + smart_link_id="at", ) 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="non", + smart_link_id="repellat", ) 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="non", + smart_link_id="repellat", 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="non", + smart_link_id="repellat", ) 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="non", + smart_link_id="repellat", ) 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="est", + 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="est", + smart_link_id="et", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="et", ) assert response.is_closed is True @@ -358,7 +358,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="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="possimus", + smart_link_id="accusantium", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="possimus", + smart_link_id="accusantium", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="possimus", + smart_link_id="accusantium", ) assert response.is_closed is True @@ -411,7 +411,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="possimus", + smart_link_id="accusantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="eveniet", + smart_link_id="sequi", ) assert smart_link is None @@ -441,7 +441,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="eveniet", + smart_link_id="sequi", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="eveniet", + smart_link_id="sequi", ) assert response.is_closed is True @@ -464,7 +464,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="eveniet", + smart_link_id="sequi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="nihil", + smart_link_id="omnis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="nihil", + smart_link_id="omnis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="nihil", + smart_link_id="omnis", ) assert response.is_closed is True @@ -516,7 +516,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="nihil", + smart_link_id="omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["ansbbaeywmpsm"]}, + filter={"tags": ["psgtnwkwcqlwvuxcev"]}, limit=50, name="Instagram", offset=0, @@ -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="quam", + smart_link_id="at", ) 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="quam", + smart_link_id="at", 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="quam", + smart_link_id="at", ) 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="quam", + smart_link_id="at", ) 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="non", + smart_link_id="repellat", ) 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="non", + smart_link_id="repellat", 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="non", + smart_link_id="repellat", ) 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="non", + smart_link_id="repellat", ) 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="et", ) 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="et", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="et", ) assert response.is_closed is True @@ -871,7 +871,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="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="possimus", + smart_link_id="accusantium", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="possimus", + smart_link_id="accusantium", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="possimus", + smart_link_id="accusantium", ) assert response.is_closed is True @@ -924,7 +924,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="possimus", + smart_link_id="accusantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="eveniet", + smart_link_id="sequi", ) assert smart_link is None @@ -954,7 +954,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="eveniet", + smart_link_id="sequi", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="eveniet", + smart_link_id="sequi", ) assert response.is_closed is True @@ -977,7 +977,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="eveniet", + smart_link_id="sequi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="nihil", + smart_link_id="omnis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="nihil", + smart_link_id="omnis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="nihil", + smart_link_id="omnis", ) assert response.is_closed is True @@ -1029,7 +1029,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="nihil", + 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 9ccfb9c1..c79ae61f 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": "p", - "tags": ["rbaxmgtthaj"], + "search": "ukhpvjcg", + "tags": ["fe"], }, 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": "pygmoevmi", - "tags": ["uzqgldgcjdm"], + "search": "kxevwbmmsclzulzaop", + "tags": ["idkezxvsqiestnafk"], }, 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": "xagdioeikvz", - "tags": ["sy"], + "include_smart_links": False, + "search": "rvnaykydejuljkqtx", + "tags": ["rfh"], }, 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": "rvh", - "tags": ["xiktjfr"], + "search": "wxqzhwpjolkccbdkrmabqrr", + "tags": ["bndiyeghlhnwhwqxgkwojhbzg"], }, 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": "p", - "tags": ["rbaxmgtthaj"], + "search": "ukhpvjcg", + "tags": ["fe"], }, 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": "pygmoevmi", - "tags": ["uzqgldgcjdm"], + "search": "kxevwbmmsclzulzaop", + "tags": ["idkezxvsqiestnafk"], }, 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": "xagdioeikvz", - "tags": ["sy"], + "include_smart_links": False, + "search": "rvnaykydejuljkqtx", + "tags": ["rfh"], }, 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": "rvh", - "tags": ["xiktjfr"], + "search": "wxqzhwpjolkccbdkrmabqrr", + "tags": ["bndiyeghlhnwhwqxgkwojhbzg"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 17fee181..caf3d19b 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="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="voluptates", + 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="voluptates", + 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="voluptates", + tracking_link_id="et", account="", ) @@ -196,7 +196,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="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="et", account="", ) @@ -248,7 +248,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="eaque", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="eaque", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="eaque", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="eaque", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="eaque", + tracking_link_id="et", account="", ) @@ -312,7 +312,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="cumque", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="cumque", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="cumque", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="cumque", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="cumque", + tracking_link_id="harum", account="", ) @@ -563,7 +563,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="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="et", account="", ) @@ -674,7 +674,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="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="et", account="", ) @@ -726,7 +726,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="eaque", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="eaque", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="eaque", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="eaque", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="eaque", + tracking_link_id="et", account="", ) @@ -790,7 +790,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="cumque", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="cumque", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="cumque", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="cumque", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="cumque", + tracking_link_id="harum", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index a27e33ca..7a667eb4 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="quod", 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="quod", 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="quod", 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="quod", account="", ) @@ -205,7 +205,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="quod", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="quod", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="quod", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="quod", account="", ) @@ -383,7 +383,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="et", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="et", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="et", account="", ) @@ -447,7 +447,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="minus", + trial_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="minus", + trial_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="minus", + trial_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="minus", + trial_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="minus", + trial_link_id="aspernatur", account="", ) @@ -583,7 +583,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="quod", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="quod", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="quod", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="quod", account="", ) @@ -692,7 +692,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="quod", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="quod", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="quod", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="quod", account="", ) @@ -870,7 +870,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="et", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="et", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="et", account="", ) @@ -934,7 +934,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="minus", + trial_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="minus", + trial_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="minus", + trial_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="minus", + trial_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="minus", + trial_link_id="aspernatur", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index f164fe79..8b7814ec 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="gayvcxm", + name="csrvcnoyqczdsjbtnqcq", ) 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="gayvcxm", + name="csrvcnoyqczdsjbtnqcq", ) 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="gayvcxm", + name="csrvcnoyqczdsjbtnqcq", ) 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="gayvcxm", + name="csrvcnoyqczdsjbtnqcq", ) @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="gayvcxm", + name="csrvcnoyqczdsjbtnqcq", ) 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="gayvcxm", + name="csrvcnoyqczdsjbtnqcq", ) 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="gayvcxm", + name="csrvcnoyqczdsjbtnqcq", ) 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="gayvcxm", + name="csrvcnoyqczdsjbtnqcq", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 582738189c9ac1a15291974eadcdab3cf142097c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 12:12:35 +0000 Subject: [PATCH 210/249] 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 +++---- .../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 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 32 +++--- tests/api_resources/test_tracking_links.py | 76 ++++++------- 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 da5df7c1..74d0cfe7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6da1904c4307508964dcc9f4cced7299a06a93982eceb54f02779ad5f1601f48.yml -openapi_spec_hash: 4cccfe7876171811f8b719a203d45740 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3253a6d3d8baf9d78a608ca04480fbb714550e48df0ccbe77fdfd94f2aea3e14.yml +openapi_spec_hash: a4e2cf53474c029cc0c3d00922140766 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 77e54590..1e7a1b77 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="dolores", + message_id="reprehenderit", 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="dolores", + message_id="reprehenderit", 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="dolores", + message_id="reprehenderit", 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="dolores", + message_id="reprehenderit", 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="dolores", + message_id="reprehenderit", 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="dolores", + message_id="reprehenderit", 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="dolores", + message_id="reprehenderit", 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="dolores", + message_id="reprehenderit", 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="dolores", + message_id="reprehenderit", 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="dolores", + message_id="reprehenderit", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 3f828857..261d1023 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="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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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="ut", + 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 bfa9708b..f66b90ab 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="ipsa", + 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="ipsa", + 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="ipsa", + 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="ipsa", + 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="ipsa", + 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="ipsa", + 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="ipsa", + 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="ipsa", + 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="ipsa", + 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="ipsa", + 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="ipsa", + 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="ipsa", + 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="ipsa", + 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="ipsa", + 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="ipsa", + 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="ipsa", + 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="ipsa", + 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="ipsa", + 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="ipsa", + 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="ipsa", + post_id="ut", account="", ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075f..544df889 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 506c2ed9..e1fd8753 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", 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="aut", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 0b8f88f0..12d72807 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", + "ratione", ) 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", + "ratione", ) 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", + "ratione", ) 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", + "ratione", ) 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", + "ratione", ) 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", + "ratione", ) 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 7c55497f..f2af0bc2 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="assumenda", - auth_type="mobile_app", - cookies="perspiciatis", + auth_id="enim", + auth_type="email_password", + cookies="deleniti", custom_proxy={ "host": "proxy.example.com", - "password": "ycWDfIxza", + "password": "medwd[ocbn~\\G", "port": 8080, - "username": "voluptatem", + "username": "architecto", }, - email="idicki@example.org", - force_connect=False, - name="ullam", - password="LE.coe0ozQ", + email="bennie18@example.org", + force_connect=True, + name="et", + password="`8FRTV", proxy_country="gb", - user_agent="dolor", - xbc="et", + user_agent="nisi", + xbc="magni", ) 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="assumenda", - auth_type="mobile_app", - cookies="perspiciatis", + auth_id="enim", + auth_type="email_password", + cookies="deleniti", custom_proxy={ "host": "proxy.example.com", - "password": "ycWDfIxza", + "password": "medwd[ocbn~\\G", "port": 8080, - "username": "voluptatem", + "username": "architecto", }, - email="idicki@example.org", - force_connect=False, - name="ullam", - password="LE.coe0ozQ", + email="bennie18@example.org", + force_connect=True, + name="et", + password="`8FRTV", proxy_country="gb", - user_agent="dolor", - xbc="et", + user_agent="nisi", + xbc="magni", ) 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 3597ede6..0d035d3b 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="gb", ) 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="gb", ) 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 413a2df6..1a80b275 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="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="likes", + type="onlyfans", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 9e42ede8..31c46c55 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": ["psgtnwkwcqlwvuxcev"]}, + filter={"tags": ["tbohjrttrnbmhfglptupsg"]}, limit=50, name="Instagram", offset=0, @@ -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="at", + smart_link_id="rerum", ) 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="at", + smart_link_id="rerum", 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="at", + smart_link_id="rerum", ) 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="at", + smart_link_id="rerum", ) 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="repellat", + smart_link_id="sed", ) 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="repellat", + smart_link_id="sed", 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="repellat", + smart_link_id="sed", ) 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="repellat", + smart_link_id="sed", ) 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="vel", ) 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="vel", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="vel", ) assert response.is_closed is True @@ -358,7 +358,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="vel", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="accusantium", + smart_link_id="ut", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="accusantium", + smart_link_id="ut", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="accusantium", + smart_link_id="ut", ) assert response.is_closed is True @@ -411,7 +411,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="accusantium", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="sequi", + smart_link_id="doloribus", ) assert smart_link is None @@ -441,7 +441,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="sequi", + smart_link_id="doloribus", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="sequi", + smart_link_id="doloribus", ) assert response.is_closed is True @@ -464,7 +464,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="sequi", + smart_link_id="doloribus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="sed", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="sed", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="sed", ) assert response.is_closed is True @@ -516,7 +516,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="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["psgtnwkwcqlwvuxcev"]}, + filter={"tags": ["tbohjrttrnbmhfglptupsg"]}, limit=50, name="Instagram", offset=0, @@ -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="at", + smart_link_id="rerum", ) 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="at", + smart_link_id="rerum", 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="at", + smart_link_id="rerum", ) 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="at", + smart_link_id="rerum", ) 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="repellat", + smart_link_id="sed", ) 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="repellat", + smart_link_id="sed", 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="repellat", + smart_link_id="sed", ) 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="repellat", + smart_link_id="sed", ) 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="et", + smart_link_id="vel", ) 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="et", + smart_link_id="vel", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="vel", ) assert response.is_closed is True @@ -871,7 +871,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="vel", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="accusantium", + smart_link_id="ut", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="accusantium", + smart_link_id="ut", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="accusantium", + smart_link_id="ut", ) assert response.is_closed is True @@ -924,7 +924,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="accusantium", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="sequi", + smart_link_id="doloribus", ) assert smart_link is None @@ -954,7 +954,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="sequi", + smart_link_id="doloribus", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="sequi", + smart_link_id="doloribus", ) assert response.is_closed is True @@ -977,7 +977,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="sequi", + smart_link_id="doloribus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="sed", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="sed", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="sed", ) assert response.is_closed is True @@ -1029,7 +1029,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="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_stored.py b/tests/api_resources/test_stored.py index c79ae61f..30cbc1e9 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": "ukhpvjcg", - "tags": ["fe"], + "search": "ykata", + "tags": ["ardlzubhoqnmgmrrlk"], }, 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": "kxevwbmmsclzulzaop", - "tags": ["idkezxvsqiestnafk"], + "search": "dasokq", + "tags": ["vemkxu"], }, 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": "rvnaykydejuljkqtx", - "tags": ["rfh"], + "search": "atjro", + "tags": ["matxc"], }, 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": "wxqzhwpjolkccbdkrmabqrr", - "tags": ["bndiyeghlhnwhwqxgkwojhbzg"], + "search": "dp", + "tags": ["mkqcqi"], }, 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": "ukhpvjcg", - "tags": ["fe"], + "search": "ykata", + "tags": ["ardlzubhoqnmgmrrlk"], }, 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": "kxevwbmmsclzulzaop", - "tags": ["idkezxvsqiestnafk"], + "search": "dasokq", + "tags": ["vemkxu"], }, 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": "rvnaykydejuljkqtx", - "tags": ["rfh"], + "search": "atjro", + "tags": ["matxc"], }, 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": "wxqzhwpjolkccbdkrmabqrr", - "tags": ["bndiyeghlhnwhwqxgkwojhbzg"], + "search": "dp", + "tags": ["mkqcqi"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index caf3d19b..e45909f0 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="autem", 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="autem", 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="autem", 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="autem", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="autem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="autem", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="autem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="autem", account="", ) @@ -248,7 +248,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="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="omnis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="omnis", account="", ) @@ -312,7 +312,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="harum", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="harum", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="harum", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="harum", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="harum", + tracking_link_id="praesentium", account="", ) @@ -563,7 +563,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="autem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="autem", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="autem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="autem", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="autem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="autem", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="autem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="autem", account="", ) @@ -726,7 +726,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="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="omnis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="omnis", account="", ) @@ -790,7 +790,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="harum", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="harum", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="harum", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="harum", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="harum", + tracking_link_id="praesentium", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 7a667eb4..3442423a 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="quod", + trial_link_id="voluptatum", 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="quod", + trial_link_id="voluptatum", 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="quod", + trial_link_id="voluptatum", 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="quod", + trial_link_id="voluptatum", account="", ) @@ -205,7 +205,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="quod", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="quod", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="quod", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="quod", + trial_link_id="voluptatum", account="", ) @@ -321,7 +321,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="aliquam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="aliquam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="aliquam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="aliquam", account="", limit=10, offset=0, @@ -383,7 +383,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="et", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="et", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="et", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="et", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="et", + trial_link_id="sit", account="", ) @@ -447,7 +447,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="aspernatur", + trial_link_id="cum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="aspernatur", + trial_link_id="cum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="aspernatur", + trial_link_id="cum", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="aspernatur", + trial_link_id="cum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="aspernatur", + trial_link_id="cum", account="", ) @@ -583,7 +583,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="quod", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="quod", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="quod", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="quod", + trial_link_id="voluptatum", account="", ) @@ -692,7 +692,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="quod", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="quod", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="quod", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="quod", + trial_link_id="voluptatum", account="", ) @@ -808,7 +808,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="aliquam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="aliquam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="aliquam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="aliquam", account="", limit=10, offset=0, @@ -870,7 +870,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="et", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="et", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="et", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="et", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="et", + trial_link_id="sit", account="", ) @@ -934,7 +934,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="aspernatur", + trial_link_id="cum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="aspernatur", + trial_link_id="cum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="aspernatur", + trial_link_id="cum", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="aspernatur", + trial_link_id="cum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="aspernatur", + trial_link_id="cum", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 8b7814ec..55d6d891 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="csrvcnoyqczdsjbtnqcq", + name="pndccqojudhsazc", ) 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="csrvcnoyqczdsjbtnqcq", + name="pndccqojudhsazc", ) 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="csrvcnoyqczdsjbtnqcq", + name="pndccqojudhsazc", ) 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="csrvcnoyqczdsjbtnqcq", + name="pndccqojudhsazc", ) @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="csrvcnoyqczdsjbtnqcq", + name="pndccqojudhsazc", ) 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="csrvcnoyqczdsjbtnqcq", + name="pndccqojudhsazc", ) 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="csrvcnoyqczdsjbtnqcq", + name="pndccqojudhsazc", ) 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="csrvcnoyqczdsjbtnqcq", + name="pndccqojudhsazc", ) @pytest.mark.skip(reason="Mock server tests are disabled") From fa0b6cbfbdfc703734db97b2696d672e5e9623ca Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 15:12:35 +0000 Subject: [PATCH 211/249] 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 | 48 ++++----- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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, 274 insertions(+), 274 deletions(-) diff --git a/.stats.yml b/.stats.yml index 74d0cfe7..534b8305 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3253a6d3d8baf9d78a608ca04480fbb714550e48df0ccbe77fdfd94f2aea3e14.yml -openapi_spec_hash: a4e2cf53474c029cc0c3d00922140766 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fd185dcd3e029848734fadcf0fb5188ef04ca2e3c03ac8cf3e9ac0836e381b91.yml +openapi_spec_hash: 764042539e8ad2552aad1095dd8aa57e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 1e7a1b77..f49aae5f 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="reprehenderit", + 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="reprehenderit", + 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="reprehenderit", + 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="reprehenderit", + 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="reprehenderit", + 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="reprehenderit", + 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="reprehenderit", + 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="reprehenderit", + 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="reprehenderit", + 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="reprehenderit", + 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 261d1023..406ca503 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="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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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 f66b90ab..d269ed02 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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="expedita", 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 aa735c97..444937ba 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 b5f3d61a..9c80483e 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 e1fd8753..64881003 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="aut", + path_story_id="officiis", 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="aut", + path_story_id="officiis", 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="aut", + path_story_id="officiis", 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="aut", + path_story_id="officiis", 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="aut", + story_id="officiis", 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="aut", + story_id="officiis", 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="aut", + story_id="officiis", 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="aut", + story_id="officiis", 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="aut", + path_story_id="officiis", 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="aut", + path_story_id="officiis", 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="aut", + path_story_id="officiis", 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="aut", + path_story_id="officiis", 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="aut", + story_id="officiis", 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="aut", + story_id="officiis", 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="aut", + story_id="officiis", 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="aut", + story_id="officiis", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 12d72807..5c3afb22 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( - "ratione", + "natus", ) 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( - "ratione", + "natus", ) 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( - "ratione", + "natus", ) 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( - "ratione", + "natus", ) 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( - "ratione", + "natus", ) 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( - "ratione", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index f2af0bc2..8fc95de2 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="enim", - auth_type="email_password", - cookies="deleniti", + auth_id="quia", + auth_type="raw_data", + cookies="qui", custom_proxy={ "host": "proxy.example.com", - "password": "medwd[ocbn~\\G", + "password": "kAa/?E,Vq$XqM2uN7", "port": 8080, - "username": "architecto", + "username": "distinctio", }, - email="bennie18@example.org", - force_connect=True, - name="et", - password="`8FRTV", - proxy_country="gb", - user_agent="nisi", - xbc="magni", + email="weissnat.marian@example.org", + force_connect=False, + name="facere", + password="RPoFyhZ!2UWUJ_\\<#Hq", + proxy_country="uk", + user_agent="reprehenderit", + xbc="est", ) 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="enim", - auth_type="email_password", - cookies="deleniti", + auth_id="quia", + auth_type="raw_data", + cookies="qui", custom_proxy={ "host": "proxy.example.com", - "password": "medwd[ocbn~\\G", + "password": "kAa/?E,Vq$XqM2uN7", "port": 8080, - "username": "architecto", + "username": "distinctio", }, - email="bennie18@example.org", - force_connect=True, - name="et", - password="`8FRTV", - proxy_country="gb", - user_agent="nisi", - xbc="magni", + email="weissnat.marian@example.org", + force_connect=False, + name="facere", + password="RPoFyhZ!2UWUJ_\\<#Hq", + proxy_country="uk", + user_agent="reprehenderit", + xbc="est", ) 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 0d035d3b..9249f386 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="gb", + 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="gb", + 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 1a80b275..b2158856 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="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="onlyfans", + type="purchases", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 31c46c55..f859188f 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": ["tbohjrttrnbmhfglptupsg"]}, + filter={"tags": ["vpkjmeshl"]}, limit=50, name="Instagram", offset=0, @@ -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="rerum", + smart_link_id="libero", ) 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="rerum", + smart_link_id="libero", 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="rerum", + smart_link_id="libero", ) 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="rerum", + smart_link_id="libero", ) 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="sed", + smart_link_id="quia", ) 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="sed", + smart_link_id="quia", 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="sed", + smart_link_id="quia", ) 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="sed", + smart_link_id="quia", ) 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="vel", + smart_link_id="quo", ) 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="vel", + smart_link_id="quo", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="vel", + smart_link_id="quo", ) assert response.is_closed is True @@ -358,7 +358,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="vel", + smart_link_id="quo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="accusamus", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="accusamus", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="accusamus", ) assert response.is_closed is True @@ -411,7 +411,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="accusamus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="doloribus", + smart_link_id="aperiam", ) assert smart_link is None @@ -441,7 +441,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="doloribus", + smart_link_id="aperiam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="doloribus", + smart_link_id="aperiam", ) assert response.is_closed is True @@ -464,7 +464,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="doloribus", + smart_link_id="aperiam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="sed", + smart_link_id="excepturi", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="sed", + smart_link_id="excepturi", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="sed", + smart_link_id="excepturi", ) assert response.is_closed is True @@ -516,7 +516,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="sed", + smart_link_id="excepturi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["tbohjrttrnbmhfglptupsg"]}, + filter={"tags": ["vpkjmeshl"]}, limit=50, name="Instagram", offset=0, @@ -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="rerum", + smart_link_id="libero", ) 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="rerum", + smart_link_id="libero", 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="rerum", + smart_link_id="libero", ) 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="rerum", + smart_link_id="libero", ) 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="sed", + smart_link_id="quia", ) 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="sed", + smart_link_id="quia", 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="sed", + smart_link_id="quia", ) 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="sed", + smart_link_id="quia", ) 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="vel", + smart_link_id="quo", ) 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="vel", + smart_link_id="quo", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="vel", + smart_link_id="quo", ) assert response.is_closed is True @@ -871,7 +871,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="vel", + smart_link_id="quo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="accusamus", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="accusamus", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="accusamus", ) assert response.is_closed is True @@ -924,7 +924,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="accusamus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="doloribus", + smart_link_id="aperiam", ) assert smart_link is None @@ -954,7 +954,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="doloribus", + smart_link_id="aperiam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="doloribus", + smart_link_id="aperiam", ) assert response.is_closed is True @@ -977,7 +977,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="doloribus", + smart_link_id="aperiam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="sed", + smart_link_id="excepturi", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="sed", + smart_link_id="excepturi", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="sed", + smart_link_id="excepturi", ) assert response.is_closed is True @@ -1029,7 +1029,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="sed", + smart_link_id="excepturi", ) 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 30cbc1e9..36a8df3e 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": "ykata", - "tags": ["ardlzubhoqnmgmrrlk"], + "search": "hglzpcyywbblpipcfypu", + "tags": ["cllhdpwq"], }, 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": "dasokq", - "tags": ["vemkxu"], + "search": "bcfawfl", + "tags": ["sai"], }, 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": "atjro", - "tags": ["matxc"], + "include_smart_links": True, + "search": "xwgnxdcgodfaluwpybk", + "tags": ["mqnlxghiuhlffdmlamthhy"], }, 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": "dp", - "tags": ["mkqcqi"], + "include_smart_links": True, + "search": "zuabfhoqcuomesw", + "tags": ["oskuelrpdkyt"], }, 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": "ykata", - "tags": ["ardlzubhoqnmgmrrlk"], + "search": "hglzpcyywbblpipcfypu", + "tags": ["cllhdpwq"], }, 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": "dasokq", - "tags": ["vemkxu"], + "search": "bcfawfl", + "tags": ["sai"], }, 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": "atjro", - "tags": ["matxc"], + "include_smart_links": True, + "search": "xwgnxdcgodfaluwpybk", + "tags": ["mqnlxghiuhlffdmlamthhy"], }, 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": "dp", - "tags": ["mkqcqi"], + "include_smart_links": True, + "search": "zuabfhoqcuomesw", + "tags": ["oskuelrpdkyt"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index e45909f0..488074cc 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="autem", + 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="autem", + 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="autem", + 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="autem", + tracking_link_id="unde", account="", ) @@ -196,7 +196,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="autem", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="autem", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="autem", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="autem", + tracking_link_id="unde", account="", ) @@ -248,7 +248,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="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="voluptatum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="voluptatum", account="", ) @@ -312,7 +312,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="praesentium", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="praesentium", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="praesentium", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="praesentium", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="praesentium", + tracking_link_id="atque", account="", ) @@ -563,7 +563,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="autem", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="autem", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="autem", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="autem", + tracking_link_id="unde", account="", ) @@ -674,7 +674,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="autem", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="autem", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="autem", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="autem", + tracking_link_id="unde", account="", ) @@ -726,7 +726,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="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="voluptatum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="voluptatum", account="", ) @@ -790,7 +790,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="praesentium", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="praesentium", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="praesentium", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="praesentium", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="praesentium", + tracking_link_id="atque", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 3442423a..daed8f2e 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="voluptatum", + 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="voluptatum", + 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="voluptatum", + 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="voluptatum", + trial_link_id="optio", account="", ) @@ -205,7 +205,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="voluptatum", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="voluptatum", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="voluptatum", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="voluptatum", + trial_link_id="optio", account="", ) @@ -321,7 +321,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="aliquam", + trial_link_id="sequi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="aliquam", + trial_link_id="sequi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="aliquam", + trial_link_id="sequi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="aliquam", + trial_link_id="sequi", account="", limit=10, offset=0, @@ -383,7 +383,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="sit", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="sit", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="sit", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="sit", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="sit", + trial_link_id="saepe", account="", ) @@ -447,7 +447,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="cum", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="cum", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="cum", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="cum", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="cum", + trial_link_id="id", account="", ) @@ -583,7 +583,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="voluptatum", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="voluptatum", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="voluptatum", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="voluptatum", + trial_link_id="optio", account="", ) @@ -692,7 +692,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="voluptatum", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="voluptatum", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="voluptatum", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="voluptatum", + trial_link_id="optio", account="", ) @@ -808,7 +808,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="aliquam", + trial_link_id="sequi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="aliquam", + trial_link_id="sequi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="aliquam", + trial_link_id="sequi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="aliquam", + trial_link_id="sequi", account="", limit=10, offset=0, @@ -870,7 +870,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="sit", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="sit", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="sit", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="sit", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="sit", + trial_link_id="saepe", account="", ) @@ -934,7 +934,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="cum", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="cum", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="cum", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="cum", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="cum", + trial_link_id="id", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 55d6d891..a1cba34c 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="pndccqojudhsazc", + name="aackdsxerdq", ) 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="pndccqojudhsazc", + name="aackdsxerdq", ) 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="pndccqojudhsazc", + name="aackdsxerdq", ) 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="pndccqojudhsazc", + name="aackdsxerdq", ) @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="pndccqojudhsazc", + name="aackdsxerdq", ) 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="pndccqojudhsazc", + name="aackdsxerdq", ) 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="pndccqojudhsazc", + name="aackdsxerdq", ) 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="pndccqojudhsazc", + name="aackdsxerdq", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 023b1fc3c73a5831955df00bece191c9e6d0c9a6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2026 14:12:36 +0000 Subject: [PATCH 212/249] 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 +- .../api_resources/test_shared_trial_links.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, 266 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index 534b8305..1be26674 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fd185dcd3e029848734fadcf0fb5188ef04ca2e3c03ac8cf3e9ac0836e381b91.yml -openapi_spec_hash: 764042539e8ad2552aad1095dd8aa57e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d49b6717c8c51b0cd59e6b7eae808c6f52be34b403bac095334817be5d2587ab.yml +openapi_spec_hash: 559a822a4edd34a029724b95ac099b19 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index f49aae5f..240af482 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", 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="voluptas", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 406ca503..395b8f46 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="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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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 d269ed02..8c13b633 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="expedita", + post_id="dolorem", 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="expedita", + post_id="dolorem", 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="expedita", + post_id="dolorem", 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="expedita", + post_id="dolorem", 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="expedita", + post_id="dolorem", 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="expedita", + post_id="dolorem", 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="expedita", + post_id="dolorem", 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="expedita", + post_id="dolorem", 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="expedita", + post_id="dolorem", 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="expedita", + post_id="dolorem", 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="expedita", + post_id="dolorem", 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="expedita", + post_id="dolorem", 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="expedita", + post_id="dolorem", 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="expedita", + post_id="dolorem", 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="expedita", + post_id="dolorem", 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="expedita", + post_id="dolorem", 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="expedita", + post_id="dolorem", 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="expedita", + post_id="dolorem", 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="expedita", + post_id="dolorem", 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="expedita", + post_id="dolorem", 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 444937ba..a62ccbd3 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 9c80483e..2ced6cb5 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 64881003..8dc3f98b 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + story_id="nobis", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 5c3afb22..d2e5c48f 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( - "natus", + "iure", ) 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( - "natus", + "iure", ) 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( - "natus", + "iure", ) 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( - "natus", + "iure", ) 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( - "natus", + "iure", ) 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( - "natus", + "iure", ) 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 8fc95de2..224d46ea 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -160,21 +160,21 @@ def test_method_start(self, client: OnlyFansAPI) -> None: def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( auth_id="quia", - auth_type="raw_data", - cookies="qui", + auth_type="mobile_app", + cookies="ut", custom_proxy={ "host": "proxy.example.com", - "password": "kAa/?E,Vq$XqM2uN7", + "password": "LB None: async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( auth_id="quia", - auth_type="raw_data", - cookies="qui", + auth_type="mobile_app", + cookies="ut", custom_proxy={ "host": "proxy.example.com", - "password": "kAa/?E,Vq$XqM2uN7", + "password": "LB None: from_id=123, limit=10, skip_users="all", - type="purchases", + 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="purchases", + 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 bd4f6161..65694e23 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index f859188f..77402f16 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": ["vpkjmeshl"]}, + filter={"tags": ["zzgybzuvsf"]}, limit=50, name="Instagram", offset=0, @@ -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="libero", + smart_link_id="est", ) 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="libero", + smart_link_id="est", 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="libero", + smart_link_id="est", ) 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="libero", + smart_link_id="est", ) 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="quia", + smart_link_id="delectus", ) 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="quia", + smart_link_id="delectus", 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="quia", + smart_link_id="delectus", ) 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="quia", + smart_link_id="delectus", ) 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="quo", + smart_link_id="rem", ) 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="quo", + smart_link_id="rem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="quo", + smart_link_id="rem", ) assert response.is_closed is True @@ -358,7 +358,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="quo", + smart_link_id="rem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="accusamus", + smart_link_id="odit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="accusamus", + smart_link_id="odit", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="accusamus", + smart_link_id="odit", ) assert response.is_closed is True @@ -411,7 +411,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="accusamus", + smart_link_id="odit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="aperiam", + smart_link_id="et", ) assert smart_link is None @@ -441,7 +441,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="aperiam", + smart_link_id="et", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="aperiam", + smart_link_id="et", ) assert response.is_closed is True @@ -464,7 +464,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="aperiam", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="excepturi", + smart_link_id="repellat", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="excepturi", + smart_link_id="repellat", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="excepturi", + smart_link_id="repellat", ) assert response.is_closed is True @@ -516,7 +516,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="excepturi", + smart_link_id="repellat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["vpkjmeshl"]}, + filter={"tags": ["zzgybzuvsf"]}, limit=50, name="Instagram", offset=0, @@ -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="libero", + smart_link_id="est", ) 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="libero", + smart_link_id="est", 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="libero", + smart_link_id="est", ) 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="libero", + smart_link_id="est", ) 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="quia", + smart_link_id="delectus", ) 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="quia", + smart_link_id="delectus", 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="quia", + smart_link_id="delectus", ) 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="quia", + smart_link_id="delectus", ) 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="quo", + smart_link_id="rem", ) 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="quo", + smart_link_id="rem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="quo", + smart_link_id="rem", ) assert response.is_closed is True @@ -871,7 +871,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="quo", + smart_link_id="rem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="accusamus", + smart_link_id="odit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="accusamus", + smart_link_id="odit", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="accusamus", + smart_link_id="odit", ) assert response.is_closed is True @@ -924,7 +924,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="accusamus", + smart_link_id="odit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="aperiam", + smart_link_id="et", ) assert smart_link is None @@ -954,7 +954,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="aperiam", + smart_link_id="et", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="aperiam", + smart_link_id="et", ) assert response.is_closed is True @@ -977,7 +977,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="aperiam", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="excepturi", + smart_link_id="repellat", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="excepturi", + smart_link_id="repellat", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="excepturi", + smart_link_id="repellat", ) assert response.is_closed is True @@ -1029,7 +1029,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="excepturi", + 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 36a8df3e..01a69d0e 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": "hglzpcyywbblpipcfypu", - "tags": ["cllhdpwq"], + "search": "quvhkmzqkmbmq", + "tags": ["cgqbfmokjsarwyhg"], }, 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": "bcfawfl", - "tags": ["sai"], + "search": "infylebnunldcztbkl", + "tags": ["ahr"], }, 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": "xwgnxdcgodfaluwpybk", - "tags": ["mqnlxghiuhlffdmlamthhy"], + "include_smart_links": False, + "search": "smjek", + "tags": ["z"], }, 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": "zuabfhoqcuomesw", - "tags": ["oskuelrpdkyt"], + "search": "i", + "tags": ["rxovectaqzfctspjlxprkse"], }, 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": "hglzpcyywbblpipcfypu", - "tags": ["cllhdpwq"], + "search": "quvhkmzqkmbmq", + "tags": ["cgqbfmokjsarwyhg"], }, 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": "bcfawfl", - "tags": ["sai"], + "search": "infylebnunldcztbkl", + "tags": ["ahr"], }, 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": "xwgnxdcgodfaluwpybk", - "tags": ["mqnlxghiuhlffdmlamthhy"], + "include_smart_links": False, + "search": "smjek", + "tags": ["z"], }, 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": "zuabfhoqcuomesw", - "tags": ["oskuelrpdkyt"], + "search": "i", + "tags": ["rxovectaqzfctspjlxprkse"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 488074cc..b3cdb9f7 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", account="", ) @@ -196,7 +196,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="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="necessitatibus", account="", ) @@ -248,7 +248,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="voluptatum", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="voluptatum", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="voluptatum", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="voluptatum", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="voluptatum", + tracking_link_id="illo", account="", ) @@ -312,7 +312,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="atque", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="atque", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="atque", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="atque", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="atque", + tracking_link_id="voluptates", account="", ) @@ -563,7 +563,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="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="necessitatibus", account="", ) @@ -674,7 +674,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="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="necessitatibus", account="", ) @@ -726,7 +726,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="voluptatum", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="voluptatum", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="voluptatum", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="voluptatum", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="voluptatum", + tracking_link_id="illo", account="", ) @@ -790,7 +790,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="atque", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="atque", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="atque", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="atque", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="atque", + tracking_link_id="voluptates", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index daed8f2e..fd51253e 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="quod", 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="quod", 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="quod", 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="quod", account="", ) @@ -205,7 +205,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="quod", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="quod", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="quod", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="quod", account="", ) @@ -321,7 +321,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="sequi", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="sequi", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="sequi", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="sequi", + trial_link_id="non", account="", limit=10, offset=0, @@ -383,7 +383,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="saepe", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="saepe", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="saepe", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="saepe", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="saepe", + trial_link_id="ea", account="", ) @@ -447,7 +447,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="voluptate", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="voluptate", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="voluptate", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="voluptate", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="voluptate", account="", ) @@ -583,7 +583,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="quod", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="quod", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="quod", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="quod", account="", ) @@ -692,7 +692,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="quod", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="quod", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="quod", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="quod", account="", ) @@ -808,7 +808,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="sequi", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="sequi", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="sequi", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="sequi", + trial_link_id="non", account="", limit=10, offset=0, @@ -870,7 +870,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="saepe", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="saepe", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="saepe", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="saepe", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="saepe", + trial_link_id="ea", account="", ) @@ -934,7 +934,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="voluptate", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="voluptate", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="voluptate", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="voluptate", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="voluptate", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index a1cba34c..ce7f4f32 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="aackdsxerdq", + name="r", ) 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="aackdsxerdq", + name="r", ) 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="aackdsxerdq", + name="r", ) 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="aackdsxerdq", + name="r", ) @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="aackdsxerdq", + name="r", ) 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="aackdsxerdq", + name="r", ) 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="aackdsxerdq", + name="r", ) 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="aackdsxerdq", + name="r", ) @pytest.mark.skip(reason="Mock server tests are disabled") From e6ea88d737ec6b39d7d6a44a1cab409fc28acb7f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2026 18:12:36 +0000 Subject: [PATCH 213/249] 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 | 48 ++++----- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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, 274 insertions(+), 274 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1be26674..846fffba 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d49b6717c8c51b0cd59e6b7eae808c6f52be34b403bac095334817be5d2587ab.yml -openapi_spec_hash: 559a822a4edd34a029724b95ac099b19 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0b99c4e51639a92cd89840429b4660a46c3893970f3a68f7630b7b507e91b4b0.yml +openapi_spec_hash: 0290856c57b56181dd2bb55e45fc0b27 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 240af482..396ec78b 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="voluptas", + message_id="facilis", 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="voluptas", + message_id="facilis", 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="voluptas", + message_id="facilis", 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="voluptas", + message_id="facilis", 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="voluptas", + message_id="facilis", 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="voluptas", + message_id="facilis", 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="voluptas", + message_id="facilis", 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="voluptas", + message_id="facilis", 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="voluptas", + message_id="facilis", 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="voluptas", + message_id="facilis", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 395b8f46..cd43c0b0 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="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="veritatis", + 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="veritatis", + 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="veritatis", + 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="veritatis", + 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="veritatis", + 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="veritatis", + 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="veritatis", + 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="veritatis", + 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="veritatis", + 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="veritatis", + 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="veritatis", + 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="veritatis", + 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="veritatis", + 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="veritatis", + 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="veritatis", + 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 8c13b633..beb3d11b 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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 a62ccbd3..aa735c97 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 2ced6cb5..9c80483e 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 8dc3f98b..76229116 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="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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + 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="nobis", + story_id="ut", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index d2e5c48f..a77cde5d 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( - "iure", + "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( - "iure", + "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( - "iure", + "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( - "iure", + "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( - "iure", + "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( - "iure", + "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 224d46ea..21e12519 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="quia", - auth_type="mobile_app", - cookies="ut", + auth_id="est", + auth_type="raw_data", + cookies="suscipit", custom_proxy={ "host": "proxy.example.com", - "password": "LB None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="quia", - auth_type="mobile_app", - cookies="ut", + auth_id="est", + auth_type="raw_data", + cookies="suscipit", custom_proxy={ "host": "proxy.example.com", - "password": "LB 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_profiles.py b/tests/api_resources/test_profiles.py index 65694e23..bd4f6161 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 77402f16..d0e5096d 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": ["zzgybzuvsf"]}, + filter={"tags": ["u"]}, limit=50, name="Instagram", offset=0, @@ -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="est", + smart_link_id="laudantium", ) 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="est", + smart_link_id="laudantium", 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="est", + smart_link_id="laudantium", ) 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="est", + smart_link_id="laudantium", ) 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="delectus", + smart_link_id="totam", ) 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="delectus", + smart_link_id="totam", 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="delectus", + smart_link_id="totam", ) 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="delectus", + smart_link_id="totam", ) 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="rem", + smart_link_id="sunt", ) 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="rem", + smart_link_id="sunt", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="rem", + smart_link_id="sunt", ) assert response.is_closed is True @@ -358,7 +358,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="rem", + smart_link_id="sunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="qui", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="qui", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="qui", ) assert response.is_closed is True @@ -411,7 +411,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="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="recusandae", ) assert smart_link is None @@ -441,7 +441,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="recusandae", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="recusandae", ) assert response.is_closed is True @@ -464,7 +464,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="recusandae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="quam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="quam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="quam", ) assert response.is_closed is True @@ -516,7 +516,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="quam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["zzgybzuvsf"]}, + filter={"tags": ["u"]}, limit=50, name="Instagram", offset=0, @@ -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="est", + smart_link_id="laudantium", ) 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="est", + smart_link_id="laudantium", 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="est", + smart_link_id="laudantium", ) 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="est", + smart_link_id="laudantium", ) 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="delectus", + smart_link_id="totam", ) 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="delectus", + smart_link_id="totam", 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="delectus", + smart_link_id="totam", ) 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="delectus", + smart_link_id="totam", ) 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="rem", + smart_link_id="sunt", ) 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="rem", + smart_link_id="sunt", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="rem", + smart_link_id="sunt", ) assert response.is_closed is True @@ -871,7 +871,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="rem", + smart_link_id="sunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="qui", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="qui", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="qui", ) assert response.is_closed is True @@ -924,7 +924,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="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="recusandae", ) assert smart_link is None @@ -954,7 +954,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="recusandae", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="recusandae", ) assert response.is_closed is True @@ -977,7 +977,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="recusandae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="quam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="quam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="quam", ) assert response.is_closed is True @@ -1029,7 +1029,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="quam", ) 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 01a69d0e..34579b39 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": "quvhkmzqkmbmq", - "tags": ["cgqbfmokjsarwyhg"], + "search": "qigbaezppwaclarafmv", + "tags": ["xxgdosh"], }, 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": "infylebnunldcztbkl", - "tags": ["ahr"], + "search": "gz", + "tags": ["agqocxngk"], }, 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": "smjek", - "tags": ["z"], + "include_smart_links": True, + "search": "swniczypnzgjtbmw", + "tags": ["fkxxmomptcynxhhvjqqrvzhf"], }, 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": "i", - "tags": ["rxovectaqzfctspjlxprkse"], + "include_smart_links": False, + "search": "byfmtbybklxl", + "tags": ["aneszdz"], }, 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": "quvhkmzqkmbmq", - "tags": ["cgqbfmokjsarwyhg"], + "search": "qigbaezppwaclarafmv", + "tags": ["xxgdosh"], }, 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": "infylebnunldcztbkl", - "tags": ["ahr"], + "search": "gz", + "tags": ["agqocxngk"], }, 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": "smjek", - "tags": ["z"], + "include_smart_links": True, + "search": "swniczypnzgjtbmw", + "tags": ["fkxxmomptcynxhhvjqqrvzhf"], }, 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": "i", - "tags": ["rxovectaqzfctspjlxprkse"], + "include_smart_links": False, + "search": "byfmtbybklxl", + "tags": ["aneszdz"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index b3cdb9f7..c0914bb3 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="necessitatibus", + tracking_link_id="illo", 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="necessitatibus", + tracking_link_id="illo", 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="necessitatibus", + tracking_link_id="illo", 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="necessitatibus", + tracking_link_id="illo", account="", ) @@ -196,7 +196,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="necessitatibus", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="necessitatibus", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="necessitatibus", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="necessitatibus", + tracking_link_id="illo", account="", ) @@ -248,7 +248,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="illo", + tracking_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="illo", + tracking_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="illo", + tracking_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="illo", + tracking_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="illo", + tracking_link_id="dolorem", account="", ) @@ -312,7 +312,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="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="quia", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="quia", account="", ) @@ -563,7 +563,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="necessitatibus", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="necessitatibus", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="necessitatibus", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="necessitatibus", + tracking_link_id="illo", account="", ) @@ -674,7 +674,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="necessitatibus", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="necessitatibus", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="necessitatibus", + tracking_link_id="illo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="necessitatibus", + tracking_link_id="illo", account="", ) @@ -726,7 +726,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="illo", + tracking_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="illo", + tracking_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="illo", + tracking_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="illo", + tracking_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="illo", + tracking_link_id="dolorem", account="", ) @@ -790,7 +790,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="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="quia", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="quia", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index fd51253e..e5c07323 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="quod", + 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="quod", + 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="quod", + 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="quod", + trial_link_id="rerum", account="", ) @@ -205,7 +205,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="quod", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="quod", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="quod", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="quod", + trial_link_id="rerum", account="", ) @@ -321,7 +321,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="dignissimos", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="dignissimos", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="dignissimos", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="dignissimos", account="", limit=10, offset=0, @@ -383,7 +383,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="ea", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="ea", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="ea", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="ea", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="ea", + trial_link_id="at", account="", ) @@ -447,7 +447,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="voluptate", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="voluptate", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="voluptate", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="voluptate", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="voluptate", + trial_link_id="rerum", account="", ) @@ -583,7 +583,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="quod", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="quod", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="quod", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="quod", + trial_link_id="rerum", account="", ) @@ -692,7 +692,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="quod", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="quod", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="quod", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="quod", + trial_link_id="rerum", account="", ) @@ -808,7 +808,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="dignissimos", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="dignissimos", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="dignissimos", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="dignissimos", account="", limit=10, offset=0, @@ -870,7 +870,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="ea", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="ea", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="ea", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="ea", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="ea", + trial_link_id="at", account="", ) @@ -934,7 +934,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="voluptate", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="voluptate", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="voluptate", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="voluptate", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="voluptate", + trial_link_id="rerum", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index ce7f4f32..97c52e9f 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="r", + name="eriklczcla", ) 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="r", + name="eriklczcla", ) 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="r", + name="eriklczcla", ) 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="r", + name="eriklczcla", ) @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="r", + name="eriklczcla", ) 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="r", + name="eriklczcla", ) 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="r", + name="eriklczcla", ) 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="r", + name="eriklczcla", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 9889722219f443635f4a43ecfd85c3c00e9828ef Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 5 Aug 2026 16:13:12 +0000 Subject: [PATCH 214/249] 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 | 32 +++---- tests/api_resources/test_tracking_links.py | 76 +++++++-------- 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 846fffba..a1ad28ba 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0b99c4e51639a92cd89840429b4660a46c3893970f3a68f7630b7b507e91b4b0.yml -openapi_spec_hash: 0290856c57b56181dd2bb55e45fc0b27 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e59066bb8e85159d81a58c0f9d41d712bcc69e6615138b7f5b4daeef6918994c.yml +openapi_spec_hash: e357a369a68b11bca1e506a833b19786 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 396ec78b..10cfa2e6 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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="facilis", + 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 cd43c0b0..8639d7d1 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="deserunt", 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="deserunt", 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="deserunt", 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="deserunt", 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="deserunt", 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="deserunt", 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="deserunt", 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="deserunt", 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="deserunt", 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="deserunt", 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="deserunt", 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="deserunt", 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="deserunt", 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="deserunt", 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="deserunt", 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="deserunt", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index beb3d11b..83afda44 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="eligendi", 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="eligendi", 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="eligendi", 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="eligendi", 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="eligendi", 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="eligendi", 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="eligendi", 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="eligendi", 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="eligendi", 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="eligendi", 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="eligendi", 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="eligendi", 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="eligendi", 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="eligendi", 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="eligendi", 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="eligendi", 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="eligendi", 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="eligendi", 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="eligendi", 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="eligendi", 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 aa735c97..a62ccbd3 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 9c80483e..fc7b1635 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 544df889..9664075f 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 76229116..92d9bc2d 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", 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="nihil", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index a77cde5d..e97c67e9 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", + "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( - "dolor", + "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( - "dolor", + "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( - "dolor", + "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( - "dolor", + "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( - "dolor", + "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 21e12519..ddf43e59 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="raw_data", - cookies="suscipit", + auth_id="numquam", + auth_type="mobile_app", + cookies="excepturi", custom_proxy={ "host": "proxy.example.com", - "password": "t3dEq{y)=a6&h?", + "password": "]v`~UOqaIs`4FK?]", "port": 8080, - "username": "nihil", + "username": "qui", }, - email="jasen84@example.org", - force_connect=True, - name="ea", - password="rne?KT", - proxy_country="us", - user_agent="tempora", - xbc="dicta", + email="spadberg@example.com", + force_connect=False, + name="repellat", + password="^XM$kG2l/vos{", + proxy_country="uk", + user_agent="cupiditate", + xbc="at", ) 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="raw_data", - cookies="suscipit", + auth_id="numquam", + auth_type="mobile_app", + cookies="excepturi", custom_proxy={ "host": "proxy.example.com", - "password": "t3dEq{y)=a6&h?", + "password": "]v`~UOqaIs`4FK?]", "port": 8080, - "username": "nihil", + "username": "qui", }, - email="jasen84@example.org", - force_connect=True, - name="ea", - password="rne?KT", - proxy_country="us", - user_agent="tempora", - xbc="dicta", + email="spadberg@example.com", + force_connect=False, + name="repellat", + password="^XM$kG2l/vos{", + proxy_country="uk", + user_agent="cupiditate", + xbc="at", ) 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 9249f386..0d035d3b 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="gb", ) 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="gb", ) 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 1a80b275..583d8ad4 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_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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 d0e5096d..8301fa23 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="laudantium", + smart_link_id="est", ) 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="laudantium", + smart_link_id="est", 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="laudantium", + smart_link_id="est", ) 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="laudantium", + smart_link_id="est", ) 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="totam", + smart_link_id="non", ) 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="totam", + smart_link_id="non", 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="totam", + smart_link_id="non", ) 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="totam", + smart_link_id="non", ) 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="sunt", + smart_link_id="consequatur", ) 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="sunt", + smart_link_id="consequatur", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="sunt", + smart_link_id="consequatur", ) assert response.is_closed is True @@ -358,7 +358,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="sunt", + smart_link_id="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="enim", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="enim", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="enim", ) assert response.is_closed is True @@ -411,7 +411,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="enim", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="recusandae", + smart_link_id="quam", ) assert smart_link is None @@ -441,7 +441,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="recusandae", + smart_link_id="quam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="recusandae", + smart_link_id="quam", ) assert response.is_closed is True @@ -464,7 +464,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="recusandae", + smart_link_id="quam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="quam", + smart_link_id="sequi", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="quam", + smart_link_id="sequi", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="quam", + smart_link_id="sequi", ) assert response.is_closed is True @@ -516,7 +516,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="quam", + smart_link_id="sequi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -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="laudantium", + smart_link_id="est", ) 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="laudantium", + smart_link_id="est", 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="laudantium", + smart_link_id="est", ) 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="laudantium", + smart_link_id="est", ) 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="totam", + smart_link_id="non", ) 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="totam", + smart_link_id="non", 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="totam", + smart_link_id="non", ) 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="totam", + smart_link_id="non", ) 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="sunt", + 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="sunt", + smart_link_id="consequatur", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="sunt", + smart_link_id="consequatur", ) assert response.is_closed is True @@ -871,7 +871,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="sunt", + smart_link_id="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="enim", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="enim", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="enim", ) assert response.is_closed is True @@ -924,7 +924,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="enim", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="recusandae", + smart_link_id="quam", ) assert smart_link is None @@ -954,7 +954,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="recusandae", + smart_link_id="quam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="recusandae", + smart_link_id="quam", ) assert response.is_closed is True @@ -977,7 +977,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="recusandae", + smart_link_id="quam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="quam", + smart_link_id="sequi", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="quam", + smart_link_id="sequi", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="quam", + smart_link_id="sequi", ) assert response.is_closed is True @@ -1029,7 +1029,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="quam", + smart_link_id="sequi", ) 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 34579b39..40f1d62d 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": "qigbaezppwaclarafmv", - "tags": ["xxgdosh"], + "search": "fzrksitnuv", + "tags": ["hgxrchsxnkramlzlah"], }, 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": "gz", - "tags": ["agqocxngk"], + "search": "mishfykivaxfka", + "tags": ["dgmjwgygrmxycp"], }, 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": "swniczypnzgjtbmw", - "tags": ["fkxxmomptcynxhhvjqqrvzhf"], + "search": "a", + "tags": ["fbuzhigacsdwqcw"], }, 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": "byfmtbybklxl", - "tags": ["aneszdz"], + "search": "addhuqheefkiitwvqctary", + "tags": ["toxpbmjhfyjsvfebmcrqypmb"], }, 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": "qigbaezppwaclarafmv", - "tags": ["xxgdosh"], + "search": "fzrksitnuv", + "tags": ["hgxrchsxnkramlzlah"], }, 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": "gz", - "tags": ["agqocxngk"], + "search": "mishfykivaxfka", + "tags": ["dgmjwgygrmxycp"], }, 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": "swniczypnzgjtbmw", - "tags": ["fkxxmomptcynxhhvjqqrvzhf"], + "search": "a", + "tags": ["fbuzhigacsdwqcw"], }, 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": "byfmtbybklxl", - "tags": ["aneszdz"], + "search": "addhuqheefkiitwvqctary", + "tags": ["toxpbmjhfyjsvfebmcrqypmb"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index c0914bb3..a6250057 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="illo", + tracking_link_id="aut", 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="illo", + tracking_link_id="aut", 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="illo", + tracking_link_id="aut", 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="illo", + tracking_link_id="aut", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="illo", + tracking_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="illo", + tracking_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="illo", + tracking_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="illo", + tracking_link_id="aut", account="", ) @@ -248,7 +248,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="dolorem", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="dolorem", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="dolorem", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="dolorem", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="dolorem", + tracking_link_id="animi", account="", ) @@ -312,7 +312,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="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="id", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="id", account="", ) @@ -563,7 +563,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="illo", + tracking_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="illo", + tracking_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="illo", + tracking_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="illo", + tracking_link_id="aut", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="illo", + tracking_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="illo", + tracking_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="illo", + tracking_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="illo", + tracking_link_id="aut", account="", ) @@ -726,7 +726,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="dolorem", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="dolorem", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="dolorem", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="dolorem", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="dolorem", + tracking_link_id="animi", account="", ) @@ -790,7 +790,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="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="id", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="id", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index e5c07323..831ae576 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="vel", 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="vel", 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="vel", 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="vel", account="", ) @@ -205,7 +205,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="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="vel", account="", ) @@ -321,7 +321,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="dignissimos", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="dignissimos", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="dignissimos", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="dignissimos", + trial_link_id="est", account="", limit=10, offset=0, @@ -383,7 +383,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="at", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="at", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="at", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="at", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="at", + trial_link_id="dolores", account="", ) @@ -447,7 +447,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="rerum", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="rerum", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="rerum", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="rerum", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="rerum", + trial_link_id="dolores", account="", ) @@ -583,7 +583,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="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="vel", account="", ) @@ -692,7 +692,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="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="vel", account="", ) @@ -808,7 +808,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="dignissimos", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="dignissimos", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="dignissimos", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="dignissimos", + trial_link_id="est", account="", limit=10, offset=0, @@ -870,7 +870,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="at", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="at", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="at", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="at", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="at", + trial_link_id="dolores", account="", ) @@ -934,7 +934,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="rerum", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="rerum", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="rerum", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="rerum", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="rerum", + trial_link_id="dolores", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 97c52e9f..3aadfaba 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="eriklczcla", + name="wtlncilabgfoys", ) 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="eriklczcla", + name="wtlncilabgfoys", ) 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="eriklczcla", + name="wtlncilabgfoys", ) 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="eriklczcla", + name="wtlncilabgfoys", ) @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="eriklczcla", + name="wtlncilabgfoys", ) 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="eriklczcla", + name="wtlncilabgfoys", ) 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="eriklczcla", + name="wtlncilabgfoys", ) 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="eriklczcla", + name="wtlncilabgfoys", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 727a00cc6b7f36c1bcf10a7647b4d3aa93cce93b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 6 Aug 2026 14:12:34 +0000 Subject: [PATCH 215/249] 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 ++++----- .../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_smart_links.py | 84 +++++++++--------- 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, 248 insertions(+), 248 deletions(-) diff --git a/.stats.yml b/.stats.yml index a1ad28ba..0d79350a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e59066bb8e85159d81a58c0f9d41d712bcc69e6615138b7f5b4daeef6918994c.yml -openapi_spec_hash: e357a369a68b11bca1e506a833b19786 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-74bb49de83f5f1858c5acc52dae4d1b013631c31577f723654bf55acfd862978.yml +openapi_spec_hash: c44c33499ac6d9987934b2c6821081f1 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 10cfa2e6..f9b244c6 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="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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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="quia", + 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 8639d7d1..4b2a72d0 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="deserunt", + list_id="inventore", 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="deserunt", + list_id="inventore", 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="deserunt", + list_id="inventore", 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="deserunt", + list_id="inventore", 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="deserunt", + list_id="inventore", 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="deserunt", + list_id="inventore", 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="deserunt", + list_id="inventore", 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="deserunt", + list_id="inventore", 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="deserunt", + list_id="inventore", 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="deserunt", + list_id="inventore", 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="deserunt", + list_id="inventore", 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="deserunt", + list_id="inventore", 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="deserunt", + list_id="inventore", 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="deserunt", + list_id="inventore", 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="deserunt", + list_id="inventore", 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="deserunt", + list_id="inventore", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 83afda44..aa580327 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="eligendi", + post_id="dolores", 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="eligendi", + post_id="dolores", 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="eligendi", + post_id="dolores", 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="eligendi", + post_id="dolores", 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="eligendi", + post_id="dolores", 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="eligendi", + post_id="dolores", 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="eligendi", + post_id="dolores", 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="eligendi", + post_id="dolores", 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="eligendi", + post_id="dolores", 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="eligendi", + post_id="dolores", 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="eligendi", + post_id="dolores", 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="eligendi", + post_id="dolores", 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="eligendi", + post_id="dolores", 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="eligendi", + post_id="dolores", 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="eligendi", + post_id="dolores", 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="eligendi", + post_id="dolores", 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="eligendi", + post_id="dolores", 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="eligendi", + post_id="dolores", 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="eligendi", + post_id="dolores", 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="eligendi", + post_id="dolores", account="", ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075f..544df889 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 92d9bc2d..bcfa273b 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="nihil", + path_story_id="voluptatum", 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="nihil", + path_story_id="voluptatum", 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="nihil", + path_story_id="voluptatum", 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="nihil", + path_story_id="voluptatum", 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="nihil", + story_id="voluptatum", 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="nihil", + story_id="voluptatum", 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="nihil", + story_id="voluptatum", 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="nihil", + story_id="voluptatum", 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="nihil", + path_story_id="voluptatum", 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="nihil", + path_story_id="voluptatum", 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="nihil", + path_story_id="voluptatum", 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="nihil", + path_story_id="voluptatum", 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="nihil", + story_id="voluptatum", 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="nihil", + story_id="voluptatum", 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="nihil", + story_id="voluptatum", 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="nihil", + story_id="voluptatum", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index e97c67e9..0b8f88f0 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", + "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( - "consequatur", + "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( - "consequatur", + "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( - "consequatur", + "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( - "consequatur", + "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( - "consequatur", + "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 ddf43e59..928e07c7 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="numquam", - auth_type="mobile_app", - cookies="excepturi", + auth_id="deleniti", + auth_type="raw_data", + cookies="ut", custom_proxy={ "host": "proxy.example.com", - "password": "]v`~UOqaIs`4FK?]", + "password": "Fvgz4vGs~-vFUBE8P", "port": 8080, - "username": "qui", + "username": "reiciendis", }, - email="spadberg@example.com", - force_connect=False, - name="repellat", - password="^XM$kG2l/vos{", - proxy_country="uk", - user_agent="cupiditate", - xbc="at", + email="hallie17@example.org", + force_connect=True, + name="dolores", + password='cbG}"]P', + proxy_country="gb", + user_agent="voluptatibus", + 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="numquam", - auth_type="mobile_app", - cookies="excepturi", + auth_id="deleniti", + auth_type="raw_data", + cookies="ut", custom_proxy={ "host": "proxy.example.com", - "password": "]v`~UOqaIs`4FK?]", + "password": "Fvgz4vGs~-vFUBE8P", "port": 8080, - "username": "qui", + "username": "reiciendis", }, - email="spadberg@example.com", - force_connect=False, - name="repellat", - password="^XM$kG2l/vos{", - proxy_country="uk", - user_agent="cupiditate", - xbc="at", + email="hallie17@example.org", + force_connect=True, + name="dolores", + password='cbG}"]P', + proxy_country="gb", + user_agent="voluptatibus", + 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 0d035d3b..9249f386 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="gb", + 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="gb", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 8301fa23..1d365af8 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": ["u"]}, + filter={"tags": ["evwdfubirf"]}, limit=50, name="Instagram", offset=0, @@ -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="est", + smart_link_id="vitae", ) 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="est", + smart_link_id="vitae", 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="est", + smart_link_id="vitae", ) 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="est", + smart_link_id="vitae", ) 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="non", + smart_link_id="minus", ) 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="non", + smart_link_id="minus", 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="non", + smart_link_id="minus", ) 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="non", + smart_link_id="minus", ) 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="consequatur", + 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="consequatur", + smart_link_id="et", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="et", ) assert response.is_closed is True @@ -358,7 +358,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="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="enim", + smart_link_id="iusto", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="enim", + smart_link_id="iusto", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="enim", + smart_link_id="iusto", ) assert response.is_closed is True @@ -411,7 +411,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="enim", + smart_link_id="iusto", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="quis", ) assert smart_link is None @@ -441,7 +441,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="quis", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="quis", ) assert response.is_closed is True @@ -464,7 +464,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="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["u"]}, + filter={"tags": ["evwdfubirf"]}, limit=50, name="Instagram", offset=0, @@ -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="est", + smart_link_id="vitae", ) 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="est", + smart_link_id="vitae", 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="est", + smart_link_id="vitae", ) 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="est", + smart_link_id="vitae", ) 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="non", + smart_link_id="minus", ) 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="non", + smart_link_id="minus", 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="non", + smart_link_id="minus", ) 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="non", + smart_link_id="minus", ) 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="et", ) 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="et", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="et", ) assert response.is_closed is True @@ -871,7 +871,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="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="enim", + smart_link_id="iusto", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="enim", + smart_link_id="iusto", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="enim", + smart_link_id="iusto", ) assert response.is_closed is True @@ -924,7 +924,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="enim", + smart_link_id="iusto", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="quis", ) assert smart_link is None @@ -954,7 +954,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="quis", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="quis", ) assert response.is_closed is True @@ -977,7 +977,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="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 40f1d62d..e65d0087 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": "fzrksitnuv", - "tags": ["hgxrchsxnkramlzlah"], + "search": "w", + "tags": ["wcluupkieqtohpjdyitnvzp"], }, 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": "mishfykivaxfka", - "tags": ["dgmjwgygrmxycp"], + "search": "mawwventxjecbvn", + "tags": ["oefqvyitxtajbqksy"], }, 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": "a", - "tags": ["fbuzhigacsdwqcw"], + "include_smart_links": False, + "search": "s", + "tags": ["ivtycucxumpslkscgfxljv"], }, 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": "addhuqheefkiitwvqctary", - "tags": ["toxpbmjhfyjsvfebmcrqypmb"], + "include_smart_links": True, + "search": "ixyonkprpmskvpy", + "tags": ["r"], }, 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": "fzrksitnuv", - "tags": ["hgxrchsxnkramlzlah"], + "search": "w", + "tags": ["wcluupkieqtohpjdyitnvzp"], }, 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": "mishfykivaxfka", - "tags": ["dgmjwgygrmxycp"], + "search": "mawwventxjecbvn", + "tags": ["oefqvyitxtajbqksy"], }, 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": "a", - "tags": ["fbuzhigacsdwqcw"], + "include_smart_links": False, + "search": "s", + "tags": ["ivtycucxumpslkscgfxljv"], }, 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": "addhuqheefkiitwvqctary", - "tags": ["toxpbmjhfyjsvfebmcrqypmb"], + "include_smart_links": True, + "search": "ixyonkprpmskvpy", + "tags": ["r"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index a6250057..c34b2076 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="aut", + tracking_link_id="odit", 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="aut", + tracking_link_id="odit", 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="aut", + tracking_link_id="odit", 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="aut", + tracking_link_id="odit", account="", ) @@ -196,7 +196,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="aut", + tracking_link_id="odit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="aut", + tracking_link_id="odit", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="aut", + tracking_link_id="odit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="aut", + tracking_link_id="odit", account="", ) @@ -248,7 +248,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="animi", + tracking_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="animi", + tracking_link_id="minus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="animi", + tracking_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="animi", + tracking_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="animi", + tracking_link_id="minus", account="", ) @@ -312,7 +312,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="id", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="id", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="id", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="id", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="id", + tracking_link_id="est", account="", ) @@ -563,7 +563,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="aut", + tracking_link_id="odit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="aut", + tracking_link_id="odit", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="aut", + tracking_link_id="odit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="aut", + tracking_link_id="odit", account="", ) @@ -674,7 +674,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="aut", + tracking_link_id="odit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="aut", + tracking_link_id="odit", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="aut", + tracking_link_id="odit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="aut", + tracking_link_id="odit", account="", ) @@ -726,7 +726,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="animi", + tracking_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="animi", + tracking_link_id="minus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="animi", + tracking_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="animi", + tracking_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="animi", + tracking_link_id="minus", account="", ) @@ -790,7 +790,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="id", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="id", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="id", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="id", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="id", + tracking_link_id="est", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 831ae576..eb0e26e1 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="vel", + trial_link_id="quis", 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="vel", + trial_link_id="quis", 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="vel", + trial_link_id="quis", 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="vel", + trial_link_id="quis", account="", ) @@ -205,7 +205,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="vel", + trial_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="vel", + trial_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="vel", + trial_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="vel", + trial_link_id="quis", account="", ) @@ -321,7 +321,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="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="molestiae", account="", limit=10, offset=0, @@ -383,7 +383,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="dolores", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="dolores", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="dolores", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="dolores", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="dolores", + trial_link_id="officiis", account="", ) @@ -447,7 +447,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="dolores", + trial_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="dolores", + trial_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="dolores", + trial_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="dolores", + trial_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="dolores", + trial_link_id="perspiciatis", account="", ) @@ -583,7 +583,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="vel", + trial_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="vel", + trial_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="vel", + trial_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="vel", + trial_link_id="quis", account="", ) @@ -692,7 +692,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="vel", + trial_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="vel", + trial_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="vel", + trial_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="vel", + trial_link_id="quis", account="", ) @@ -808,7 +808,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="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="molestiae", account="", limit=10, offset=0, @@ -870,7 +870,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="dolores", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="dolores", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="dolores", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="dolores", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="dolores", + trial_link_id="officiis", account="", ) @@ -934,7 +934,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="dolores", + trial_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="dolores", + trial_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="dolores", + trial_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="dolores", + trial_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="dolores", + trial_link_id="perspiciatis", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 3aadfaba..94e34010 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="wtlncilabgfoys", + name="xkliqaeucnrgjtd", ) 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="wtlncilabgfoys", + name="xkliqaeucnrgjtd", ) 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="wtlncilabgfoys", + name="xkliqaeucnrgjtd", ) 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="wtlncilabgfoys", + name="xkliqaeucnrgjtd", ) @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="wtlncilabgfoys", + name="xkliqaeucnrgjtd", ) 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="wtlncilabgfoys", + name="xkliqaeucnrgjtd", ) 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="wtlncilabgfoys", + name="xkliqaeucnrgjtd", ) 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="wtlncilabgfoys", + name="xkliqaeucnrgjtd", ) @pytest.mark.skip(reason="Mock server tests are disabled") From ec9c9b704bf4f657c5a7bd84a4d5a4e5cdd47595 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 6 Aug 2026 15:12:40 +0000 Subject: [PATCH 216/249] 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 +++---- .../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 +- .../api_resources/test_shared_trial_links.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 +-- 16 files changed, 258 insertions(+), 258 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0d79350a..e2285957 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-74bb49de83f5f1858c5acc52dae4d1b013631c31577f723654bf55acfd862978.yml -openapi_spec_hash: c44c33499ac6d9987934b2c6821081f1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1c495ff673113b55e9ed3bdccd0a71d5d07ae8cd83570be2d57768d8e605402b.yml +openapi_spec_hash: ac357a40d6a804424720aff7840547c2 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index f9b244c6..4bd7f9af 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", 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="doloribus", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 4b2a72d0..2eba9079 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="inventore", + list_id="explicabo", 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="inventore", + list_id="explicabo", 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="inventore", + list_id="explicabo", 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="inventore", + list_id="explicabo", 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="inventore", + list_id="explicabo", 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="inventore", + list_id="explicabo", 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="inventore", + list_id="explicabo", 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="inventore", + list_id="explicabo", 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="inventore", + list_id="explicabo", 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="inventore", + list_id="explicabo", 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="inventore", + list_id="explicabo", 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="inventore", + list_id="explicabo", 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="inventore", + list_id="explicabo", 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="inventore", + list_id="explicabo", 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="inventore", + list_id="explicabo", 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="inventore", + list_id="explicabo", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index aa580327..0950446c 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="dolores", + post_id="sit", 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="dolores", + post_id="sit", 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="dolores", + post_id="sit", 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="dolores", + post_id="sit", 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="dolores", + post_id="sit", 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="dolores", + post_id="sit", 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="dolores", + post_id="sit", 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="dolores", + post_id="sit", 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="dolores", + post_id="sit", 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="dolores", + post_id="sit", 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="dolores", + post_id="sit", 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="dolores", + post_id="sit", 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="dolores", + post_id="sit", 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="dolores", + post_id="sit", 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="dolores", + post_id="sit", 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="dolores", + post_id="sit", 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="dolores", + post_id="sit", 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="dolores", + post_id="sit", 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="dolores", + post_id="sit", 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="dolores", + post_id="sit", account="", ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 bcfa273b..f16f4260 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="voluptatum", + path_story_id="rerum", 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="voluptatum", + path_story_id="rerum", 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="voluptatum", + path_story_id="rerum", 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="voluptatum", + path_story_id="rerum", 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="voluptatum", + story_id="rerum", 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="voluptatum", + story_id="rerum", 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="voluptatum", + story_id="rerum", 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="voluptatum", + story_id="rerum", 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="voluptatum", + path_story_id="rerum", 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="voluptatum", + path_story_id="rerum", 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="voluptatum", + path_story_id="rerum", 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="voluptatum", + path_story_id="rerum", 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="voluptatum", + story_id="rerum", 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="voluptatum", + story_id="rerum", 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="voluptatum", + story_id="rerum", 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="voluptatum", + story_id="rerum", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 0b8f88f0..1ac746df 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", + "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( - "qui", + "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( - "qui", + "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( - "qui", + "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( - "qui", + "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( - "qui", + "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 928e07c7..effe865c 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="raw_data", - cookies="ut", + auth_id="provident", + auth_type="email_password", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "Fvgz4vGs~-vFUBE8P", + "password": "CF%y.QQ,:B$$mx/F?", "port": 8080, - "username": "reiciendis", + "username": "quo", }, - email="hallie17@example.org", - force_connect=True, - name="dolores", - password='cbG}"]P', - proxy_country="gb", - user_agent="voluptatibus", - xbc="aut", + email="enrico75@example.com", + force_connect=False, + name="qui", + password="=eHms{LjJwIa", + proxy_country="uk", + user_agent="perspiciatis", + xbc="ipsa", ) 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="deleniti", - auth_type="raw_data", - cookies="ut", + auth_id="provident", + auth_type="email_password", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "Fvgz4vGs~-vFUBE8P", + "password": "CF%y.QQ,:B$$mx/F?", "port": 8080, - "username": "reiciendis", + "username": "quo", }, - email="hallie17@example.org", - force_connect=True, - name="dolores", - password='cbG}"]P', - proxy_country="gb", - user_agent="voluptatibus", - xbc="aut", + email="enrico75@example.com", + force_connect=False, + name="qui", + password="=eHms{LjJwIa", + proxy_country="uk", + user_agent="perspiciatis", + xbc="ipsa", ) 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 9249f386..0d035d3b 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="gb", ) 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="gb", ) 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 583d8ad4..0f3980c1 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="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="all", + type="tips", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 1d365af8..13f10f49 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": ["evwdfubirf"]}, + filter={"tags": ["iqppsoc"]}, limit=50, name="Instagram", offset=0, @@ -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="vitae", + smart_link_id="rem", ) 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="vitae", + smart_link_id="rem", 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="vitae", + smart_link_id="rem", ) 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="vitae", + smart_link_id="rem", ) 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="minus", + smart_link_id="vitae", ) 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="minus", + smart_link_id="vitae", 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="minus", + smart_link_id="vitae", ) 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="minus", + smart_link_id="vitae", ) 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="eveniet", ) 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="eveniet", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="eveniet", ) assert response.is_closed is True @@ -358,7 +358,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="eveniet", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="iusto", + smart_link_id="saepe", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="iusto", + smart_link_id="saepe", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="iusto", + smart_link_id="saepe", ) assert response.is_closed is True @@ -411,7 +411,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="iusto", + smart_link_id="saepe", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="repellat", ) assert smart_link is None @@ -441,7 +441,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="repellat", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="repellat", ) assert response.is_closed is True @@ -464,7 +464,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="repellat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="sequi", + smart_link_id="sed", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="sequi", + smart_link_id="sed", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="sequi", + smart_link_id="sed", ) assert response.is_closed is True @@ -516,7 +516,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="sequi", + smart_link_id="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["evwdfubirf"]}, + filter={"tags": ["iqppsoc"]}, limit=50, name="Instagram", offset=0, @@ -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="vitae", + smart_link_id="rem", ) 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="vitae", + smart_link_id="rem", 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="vitae", + smart_link_id="rem", ) 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="vitae", + smart_link_id="rem", ) 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="minus", + smart_link_id="vitae", ) 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="minus", + smart_link_id="vitae", 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="minus", + smart_link_id="vitae", ) 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="minus", + smart_link_id="vitae", ) 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="et", + smart_link_id="eveniet", ) 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="et", + smart_link_id="eveniet", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="eveniet", ) assert response.is_closed is True @@ -871,7 +871,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="eveniet", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="iusto", + smart_link_id="saepe", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="iusto", + smart_link_id="saepe", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="iusto", + smart_link_id="saepe", ) assert response.is_closed is True @@ -924,7 +924,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="iusto", + smart_link_id="saepe", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="repellat", ) assert smart_link is None @@ -954,7 +954,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="repellat", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="repellat", ) assert response.is_closed is True @@ -977,7 +977,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="repellat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="sequi", + smart_link_id="sed", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="sequi", + smart_link_id="sed", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="sequi", + smart_link_id="sed", ) assert response.is_closed is True @@ -1029,7 +1029,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="sequi", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index e65d0087..4f39e1e4 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": "w", - "tags": ["wcluupkieqtohpjdyitnvzp"], + "search": "gmxacxbqjoatgsydemmnkouhh", + "tags": ["lllhderjyqpfwqqbhobseiecb"], }, 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": "mawwventxjecbvn", - "tags": ["oefqvyitxtajbqksy"], + "search": "evg", + "tags": ["xapykcvoe"], }, 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": "s", - "tags": ["ivtycucxumpslkscgfxljv"], + "include_smart_links": True, + "search": "n", + "tags": ["kknatgunivonrnyg"], }, 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": "ixyonkprpmskvpy", - "tags": ["r"], + "search": "uunrbkh", + "tags": ["jatsthvop"], }, 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": "w", - "tags": ["wcluupkieqtohpjdyitnvzp"], + "search": "gmxacxbqjoatgsydemmnkouhh", + "tags": ["lllhderjyqpfwqqbhobseiecb"], }, 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": "mawwventxjecbvn", - "tags": ["oefqvyitxtajbqksy"], + "search": "evg", + "tags": ["xapykcvoe"], }, 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": "s", - "tags": ["ivtycucxumpslkscgfxljv"], + "include_smart_links": True, + "search": "n", + "tags": ["kknatgunivonrnyg"], }, 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": "ixyonkprpmskvpy", - "tags": ["r"], + "search": "uunrbkh", + "tags": ["jatsthvop"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index c34b2076..f4c1d8bc 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="odit", + 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="odit", + 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="odit", + 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="odit", + tracking_link_id="inventore", account="", ) @@ -196,7 +196,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="odit", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="odit", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="odit", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="odit", + tracking_link_id="inventore", account="", ) @@ -248,7 +248,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="minus", + tracking_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="minus", + tracking_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="minus", + tracking_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="minus", + tracking_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="minus", + tracking_link_id="maiores", account="", ) @@ -312,7 +312,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="est", + tracking_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="est", + tracking_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="est", + tracking_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="est", + tracking_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="est", + tracking_link_id="sunt", account="", ) @@ -563,7 +563,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="odit", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="odit", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="odit", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="odit", + tracking_link_id="inventore", account="", ) @@ -674,7 +674,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="odit", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="odit", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="odit", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="odit", + tracking_link_id="inventore", account="", ) @@ -726,7 +726,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="minus", + tracking_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="minus", + tracking_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="minus", + tracking_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="minus", + tracking_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="minus", + tracking_link_id="maiores", account="", ) @@ -790,7 +790,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="est", + tracking_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="est", + tracking_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="est", + tracking_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="est", + tracking_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="est", + tracking_link_id="sunt", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index eb0e26e1..83dd26ef 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="quis", + trial_link_id="facilis", 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="quis", + trial_link_id="facilis", 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="quis", + trial_link_id="facilis", 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="quis", + trial_link_id="facilis", account="", ) @@ -205,7 +205,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="quis", + trial_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="quis", + trial_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="quis", + trial_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="quis", + trial_link_id="facilis", account="", ) @@ -321,7 +321,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="repudiandae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="repudiandae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="repudiandae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="repudiandae", account="", limit=10, offset=0, @@ -383,7 +383,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="laudantium", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="laudantium", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="laudantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="laudantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="laudantium", account="", ) @@ -447,7 +447,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="perspiciatis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="perspiciatis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="perspiciatis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="perspiciatis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="perspiciatis", + trial_link_id="aut", account="", ) @@ -583,7 +583,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="quis", + trial_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="quis", + trial_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="quis", + trial_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="quis", + trial_link_id="facilis", account="", ) @@ -692,7 +692,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="quis", + trial_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="quis", + trial_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="quis", + trial_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="quis", + trial_link_id="facilis", account="", ) @@ -808,7 +808,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="repudiandae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="repudiandae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="repudiandae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="repudiandae", account="", limit=10, offset=0, @@ -870,7 +870,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="laudantium", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="laudantium", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="laudantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="laudantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="laudantium", account="", ) @@ -934,7 +934,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="perspiciatis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="perspiciatis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="perspiciatis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="perspiciatis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="perspiciatis", + trial_link_id="aut", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 94e34010..a5a3e2b5 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="xkliqaeucnrgjtd", + name="nbgznywsojqxpdtqlr", ) 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="xkliqaeucnrgjtd", + name="nbgznywsojqxpdtqlr", ) 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="xkliqaeucnrgjtd", + name="nbgznywsojqxpdtqlr", ) 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="xkliqaeucnrgjtd", + name="nbgznywsojqxpdtqlr", ) @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="xkliqaeucnrgjtd", + name="nbgznywsojqxpdtqlr", ) 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="xkliqaeucnrgjtd", + name="nbgznywsojqxpdtqlr", ) 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="xkliqaeucnrgjtd", + name="nbgznywsojqxpdtqlr", ) 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="xkliqaeucnrgjtd", + name="nbgznywsojqxpdtqlr", ) @pytest.mark.skip(reason="Mock server tests are disabled") From cfcce7497265a62f22a13e68b3371132b17eab76 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 7 Aug 2026 16:12:38 +0000 Subject: [PATCH 217/249] 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 | 48 ++++----- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- .../api_resources/test_shared_trial_links.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 +-- 18 files changed, 274 insertions(+), 274 deletions(-) diff --git a/.stats.yml b/.stats.yml index e2285957..c153f1b0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1c495ff673113b55e9ed3bdccd0a71d5d07ae8cd83570be2d57768d8e605402b.yml -openapi_spec_hash: ac357a40d6a804424720aff7840547c2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-29c14daeff3835032106c1a2a4647cb028a8ff8e09e9d50e63fb2621e3fddb27.yml +openapi_spec_hash: 6cbcad5427abf73d8af31cda86fe9ed2 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 4bd7f9af..f7abd4f7 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="doloribus", + message_id="optio", 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="doloribus", + message_id="optio", 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="doloribus", + message_id="optio", 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="doloribus", + message_id="optio", 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="doloribus", + message_id="optio", 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="doloribus", + message_id="optio", 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="doloribus", + message_id="optio", 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="doloribus", + message_id="optio", 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="doloribus", + message_id="optio", 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="doloribus", + message_id="optio", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 2eba9079..4b2a72d0 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="explicabo", + list_id="inventore", 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="explicabo", + list_id="inventore", 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="explicabo", + list_id="inventore", 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="explicabo", + list_id="inventore", 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="explicabo", + list_id="inventore", 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="explicabo", + list_id="inventore", 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="explicabo", + list_id="inventore", 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="explicabo", + list_id="inventore", 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="explicabo", + list_id="inventore", 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="explicabo", + list_id="inventore", 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="explicabo", + list_id="inventore", 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="explicabo", + list_id="inventore", 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="explicabo", + list_id="inventore", 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="explicabo", + list_id="inventore", 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="explicabo", + list_id="inventore", 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="explicabo", + list_id="inventore", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 0950446c..cc4a19da 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="sit", + post_id="minus", 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="sit", + post_id="minus", 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="sit", + post_id="minus", 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="sit", + post_id="minus", 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="sit", + post_id="minus", 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="sit", + post_id="minus", 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="sit", + post_id="minus", 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="sit", + post_id="minus", 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="sit", + post_id="minus", 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="sit", + post_id="minus", 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="sit", + post_id="minus", 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="sit", + post_id="minus", 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="sit", + post_id="minus", 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="sit", + post_id="minus", 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="sit", + post_id="minus", 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="sit", + post_id="minus", 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="sit", + post_id="minus", 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="sit", + post_id="minus", 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="sit", + post_id="minus", 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="sit", + post_id="minus", 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 a62ccbd3..444937ba 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 fc7b1635..2ced6cb5 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 f16f4260..76229116 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + 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="rerum", + story_id="ut", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 1ac746df..abc984fe 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", + "nesciunt", ) 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", + "nesciunt", ) 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", + "nesciunt", ) 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", + "nesciunt", ) 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", + "nesciunt", ) 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", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index effe865c..151af0bb 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="provident", - auth_type="email_password", - cookies="et", + auth_id="sequi", + auth_type="mobile_app", + cookies="sed", custom_proxy={ "host": "proxy.example.com", - "password": "CF%y.QQ,:B$$mx/F?", + "password": "M3@OUIQ3O5pzPtcsXS", "port": 8080, - "username": "quo", + "username": "omnis", }, - email="enrico75@example.com", - force_connect=False, - name="qui", - password="=eHms{LjJwIa", - proxy_country="uk", - user_agent="perspiciatis", - xbc="ipsa", + email="flegros@example.com", + force_connect=True, + name="tenetur", + password="C2GqMBOe0n9Vqg#", + proxy_country="gb", + user_agent="quis", + 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="provident", - auth_type="email_password", - cookies="et", + auth_id="sequi", + auth_type="mobile_app", + cookies="sed", custom_proxy={ "host": "proxy.example.com", - "password": "CF%y.QQ,:B$$mx/F?", + "password": "M3@OUIQ3O5pzPtcsXS", "port": 8080, - "username": "quo", + "username": "omnis", }, - email="enrico75@example.com", - force_connect=False, - name="qui", - password="=eHms{LjJwIa", - proxy_country="uk", - user_agent="perspiciatis", - xbc="ipsa", + email="flegros@example.com", + force_connect=True, + name="tenetur", + password="C2GqMBOe0n9Vqg#", + proxy_country="gb", + user_agent="quis", + xbc="ut", ) 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 0d035d3b..9249f386 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="gb", + 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="gb", + 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 0f3980c1..413a2df6 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="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="tips", + type="likes", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e23..bd4f6161 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 13f10f49..9652e1ae 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": ["iqppsoc"]}, + filter={"tags": ["uidb"]}, limit=50, name="Instagram", offset=0, @@ -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="rem", + smart_link_id="voluptatibus", ) 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="rem", + smart_link_id="voluptatibus", 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="rem", + smart_link_id="voluptatibus", ) 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="rem", + smart_link_id="voluptatibus", ) 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="vitae", + smart_link_id="occaecati", ) 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="vitae", + smart_link_id="occaecati", 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="vitae", + smart_link_id="occaecati", ) 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="vitae", + smart_link_id="occaecati", ) 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="eveniet", + smart_link_id="nihil", ) 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="eveniet", + smart_link_id="nihil", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="eveniet", + smart_link_id="nihil", ) assert response.is_closed is True @@ -358,7 +358,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="eveniet", + smart_link_id="nihil", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="saepe", + smart_link_id="dolorem", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="saepe", + smart_link_id="dolorem", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="saepe", + smart_link_id="dolorem", ) assert response.is_closed is True @@ -411,7 +411,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="saepe", + smart_link_id="dolorem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="repellat", + smart_link_id="architecto", ) assert smart_link is None @@ -441,7 +441,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="repellat", + smart_link_id="architecto", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="repellat", + smart_link_id="architecto", ) assert response.is_closed is True @@ -464,7 +464,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="repellat", + smart_link_id="architecto", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="sed", + smart_link_id="soluta", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="sed", + smart_link_id="soluta", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="sed", + smart_link_id="soluta", ) assert response.is_closed is True @@ -516,7 +516,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="sed", + smart_link_id="soluta", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["iqppsoc"]}, + filter={"tags": ["uidb"]}, limit=50, name="Instagram", offset=0, @@ -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="rem", + smart_link_id="voluptatibus", ) 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="rem", + smart_link_id="voluptatibus", 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="rem", + smart_link_id="voluptatibus", ) 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="rem", + smart_link_id="voluptatibus", ) 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="vitae", + smart_link_id="occaecati", ) 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="vitae", + smart_link_id="occaecati", 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="vitae", + smart_link_id="occaecati", ) 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="vitae", + smart_link_id="occaecati", ) 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="eveniet", + smart_link_id="nihil", ) 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="eveniet", + smart_link_id="nihil", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="eveniet", + smart_link_id="nihil", ) assert response.is_closed is True @@ -871,7 +871,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="eveniet", + smart_link_id="nihil", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="saepe", + smart_link_id="dolorem", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="saepe", + smart_link_id="dolorem", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="saepe", + smart_link_id="dolorem", ) assert response.is_closed is True @@ -924,7 +924,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="saepe", + smart_link_id="dolorem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="repellat", + smart_link_id="architecto", ) assert smart_link is None @@ -954,7 +954,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="repellat", + smart_link_id="architecto", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="repellat", + smart_link_id="architecto", ) assert response.is_closed is True @@ -977,7 +977,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="repellat", + smart_link_id="architecto", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="sed", + smart_link_id="soluta", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="sed", + smart_link_id="soluta", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="sed", + smart_link_id="soluta", ) assert response.is_closed is True @@ -1029,7 +1029,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="sed", + smart_link_id="soluta", ) 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 4f39e1e4..ae948509 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": "gmxacxbqjoatgsydemmnkouhh", - "tags": ["lllhderjyqpfwqqbhobseiecb"], + "search": "sahxglvsuiebudvidx", + "tags": ["gqs"], }, 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": "evg", - "tags": ["xapykcvoe"], + "search": "mroqggdqryqfuapxuow", + "tags": ["llysqbavs"], }, 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": "n", - "tags": ["kknatgunivonrnyg"], + "include_smart_links": False, + "search": "qucdabdtapysvkolxygwvoh", + "tags": ["eebtpkgxulesecagzyrtxx"], }, 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": "uunrbkh", - "tags": ["jatsthvop"], + "search": "ouxeqhrcqu", + "tags": ["dwvhft"], }, 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": "gmxacxbqjoatgsydemmnkouhh", - "tags": ["lllhderjyqpfwqqbhobseiecb"], + "search": "sahxglvsuiebudvidx", + "tags": ["gqs"], }, 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": "evg", - "tags": ["xapykcvoe"], + "search": "mroqggdqryqfuapxuow", + "tags": ["llysqbavs"], }, 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": "n", - "tags": ["kknatgunivonrnyg"], + "include_smart_links": False, + "search": "qucdabdtapysvkolxygwvoh", + "tags": ["eebtpkgxulesecagzyrtxx"], }, 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": "uunrbkh", - "tags": ["jatsthvop"], + "search": "ouxeqhrcqu", + "tags": ["dwvhft"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index f4c1d8bc..8b28a438 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="alias", 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="alias", 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="alias", 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="alias", account="", ) @@ -196,7 +196,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="alias", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="alias", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="alias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="alias", account="", ) @@ -248,7 +248,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="maiores", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="maiores", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="maiores", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="maiores", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="maiores", + tracking_link_id="velit", account="", ) @@ -312,7 +312,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="sunt", + tracking_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="sunt", + tracking_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="sunt", + tracking_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="sunt", + tracking_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="sunt", + tracking_link_id="fuga", account="", ) @@ -563,7 +563,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="alias", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="alias", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="alias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="alias", account="", ) @@ -674,7 +674,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="alias", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="alias", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="alias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="alias", account="", ) @@ -726,7 +726,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="maiores", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="maiores", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="maiores", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="maiores", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="maiores", + tracking_link_id="velit", account="", ) @@ -790,7 +790,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="sunt", + tracking_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="sunt", + tracking_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="sunt", + tracking_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="sunt", + tracking_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="sunt", + tracking_link_id="fuga", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 83dd26ef..9f04c346 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="facilis", + trial_link_id="quas", 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="facilis", + trial_link_id="quas", 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="facilis", + trial_link_id="quas", 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="facilis", + trial_link_id="quas", account="", ) @@ -205,7 +205,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="facilis", + trial_link_id="quas", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="facilis", + trial_link_id="quas", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="facilis", + trial_link_id="quas", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="facilis", + trial_link_id="quas", account="", ) @@ -321,7 +321,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="repudiandae", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="repudiandae", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="repudiandae", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="repudiandae", + trial_link_id="ea", account="", limit=10, offset=0, @@ -383,7 +383,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="laudantium", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="laudantium", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="laudantium", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="laudantium", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="laudantium", + trial_link_id="dolorum", account="", ) @@ -447,7 +447,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="ad", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="ad", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="ad", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="ad", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="ad", account="", ) @@ -583,7 +583,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="facilis", + trial_link_id="quas", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="facilis", + trial_link_id="quas", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="facilis", + trial_link_id="quas", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="facilis", + trial_link_id="quas", account="", ) @@ -692,7 +692,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="facilis", + trial_link_id="quas", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="facilis", + trial_link_id="quas", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="facilis", + trial_link_id="quas", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="facilis", + trial_link_id="quas", account="", ) @@ -808,7 +808,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="repudiandae", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="repudiandae", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="repudiandae", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="repudiandae", + trial_link_id="ea", account="", limit=10, offset=0, @@ -870,7 +870,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="laudantium", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="laudantium", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="laudantium", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="laudantium", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="laudantium", + trial_link_id="dolorum", account="", ) @@ -934,7 +934,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="ad", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="ad", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="ad", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="ad", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="ad", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index a5a3e2b5..94777bb4 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="nbgznywsojqxpdtqlr", + name="ancdsugyuqswl", ) 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="nbgznywsojqxpdtqlr", + name="ancdsugyuqswl", ) 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="nbgznywsojqxpdtqlr", + name="ancdsugyuqswl", ) 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="nbgznywsojqxpdtqlr", + name="ancdsugyuqswl", ) @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="nbgznywsojqxpdtqlr", + name="ancdsugyuqswl", ) 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="nbgznywsojqxpdtqlr", + name="ancdsugyuqswl", ) 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="nbgznywsojqxpdtqlr", + name="ancdsugyuqswl", ) 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="nbgznywsojqxpdtqlr", + name="ancdsugyuqswl", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 61092043eacd145962a8b12c14cee3ffbff585b4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 8 Aug 2026 19:12:34 +0000 Subject: [PATCH 218/249] 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 | 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 +-- 16 files changed, 264 insertions(+), 264 deletions(-) diff --git a/.stats.yml b/.stats.yml index c153f1b0..9b65f845 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-29c14daeff3835032106c1a2a4647cb028a8ff8e09e9d50e63fb2621e3fddb27.yml -openapi_spec_hash: 6cbcad5427abf73d8af31cda86fe9ed2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6ca07aa83cd98f818f0ef1fbdfe59df8ac9762492be0312474a71f558817c258.yml +openapi_spec_hash: d29549849be6e283ba7316928ce76cde config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index f7abd4f7..182beed3 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="optio", + 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="optio", + 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="optio", + 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="optio", + 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="optio", + 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="optio", + 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="optio", + 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="optio", + 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="optio", + 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="optio", + 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 4b2a72d0..ab6514b9 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="inventore", + list_id="natus", 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="inventore", + list_id="natus", 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="inventore", + list_id="natus", 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="inventore", + list_id="natus", 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="inventore", + list_id="natus", 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="inventore", + list_id="natus", 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="inventore", + list_id="natus", 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="inventore", + list_id="natus", 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="inventore", + list_id="natus", 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="inventore", + list_id="natus", 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="inventore", + list_id="natus", 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="inventore", + list_id="natus", 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="inventore", + list_id="natus", 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="inventore", + list_id="natus", 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="inventore", + list_id="natus", 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="inventore", + list_id="natus", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index cc4a19da..cea7d5d2 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + 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="minus", + post_id="excepturi", 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 444937ba..7549791e 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 2ced6cb5..b5f3d61a 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 76229116..517ccd47 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index abc984fe..861d18bb 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( - "nesciunt", + "quae", ) 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( - "nesciunt", + "quae", ) 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( - "nesciunt", + "quae", ) 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( - "nesciunt", + "quae", ) 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( - "nesciunt", + "quae", ) 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( - "nesciunt", + "quae", ) 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 151af0bb..10994d92 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="sequi", + auth_id="aut", auth_type="mobile_app", - cookies="sed", + cookies="provident", custom_proxy={ "host": "proxy.example.com", - "password": "M3@OUIQ3O5pzPtcsXS", + "password": "WRMrEnPk{7MLJ", "port": 8080, - "username": "omnis", + "username": "et", }, - email="flegros@example.com", + email="asa55@example.net", force_connect=True, - name="tenetur", - password="C2GqMBOe0n9Vqg#", - proxy_country="gb", - user_agent="quis", - xbc="ut", + name="dicta", + password='ovIWxbCx<8gP"18^/1', + proxy_country="us", + user_agent="voluptatibus", + xbc="ratione", ) 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="sequi", + auth_id="aut", auth_type="mobile_app", - cookies="sed", + cookies="provident", custom_proxy={ "host": "proxy.example.com", - "password": "M3@OUIQ3O5pzPtcsXS", + "password": "WRMrEnPk{7MLJ", "port": 8080, - "username": "omnis", + "username": "et", }, - email="flegros@example.com", + email="asa55@example.net", force_connect=True, - name="tenetur", - password="C2GqMBOe0n9Vqg#", - proxy_country="gb", - user_agent="quis", - xbc="ut", + name="dicta", + password='ovIWxbCx<8gP"18^/1', + proxy_country="us", + user_agent="voluptatibus", + xbc="ratione", ) 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 9249f386..0d035d3b 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="gb", ) 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="gb", ) 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 413a2df6..280e3de9 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="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="likes", + 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 9652e1ae..da69a300 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": ["uidb"]}, + filter={"tags": ["vsrfqqzsuhtxkourt"]}, limit=50, name="Instagram", offset=0, @@ -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="voluptatibus", + smart_link_id="ut", ) 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="voluptatibus", + smart_link_id="ut", 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="voluptatibus", + smart_link_id="ut", ) 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="voluptatibus", + smart_link_id="ut", ) 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="occaecati", + smart_link_id="et", ) 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="occaecati", + smart_link_id="et", 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="occaecati", + smart_link_id="et", ) 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="occaecati", + smart_link_id="et", ) 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="nihil", + smart_link_id="eos", ) 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="nihil", + smart_link_id="eos", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="nihil", + smart_link_id="eos", ) assert response.is_closed is True @@ -358,7 +358,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="nihil", + smart_link_id="eos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="dolorem", + smart_link_id="vero", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="dolorem", + smart_link_id="vero", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="dolorem", + smart_link_id="vero", ) assert response.is_closed is True @@ -411,7 +411,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="dolorem", + smart_link_id="vero", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="architecto", + smart_link_id="aliquid", ) assert smart_link is None @@ -441,7 +441,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="architecto", + smart_link_id="aliquid", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="architecto", + smart_link_id="aliquid", ) assert response.is_closed is True @@ -464,7 +464,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="architecto", + smart_link_id="aliquid", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="soluta", + smart_link_id="non", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="soluta", + smart_link_id="non", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="soluta", + smart_link_id="non", ) assert response.is_closed is True @@ -516,7 +516,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="soluta", + smart_link_id="non", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["uidb"]}, + filter={"tags": ["vsrfqqzsuhtxkourt"]}, limit=50, name="Instagram", offset=0, @@ -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="voluptatibus", + smart_link_id="ut", ) 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="voluptatibus", + smart_link_id="ut", 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="voluptatibus", + smart_link_id="ut", ) 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="voluptatibus", + smart_link_id="ut", ) 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="occaecati", + smart_link_id="et", ) 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="occaecati", + smart_link_id="et", 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="occaecati", + smart_link_id="et", ) 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="occaecati", + smart_link_id="et", ) 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="nihil", + smart_link_id="eos", ) 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="nihil", + smart_link_id="eos", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="nihil", + smart_link_id="eos", ) assert response.is_closed is True @@ -871,7 +871,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="nihil", + smart_link_id="eos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="dolorem", + smart_link_id="vero", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="dolorem", + smart_link_id="vero", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="dolorem", + smart_link_id="vero", ) assert response.is_closed is True @@ -924,7 +924,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="dolorem", + smart_link_id="vero", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="architecto", + smart_link_id="aliquid", ) assert smart_link is None @@ -954,7 +954,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="architecto", + smart_link_id="aliquid", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="architecto", + smart_link_id="aliquid", ) assert response.is_closed is True @@ -977,7 +977,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="architecto", + smart_link_id="aliquid", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="soluta", + smart_link_id="non", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="soluta", + smart_link_id="non", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="soluta", + smart_link_id="non", ) assert response.is_closed is True @@ -1029,7 +1029,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="soluta", + 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 ae948509..ed350aef 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": "sahxglvsuiebudvidx", - "tags": ["gqs"], + "search": "kuwdvitivdz", + "tags": ["scsosenejvzpih"], }, 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": "mroqggdqryqfuapxuow", - "tags": ["llysqbavs"], + "search": "kksuvhgvnsnfwbfnelduv", + "tags": ["sdysrzymggjxrwtjwqzq"], }, 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": "qucdabdtapysvkolxygwvoh", - "tags": ["eebtpkgxulesecagzyrtxx"], + "search": "mo", + "tags": ["qzwfqnbnwpzdvmnfwknqbigbb"], }, 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": "ouxeqhrcqu", - "tags": ["dwvhft"], + "search": "cvvplhasaqc", + "tags": ["xfmqhqzrc"], }, 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": "sahxglvsuiebudvidx", - "tags": ["gqs"], + "search": "kuwdvitivdz", + "tags": ["scsosenejvzpih"], }, 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": "mroqggdqryqfuapxuow", - "tags": ["llysqbavs"], + "search": "kksuvhgvnsnfwbfnelduv", + "tags": ["sdysrzymggjxrwtjwqzq"], }, 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": "qucdabdtapysvkolxygwvoh", - "tags": ["eebtpkgxulesecagzyrtxx"], + "search": "mo", + "tags": ["qzwfqnbnwpzdvmnfwknqbigbb"], }, 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": "ouxeqhrcqu", - "tags": ["dwvhft"], + "search": "cvvplhasaqc", + "tags": ["xfmqhqzrc"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 8b28a438..f24d4f8b 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="alias", + tracking_link_id="voluptatem", 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="alias", + tracking_link_id="voluptatem", 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="alias", + tracking_link_id="voluptatem", 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="alias", + tracking_link_id="voluptatem", account="", ) @@ -196,7 +196,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="alias", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="alias", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="alias", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="alias", + tracking_link_id="voluptatem", account="", ) @@ -248,7 +248,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="velit", + tracking_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="velit", + tracking_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="velit", + tracking_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="velit", + tracking_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="velit", + tracking_link_id="impedit", account="", ) @@ -312,7 +312,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="fuga", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="fuga", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="fuga", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="fuga", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="fuga", + tracking_link_id="aspernatur", account="", ) @@ -563,7 +563,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="alias", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="alias", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="alias", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="alias", + tracking_link_id="voluptatem", account="", ) @@ -674,7 +674,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="alias", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="alias", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="alias", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="alias", + tracking_link_id="voluptatem", account="", ) @@ -726,7 +726,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="velit", + tracking_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="velit", + tracking_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="velit", + tracking_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="velit", + tracking_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="velit", + tracking_link_id="impedit", account="", ) @@ -790,7 +790,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="fuga", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="fuga", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="fuga", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="fuga", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="fuga", + tracking_link_id="aspernatur", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 9f04c346..10cd7bb0 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="quas", + trial_link_id="id", 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="quas", + trial_link_id="id", 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="quas", + trial_link_id="id", 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="quas", + trial_link_id="id", account="", ) @@ -205,7 +205,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="quas", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="quas", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="quas", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="quas", + trial_link_id="id", account="", ) @@ -321,7 +321,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="alias", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="alias", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="alias", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="alias", account="", limit=10, offset=0, @@ -383,7 +383,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="dolorum", + trial_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="dolorum", + trial_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="dolorum", + trial_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="dolorum", + trial_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="dolorum", + trial_link_id="incidunt", account="", ) @@ -447,7 +447,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="ad", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="ad", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="ad", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="ad", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="ad", + trial_link_id="velit", account="", ) @@ -583,7 +583,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="quas", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="quas", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="quas", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="quas", + trial_link_id="id", account="", ) @@ -692,7 +692,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="quas", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="quas", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="quas", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="quas", + trial_link_id="id", account="", ) @@ -808,7 +808,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="alias", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="alias", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="alias", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="alias", account="", limit=10, offset=0, @@ -870,7 +870,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="dolorum", + trial_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="dolorum", + trial_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="dolorum", + trial_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="dolorum", + trial_link_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="dolorum", + trial_link_id="incidunt", account="", ) @@ -934,7 +934,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="ad", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="ad", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="ad", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="ad", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="ad", + trial_link_id="velit", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 94777bb4..4e0409b3 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="ancdsugyuqswl", + name="cudvsctuyhiao", ) 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="ancdsugyuqswl", + name="cudvsctuyhiao", ) 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="ancdsugyuqswl", + name="cudvsctuyhiao", ) 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="ancdsugyuqswl", + name="cudvsctuyhiao", ) @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="ancdsugyuqswl", + name="cudvsctuyhiao", ) 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="ancdsugyuqswl", + name="cudvsctuyhiao", ) 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="ancdsugyuqswl", + name="cudvsctuyhiao", ) 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="ancdsugyuqswl", + name="cudvsctuyhiao", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 3ed6a88a772874e34820aed36250aa8c92a2094c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 10 Aug 2026 15:13:54 +0000 Subject: [PATCH 219/249] 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_notifications.py | 4 +- .../api_resources/test_shared_trial_links.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 +-- 15 files changed, 254 insertions(+), 254 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9b65f845..784e957d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6ca07aa83cd98f818f0ef1fbdfe59df8ac9762492be0312474a71f558817c258.yml -openapi_spec_hash: d29549849be6e283ba7316928ce76cde +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a25f67524107e11173299b244198d472d7abea586a4179e3838764896d87c555.yml +openapi_spec_hash: 9e6f6ba8dacad12c509462f22278735c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 182beed3..b9c52e92 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index ab6514b9..261d1023 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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 cea7d5d2..0d70ffc7 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="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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + 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="excepturi", + post_id="aut", account="", ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 517ccd47..44d71784 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="vel", + path_story_id="ab", 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="vel", + path_story_id="ab", 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="vel", + path_story_id="ab", 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="vel", + path_story_id="ab", 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="vel", + story_id="ab", 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="vel", + story_id="ab", 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="vel", + story_id="ab", 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="vel", + story_id="ab", 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="vel", + path_story_id="ab", 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="vel", + path_story_id="ab", 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="vel", + path_story_id="ab", 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="vel", + path_story_id="ab", 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="vel", + story_id="ab", 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="vel", + story_id="ab", 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="vel", + story_id="ab", 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="vel", + story_id="ab", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 861d18bb..9725452e 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( - "quae", + "amet", ) 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( - "quae", + "amet", ) 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( - "quae", + "amet", ) 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( - "quae", + "amet", ) 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( - "quae", + "amet", ) 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( - "quae", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 10994d92..8db1e331 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_type="mobile_app", - cookies="provident", + auth_id="delectus", + auth_type="email_password", + cookies="ipsa", custom_proxy={ "host": "proxy.example.com", - "password": "WRMrEnPk{7MLJ", + "password": ".GE,(O0&Nx", "port": 8080, - "username": "et", + "username": "blanditiis", }, - email="asa55@example.net", - force_connect=True, - name="dicta", - password='ovIWxbCx<8gP"18^/1', + email="stark.cecil@example.com", + force_connect=False, + name="repudiandae", + password="2:DKY'", proxy_country="us", - user_agent="voluptatibus", - xbc="ratione", + user_agent="nihil", + xbc="totam", ) 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="aut", - auth_type="mobile_app", - cookies="provident", + auth_id="delectus", + auth_type="email_password", + cookies="ipsa", custom_proxy={ "host": "proxy.example.com", - "password": "WRMrEnPk{7MLJ", + "password": ".GE,(O0&Nx", "port": 8080, - "username": "et", + "username": "blanditiis", }, - email="asa55@example.net", - force_connect=True, - name="dicta", - password='ovIWxbCx<8gP"18^/1', + email="stark.cecil@example.com", + force_connect=False, + name="repudiandae", + password="2:DKY'", proxy_country="us", - user_agent="voluptatibus", - xbc="ratione", + user_agent="nihil", + xbc="totam", ) 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 0d035d3b..3597ede6 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="gb", + 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="gb", + 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 280e3de9..1a80b275 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="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="comments", + type="onlyfans", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index da69a300..9ff4e418 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": ["vsrfqqzsuhtxkourt"]}, + filter={"tags": ["welldveqdbji"]}, limit=50, name="Instagram", offset=0, @@ -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="ut", + smart_link_id="quasi", ) 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="ut", + smart_link_id="quasi", 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="ut", + smart_link_id="quasi", ) 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="ut", + smart_link_id="quasi", ) 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="et", + smart_link_id="occaecati", ) 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="et", + smart_link_id="occaecati", 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="et", + smart_link_id="occaecati", ) 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="et", + smart_link_id="occaecati", ) 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="eos", + smart_link_id="libero", ) 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="eos", + smart_link_id="libero", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="eos", + smart_link_id="libero", ) assert response.is_closed is True @@ -358,7 +358,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="eos", + smart_link_id="libero", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="vero", + smart_link_id="ea", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="vero", + smart_link_id="ea", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="vero", + smart_link_id="ea", ) assert response.is_closed is True @@ -411,7 +411,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="vero", + smart_link_id="ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="aliquid", + smart_link_id="earum", ) assert smart_link is None @@ -441,7 +441,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="aliquid", + smart_link_id="earum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="aliquid", + smart_link_id="earum", ) assert response.is_closed is True @@ -464,7 +464,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="aliquid", + smart_link_id="earum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="quod", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="quod", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="quod", ) assert response.is_closed is True @@ -516,7 +516,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="quod", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["vsrfqqzsuhtxkourt"]}, + filter={"tags": ["welldveqdbji"]}, limit=50, name="Instagram", offset=0, @@ -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="ut", + smart_link_id="quasi", ) 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="ut", + smart_link_id="quasi", 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="ut", + smart_link_id="quasi", ) 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="ut", + smart_link_id="quasi", ) 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="et", + smart_link_id="occaecati", ) 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="et", + smart_link_id="occaecati", 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="et", + smart_link_id="occaecati", ) 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="et", + smart_link_id="occaecati", ) 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="eos", + smart_link_id="libero", ) 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="eos", + smart_link_id="libero", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="eos", + smart_link_id="libero", ) assert response.is_closed is True @@ -871,7 +871,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="eos", + smart_link_id="libero", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="vero", + smart_link_id="ea", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="vero", + smart_link_id="ea", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="vero", + smart_link_id="ea", ) assert response.is_closed is True @@ -924,7 +924,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="vero", + smart_link_id="ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="aliquid", + smart_link_id="earum", ) assert smart_link is None @@ -954,7 +954,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="aliquid", + smart_link_id="earum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="aliquid", + smart_link_id="earum", ) assert response.is_closed is True @@ -977,7 +977,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="aliquid", + smart_link_id="earum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="quod", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="quod", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="quod", ) assert response.is_closed is True @@ -1029,7 +1029,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="quod", ) 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 ed350aef..05b4c558 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": "kuwdvitivdz", - "tags": ["scsosenejvzpih"], + "search": "qlxm", + "tags": ["sytoimwtot"], }, 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": "kksuvhgvnsnfwbfnelduv", - "tags": ["sdysrzymggjxrwtjwqzq"], + "search": "kuxfzyxpqpghwdhainqy", + "tags": ["deyyj"], }, 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": "mo", - "tags": ["qzwfqnbnwpzdvmnfwknqbigbb"], + "search": "zg", + "tags": ["xbrwlwdiyqhh"], }, 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": "cvvplhasaqc", - "tags": ["xfmqhqzrc"], + "include_smart_links": False, + "search": "cpnspcjghzakouwqlclsj", + "tags": ["qvczeqt"], }, 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": "kuwdvitivdz", - "tags": ["scsosenejvzpih"], + "search": "qlxm", + "tags": ["sytoimwtot"], }, 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": "kksuvhgvnsnfwbfnelduv", - "tags": ["sdysrzymggjxrwtjwqzq"], + "search": "kuxfzyxpqpghwdhainqy", + "tags": ["deyyj"], }, 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": "mo", - "tags": ["qzwfqnbnwpzdvmnfwknqbigbb"], + "search": "zg", + "tags": ["xbrwlwdiyqhh"], }, 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": "cvvplhasaqc", - "tags": ["xfmqhqzrc"], + "include_smart_links": False, + "search": "cpnspcjghzakouwqlclsj", + "tags": ["qvczeqt"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index f24d4f8b..39667622 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="voluptatem", + tracking_link_id="voluptas", 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="voluptatem", + tracking_link_id="voluptas", 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="voluptatem", + tracking_link_id="voluptas", 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="voluptatem", + tracking_link_id="voluptas", account="", ) @@ -196,7 +196,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="voluptatem", + tracking_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="voluptatem", + tracking_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="voluptatem", + tracking_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="voluptatem", + tracking_link_id="voluptas", account="", ) @@ -248,7 +248,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="impedit", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="impedit", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="impedit", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="impedit", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="impedit", + tracking_link_id="in", account="", ) @@ -312,7 +312,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="aspernatur", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="aspernatur", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="aspernatur", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="aspernatur", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="aspernatur", + tracking_link_id="rerum", account="", ) @@ -563,7 +563,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="voluptatem", + tracking_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="voluptatem", + tracking_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="voluptatem", + tracking_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="voluptatem", + tracking_link_id="voluptas", account="", ) @@ -674,7 +674,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="voluptatem", + tracking_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="voluptatem", + tracking_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="voluptatem", + tracking_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="voluptatem", + tracking_link_id="voluptas", account="", ) @@ -726,7 +726,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="impedit", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="impedit", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="impedit", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="impedit", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="impedit", + tracking_link_id="in", account="", ) @@ -790,7 +790,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="aspernatur", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="aspernatur", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="aspernatur", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="aspernatur", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="aspernatur", + tracking_link_id="rerum", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 10cd7bb0..78c261c4 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="id", + trial_link_id="dolor", 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="id", + trial_link_id="dolor", 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="id", + trial_link_id="dolor", 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="id", + trial_link_id="dolor", account="", ) @@ -205,7 +205,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="id", + trial_link_id="dolor", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="id", + trial_link_id="dolor", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="id", + trial_link_id="dolor", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="id", + trial_link_id="dolor", account="", ) @@ -321,7 +321,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="alias", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="alias", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="alias", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="alias", + trial_link_id="aut", account="", limit=10, offset=0, @@ -383,7 +383,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="incidunt", + trial_link_id="molestias", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="incidunt", + trial_link_id="molestias", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="incidunt", + trial_link_id="molestias", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="incidunt", + trial_link_id="molestias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="incidunt", + trial_link_id="molestias", account="", ) @@ -447,7 +447,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="velit", + trial_link_id="ratione", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="velit", + trial_link_id="ratione", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="velit", + trial_link_id="ratione", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="velit", + trial_link_id="ratione", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="velit", + trial_link_id="ratione", account="", ) @@ -583,7 +583,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="id", + trial_link_id="dolor", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="id", + trial_link_id="dolor", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="id", + trial_link_id="dolor", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="id", + trial_link_id="dolor", account="", ) @@ -692,7 +692,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="id", + trial_link_id="dolor", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="id", + trial_link_id="dolor", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="id", + trial_link_id="dolor", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="id", + trial_link_id="dolor", account="", ) @@ -808,7 +808,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="alias", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="alias", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="alias", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="alias", + trial_link_id="aut", account="", limit=10, offset=0, @@ -870,7 +870,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="incidunt", + trial_link_id="molestias", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="incidunt", + trial_link_id="molestias", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="incidunt", + trial_link_id="molestias", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="incidunt", + trial_link_id="molestias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="incidunt", + trial_link_id="molestias", account="", ) @@ -934,7 +934,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="velit", + trial_link_id="ratione", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="velit", + trial_link_id="ratione", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="velit", + trial_link_id="ratione", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="velit", + trial_link_id="ratione", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="velit", + trial_link_id="ratione", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 4e0409b3..3bf32068 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="cudvsctuyhiao", + name="qmhkontnjbzcsjogqgcez", ) 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="cudvsctuyhiao", + name="qmhkontnjbzcsjogqgcez", ) 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="cudvsctuyhiao", + name="qmhkontnjbzcsjogqgcez", ) 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="cudvsctuyhiao", + name="qmhkontnjbzcsjogqgcez", ) @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="cudvsctuyhiao", + name="qmhkontnjbzcsjogqgcez", ) 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="cudvsctuyhiao", + name="qmhkontnjbzcsjogqgcez", ) 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="cudvsctuyhiao", + name="qmhkontnjbzcsjogqgcez", ) 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="cudvsctuyhiao", + name="qmhkontnjbzcsjogqgcez", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 28864eea9911a6c0ce9d011cc97f14cab53416ac Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 10 Aug 2026 16:12:40 +0000 Subject: [PATCH 220/249] 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_profiles.py | 4 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 76 ++++++------- 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 784e957d..a0b698d8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a25f67524107e11173299b244198d472d7abea586a4179e3838764896d87c555.yml -openapi_spec_hash: 9e6f6ba8dacad12c509462f22278735c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9ded63088e6c7c224f6f831a5d9c1b038c02a5d631631ad3480ab7052f03d67e.yml +openapi_spec_hash: 7373194c17010bd5d2e58feedf4a37e6 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index b9c52e92..ebbb00cc 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="reiciendis", + message_id="commodi", 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="reiciendis", + message_id="commodi", 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="reiciendis", + message_id="commodi", 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="reiciendis", + message_id="commodi", 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="reiciendis", + message_id="commodi", 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="reiciendis", + message_id="commodi", 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="reiciendis", + message_id="commodi", 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="reiciendis", + message_id="commodi", 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="reiciendis", + message_id="commodi", 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="reiciendis", + message_id="commodi", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 261d1023..aec527c3 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 0d70ffc7..926b89df 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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 7549791e..aa735c97 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/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 44d71784..95bf6c81 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="ab", + path_story_id="omnis", 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="ab", + path_story_id="omnis", 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="ab", + path_story_id="omnis", 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="ab", + path_story_id="omnis", 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="ab", + story_id="omnis", 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="ab", + story_id="omnis", 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="ab", + story_id="omnis", 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="ab", + story_id="omnis", 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="ab", + path_story_id="omnis", 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="ab", + path_story_id="omnis", 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="ab", + path_story_id="omnis", 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="ab", + path_story_id="omnis", 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="ab", + story_id="omnis", 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="ab", + story_id="omnis", 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="ab", + story_id="omnis", 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="ab", + story_id="omnis", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 9725452e..f2f11c3c 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( - "amet", + "laborum", ) 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( - "amet", + "laborum", ) 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( - "amet", + "laborum", ) 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( - "amet", + "laborum", ) 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( - "amet", + "laborum", ) 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( - "amet", + "laborum", ) 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 8db1e331..4364aaee 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="delectus", - auth_type="email_password", - cookies="ipsa", + auth_id="tempore", + auth_type="mobile_app", + cookies="voluptate", custom_proxy={ "host": "proxy.example.com", - "password": ".GE,(O0&Nx", + "password": "CkYAmvM|", "port": 8080, - "username": "blanditiis", + "username": "adipisci", }, - email="stark.cecil@example.com", - force_connect=False, - name="repudiandae", - password="2:DKY'", + email="dach.brayan@example.org", + force_connect=True, + name="explicabo", + password="UZ{1GP8u+h$nb/iG.gj", proxy_country="us", - user_agent="nihil", - xbc="totam", + user_agent="sapiente", + xbc="officiis", ) 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="delectus", - auth_type="email_password", - cookies="ipsa", + auth_id="tempore", + auth_type="mobile_app", + cookies="voluptate", custom_proxy={ "host": "proxy.example.com", - "password": ".GE,(O0&Nx", + "password": "CkYAmvM|", "port": 8080, - "username": "blanditiis", + "username": "adipisci", }, - email="stark.cecil@example.com", - force_connect=False, - name="repudiandae", - password="2:DKY'", + email="dach.brayan@example.org", + force_connect=True, + name="explicabo", + password="UZ{1GP8u+h$nb/iG.gj", proxy_country="us", - user_agent="nihil", - xbc="totam", + user_agent="sapiente", + xbc="officiis", ) 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 3597ede6..9249f386 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 bd4f6161..65694e23 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 9ff4e418..01fe98f2 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": ["welldveqdbji"]}, + filter={"tags": ["mbijyjgqfwczolfkyvhakp"]}, limit=50, name="Instagram", offset=0, @@ -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="quasi", + smart_link_id="reiciendis", ) 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="quasi", + smart_link_id="reiciendis", 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="quasi", + smart_link_id="reiciendis", ) 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="quasi", + smart_link_id="reiciendis", ) 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="occaecati", + smart_link_id="voluptas", ) 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="occaecati", + smart_link_id="voluptas", 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="occaecati", + smart_link_id="voluptas", ) 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="occaecati", + smart_link_id="voluptas", ) 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="libero", + smart_link_id="doloremque", ) 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="libero", + smart_link_id="doloremque", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="libero", + smart_link_id="doloremque", ) assert response.is_closed is True @@ -358,7 +358,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="libero", + smart_link_id="doloremque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="ea", + smart_link_id="corporis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="ea", + smart_link_id="corporis", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="ea", + smart_link_id="corporis", ) assert response.is_closed is True @@ -411,7 +411,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="ea", + smart_link_id="corporis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="earum", + smart_link_id="quisquam", ) assert smart_link is None @@ -441,7 +441,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="earum", + smart_link_id="quisquam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="earum", + smart_link_id="quisquam", ) assert response.is_closed is True @@ -464,7 +464,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="earum", + smart_link_id="quisquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="quod", + smart_link_id="id", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="quod", + smart_link_id="id", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="quod", + smart_link_id="id", ) assert response.is_closed is True @@ -516,7 +516,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="quod", + smart_link_id="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["welldveqdbji"]}, + filter={"tags": ["mbijyjgqfwczolfkyvhakp"]}, limit=50, name="Instagram", offset=0, @@ -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="quasi", + smart_link_id="reiciendis", ) 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="quasi", + smart_link_id="reiciendis", 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="quasi", + smart_link_id="reiciendis", ) 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="quasi", + smart_link_id="reiciendis", ) 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="occaecati", + smart_link_id="voluptas", ) 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="occaecati", + smart_link_id="voluptas", 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="occaecati", + smart_link_id="voluptas", ) 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="occaecati", + smart_link_id="voluptas", ) 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="libero", + smart_link_id="doloremque", ) 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="libero", + smart_link_id="doloremque", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="libero", + smart_link_id="doloremque", ) assert response.is_closed is True @@ -871,7 +871,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="libero", + smart_link_id="doloremque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="ea", + smart_link_id="corporis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="ea", + smart_link_id="corporis", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="ea", + smart_link_id="corporis", ) assert response.is_closed is True @@ -924,7 +924,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="ea", + smart_link_id="corporis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="earum", + smart_link_id="quisquam", ) assert smart_link is None @@ -954,7 +954,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="earum", + smart_link_id="quisquam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="earum", + smart_link_id="quisquam", ) assert response.is_closed is True @@ -977,7 +977,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="earum", + smart_link_id="quisquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="quod", + smart_link_id="id", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="quod", + smart_link_id="id", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="quod", + smart_link_id="id", ) assert response.is_closed is True @@ -1029,7 +1029,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="quod", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index 05b4c558..63e2d26b 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": "qlxm", - "tags": ["sytoimwtot"], + "search": "gnngfoikxbemt", + "tags": ["ebjzfhhfoahogdtaygfhj"], }, 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": "kuxfzyxpqpghwdhainqy", - "tags": ["deyyj"], + "search": "wftnidmjdeeioksanezdbvmc", + "tags": ["vpw"], }, 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": "zg", - "tags": ["xbrwlwdiyqhh"], + "search": "yjqm", + "tags": ["eeagshmhliesyvgidgfs"], }, 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": "cpnspcjghzakouwqlclsj", - "tags": ["qvczeqt"], + "include_smart_links": True, + "search": "cmnry", + "tags": ["xmcbdsskl"], }, 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": "qlxm", - "tags": ["sytoimwtot"], + "search": "gnngfoikxbemt", + "tags": ["ebjzfhhfoahogdtaygfhj"], }, 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": "kuxfzyxpqpghwdhainqy", - "tags": ["deyyj"], + "search": "wftnidmjdeeioksanezdbvmc", + "tags": ["vpw"], }, 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": "zg", - "tags": ["xbrwlwdiyqhh"], + "search": "yjqm", + "tags": ["eeagshmhliesyvgidgfs"], }, 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": "cpnspcjghzakouwqlclsj", - "tags": ["qvczeqt"], + "include_smart_links": True, + "search": "cmnry", + "tags": ["xmcbdsskl"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 39667622..8842a95f 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="voluptas", + tracking_link_id="possimus", 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="voluptas", + tracking_link_id="possimus", 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="voluptas", + tracking_link_id="possimus", 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="voluptas", + tracking_link_id="possimus", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="voluptas", + tracking_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="voluptas", + tracking_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="voluptas", + tracking_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="voluptas", + tracking_link_id="possimus", account="", ) @@ -248,7 +248,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="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="numquam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="numquam", account="", ) @@ -312,7 +312,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="rerum", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="rerum", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="rerum", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="rerum", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="rerum", + tracking_link_id="est", account="", ) @@ -563,7 +563,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="voluptas", + tracking_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="voluptas", + tracking_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="voluptas", + tracking_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="voluptas", + tracking_link_id="possimus", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="voluptas", + tracking_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="voluptas", + tracking_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="voluptas", + tracking_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="voluptas", + tracking_link_id="possimus", account="", ) @@ -726,7 +726,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="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="numquam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="numquam", account="", ) @@ -790,7 +790,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="rerum", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="rerum", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="rerum", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="rerum", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="rerum", + tracking_link_id="est", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 78c261c4..7e963f9e 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="dolor", + trial_link_id="accusantium", 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="dolor", + trial_link_id="accusantium", 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="dolor", + trial_link_id="accusantium", 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="dolor", + trial_link_id="accusantium", account="", ) @@ -205,7 +205,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="dolor", + trial_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="dolor", + trial_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="dolor", + trial_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="dolor", + trial_link_id="accusantium", account="", ) @@ -321,7 +321,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="omnis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="omnis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="omnis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="omnis", account="", limit=10, offset=0, @@ -383,7 +383,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="molestias", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="molestias", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="molestias", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="molestias", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="molestias", + trial_link_id="in", account="", ) @@ -447,7 +447,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="ratione", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="ratione", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="ratione", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="ratione", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="ratione", + trial_link_id="voluptatem", account="", ) @@ -583,7 +583,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="dolor", + trial_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="dolor", + trial_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="dolor", + trial_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="dolor", + trial_link_id="accusantium", account="", ) @@ -692,7 +692,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="dolor", + trial_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="dolor", + trial_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="dolor", + trial_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="dolor", + trial_link_id="accusantium", account="", ) @@ -808,7 +808,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="omnis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="omnis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="omnis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="omnis", account="", limit=10, offset=0, @@ -870,7 +870,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="molestias", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="molestias", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="molestias", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="molestias", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="molestias", + trial_link_id="in", account="", ) @@ -934,7 +934,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="ratione", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="ratione", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="ratione", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="ratione", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="ratione", + trial_link_id="voluptatem", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 3bf32068..200120af 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="qmhkontnjbzcsjogqgcez", + name="ioooxdy", ) 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="qmhkontnjbzcsjogqgcez", + name="ioooxdy", ) 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="qmhkontnjbzcsjogqgcez", + name="ioooxdy", ) 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="qmhkontnjbzcsjogqgcez", + name="ioooxdy", ) @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="qmhkontnjbzcsjogqgcez", + name="ioooxdy", ) 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="qmhkontnjbzcsjogqgcez", + name="ioooxdy", ) 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="qmhkontnjbzcsjogqgcez", + name="ioooxdy", ) 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="qmhkontnjbzcsjogqgcez", + name="ioooxdy", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 5f775d77cbc18ce51badea04ef40f442f76da7e7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 11 Aug 2026 19:12:35 +0000 Subject: [PATCH 221/249] 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_profiles.py | 4 +- .../api_resources/test_shared_trial_links.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 +-- 19 files changed, 272 insertions(+), 272 deletions(-) diff --git a/.stats.yml b/.stats.yml index a0b698d8..0f9ae5d4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9ded63088e6c7c224f6f831a5d9c1b038c02a5d631631ad3480ab7052f03d67e.yml -openapi_spec_hash: 7373194c17010bd5d2e58feedf4a37e6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e4abd4c83686ea74647398a46d6991a121861e309ae311ea7a362c4cc9666a34.yml +openapi_spec_hash: cc4be956948ae5b19f83ad3b6fdb9e8d config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index ebbb00cc..a4e86aa2 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="commodi", + message_id="voluptatem", 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="commodi", + message_id="voluptatem", 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="commodi", + message_id="voluptatem", 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="commodi", + message_id="voluptatem", 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="commodi", + message_id="voluptatem", 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="commodi", + message_id="voluptatem", 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="commodi", + message_id="voluptatem", 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="commodi", + message_id="voluptatem", 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="commodi", + message_id="voluptatem", 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="commodi", + message_id="voluptatem", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index aec527c3..fc0fe65e 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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="veniam", + 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 926b89df..beb3d11b 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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 aa735c97..444937ba 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 b5f3d61a..2ced6cb5 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 9664075f..544df889 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 95bf6c81..506c2ed9 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="omnis", + 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="omnis", + 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="omnis", + 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="omnis", + 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="omnis", + 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="omnis", + 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="omnis", + 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="omnis", + 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="omnis", + 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="omnis", + 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="omnis", + 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="omnis", + 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="omnis", + 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="omnis", + 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="omnis", + 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="omnis", + story_id="et", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index f2f11c3c..f9765ad6 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( - "laborum", + "eligendi", ) 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( - "laborum", + "eligendi", ) 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( - "laborum", + "eligendi", ) 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( - "laborum", + "eligendi", ) 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( - "laborum", + "eligendi", ) 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( - "laborum", + "eligendi", ) 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 4364aaee..36948189 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="tempore", - auth_type="mobile_app", - cookies="voluptate", + auth_id="temporibus", + auth_type="email_password", + cookies="magnam", custom_proxy={ "host": "proxy.example.com", - "password": "CkYAmvM|", + "password": "R)4wm6N", "port": 8080, - "username": "adipisci", + "username": "et", }, - email="dach.brayan@example.org", - force_connect=True, - name="explicabo", - password="UZ{1GP8u+h$nb/iG.gj", + email="aleen.bogan@example.org", + force_connect=False, + name="veritatis", + password="d~NiPl|eM[tQ8k6Hm", proxy_country="us", - user_agent="sapiente", - xbc="officiis", + user_agent="sunt", + 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="tempore", - auth_type="mobile_app", - cookies="voluptate", + auth_id="temporibus", + auth_type="email_password", + cookies="magnam", custom_proxy={ "host": "proxy.example.com", - "password": "CkYAmvM|", + "password": "R)4wm6N", "port": 8080, - "username": "adipisci", + "username": "et", }, - email="dach.brayan@example.org", - force_connect=True, - name="explicabo", - password="UZ{1GP8u+h$nb/iG.gj", + email="aleen.bogan@example.org", + force_connect=False, + name="veritatis", + password="d~NiPl|eM[tQ8k6Hm", proxy_country="us", - user_agent="sapiente", - xbc="officiis", + user_agent="sunt", + 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 9249f386..0d035d3b 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="gb", ) 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="gb", ) 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 1a80b275..280e3de9 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="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="onlyfans", + 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 65694e23..bd4f6161 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 01fe98f2..9924cbea 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": ["mbijyjgqfwczolfkyvhakp"]}, + filter={"tags": ["qygeheyalwfygycqjpjmkuclq"]}, limit=50, name="Instagram", offset=0, @@ -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="reiciendis", + smart_link_id="aut", ) 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="reiciendis", + smart_link_id="aut", 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="reiciendis", + smart_link_id="aut", ) 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="reiciendis", + smart_link_id="aut", ) 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="voluptas", + smart_link_id="a", ) 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="voluptas", + smart_link_id="a", 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="voluptas", + smart_link_id="a", ) 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="voluptas", + smart_link_id="a", ) 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="doloremque", + smart_link_id="dolor", ) 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="doloremque", + smart_link_id="dolor", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="doloremque", + smart_link_id="dolor", ) assert response.is_closed is True @@ -358,7 +358,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="doloremque", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="corporis", + smart_link_id="autem", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="corporis", + smart_link_id="autem", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="corporis", + smart_link_id="autem", ) assert response.is_closed is True @@ -411,7 +411,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="corporis", + smart_link_id="autem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="quisquam", + smart_link_id="aut", ) assert smart_link is None @@ -441,7 +441,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="quisquam", + smart_link_id="aut", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="quisquam", + smart_link_id="aut", ) assert response.is_closed is True @@ -464,7 +464,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="quisquam", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="id", + smart_link_id="eius", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="id", + smart_link_id="eius", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="id", + smart_link_id="eius", ) assert response.is_closed is True @@ -516,7 +516,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="id", + smart_link_id="eius", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["mbijyjgqfwczolfkyvhakp"]}, + filter={"tags": ["qygeheyalwfygycqjpjmkuclq"]}, limit=50, name="Instagram", offset=0, @@ -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="reiciendis", + smart_link_id="aut", ) 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="reiciendis", + smart_link_id="aut", 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="reiciendis", + smart_link_id="aut", ) 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="reiciendis", + smart_link_id="aut", ) 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="voluptas", + smart_link_id="a", ) 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="voluptas", + smart_link_id="a", 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="voluptas", + smart_link_id="a", ) 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="voluptas", + smart_link_id="a", ) 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="doloremque", + smart_link_id="dolor", ) 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="doloremque", + smart_link_id="dolor", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="doloremque", + smart_link_id="dolor", ) assert response.is_closed is True @@ -871,7 +871,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="doloremque", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="corporis", + smart_link_id="autem", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="corporis", + smart_link_id="autem", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="corporis", + smart_link_id="autem", ) assert response.is_closed is True @@ -924,7 +924,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="corporis", + smart_link_id="autem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="quisquam", + smart_link_id="aut", ) assert smart_link is None @@ -954,7 +954,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="quisquam", + smart_link_id="aut", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="quisquam", + smart_link_id="aut", ) assert response.is_closed is True @@ -977,7 +977,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="quisquam", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="id", + smart_link_id="eius", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="id", + smart_link_id="eius", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="id", + smart_link_id="eius", ) assert response.is_closed is True @@ -1029,7 +1029,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="id", + smart_link_id="eius", ) 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 63e2d26b..6eb795d2 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": "gnngfoikxbemt", - "tags": ["ebjzfhhfoahogdtaygfhj"], + "search": "b", + "tags": ["onpwuxzmrulamrmuyymhlkzp"], }, 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": "wftnidmjdeeioksanezdbvmc", - "tags": ["vpw"], + "search": "aevvmjdrljdlwjujqwangvkzr", + "tags": ["esjkltwnvlxqmq"], }, 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": "yjqm", - "tags": ["eeagshmhliesyvgidgfs"], + "search": "ekxzdcqnksgvzsou", + "tags": ["v"], }, 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": "cmnry", - "tags": ["xmcbdsskl"], + "search": "qlojbg", + "tags": ["hgimfghcleawlqqxjq"], }, 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": "gnngfoikxbemt", - "tags": ["ebjzfhhfoahogdtaygfhj"], + "search": "b", + "tags": ["onpwuxzmrulamrmuyymhlkzp"], }, 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": "wftnidmjdeeioksanezdbvmc", - "tags": ["vpw"], + "search": "aevvmjdrljdlwjujqwangvkzr", + "tags": ["esjkltwnvlxqmq"], }, 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": "yjqm", - "tags": ["eeagshmhliesyvgidgfs"], + "search": "ekxzdcqnksgvzsou", + "tags": ["v"], }, 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": "cmnry", - "tags": ["xmcbdsskl"], + "search": "qlojbg", + "tags": ["hgimfghcleawlqqxjq"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 8842a95f..e9d67b06 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="possimus", + tracking_link_id="sint", 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="possimus", + tracking_link_id="sint", 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="possimus", + tracking_link_id="sint", 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="possimus", + tracking_link_id="sint", account="", ) @@ -196,7 +196,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="possimus", + tracking_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="possimus", + tracking_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="possimus", + tracking_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="possimus", + tracking_link_id="sint", account="", ) @@ -248,7 +248,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="numquam", + tracking_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="numquam", + tracking_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="numquam", + tracking_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="numquam", + tracking_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="numquam", + tracking_link_id="dolores", account="", ) @@ -312,7 +312,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="est", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="est", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="est", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="est", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="est", + tracking_link_id="et", account="", ) @@ -563,7 +563,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="possimus", + tracking_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="possimus", + tracking_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="possimus", + tracking_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="possimus", + tracking_link_id="sint", account="", ) @@ -674,7 +674,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="possimus", + tracking_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="possimus", + tracking_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="possimus", + tracking_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="possimus", + tracking_link_id="sint", account="", ) @@ -726,7 +726,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="numquam", + tracking_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="numquam", + tracking_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="numquam", + tracking_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="numquam", + tracking_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="numquam", + tracking_link_id="dolores", account="", ) @@ -790,7 +790,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="est", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="est", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="est", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="est", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="est", + tracking_link_id="et", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 7e963f9e..c1eb7ff6 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="accusantium", + 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="accusantium", + 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="accusantium", + 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="accusantium", + trial_link_id="numquam", account="", ) @@ -205,7 +205,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="accusantium", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="accusantium", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="accusantium", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="accusantium", + trial_link_id="numquam", account="", ) @@ -321,7 +321,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="omnis", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="omnis", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="omnis", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="omnis", + trial_link_id="quasi", account="", limit=10, offset=0, @@ -383,7 +383,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="in", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="in", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="in", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="in", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="in", + trial_link_id="eos", account="", ) @@ -447,7 +447,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="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="et", account="", ) @@ -583,7 +583,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="accusantium", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="accusantium", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="accusantium", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="accusantium", + trial_link_id="numquam", account="", ) @@ -692,7 +692,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="accusantium", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="accusantium", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="accusantium", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="accusantium", + trial_link_id="numquam", account="", ) @@ -808,7 +808,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="omnis", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="omnis", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="omnis", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="omnis", + trial_link_id="quasi", account="", limit=10, offset=0, @@ -870,7 +870,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="in", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="in", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="in", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="in", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="in", + trial_link_id="eos", account="", ) @@ -934,7 +934,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="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="et", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 200120af..6eaa5b16 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="ioooxdy", + name="dybjkxucmthbcfwdltsetdrmk", ) 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="ioooxdy", + name="dybjkxucmthbcfwdltsetdrmk", ) 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="ioooxdy", + name="dybjkxucmthbcfwdltsetdrmk", ) 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="ioooxdy", + name="dybjkxucmthbcfwdltsetdrmk", ) @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="ioooxdy", + name="dybjkxucmthbcfwdltsetdrmk", ) 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="ioooxdy", + name="dybjkxucmthbcfwdltsetdrmk", ) 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="ioooxdy", + name="dybjkxucmthbcfwdltsetdrmk", ) 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="ioooxdy", + name="dybjkxucmthbcfwdltsetdrmk", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 1a8acd18cce3fe2d56e8c8da5d24bca8741703fa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 11 Aug 2026 20:12:36 +0000 Subject: [PATCH 222/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/chats/messages.py | 54 +++++++++- src/onlyfansapi/resources/fans/fans.py | 36 +++++++ src/onlyfansapi/resources/media/media.py | 8 +- src/onlyfansapi/resources/media/uploads.py | 10 ++ .../resources/media/vault/vault.py | 8 +- src/onlyfansapi/resources/user_lists/users.py | 66 +++++++++--- .../types/chats/message_send_params.py | 2 + .../types/fan_list_active_params.py | 37 ++++++- src/onlyfansapi/types/fan_list_all_params.py | 37 ++++++- .../types/fan_list_expired_params.py | 37 ++++++- .../types/media/vault_upload_params.py | 4 +- src/onlyfansapi/types/media_upload_params.py | 4 +- .../types/user_lists/user_add_params.py | 11 ++ .../types/user_lists/user_add_response.py | 101 +++++++++++++++--- tests/api_resources/chats/test_messages.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/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_fans.py | 6 ++ tests/api_resources/test_notifications.py | 4 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 ++++++++--------- 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 +-- tests/api_resources/user_lists/test_users.py | 22 ++++ 32 files changed, 659 insertions(+), 310 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0f9ae5d4..4648608c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e4abd4c83686ea74647398a46d6991a121861e309ae311ea7a362c4cc9666a34.yml -openapi_spec_hash: cc4be956948ae5b19f83ad3b6fdb9e8d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-34e6f479a1872e539a6ba6bbd44e66e1a10d978ae34a53a7f7499c4e93bafd2e.yml +openapi_spec_hash: 17e3d768656db29acf3d2068449bfa52 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/chats/messages.py b/src/onlyfansapi/resources/chats/messages.py index 8cfd0367..22a57b19 100644 --- a/src/onlyfansapi/resources/chats/messages.py +++ b/src/onlyfansapi/resources/chats/messages.py @@ -8,7 +8,7 @@ import httpx from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given -from ..._utils import path_template, maybe_transform, async_maybe_transform +from ..._utils import path_template, maybe_transform, strip_not_given, async_maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( @@ -367,6 +367,7 @@ def send( rf_partner: str | Omit = omit, rf_tag: str | Omit = omit, text: str | Omit = omit, + idempotency_key: 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, @@ -377,6 +378,30 @@ def send( """ Send a new message to a chat. + **Idempotency.** Pass an `Idempotency-Key` header to make retries safe. The + first request with a given key is executed normally and its response is stored + for **24 hours**; any later request with the same key returns that stored + response, plus an `Idempotent-Replayed: true` header, without contacting + OnlyFans and without consuming credits. The replayed body is the original + response with its `_meta._credits` block rewritten to show `used: 0` and your + current balance. + + Keys are scoped to your team, this endpoint and the account in the URL, so the + same value can be reused safely against a different account. Use a fresh, unique + value (a UUID works well) for each message you send; it must be 1-255 printable + ASCII characters. + + - `400 IDEMPOTENCY_KEY_INVALID` — the header value is empty, too long, or + contains non-ASCII characters. + - `409 IDEMPOTENCY_CONFLICT` — an earlier request with this key is still + running. Retry once it finishes. + - `422 IDEMPOTENCY_KEY_MISMATCH` — this key was already used with a different + request body or chat. + + Responses with a `5xx` status (and `408`/`429`) are never stored, so a failed + send can be retried with the same key. The header is optional: omit it and the + endpoint behaves exactly as before. + Args: block_banned_words: Screen `text` for OnlyFans banned words and block the send if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, @@ -421,6 +446,7 @@ def send( raise ValueError(f"Expected a non-empty value for `account` but received {account!r}") if not chat_id: raise ValueError(f"Expected a non-empty value for `chat_id` but received {chat_id!r}") + extra_headers = {**strip_not_given({"Idempotency-Key": idempotency_key}), **(extra_headers or {})} return self._post( path_template("/api/{account}/chats/{chat_id}/messages", account=account, chat_id=chat_id), body=maybe_transform( @@ -869,6 +895,7 @@ async def send( rf_partner: str | Omit = omit, rf_tag: str | Omit = omit, text: str | Omit = omit, + idempotency_key: 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, @@ -879,6 +906,30 @@ async def send( """ Send a new message to a chat. + **Idempotency.** Pass an `Idempotency-Key` header to make retries safe. The + first request with a given key is executed normally and its response is stored + for **24 hours**; any later request with the same key returns that stored + response, plus an `Idempotent-Replayed: true` header, without contacting + OnlyFans and without consuming credits. The replayed body is the original + response with its `_meta._credits` block rewritten to show `used: 0` and your + current balance. + + Keys are scoped to your team, this endpoint and the account in the URL, so the + same value can be reused safely against a different account. Use a fresh, unique + value (a UUID works well) for each message you send; it must be 1-255 printable + ASCII characters. + + - `400 IDEMPOTENCY_KEY_INVALID` — the header value is empty, too long, or + contains non-ASCII characters. + - `409 IDEMPOTENCY_CONFLICT` — an earlier request with this key is still + running. Retry once it finishes. + - `422 IDEMPOTENCY_KEY_MISMATCH` — this key was already used with a different + request body or chat. + + Responses with a `5xx` status (and `408`/`429`) are never stored, so a failed + send can be retried with the same key. The header is optional: omit it and the + endpoint behaves exactly as before. + Args: block_banned_words: Screen `text` for OnlyFans banned words and block the send if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, @@ -923,6 +974,7 @@ async def send( raise ValueError(f"Expected a non-empty value for `account` but received {account!r}") if not chat_id: raise ValueError(f"Expected a non-empty value for `chat_id` but received {chat_id!r}") + extra_headers = {**strip_not_given({"Idempotency-Key": idempotency_key}), **(extra_headers or {})} return await self._post( path_template("/api/{account}/chats/{chat_id}/messages", account=account, chat_id=chat_id), body=await async_maybe_transform( diff --git a/src/onlyfansapi/resources/fans/fans.py b/src/onlyfansapi/resources/fans/fans.py index f2ae9c2b..026ff3a8 100644 --- a/src/onlyfansapi/resources/fans/fans.py +++ b/src/onlyfansapi/resources/fans/fans.py @@ -149,6 +149,12 @@ def list_active( track progress, GET `/{account}/me` returns data.subscribersCount (the current active-subscriber count) as a total. + Supports `filter[max_total_spent]` (e.g. `filter[max_total_spent]=0` for fans + who have never spent), which OnlyFans itself cannot do. Those requests are + answered from OnlyFansAPI's own fan index rather than proxied, so the page is + limited to fans we have already indexed for this account — see `data._source` in + the response. + Args: limit: Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be greater than 20. @@ -214,6 +220,12 @@ def list_all( OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on a non-final page because it filters entries server-side; no fans are skipped. + Supports `filter[max_total_spent]` (e.g. `filter[max_total_spent]=0` for fans + who have never spent), which OnlyFans itself cannot do. Those requests are + answered from OnlyFansAPI's own fan index rather than proxied, so the page is + limited to fans we have already indexed for this account — see `data._source` in + the response. + Args: limit: Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be greater than 20. @@ -280,6 +292,12 @@ def list_expired( limit=20) on a non-final page because it filters entries server-side; no fans are skipped. + Supports `filter[max_total_spent]` (e.g. `filter[max_total_spent]=0` for fans + who have never spent), which OnlyFans itself cannot do. Those requests are + answered from OnlyFansAPI's own fan index rather than proxied, so the page is + limited to fans we have already indexed for this account — see `data._source` in + the response. + Args: limit: Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be greater than 20. @@ -581,6 +599,12 @@ async def list_active( track progress, GET `/{account}/me` returns data.subscribersCount (the current active-subscriber count) as a total. + Supports `filter[max_total_spent]` (e.g. `filter[max_total_spent]=0` for fans + who have never spent), which OnlyFans itself cannot do. Those requests are + answered from OnlyFansAPI's own fan index rather than proxied, so the page is + limited to fans we have already indexed for this account — see `data._source` in + the response. + Args: limit: Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be greater than 20. @@ -646,6 +670,12 @@ async def list_all( OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on a non-final page because it filters entries server-side; no fans are skipped. + Supports `filter[max_total_spent]` (e.g. `filter[max_total_spent]=0` for fans + who have never spent), which OnlyFans itself cannot do. Those requests are + answered from OnlyFansAPI's own fan index rather than proxied, so the page is + limited to fans we have already indexed for this account — see `data._source` in + the response. + Args: limit: Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be greater than 20. @@ -712,6 +742,12 @@ async def list_expired( limit=20) on a non-final page because it filters entries server-side; no fans are skipped. + Supports `filter[max_total_spent]` (e.g. `filter[max_total_spent]=0` for fans + who have never spent), which OnlyFans itself cannot do. Those requests are + answered from OnlyFansAPI's own fan index rather than proxied, so the page is + limited to fans we have already indexed for this account — see `data._source` in + the response. + Args: limit: Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be greater than 20. diff --git a/src/onlyfansapi/resources/media/media.py b/src/onlyfansapi/resources/media/media.py index d918af4e..e51a8637 100644 --- a/src/onlyfansapi/resources/media/media.py +++ b/src/onlyfansapi/resources/media/media.py @@ -200,7 +200,9 @@ def upload( Args: async_: Set to `true` to process uploads in the background. Returns a `polling_url` to - check status. Recommended for large files. + check status. Recommended for large files. Instead of polling, you can subscribe + to the `media_uploads.completed` and `media_uploads.failed` webhook events — + they only fire for async uploads. file: The file to upload. Required if `file_url` is not provided. Maximum file size: @@ -405,7 +407,9 @@ async def upload( Args: async_: Set to `true` to process uploads in the background. Returns a `polling_url` to - check status. Recommended for large files. + check status. Recommended for large files. Instead of polling, you can subscribe + to the `media_uploads.completed` and `media_uploads.failed` webhook events — + they only fire for async uploads. file: The file to upload. Required if `file_url` is not provided. Maximum file size: diff --git a/src/onlyfansapi/resources/media/uploads.py b/src/onlyfansapi/resources/media/uploads.py index a2b61077..57f32de3 100644 --- a/src/onlyfansapi/resources/media/uploads.py +++ b/src/onlyfansapi/resources/media/uploads.py @@ -66,6 +66,11 @@ def get_status( - `completed` — Upload finished, `media` and `credits_used` are included - `failed` — Upload failed, `error` is included + Instead of polling, you can subscribe to the `media_uploads.completed` and + `media_uploads.failed` webhook events. They carry the same fields as this + endpoint and are only sent for async (`async=true`) uploads — synchronous + uploads return their result directly. + Args: extra_headers: Send extra headers @@ -137,6 +142,11 @@ async def get_status( - `completed` — Upload finished, `media` and `credits_used` are included - `failed` — Upload failed, `error` is included + Instead of polling, you can subscribe to the `media_uploads.completed` and + `media_uploads.failed` webhook events. They carry the same fields as this + endpoint and are only sent for async (`async=true`) uploads — synchronous + uploads return their result directly. + Args: extra_headers: Send extra headers diff --git a/src/onlyfansapi/resources/media/vault/vault.py b/src/onlyfansapi/resources/media/vault/vault.py index ef518546..2a02fff7 100644 --- a/src/onlyfansapi/resources/media/vault/vault.py +++ b/src/onlyfansapi/resources/media/vault/vault.py @@ -232,7 +232,9 @@ def upload( Args: async_: Set to `true` to process uploads in the background. Returns a `polling_url` to - check status. Recommended for large files. + check status. Recommended for large files. Instead of polling, you can subscribe + to the `media_uploads.completed` and `media_uploads.failed` webhook events — + they only fire for async uploads. file: The file to upload. Required if `file_url` is not provided. Maximum file size: @@ -461,7 +463,9 @@ async def upload( Args: async_: Set to `true` to process uploads in the background. Returns a `polling_url` to - check status. Recommended for large files. + check status. Recommended for large files. Instead of polling, you can subscribe + to the `media_uploads.completed` and `media_uploads.failed` webhook events — + they only fire for async uploads. file: The file to upload. Required if `file_url` is not provided. Maximum file size: diff --git a/src/onlyfansapi/resources/user_lists/users.py b/src/onlyfansapi/resources/user_lists/users.py index 19dbe816..7422373d 100644 --- a/src/onlyfansapi/resources/user_lists/users.py +++ b/src/onlyfansapi/resources/user_lists/users.py @@ -2,6 +2,8 @@ from __future__ import annotations +from typing import Any, cast + import httpx from ..._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given @@ -104,6 +106,7 @@ def add( *, account: str, ids: SequenceNotStr[str], + skip_invalid: bool | 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, @@ -117,6 +120,14 @@ def add( Args: ids: Array of OnlyFans User IDs to be added into the list + skip_invalid: Set to `true` to skip the User IDs OnlyFans refuses instead of failing the whole + batch. We drop the rejected IDs and retry the remainder for you (up to 5 + OnlyFans attempts, each costing 1 credit), then respond `200` with `data.added` + (the IDs that made it in) and `data.failed` (an object mapping each rejected + User ID to the reason OnlyFans gave). Note this changes the shape of `data` — + see the example responses. Failures that are not about individual users (e.g. an + invalid or inaccessible list ID) still return the regular `400`. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -129,13 +140,24 @@ def add( raise ValueError(f"Expected a non-empty value for `account` but received {account!r}") if not user_list_id: raise ValueError(f"Expected a non-empty value for `user_list_id` but received {user_list_id!r}") - return self._post( - path_template("/api/{account}/user-lists/{user_list_id}/users", account=account, user_list_id=user_list_id), - body=maybe_transform({"ids": ids}, user_add_params.UserAddParams), - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + return cast( + UserAddResponse, + self._post( + path_template( + "/api/{account}/user-lists/{user_list_id}/users", account=account, user_list_id=user_list_id + ), + body=maybe_transform( + { + "ids": ids, + "skip_invalid": skip_invalid, + }, + user_add_params.UserAddParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=cast(Any, UserAddResponse), # Union types cannot be passed in as arguments in the type system ), - cast_to=UserAddResponse, ) def clear( @@ -391,6 +413,7 @@ async def add( *, account: str, ids: SequenceNotStr[str], + skip_invalid: bool | 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, @@ -404,6 +427,14 @@ async def add( Args: ids: Array of OnlyFans User IDs to be added into the list + skip_invalid: Set to `true` to skip the User IDs OnlyFans refuses instead of failing the whole + batch. We drop the rejected IDs and retry the remainder for you (up to 5 + OnlyFans attempts, each costing 1 credit), then respond `200` with `data.added` + (the IDs that made it in) and `data.failed` (an object mapping each rejected + User ID to the reason OnlyFans gave). Note this changes the shape of `data` — + see the example responses. Failures that are not about individual users (e.g. an + invalid or inaccessible list ID) still return the regular `400`. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -416,13 +447,24 @@ async def add( raise ValueError(f"Expected a non-empty value for `account` but received {account!r}") if not user_list_id: raise ValueError(f"Expected a non-empty value for `user_list_id` but received {user_list_id!r}") - return await self._post( - path_template("/api/{account}/user-lists/{user_list_id}/users", account=account, user_list_id=user_list_id), - body=await async_maybe_transform({"ids": ids}, user_add_params.UserAddParams), - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + return cast( + UserAddResponse, + await self._post( + path_template( + "/api/{account}/user-lists/{user_list_id}/users", account=account, user_list_id=user_list_id + ), + body=await async_maybe_transform( + { + "ids": ids, + "skip_invalid": skip_invalid, + }, + user_add_params.UserAddParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=cast(Any, UserAddResponse), # Union types cannot be passed in as arguments in the type system ), - cast_to=UserAddResponse, ) async def clear( diff --git a/src/onlyfansapi/types/chats/message_send_params.py b/src/onlyfansapi/types/chats/message_send_params.py index c2e93616..16cc13aa 100644 --- a/src/onlyfansapi/types/chats/message_send_params.py +++ b/src/onlyfansapi/types/chats/message_send_params.py @@ -68,3 +68,5 @@ class MessageSendParams(TypedDict, total=False): text: str """The message text content. Required unless a media file is present.""" + + idempotency_key: Annotated[str, PropertyInfo(alias="Idempotency-Key")] diff --git a/src/onlyfansapi/types/fan_list_active_params.py b/src/onlyfansapi/types/fan_list_active_params.py index 7ab2017e..d85309cd 100644 --- a/src/onlyfansapi/types/fan_list_active_params.py +++ b/src/onlyfansapi/types/fan_list_active_params.py @@ -33,27 +33,54 @@ class Filter(TypedDict, total=False): """Filter by minimum subscription duration in months. Must use bracket syntax: filter[duration]=1 — the dot form (filter.duration=1) - is NOT supported and will be ignored. Must be at least 0. + is rejected with a 422, because PHP rewrites it to `filter_duration` and the + filter could not be applied. Must be at least 0. + """ + + max_total_spent: float + """ + Filter by **maximum** amount total spent by a fan — use + `filter[max_total_spent]=0` to isolate fans who have never spent. Combine with + `filter[total_spent]` for a range. Must use bracket syntax: + filter[max_total_spent]=0 — the dot form is rejected with a 422, because PHP + rewrites it to `filter_max_total_spent` and the filter could not be applied. + + OnlyFans itself has no maximum-spend filter, so this one is resolved against + OnlyFansAPI's own fan index instead of being proxied. The fan objects in + `data.list` are still fetched live from OnlyFans and are re-checked against your + filters before being returned, but only fans we have already indexed for this + account can appear. Each response reports its own coverage under `data._source`; + when `data._source.is_complete` is `false` a full-base backfill is queued + automatically, so retry later for a complete answer. + + `data._source.omitted_from_page` counts fans that matched your filters but which + OnlyFans returned no usable data for on that page (a deleted account, or a + partial response). They are left out of `data.list` and not revisited later in + the same walk, so a non-zero value means that page was short — start a fresh + walk to retry them. Cannot be combined with `filter[online]`. Must be at + least 0. """ online: Optional[Literal[1, 0]] """Filter by online status (`1` for online fans). Must use bracket syntax: filter[online]=1 — the dot form (filter.online=1) is - NOT supported and will be ignored. + rejected with a 422, because PHP rewrites it to `filter_online` and the filter + could not be applied. """ tips: int """Filter by minimum tips. Must use bracket syntax: filter[tips]=100 — the dot form (filter.tips=100) is - NOT supported and will be ignored. Must be at least 0. + rejected with a 422, because PHP rewrites it to `filter_tips` and the filter + could not be applied. Must be at least 0. """ total_spent: int """Filter by minimum amount total spent by a fan. Must use bracket syntax: filter[total_spent]=100 — the dot form - (filter.total_spent=100) is NOT supported and will be ignored. Must be at - least 0. + (filter.total_spent=100) is rejected with a 422, because PHP rewrites it to + `filter_total_spent` and the filter could not be applied. Must be at least 0. """ diff --git a/src/onlyfansapi/types/fan_list_all_params.py b/src/onlyfansapi/types/fan_list_all_params.py index 93864589..fd24932a 100644 --- a/src/onlyfansapi/types/fan_list_all_params.py +++ b/src/onlyfansapi/types/fan_list_all_params.py @@ -33,27 +33,54 @@ class Filter(TypedDict, total=False): """Filter by minimum subscription duration in months. Must use bracket syntax: filter[duration]=1 — the dot form (filter.duration=1) - is NOT supported and will be ignored. Must be at least 0. + is rejected with a 422, because PHP rewrites it to `filter_duration` and the + filter could not be applied. Must be at least 0. + """ + + max_total_spent: float + """ + Filter by **maximum** amount total spent by a fan — use + `filter[max_total_spent]=0` to isolate fans who have never spent. Combine with + `filter[total_spent]` for a range. Must use bracket syntax: + filter[max_total_spent]=0 — the dot form is rejected with a 422, because PHP + rewrites it to `filter_max_total_spent` and the filter could not be applied. + + OnlyFans itself has no maximum-spend filter, so this one is resolved against + OnlyFansAPI's own fan index instead of being proxied. The fan objects in + `data.list` are still fetched live from OnlyFans and are re-checked against your + filters before being returned, but only fans we have already indexed for this + account can appear. Each response reports its own coverage under `data._source`; + when `data._source.is_complete` is `false` a full-base backfill is queued + automatically, so retry later for a complete answer. + + `data._source.omitted_from_page` counts fans that matched your filters but which + OnlyFans returned no usable data for on that page (a deleted account, or a + partial response). They are left out of `data.list` and not revisited later in + the same walk, so a non-zero value means that page was short — start a fresh + walk to retry them. Cannot be combined with `filter[online]`. Must be at + least 0. """ online: Optional[Literal[1, 0]] """Filter by online status (`1` for online fans). Must use bracket syntax: filter[online]=1 — the dot form (filter.online=1) is - NOT supported and will be ignored. + rejected with a 422, because PHP rewrites it to `filter_online` and the filter + could not be applied. """ tips: int """Filter by minimum tips. Must use bracket syntax: filter[tips]=100 — the dot form (filter.tips=100) is - NOT supported and will be ignored. Must be at least 0. + rejected with a 422, because PHP rewrites it to `filter_tips` and the filter + could not be applied. Must be at least 0. """ total_spent: int """Filter by minimum amount total spent by a fan. Must use bracket syntax: filter[total_spent]=100 — the dot form - (filter.total_spent=100) is NOT supported and will be ignored. Must be at - least 0. + (filter.total_spent=100) is rejected with a 422, because PHP rewrites it to + `filter_total_spent` and the filter could not be applied. Must be at least 0. """ diff --git a/src/onlyfansapi/types/fan_list_expired_params.py b/src/onlyfansapi/types/fan_list_expired_params.py index e91eed41..5f07a378 100644 --- a/src/onlyfansapi/types/fan_list_expired_params.py +++ b/src/onlyfansapi/types/fan_list_expired_params.py @@ -33,27 +33,54 @@ class Filter(TypedDict, total=False): """Filter by minimum subscription duration in months. Must use bracket syntax: filter[duration]=1 — the dot form (filter.duration=1) - is NOT supported and will be ignored. Must be at least 0. + is rejected with a 422, because PHP rewrites it to `filter_duration` and the + filter could not be applied. Must be at least 0. + """ + + max_total_spent: float + """ + Filter by **maximum** amount total spent by a fan — use + `filter[max_total_spent]=0` to isolate fans who have never spent. Combine with + `filter[total_spent]` for a range. Must use bracket syntax: + filter[max_total_spent]=0 — the dot form is rejected with a 422, because PHP + rewrites it to `filter_max_total_spent` and the filter could not be applied. + + OnlyFans itself has no maximum-spend filter, so this one is resolved against + OnlyFansAPI's own fan index instead of being proxied. The fan objects in + `data.list` are still fetched live from OnlyFans and are re-checked against your + filters before being returned, but only fans we have already indexed for this + account can appear. Each response reports its own coverage under `data._source`; + when `data._source.is_complete` is `false` a full-base backfill is queued + automatically, so retry later for a complete answer. + + `data._source.omitted_from_page` counts fans that matched your filters but which + OnlyFans returned no usable data for on that page (a deleted account, or a + partial response). They are left out of `data.list` and not revisited later in + the same walk, so a non-zero value means that page was short — start a fresh + walk to retry them. Cannot be combined with `filter[online]`. Must be at + least 0. """ online: Optional[Literal[1, 0]] """Filter by online status (`1` for online fans). Must use bracket syntax: filter[online]=1 — the dot form (filter.online=1) is - NOT supported and will be ignored. + rejected with a 422, because PHP rewrites it to `filter_online` and the filter + could not be applied. """ tips: int """Filter by minimum tips. Must use bracket syntax: filter[tips]=100 — the dot form (filter.tips=100) is - NOT supported and will be ignored. Must be at least 0. + rejected with a 422, because PHP rewrites it to `filter_tips` and the filter + could not be applied. Must be at least 0. """ total_spent: int """Filter by minimum amount total spent by a fan. Must use bracket syntax: filter[total_spent]=100 — the dot form - (filter.total_spent=100) is NOT supported and will be ignored. Must be at - least 0. + (filter.total_spent=100) is rejected with a 422, because PHP rewrites it to + `filter_total_spent` and the filter could not be applied. Must be at least 0. """ diff --git a/src/onlyfansapi/types/media/vault_upload_params.py b/src/onlyfansapi/types/media/vault_upload_params.py index d4510143..b69893db 100644 --- a/src/onlyfansapi/types/media/vault_upload_params.py +++ b/src/onlyfansapi/types/media/vault_upload_params.py @@ -14,7 +14,9 @@ class VaultUploadParams(TypedDict, total=False): async_: Annotated[bool, PropertyInfo(alias="async")] """Set to `true` to process uploads in the background. - Returns a `polling_url` to check status. Recommended for large files. + Returns a `polling_url` to check status. Recommended for large files. Instead of + polling, you can subscribe to the `media_uploads.completed` and + `media_uploads.failed` webhook events — they only fire for async uploads. """ file: FileTypes diff --git a/src/onlyfansapi/types/media_upload_params.py b/src/onlyfansapi/types/media_upload_params.py index f663c72e..b32b35c5 100644 --- a/src/onlyfansapi/types/media_upload_params.py +++ b/src/onlyfansapi/types/media_upload_params.py @@ -14,7 +14,9 @@ class MediaUploadParams(TypedDict, total=False): async_: Annotated[bool, PropertyInfo(alias="async")] """Set to `true` to process uploads in the background. - Returns a `polling_url` to check status. Recommended for large files. + Returns a `polling_url` to check status. Recommended for large files. Instead of + polling, you can subscribe to the `media_uploads.completed` and + `media_uploads.failed` webhook events — they only fire for async uploads. """ file: FileTypes diff --git a/src/onlyfansapi/types/user_lists/user_add_params.py b/src/onlyfansapi/types/user_lists/user_add_params.py index c9076b97..b1c49e64 100644 --- a/src/onlyfansapi/types/user_lists/user_add_params.py +++ b/src/onlyfansapi/types/user_lists/user_add_params.py @@ -14,3 +14,14 @@ class UserAddParams(TypedDict, total=False): ids: Required[SequenceNotStr[str]] """Array of OnlyFans User IDs to be added into the list""" + + skip_invalid: bool + """ + Set to `true` to skip the User IDs OnlyFans refuses instead of failing the whole + batch. We drop the rejected IDs and retry the remainder for you (up to 5 + OnlyFans attempts, each costing 1 credit), then respond `200` with `data.added` + (the IDs that made it in) and `data.failed` (an object mapping each rejected + User ID to the reason OnlyFans gave). Note this changes the shape of `data` — + see the example responses. Failures that are not about individual users (e.g. an + invalid or inaccessible list ID) still return the regular `400`. + """ diff --git a/src/onlyfansapi/types/user_lists/user_add_response.py b/src/onlyfansapi/types/user_lists/user_add_response.py index ce1322a1..eec84d34 100644 --- a/src/onlyfansapi/types/user_lists/user_add_response.py +++ b/src/onlyfansapi/types/user_lists/user_add_response.py @@ -1,21 +1,81 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import List, Union, Optional +from typing_extensions import TypeAlias from pydantic import Field as FieldInfo from ..._models import BaseModel -__all__ = ["UserAddResponse", "_Meta", "_Meta_Cache", "_Meta_Credits", "_Meta_RateLimits", "Data"] +__all__ = [ + "UserAddResponse", + "UnionMember0", + "UnionMember0_Meta", + "UnionMember0_Meta_Cache", + "UnionMember0_Meta_Credits", + "UnionMember0_Meta_RateLimits", + "UnionMember0Data", + "UnionMember1", + "UnionMember1_Meta", + "UnionMember1_Meta_Cache", + "UnionMember1_Meta_Credits", + "UnionMember1_Meta_RateLimits", + "UnionMember1Data", + "UnionMember1DataFailed", +] + + +class UnionMember0_Meta_Cache(BaseModel): + is_cached: Optional[bool] = None + + note: Optional[str] = None + + +class UnionMember0_Meta_Credits(BaseModel): + balance: Optional[int] = None + + note: Optional[str] = None + + used: Optional[int] = None + + +class UnionMember0_Meta_RateLimits(BaseModel): + limit_day: Optional[int] = None + + limit_minute: Optional[int] = None + + remaining_day: Optional[int] = None + + remaining_minute: Optional[int] = None -class _Meta_Cache(BaseModel): +class UnionMember0_Meta(BaseModel): + api_cache: Optional[UnionMember0_Meta_Cache] = FieldInfo(alias="_cache", default=None) + + api_credits: Optional[UnionMember0_Meta_Credits] = FieldInfo(alias="_credits", default=None) + + api_rate_limits: Optional[UnionMember0_Meta_RateLimits] = FieldInfo(alias="_rate_limits", default=None) + + +class UnionMember0Data(BaseModel): + api_1224114714: Optional[List[int]] = FieldInfo(alias="1224114714", default=None) + + +class UnionMember0(BaseModel): + """Default: OnlyFans accepted every User ID""" + + api_meta: Optional[UnionMember0_Meta] = FieldInfo(alias="_meta", default=None) + + data: Optional[UnionMember0Data] = None + + +class UnionMember1_Meta_Cache(BaseModel): is_cached: Optional[bool] = None note: Optional[str] = None -class _Meta_Credits(BaseModel): +class UnionMember1_Meta_Credits(BaseModel): balance: Optional[int] = None note: Optional[str] = None @@ -23,7 +83,7 @@ class _Meta_Credits(BaseModel): used: Optional[int] = None -class _Meta_RateLimits(BaseModel): +class UnionMember1_Meta_RateLimits(BaseModel): limit_day: Optional[int] = None limit_minute: Optional[int] = None @@ -33,19 +93,32 @@ class _Meta_RateLimits(BaseModel): remaining_minute: Optional[int] = None -class _Meta(BaseModel): - api_cache: Optional[_Meta_Cache] = FieldInfo(alias="_cache", default=None) +class UnionMember1_Meta(BaseModel): + api_cache: Optional[UnionMember1_Meta_Cache] = FieldInfo(alias="_cache", default=None) - api_credits: Optional[_Meta_Credits] = FieldInfo(alias="_credits", default=None) + api_credits: Optional[UnionMember1_Meta_Credits] = FieldInfo(alias="_credits", default=None) - api_rate_limits: Optional[_Meta_RateLimits] = FieldInfo(alias="_rate_limits", default=None) + api_rate_limits: Optional[UnionMember1_Meta_RateLimits] = FieldInfo(alias="_rate_limits", default=None) -class Data(BaseModel): - api_1224114714: Optional[List[int]] = FieldInfo(alias="1224114714", default=None) +class UnionMember1DataFailed(BaseModel): + api_123456: Optional[str] = FieldInfo(alias="123456", default=None) + + +class UnionMember1Data(BaseModel): + added: Optional[List[int]] = None + + failed: Optional[UnionMember1DataFailed] = None + + +class UnionMember1(BaseModel): + """ + With `skip_invalid=true`: the rejected User IDs are reported instead of failing the batch + """ + + api_meta: Optional[UnionMember1_Meta] = FieldInfo(alias="_meta", default=None) + data: Optional[UnionMember1Data] = None -class UserAddResponse(BaseModel): - api_meta: Optional[_Meta] = FieldInfo(alias="_meta", default=None) - data: Optional[Data] = None +UserAddResponse: TypeAlias = Union[UnionMember0, UnionMember1] diff --git a/tests/api_resources/chats/test_messages.py b/tests/api_resources/chats/test_messages.py index 33f58913..053affc7 100644 --- a/tests/api_resources/chats/test_messages.py +++ b/tests/api_resources/chats/test_messages.py @@ -433,6 +433,7 @@ def test_method_send_with_all_params(self, client: OnlyFansAPI) -> None: rf_partner="rfPartner", rf_tag="rfTag", text="Hello!", + idempotency_key="a1b2c3d4-5e6f-4789-a0b1-c2d3e4f5a6b7", ) assert_matches_type(MessageSendResponse, message, path=["response"]) @@ -1019,6 +1020,7 @@ async def test_method_send_with_all_params(self, async_client: AsyncOnlyFansAPI) rf_partner="rfPartner", rf_tag="rfTag", text="Hello!", + idempotency_key="a1b2c3d4-5e6f-4789-a0b1-c2d3e4f5a6b7", ) assert_matches_type(MessageSendResponse, message, path=["response"]) diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index a4e86aa2..aef15709 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", 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="veniam", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index fc0fe65e..6ff0e4c1 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="cumque", 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="cumque", 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="cumque", 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="cumque", 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="cumque", 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="cumque", 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="cumque", 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="cumque", 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="cumque", 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="cumque", 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="cumque", 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="cumque", 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="cumque", 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="cumque", 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="cumque", 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="cumque", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index beb3d11b..fe76e723 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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="enim", 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 2ced6cb5..b5f3d61a 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 506c2ed9..dc9a9f13 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="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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + 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="et", + story_id="occaecati", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index f9765ad6..8ec6b903 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( - "eligendi", + "velit", ) 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( - "eligendi", + "velit", ) 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( - "eligendi", + "velit", ) 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( - "eligendi", + "velit", ) 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( - "eligendi", + "velit", ) 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( - "eligendi", + "velit", ) 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 36948189..93e56f5d 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="temporibus", + auth_id="ducimus", auth_type="email_password", - cookies="magnam", + cookies="provident", custom_proxy={ "host": "proxy.example.com", - "password": "R)4wm6N", + "password": "XClg,kE`N{WMv", "port": 8080, - "username": "et", + "username": "repudiandae", }, - email="aleen.bogan@example.org", - force_connect=False, - name="veritatis", - password="d~NiPl|eM[tQ8k6Hm", - proxy_country="us", - user_agent="sunt", - xbc="aut", + email="jesse35@example.org", + force_connect=True, + name="doloremque", + password="B~Y[)bkr-ZvP?,FG", + proxy_country="gb", + user_agent="ut", + xbc="ratione", ) 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="temporibus", + auth_id="ducimus", auth_type="email_password", - cookies="magnam", + cookies="provident", custom_proxy={ "host": "proxy.example.com", - "password": "R)4wm6N", + "password": "XClg,kE`N{WMv", "port": 8080, - "username": "et", + "username": "repudiandae", }, - email="aleen.bogan@example.org", - force_connect=False, - name="veritatis", - password="d~NiPl|eM[tQ8k6Hm", - proxy_country="us", - user_agent="sunt", - xbc="aut", + email="jesse35@example.org", + force_connect=True, + name="doloremque", + password="B~Y[)bkr-ZvP?,FG", + proxy_country="gb", + user_agent="ut", + xbc="ratione", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_fans.py b/tests/api_resources/test_fans.py index 25c2c699..a53e1c71 100644 --- a/tests/api_resources/test_fans.py +++ b/tests/api_resources/test_fans.py @@ -92,6 +92,7 @@ def test_method_list_active_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", filter={ "duration": 0, + "max_total_spent": 0, "online": None, "tips": 0, "total_spent": 0, @@ -152,6 +153,7 @@ def test_method_list_all_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", filter={ "duration": 0, + "max_total_spent": 0, "online": None, "tips": 0, "total_spent": 0, @@ -212,6 +214,7 @@ def test_method_list_expired_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", filter={ "duration": 0, + "max_total_spent": 0, "online": None, "tips": 0, "total_spent": 0, @@ -495,6 +498,7 @@ async def test_method_list_active_with_all_params(self, async_client: AsyncOnlyF account="acct_XXXXXXXXXXXXXXX", filter={ "duration": 0, + "max_total_spent": 0, "online": None, "tips": 0, "total_spent": 0, @@ -555,6 +559,7 @@ async def test_method_list_all_with_all_params(self, async_client: AsyncOnlyFans account="acct_XXXXXXXXXXXXXXX", filter={ "duration": 0, + "max_total_spent": 0, "online": None, "tips": 0, "total_spent": 0, @@ -615,6 +620,7 @@ async def test_method_list_expired_with_all_params(self, async_client: AsyncOnly account="acct_XXXXXXXXXXXXXXX", filter={ "duration": 0, + "max_total_spent": 0, "online": None, "tips": 0, "total_spent": 0, diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 280e3de9..1a80b275 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="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="comments", + type="onlyfans", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 9924cbea..66e705b8 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": ["qygeheyalwfygycqjpjmkuclq"]}, + filter={"tags": ["nkvyyklnijhilxxzddmvbi"]}, limit=50, name="Instagram", offset=0, @@ -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="quasi", ) 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="quasi", 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="quasi", ) 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="quasi", ) 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="a", + smart_link_id="et", ) 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="a", + smart_link_id="et", 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="a", + smart_link_id="et", ) 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="a", + smart_link_id="et", ) 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="dolor", + smart_link_id="animi", ) 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="dolor", + smart_link_id="animi", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="dolor", + smart_link_id="animi", ) assert response.is_closed is True @@ -358,7 +358,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="dolor", + smart_link_id="animi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="autem", + smart_link_id="ea", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="autem", + smart_link_id="ea", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="autem", + smart_link_id="ea", ) assert response.is_closed is True @@ -411,7 +411,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="autem", + smart_link_id="ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="ad", ) assert smart_link is None @@ -441,7 +441,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="ad", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="ad", ) assert response.is_closed is True @@ -464,7 +464,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="ad", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="eius", + smart_link_id="fuga", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="eius", + smart_link_id="fuga", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="eius", + smart_link_id="fuga", ) assert response.is_closed is True @@ -516,7 +516,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="eius", + smart_link_id="fuga", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["qygeheyalwfygycqjpjmkuclq"]}, + filter={"tags": ["nkvyyklnijhilxxzddmvbi"]}, limit=50, name="Instagram", offset=0, @@ -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="aut", + smart_link_id="quasi", ) 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="aut", + smart_link_id="quasi", 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="aut", + smart_link_id="quasi", ) 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="aut", + smart_link_id="quasi", ) 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="a", + smart_link_id="et", ) 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="a", + smart_link_id="et", 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="a", + smart_link_id="et", ) 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="a", + smart_link_id="et", ) 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="dolor", + smart_link_id="animi", ) 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="dolor", + smart_link_id="animi", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="dolor", + smart_link_id="animi", ) assert response.is_closed is True @@ -871,7 +871,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="dolor", + smart_link_id="animi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="autem", + smart_link_id="ea", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="autem", + smart_link_id="ea", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="autem", + smart_link_id="ea", ) assert response.is_closed is True @@ -924,7 +924,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="autem", + smart_link_id="ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="ad", ) assert smart_link is None @@ -954,7 +954,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="ad", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="ad", ) assert response.is_closed is True @@ -977,7 +977,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="ad", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="eius", + smart_link_id="fuga", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="eius", + smart_link_id="fuga", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="eius", + smart_link_id="fuga", ) assert response.is_closed is True @@ -1029,7 +1029,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="eius", + smart_link_id="fuga", ) 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 6eb795d2..ceb405f2 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": "b", - "tags": ["onpwuxzmrulamrmuyymhlkzp"], + "search": "bgzrgocotromkkjvh", + "tags": ["xbjs"], }, 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": "aevvmjdrljdlwjujqwangvkzr", - "tags": ["esjkltwnvlxqmq"], + "search": "q", + "tags": ["hppkr"], }, 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": "ekxzdcqnksgvzsou", - "tags": ["v"], + "include_smart_links": True, + "search": "hwxqske", + "tags": ["wactoeaxzoiq"], }, 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": "qlojbg", - "tags": ["hgimfghcleawlqqxjq"], + "include_smart_links": False, + "search": "wenifjifbc", + "tags": ["jleapsrx"], }, 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": "b", - "tags": ["onpwuxzmrulamrmuyymhlkzp"], + "search": "bgzrgocotromkkjvh", + "tags": ["xbjs"], }, 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": "aevvmjdrljdlwjujqwangvkzr", - "tags": ["esjkltwnvlxqmq"], + "search": "q", + "tags": ["hppkr"], }, 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": "ekxzdcqnksgvzsou", - "tags": ["v"], + "include_smart_links": True, + "search": "hwxqske", + "tags": ["wactoeaxzoiq"], }, 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": "qlojbg", - "tags": ["hgimfghcleawlqqxjq"], + "include_smart_links": False, + "search": "wenifjifbc", + "tags": ["jleapsrx"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index e9d67b06..e7d8cff1 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="sint", + tracking_link_id="beatae", 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="sint", + tracking_link_id="beatae", 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="sint", + tracking_link_id="beatae", 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="sint", + tracking_link_id="beatae", account="", ) @@ -196,7 +196,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="sint", + tracking_link_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="sint", + tracking_link_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="sint", + tracking_link_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="sint", + tracking_link_id="beatae", account="", ) @@ -248,7 +248,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="dolores", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="dolores", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="dolores", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="dolores", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="dolores", + tracking_link_id="voluptates", account="", ) @@ -312,7 +312,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="nihil", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="nihil", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="nihil", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="nihil", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="nihil", account="", ) @@ -563,7 +563,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="sint", + tracking_link_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="sint", + tracking_link_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="sint", + tracking_link_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="sint", + tracking_link_id="beatae", account="", ) @@ -674,7 +674,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="sint", + tracking_link_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="sint", + tracking_link_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="sint", + tracking_link_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="sint", + tracking_link_id="beatae", account="", ) @@ -726,7 +726,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="dolores", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="dolores", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="dolores", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="dolores", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="dolores", + tracking_link_id="voluptates", account="", ) @@ -790,7 +790,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="nihil", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="nihil", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="nihil", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="nihil", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="nihil", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index c1eb7ff6..83fa1b40 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="saepe", 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="saepe", 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="saepe", 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="saepe", account="", ) @@ -205,7 +205,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="saepe", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="saepe", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="saepe", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="saepe", account="", ) @@ -321,7 +321,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="quasi", + trial_link_id="provident", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="quasi", + trial_link_id="provident", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="quasi", + trial_link_id="provident", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="quasi", + trial_link_id="provident", account="", limit=10, offset=0, @@ -383,7 +383,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="eos", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="eos", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="eos", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="eos", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="eos", + trial_link_id="voluptatem", account="", ) @@ -447,7 +447,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="ea", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="ea", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="ea", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="ea", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="ea", account="", ) @@ -583,7 +583,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="saepe", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="saepe", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="saepe", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="saepe", account="", ) @@ -692,7 +692,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="saepe", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="saepe", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="saepe", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="saepe", account="", ) @@ -808,7 +808,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="quasi", + trial_link_id="provident", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="quasi", + trial_link_id="provident", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="quasi", + trial_link_id="provident", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="quasi", + trial_link_id="provident", account="", limit=10, offset=0, @@ -870,7 +870,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="eos", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="eos", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="eos", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="eos", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="eos", + trial_link_id="voluptatem", account="", ) @@ -934,7 +934,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="ea", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="ea", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="ea", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="ea", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="ea", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 6eaa5b16..de8250d4 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="dybjkxucmthbcfwdltsetdrmk", + name="ctxewseyhvrgitxpb", ) 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="dybjkxucmthbcfwdltsetdrmk", + name="ctxewseyhvrgitxpb", ) 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="dybjkxucmthbcfwdltsetdrmk", + name="ctxewseyhvrgitxpb", ) 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="dybjkxucmthbcfwdltsetdrmk", + name="ctxewseyhvrgitxpb", ) @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="dybjkxucmthbcfwdltsetdrmk", + name="ctxewseyhvrgitxpb", ) 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="dybjkxucmthbcfwdltsetdrmk", + name="ctxewseyhvrgitxpb", ) 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="dybjkxucmthbcfwdltsetdrmk", + name="ctxewseyhvrgitxpb", ) 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="dybjkxucmthbcfwdltsetdrmk", + name="ctxewseyhvrgitxpb", ) @pytest.mark.skip(reason="Mock server tests are disabled") diff --git a/tests/api_resources/user_lists/test_users.py b/tests/api_resources/user_lists/test_users.py index 6bb424fc..b63fd2ef 100644 --- a/tests/api_resources/user_lists/test_users.py +++ b/tests/api_resources/user_lists/test_users.py @@ -97,6 +97,17 @@ def test_method_add(self, client: OnlyFansAPI) -> None: ) assert_matches_type(UserAddResponse, user, path=["response"]) + @pytest.mark.skip(reason="Mock server tests are disabled") + @parametrize + def test_method_add_with_all_params(self, client: OnlyFansAPI) -> None: + user = client.user_lists.users.add( + user_list_id="userListId", + account="acct_XXXXXXXXXXXXXXX", + ids=["string", "string", "string"], + skip_invalid=True, + ) + assert_matches_type(UserAddResponse, user, path=["response"]) + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: @@ -452,6 +463,17 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: ) assert_matches_type(UserAddResponse, user, path=["response"]) + @pytest.mark.skip(reason="Mock server tests are disabled") + @parametrize + async def test_method_add_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: + user = await async_client.user_lists.users.add( + user_list_id="userListId", + account="acct_XXXXXXXXXXXXXXX", + ids=["string", "string", "string"], + skip_invalid=True, + ) + assert_matches_type(UserAddResponse, user, path=["response"]) + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: From a0e30d74e9c7245d836c3cdb9d53c7e666ec5442 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 11 Aug 2026 23:12:35 +0000 Subject: [PATCH 223/249] 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_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 | 84 +++++++++--------- tests/api_resources/test_stored.py | 32 +++---- tests/api_resources/test_tracking_links.py | 76 ++++++++-------- tests/api_resources/test_trial_links.py | 88 +++++++++---------- tests/api_resources/test_user_lists.py | 16 ++-- 17 files changed, 252 insertions(+), 252 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4648608c..590627fd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-34e6f479a1872e539a6ba6bbd44e66e1a10d978ae34a53a7f7499c4e93bafd2e.yml -openapi_spec_hash: 17e3d768656db29acf3d2068449bfa52 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2ce7e4faeac778d9c957f8bde601d21cd3430eac45582b017e5f9ae1c240426b.yml +openapi_spec_hash: 299b94ff934b6b607f0c539e453a4b41 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index aef15709..6cbddc1f 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="veniam", + message_id="aliquam", 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="veniam", + message_id="aliquam", 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="veniam", + message_id="aliquam", 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="veniam", + message_id="aliquam", 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="veniam", + message_id="aliquam", 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="veniam", + message_id="aliquam", 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="veniam", + message_id="aliquam", 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="veniam", + message_id="aliquam", 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="veniam", + message_id="aliquam", 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="veniam", + message_id="aliquam", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 6ff0e4c1..4c33956b 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="cumque", + list_id="vitae", 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="cumque", + list_id="vitae", 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="cumque", + list_id="vitae", 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="cumque", + list_id="vitae", 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="cumque", + list_id="vitae", 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="cumque", + list_id="vitae", 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="cumque", + list_id="vitae", 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="cumque", + list_id="vitae", 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="cumque", + list_id="vitae", 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="cumque", + list_id="vitae", 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="cumque", + list_id="vitae", 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="cumque", + list_id="vitae", 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="cumque", + list_id="vitae", 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="cumque", + list_id="vitae", 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="cumque", + list_id="vitae", 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="cumque", + list_id="vitae", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index fe76e723..ed69117e 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="enim", + post_id="doloribus", 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="enim", + post_id="doloribus", 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="enim", + post_id="doloribus", 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="enim", + post_id="doloribus", 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="enim", + post_id="doloribus", 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="enim", + post_id="doloribus", 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="enim", + post_id="doloribus", 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="enim", + post_id="doloribus", 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="enim", + post_id="doloribus", 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="enim", + post_id="doloribus", 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="enim", + post_id="doloribus", 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="enim", + post_id="doloribus", 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="enim", + post_id="doloribus", 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="enim", + post_id="doloribus", 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="enim", + post_id="doloribus", 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="enim", + post_id="doloribus", 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="enim", + post_id="doloribus", 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="enim", + post_id="doloribus", 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="enim", + post_id="doloribus", 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="enim", + post_id="doloribus", 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 444937ba..7549791e 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 dc9a9f13..506c2ed9 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="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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + 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="occaecati", + story_id="et", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 8ec6b903..08d62f82 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( - "velit", + "provident", ) 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( - "velit", + "provident", ) 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( - "velit", + "provident", ) 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( - "velit", + "provident", ) 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( - "velit", + "provident", ) 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( - "velit", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 93e56f5d..289d012c 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="ducimus", + auth_id="tempora", auth_type="email_password", - cookies="provident", + cookies="omnis", custom_proxy={ "host": "proxy.example.com", - "password": "XClg,kE`N{WMv", + "password": "|u)i+AEpV", "port": 8080, - "username": "repudiandae", + "username": "nisi", }, - email="jesse35@example.org", + email="reggie95@example.org", force_connect=True, - name="doloremque", - password="B~Y[)bkr-ZvP?,FG", + name="mollitia", + password="ia4K2HFS-woT9$OgZ}", proxy_country="gb", - user_agent="ut", - xbc="ratione", + user_agent="itaque", + xbc="amet", ) 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="ducimus", + auth_id="tempora", auth_type="email_password", - cookies="provident", + cookies="omnis", custom_proxy={ "host": "proxy.example.com", - "password": "XClg,kE`N{WMv", + "password": "|u)i+AEpV", "port": 8080, - "username": "repudiandae", + "username": "nisi", }, - email="jesse35@example.org", + email="reggie95@example.org", force_connect=True, - name="doloremque", - password="B~Y[)bkr-ZvP?,FG", + name="mollitia", + password="ia4K2HFS-woT9$OgZ}", proxy_country="gb", - user_agent="ut", - xbc="ratione", + user_agent="itaque", + xbc="amet", ) 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 0d035d3b..3597ede6 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="gb", + 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="gb", + 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 1a80b275..280e3de9 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="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="onlyfans", + 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 bd4f6161..65694e23 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 66e705b8..d5c54796 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": ["nkvyyklnijhilxxzddmvbi"]}, + filter={"tags": ["jjwclpzvuragybffkkscp"]}, limit=50, name="Instagram", offset=0, @@ -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="quasi", + smart_link_id="non", ) 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="quasi", + smart_link_id="non", 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="quasi", + smart_link_id="non", ) 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="quasi", + smart_link_id="non", ) 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="animi", + smart_link_id="adipisci", ) 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="animi", + smart_link_id="adipisci", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="animi", + smart_link_id="adipisci", ) assert response.is_closed is True @@ -358,7 +358,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="animi", + smart_link_id="adipisci", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="ea", + smart_link_id="et", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="ea", + smart_link_id="et", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="ea", + smart_link_id="et", ) assert response.is_closed is True @@ -411,7 +411,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="ea", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="ad", + smart_link_id="hic", ) assert smart_link is None @@ -441,7 +441,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="ad", + smart_link_id="hic", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="ad", + smart_link_id="hic", ) assert response.is_closed is True @@ -464,7 +464,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="ad", + smart_link_id="hic", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="fuga", + smart_link_id="et", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="fuga", + smart_link_id="et", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="fuga", + smart_link_id="et", ) assert response.is_closed is True @@ -516,7 +516,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="fuga", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["nkvyyklnijhilxxzddmvbi"]}, + filter={"tags": ["jjwclpzvuragybffkkscp"]}, limit=50, name="Instagram", offset=0, @@ -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="quasi", + smart_link_id="non", ) 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="quasi", + smart_link_id="non", 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="quasi", + smart_link_id="non", ) 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="quasi", + smart_link_id="non", ) 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="animi", + smart_link_id="adipisci", ) 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="animi", + smart_link_id="adipisci", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="animi", + smart_link_id="adipisci", ) assert response.is_closed is True @@ -871,7 +871,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="animi", + smart_link_id="adipisci", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="ea", + smart_link_id="et", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="ea", + smart_link_id="et", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="ea", + smart_link_id="et", ) assert response.is_closed is True @@ -924,7 +924,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="ea", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="ad", + smart_link_id="hic", ) assert smart_link is None @@ -954,7 +954,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="ad", + smart_link_id="hic", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="ad", + smart_link_id="hic", ) assert response.is_closed is True @@ -977,7 +977,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="ad", + smart_link_id="hic", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="fuga", + smart_link_id="et", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="fuga", + smart_link_id="et", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="fuga", + smart_link_id="et", ) assert response.is_closed is True @@ -1029,7 +1029,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="fuga", + 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 ceb405f2..3c9adcb7 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": "bgzrgocotromkkjvh", - "tags": ["xbjs"], + "search": "uqetfktbmhqict", + "tags": ["ihoejyxc"], }, 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": "q", - "tags": ["hppkr"], + "search": "em", + "tags": ["sgiikiqlt"], }, 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": "hwxqske", - "tags": ["wactoeaxzoiq"], + "search": "xpsgxhifjxzqa", + "tags": ["jjejvflpptxxpsu"], }, 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": "wenifjifbc", - "tags": ["jleapsrx"], + "search": "gsqsupqbuam", + "tags": ["fkmxdguitmjzt"], }, 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": "bgzrgocotromkkjvh", - "tags": ["xbjs"], + "search": "uqetfktbmhqict", + "tags": ["ihoejyxc"], }, 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": "q", - "tags": ["hppkr"], + "search": "em", + "tags": ["sgiikiqlt"], }, 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": "hwxqske", - "tags": ["wactoeaxzoiq"], + "search": "xpsgxhifjxzqa", + "tags": ["jjejvflpptxxpsu"], }, 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": "wenifjifbc", - "tags": ["jleapsrx"], + "search": "gsqsupqbuam", + "tags": ["fkmxdguitmjzt"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index e7d8cff1..feeae0af 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="beatae", + tracking_link_id="dicta", 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="beatae", + tracking_link_id="dicta", 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="beatae", + tracking_link_id="dicta", 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="beatae", + tracking_link_id="dicta", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="beatae", + tracking_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="beatae", + tracking_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="beatae", + tracking_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="beatae", + tracking_link_id="dicta", account="", ) @@ -248,7 +248,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="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="rerum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="rerum", account="", ) @@ -312,7 +312,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="nihil", + tracking_link_id="porro", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="nihil", + tracking_link_id="porro", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="nihil", + tracking_link_id="porro", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="nihil", + tracking_link_id="porro", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="nihil", + tracking_link_id="porro", account="", ) @@ -563,7 +563,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="beatae", + tracking_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="beatae", + tracking_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="beatae", + tracking_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="beatae", + tracking_link_id="dicta", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="beatae", + tracking_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="beatae", + tracking_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="beatae", + tracking_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="beatae", + tracking_link_id="dicta", account="", ) @@ -726,7 +726,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="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="rerum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="rerum", account="", ) @@ -790,7 +790,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="nihil", + tracking_link_id="porro", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="nihil", + tracking_link_id="porro", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="nihil", + tracking_link_id="porro", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="nihil", + tracking_link_id="porro", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="nihil", + tracking_link_id="porro", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 83fa1b40..6adc45cf 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="saepe", + trial_link_id="quo", 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="saepe", + trial_link_id="quo", 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="saepe", + trial_link_id="quo", 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="saepe", + trial_link_id="quo", account="", ) @@ -205,7 +205,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="saepe", + trial_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="saepe", + trial_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="saepe", + trial_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="saepe", + trial_link_id="quo", account="", ) @@ -321,7 +321,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="provident", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="provident", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="provident", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="provident", + trial_link_id="quia", account="", limit=10, offset=0, @@ -383,7 +383,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="voluptatem", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="voluptatem", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="voluptatem", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="voluptatem", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="voluptatem", + trial_link_id="rerum", account="", ) @@ -447,7 +447,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="ea", + trial_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="ea", + trial_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="ea", + trial_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="ea", + trial_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="ea", + trial_link_id="nemo", account="", ) @@ -583,7 +583,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="saepe", + trial_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="saepe", + trial_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="saepe", + trial_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="saepe", + trial_link_id="quo", account="", ) @@ -692,7 +692,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="saepe", + trial_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="saepe", + trial_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="saepe", + trial_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="saepe", + trial_link_id="quo", account="", ) @@ -808,7 +808,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="provident", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="provident", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="provident", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="provident", + trial_link_id="quia", account="", limit=10, offset=0, @@ -870,7 +870,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="voluptatem", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="voluptatem", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="voluptatem", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="voluptatem", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="voluptatem", + trial_link_id="rerum", account="", ) @@ -934,7 +934,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="ea", + trial_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="ea", + trial_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="ea", + trial_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="ea", + trial_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="ea", + trial_link_id="nemo", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index de8250d4..598432ef 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="ctxewseyhvrgitxpb", + name="bixpizxpysrbfvo", ) 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="ctxewseyhvrgitxpb", + name="bixpizxpysrbfvo", ) 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="ctxewseyhvrgitxpb", + name="bixpizxpysrbfvo", ) 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="ctxewseyhvrgitxpb", + name="bixpizxpysrbfvo", ) @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="ctxewseyhvrgitxpb", + name="bixpizxpysrbfvo", ) 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="ctxewseyhvrgitxpb", + name="bixpizxpysrbfvo", ) 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="ctxewseyhvrgitxpb", + name="bixpizxpysrbfvo", ) 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="ctxewseyhvrgitxpb", + name="bixpizxpysrbfvo", ) @pytest.mark.skip(reason="Mock server tests are disabled") From db2c99c027f12690ef751eeed5c1b8fe2ae7e23c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 12 Aug 2026 01:12:39 +0000 Subject: [PATCH 224/249] 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_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 76 ++++++------- tests/api_resources/test_trial_links.py | 88 +++++++-------- tests/api_resources/test_user_lists.py | 16 +-- 17 files changed, 274 insertions(+), 274 deletions(-) diff --git a/.stats.yml b/.stats.yml index 590627fd..e930aa70 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2ce7e4faeac778d9c957f8bde601d21cd3430eac45582b017e5f9ae1c240426b.yml -openapi_spec_hash: 299b94ff934b6b607f0c539e453a4b41 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2c5b060da707f4bec752a51c5083de5dc6c62e5bbccb85335295fa6cd4ae565d.yml +openapi_spec_hash: 4bbb78d30cff486200a37644ccc6732c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 6cbddc1f..38e50afe 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="aliquam", + message_id="expedita", 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="aliquam", + message_id="expedita", 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="aliquam", + message_id="expedita", 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="aliquam", + message_id="expedita", 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="aliquam", + message_id="expedita", 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="aliquam", + message_id="expedita", 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="aliquam", + message_id="expedita", 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="aliquam", + message_id="expedita", 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="aliquam", + message_id="expedita", 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="aliquam", + message_id="expedita", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 4c33956b..758e83e5 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="vitae", + list_id="voluptatibus", 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="vitae", + list_id="voluptatibus", 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="vitae", + list_id="voluptatibus", 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="vitae", + list_id="voluptatibus", 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="vitae", + list_id="voluptatibus", 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="vitae", + list_id="voluptatibus", 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="vitae", + list_id="voluptatibus", 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="vitae", + list_id="voluptatibus", 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="vitae", + list_id="voluptatibus", 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="vitae", + list_id="voluptatibus", 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="vitae", + list_id="voluptatibus", 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="vitae", + list_id="voluptatibus", 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="vitae", + list_id="voluptatibus", 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="vitae", + list_id="voluptatibus", 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="vitae", + list_id="voluptatibus", 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="vitae", + list_id="voluptatibus", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index ed69117e..47693a2c 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + post_id="alias", 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 7549791e..444937ba 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 b5f3d61a..2ced6cb5 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 9664075f..544df889 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 506c2ed9..c0d04323 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", 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="aliquid", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 08d62f82..61da8092 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( - "provident", + "vel", ) 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( - "provident", + "vel", ) 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( - "provident", + "vel", ) 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( - "provident", + "vel", ) 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( - "provident", + "vel", ) 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( - "provident", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 289d012c..95e7f4a8 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="omnis", + auth_id="fugit", + auth_type="mobile_app", + cookies="dolore", custom_proxy={ "host": "proxy.example.com", - "password": "|u)i+AEpV", + "password": "l$M`~[AuAfIK", "port": 8080, - "username": "nisi", + "username": "et", }, - email="reggie95@example.org", - force_connect=True, - name="mollitia", - password="ia4K2HFS-woT9$OgZ}", - proxy_country="gb", - user_agent="itaque", - xbc="amet", + email="rachel.cummerata@example.com", + force_connect=False, + name="dolores", + password="O\"6M.1'zk2", + proxy_country="us", + user_agent="exercitationem", + xbc="cupiditate", ) 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="omnis", + auth_id="fugit", + auth_type="mobile_app", + cookies="dolore", custom_proxy={ "host": "proxy.example.com", - "password": "|u)i+AEpV", + "password": "l$M`~[AuAfIK", "port": 8080, - "username": "nisi", + "username": "et", }, - email="reggie95@example.org", - force_connect=True, - name="mollitia", - password="ia4K2HFS-woT9$OgZ}", - proxy_country="gb", - user_agent="itaque", - xbc="amet", + email="rachel.cummerata@example.com", + force_connect=False, + name="dolores", + password="O\"6M.1'zk2", + proxy_country="us", + user_agent="exercitationem", + xbc="cupiditate", ) 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 3597ede6..0d035d3b 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="gb", ) 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="gb", ) 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 280e3de9..1a80b275 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="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="comments", + 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 d5c54796..4af93503 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": ["jjwclpzvuragybffkkscp"]}, + filter={"tags": ["q"]}, limit=50, name="Instagram", offset=0, @@ -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="non", + smart_link_id="nam", ) 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="non", + smart_link_id="nam", 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="non", + smart_link_id="nam", ) 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="non", + smart_link_id="nam", ) 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="et", + smart_link_id="molestiae", ) 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="et", + smart_link_id="molestiae", 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="et", + smart_link_id="molestiae", ) 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="et", + smart_link_id="molestiae", ) 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="adipisci", + smart_link_id="sunt", ) 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="adipisci", + smart_link_id="sunt", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="adipisci", + smart_link_id="sunt", ) assert response.is_closed is True @@ -358,7 +358,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="adipisci", + smart_link_id="sunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="officia", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="officia", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="officia", ) assert response.is_closed is True @@ -411,7 +411,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="officia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="hic", + smart_link_id="est", ) assert smart_link is None @@ -441,7 +441,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="hic", + smart_link_id="est", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="hic", + smart_link_id="est", ) assert response.is_closed is True @@ -464,7 +464,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="hic", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="id", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="id", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="id", ) assert response.is_closed is True @@ -516,7 +516,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="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["jjwclpzvuragybffkkscp"]}, + filter={"tags": ["q"]}, limit=50, name="Instagram", offset=0, @@ -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="non", + smart_link_id="nam", ) 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="non", + smart_link_id="nam", 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="non", + smart_link_id="nam", ) 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="non", + smart_link_id="nam", ) 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="et", + smart_link_id="molestiae", ) 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="et", + smart_link_id="molestiae", 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="et", + smart_link_id="molestiae", ) 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="et", + smart_link_id="molestiae", ) 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="adipisci", + smart_link_id="sunt", ) 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="adipisci", + smart_link_id="sunt", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="adipisci", + smart_link_id="sunt", ) assert response.is_closed is True @@ -871,7 +871,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="adipisci", + smart_link_id="sunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="officia", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="officia", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="officia", ) assert response.is_closed is True @@ -924,7 +924,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="officia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="hic", + smart_link_id="est", ) assert smart_link is None @@ -954,7 +954,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="hic", + smart_link_id="est", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="hic", + smart_link_id="est", ) assert response.is_closed is True @@ -977,7 +977,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="hic", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="id", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="id", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="id", ) assert response.is_closed is True @@ -1029,7 +1029,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="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_stored.py b/tests/api_resources/test_stored.py index 3c9adcb7..5cab5b81 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": "uqetfktbmhqict", - "tags": ["ihoejyxc"], + "search": "kurwuytwmpubwhhallswydwo", + "tags": ["ubaskblgbenbgb"], }, 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": "em", - "tags": ["sgiikiqlt"], + "search": "kkhuyhyhbmpjzwluiy", + "tags": ["pqm"], }, 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": "xpsgxhifjxzqa", - "tags": ["jjejvflpptxxpsu"], + "search": "wwneiprsb", + "tags": ["xoxiukq"], }, 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": "gsqsupqbuam", - "tags": ["fkmxdguitmjzt"], + "include_smart_links": True, + "search": "mbgefwoiwnicnyylcivnxdyy", + "tags": ["vxhthnylpsp"], }, 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": "uqetfktbmhqict", - "tags": ["ihoejyxc"], + "search": "kurwuytwmpubwhhallswydwo", + "tags": ["ubaskblgbenbgb"], }, 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": "em", - "tags": ["sgiikiqlt"], + "search": "kkhuyhyhbmpjzwluiy", + "tags": ["pqm"], }, 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": "xpsgxhifjxzqa", - "tags": ["jjejvflpptxxpsu"], + "search": "wwneiprsb", + "tags": ["xoxiukq"], }, 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": "gsqsupqbuam", - "tags": ["fkmxdguitmjzt"], + "include_smart_links": True, + "search": "mbgefwoiwnicnyylcivnxdyy", + "tags": ["vxhthnylpsp"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index feeae0af..f7eba08d 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="dicta", + tracking_link_id="blanditiis", 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="dicta", + tracking_link_id="blanditiis", 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="dicta", + tracking_link_id="blanditiis", 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="dicta", + tracking_link_id="blanditiis", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="dicta", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="dicta", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="dicta", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="dicta", + tracking_link_id="blanditiis", account="", ) @@ -248,7 +248,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="rerum", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="rerum", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="rerum", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="rerum", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="rerum", + tracking_link_id="excepturi", account="", ) @@ -312,7 +312,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="porro", + tracking_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="porro", + tracking_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="porro", + tracking_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="porro", + tracking_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="porro", + tracking_link_id="nihil", account="", ) @@ -563,7 +563,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="dicta", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="dicta", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="dicta", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="dicta", + tracking_link_id="blanditiis", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="dicta", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="dicta", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="dicta", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="dicta", + tracking_link_id="blanditiis", account="", ) @@ -726,7 +726,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="rerum", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="rerum", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="rerum", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="rerum", + tracking_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="rerum", + tracking_link_id="excepturi", account="", ) @@ -790,7 +790,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="porro", + tracking_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="porro", + tracking_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="porro", + tracking_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="porro", + tracking_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="porro", + tracking_link_id="nihil", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 6adc45cf..1624d164 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="quo", + trial_link_id="doloribus", 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="quo", + trial_link_id="doloribus", 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="quo", + trial_link_id="doloribus", 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="quo", + trial_link_id="doloribus", account="", ) @@ -205,7 +205,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="quo", + trial_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="quo", + trial_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="quo", + trial_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="quo", + trial_link_id="doloribus", account="", ) @@ -321,7 +321,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="quia", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="quia", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="quia", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="quia", + trial_link_id="quidem", account="", limit=10, offset=0, @@ -383,7 +383,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="quasi", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="quasi", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="quasi", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="quasi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="quasi", account="", ) @@ -447,7 +447,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="nemo", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="nemo", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="nemo", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="nemo", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="nemo", + trial_link_id="dolorum", account="", ) @@ -583,7 +583,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="quo", + trial_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="quo", + trial_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="quo", + trial_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="quo", + trial_link_id="doloribus", account="", ) @@ -692,7 +692,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="quo", + trial_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="quo", + trial_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="quo", + trial_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="quo", + trial_link_id="doloribus", account="", ) @@ -808,7 +808,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="quia", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="quia", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="quia", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="quia", + trial_link_id="quidem", account="", limit=10, offset=0, @@ -870,7 +870,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="quasi", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="quasi", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="quasi", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="quasi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="quasi", account="", ) @@ -934,7 +934,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="nemo", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="nemo", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="nemo", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="nemo", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="nemo", + trial_link_id="dolorum", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 598432ef..1c43a376 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="bixpizxpysrbfvo", + name="glhesvw", ) 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="bixpizxpysrbfvo", + name="glhesvw", ) 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="bixpizxpysrbfvo", + name="glhesvw", ) 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="bixpizxpysrbfvo", + name="glhesvw", ) @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="bixpizxpysrbfvo", + name="glhesvw", ) 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="bixpizxpysrbfvo", + name="glhesvw", ) 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="bixpizxpysrbfvo", + name="glhesvw", ) 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="bixpizxpysrbfvo", + name="glhesvw", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 04e862686e19e33646a6e096dea76e21a5cd6f27 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 12 Aug 2026 18:12:39 +0000 Subject: [PATCH 225/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/data_exports.py | 24 ++++- .../types/data_export_create_params.py | 9 +- .../types/data_export_list_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 | 48 +++++----- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_profiles.py | 4 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 68 +++++++------- tests/api_resources/test_stored.py | 32 +++---- tests/api_resources/test_tracking_links.py | 76 ++++++++-------- tests/api_resources/test_trial_links.py | 88 +++++++++---------- tests/api_resources/test_user_lists.py | 16 ++-- 21 files changed, 289 insertions(+), 264 deletions(-) diff --git a/.stats.yml b/.stats.yml index e930aa70..60420b5b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2c5b060da707f4bec752a51c5083de5dc6c62e5bbccb85335295fa6cd4ae565d.yml -openapi_spec_hash: 4bbb78d30cff486200a37644ccc6732c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-15697c64ce0e5f2b490492854e85471ddc66ec9593502b053b6c21fc78baff51.yml +openapi_spec_hash: 09ce808b20cd019e2feddd877f251c82 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/data_exports.py b/src/onlyfansapi/resources/data_exports.py index 05ee9932..40ad8235 100644 --- a/src/onlyfansapi/resources/data_exports.py +++ b/src/onlyfansapi/resources/data_exports.py @@ -69,6 +69,7 @@ def create( "public_profiles", "fans", "followings", + "profile_visitors", ], account_ids: SequenceNotStr[str] | Omit = omit, auto_start: bool | Omit = omit, @@ -91,11 +92,14 @@ def create( file_type: The output file format. Supported formats vary by export type: `csv` or `xlsx` for transactions, chat_messages, trial_links, tracking_links, smart_links, - payouts, chargebacks, public_profiles, fans, followings; `zip` for media_vault. + payouts, chargebacks, public_profiles, fans, followings, profile_visitors; `zip` + for media_vault. start_date: The start date for the export (ISO 8601 format). - type: The type of data to export + type: The type of data to export. `profile_visitors` returns one row per account per + day, scraped one day at a time so the daily numbers are not aggregated away by + OnlyFans. account_ids: Array of account prefixed IDs to export data from. Not required for `public_profiles` type. @@ -219,9 +223,13 @@ def list( "media_vault", "trial_links", "tracking_links", + "smart_links", "payouts", "chargebacks", "public_profiles", + "fans", + "followings", + "profile_visitors", ] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -419,6 +427,7 @@ async def create( "public_profiles", "fans", "followings", + "profile_visitors", ], account_ids: SequenceNotStr[str] | Omit = omit, auto_start: bool | Omit = omit, @@ -441,11 +450,14 @@ async def create( file_type: The output file format. Supported formats vary by export type: `csv` or `xlsx` for transactions, chat_messages, trial_links, tracking_links, smart_links, - payouts, chargebacks, public_profiles, fans, followings; `zip` for media_vault. + payouts, chargebacks, public_profiles, fans, followings, profile_visitors; `zip` + for media_vault. start_date: The start date for the export (ISO 8601 format). - type: The type of data to export + type: The type of data to export. `profile_visitors` returns one row per account per + day, scraped one day at a time so the daily numbers are not aggregated away by + OnlyFans. account_ids: Array of account prefixed IDs to export data from. Not required for `public_profiles` type. @@ -569,9 +581,13 @@ async def list( "media_vault", "trial_links", "tracking_links", + "smart_links", "payouts", "chargebacks", "public_profiles", + "fans", + "followings", + "profile_visitors", ] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. diff --git a/src/onlyfansapi/types/data_export_create_params.py b/src/onlyfansapi/types/data_export_create_params.py index ecc3ccac..b6982bff 100644 --- a/src/onlyfansapi/types/data_export_create_params.py +++ b/src/onlyfansapi/types/data_export_create_params.py @@ -19,7 +19,7 @@ class DataExportCreateParams(TypedDict, total=False): Supported formats vary by export type: `csv` or `xlsx` for transactions, chat_messages, trial_links, tracking_links, smart_links, payouts, chargebacks, - public_profiles, fans, followings; `zip` for media_vault. + public_profiles, fans, followings, profile_visitors; `zip` for media_vault. """ start_date: Required[str] @@ -38,9 +38,14 @@ class DataExportCreateParams(TypedDict, total=False): "public_profiles", "fans", "followings", + "profile_visitors", ] ] - """The type of data to export""" + """The type of data to export. + + `profile_visitors` returns one row per account per day, scraped one day at a + time so the daily numbers are not aggregated away by OnlyFans. + """ account_ids: SequenceNotStr[str] """Array of account prefixed IDs to export data from. diff --git a/src/onlyfansapi/types/data_export_list_params.py b/src/onlyfansapi/types/data_export_list_params.py index 94abb046..ec26ff75 100644 --- a/src/onlyfansapi/types/data_export_list_params.py +++ b/src/onlyfansapi/types/data_export_list_params.py @@ -34,8 +34,12 @@ class DataExportListParams(TypedDict, total=False): "media_vault", "trial_links", "tracking_links", + "smart_links", "payouts", "chargebacks", "public_profiles", + "fans", + "followings", + "profile_visitors", ] """Filter by export type""" diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 38e50afe..6c53319a 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="expedita", + message_id="vero", 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="expedita", + message_id="vero", 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="expedita", + message_id="vero", 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="expedita", + message_id="vero", 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="expedita", + message_id="vero", 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="expedita", + message_id="vero", 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="expedita", + message_id="vero", 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="expedita", + message_id="vero", 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="expedita", + message_id="vero", 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="expedita", + message_id="vero", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 758e83e5..24f1d8f3 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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="voluptatibus", + 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 47693a2c..c9677632 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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 444937ba..a62ccbd3 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 2ced6cb5..b5f3d61a 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 544df889..9664075f 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 c0d04323..d151c235 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="aliquid", + path_story_id="vitae", 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="aliquid", + path_story_id="vitae", 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="aliquid", + path_story_id="vitae", 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="aliquid", + path_story_id="vitae", 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="aliquid", + story_id="vitae", 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="aliquid", + story_id="vitae", 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="aliquid", + story_id="vitae", 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="aliquid", + story_id="vitae", 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="aliquid", + path_story_id="vitae", 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="aliquid", + path_story_id="vitae", 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="aliquid", + path_story_id="vitae", 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="aliquid", + path_story_id="vitae", 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="aliquid", + story_id="vitae", 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="aliquid", + story_id="vitae", 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="aliquid", + story_id="vitae", 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="aliquid", + story_id="vitae", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 61da8092..0f2d134b 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( - "vel", + "exercitationem", ) 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( - "vel", + "exercitationem", ) 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( - "vel", + "exercitationem", ) 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( - "vel", + "exercitationem", ) 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( - "vel", + "exercitationem", ) 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( - "vel", + "exercitationem", ) 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 95e7f4a8..f08fd8e0 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="fugit", - auth_type="mobile_app", - cookies="dolore", + auth_id="amet", + auth_type="raw_data", + cookies="eius", custom_proxy={ "host": "proxy.example.com", - "password": "l$M`~[AuAfIK", + "password": 'Yo!3!F;"qF%(', "port": 8080, - "username": "et", + "username": "rerum", }, - email="rachel.cummerata@example.com", - force_connect=False, - name="dolores", - password="O\"6M.1'zk2", - proxy_country="us", - user_agent="exercitationem", - xbc="cupiditate", + email="velma.kling@example.com", + force_connect=True, + name="qui", + password="+h+s^79Uu%y!M=", + proxy_country="uk", + user_agent="dolorem", + xbc="suscipit", ) 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="fugit", - auth_type="mobile_app", - cookies="dolore", + auth_id="amet", + auth_type="raw_data", + cookies="eius", custom_proxy={ "host": "proxy.example.com", - "password": "l$M`~[AuAfIK", + "password": 'Yo!3!F;"qF%(', "port": 8080, - "username": "et", + "username": "rerum", }, - email="rachel.cummerata@example.com", - force_connect=False, - name="dolores", - password="O\"6M.1'zk2", - proxy_country="us", - user_agent="exercitationem", - xbc="cupiditate", + email="velma.kling@example.com", + force_connect=True, + name="qui", + password="+h+s^79Uu%y!M=", + proxy_country="uk", + user_agent="dolorem", + xbc="suscipit", ) 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 0d035d3b..3597ede6 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="gb", + 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="gb", + 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 65694e23..bd4f6161 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 4af93503..47362fe9 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": ["q"]}, + filter={"tags": ["jhyjnfspmdel"]}, limit=50, name="Instagram", offset=0, @@ -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="nam", + smart_link_id="est", ) 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="nam", + smart_link_id="est", 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="nam", + smart_link_id="est", ) 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="nam", + smart_link_id="est", ) 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="sunt", + smart_link_id="consequatur", ) 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="sunt", + smart_link_id="consequatur", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="sunt", + smart_link_id="consequatur", ) assert response.is_closed is True @@ -358,7 +358,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="sunt", + smart_link_id="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="officia", + smart_link_id="et", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="officia", + smart_link_id="et", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="officia", + smart_link_id="et", ) assert response.is_closed is True @@ -411,7 +411,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="officia", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="id", + smart_link_id="magni", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="id", + smart_link_id="magni", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="id", + smart_link_id="magni", ) assert response.is_closed is True @@ -516,7 +516,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="id", + smart_link_id="magni", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["q"]}, + filter={"tags": ["jhyjnfspmdel"]}, limit=50, name="Instagram", offset=0, @@ -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="nam", + smart_link_id="est", ) 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="nam", + smart_link_id="est", 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="nam", + smart_link_id="est", ) 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="nam", + smart_link_id="est", ) 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="sunt", + 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="sunt", + smart_link_id="consequatur", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="sunt", + smart_link_id="consequatur", ) assert response.is_closed is True @@ -871,7 +871,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="sunt", + smart_link_id="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="officia", + smart_link_id="et", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="officia", + smart_link_id="et", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="officia", + smart_link_id="et", ) assert response.is_closed is True @@ -924,7 +924,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="officia", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="id", + smart_link_id="magni", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="id", + smart_link_id="magni", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="id", + smart_link_id="magni", ) assert response.is_closed is True @@ -1029,7 +1029,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="id", + 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 5cab5b81..f25ede9b 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": "kurwuytwmpubwhhallswydwo", - "tags": ["ubaskblgbenbgb"], + "search": "mymstyaishowzgtcmvbz", + "tags": ["dow"], }, 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": "kkhuyhyhbmpjzwluiy", - "tags": ["pqm"], + "search": "dhimipa", + "tags": ["uejkdgkjfdqt"], }, 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": "wwneiprsb", - "tags": ["xoxiukq"], + "search": "yleyhvepnvixnvz", + "tags": ["upj"], }, 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": "mbgefwoiwnicnyylcivnxdyy", - "tags": ["vxhthnylpsp"], + "search": "jmiyhiwoqs", + "tags": ["creggetfgqmeczszfl"], }, 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": "kurwuytwmpubwhhallswydwo", - "tags": ["ubaskblgbenbgb"], + "search": "mymstyaishowzgtcmvbz", + "tags": ["dow"], }, 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": "kkhuyhyhbmpjzwluiy", - "tags": ["pqm"], + "search": "dhimipa", + "tags": ["uejkdgkjfdqt"], }, 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": "wwneiprsb", - "tags": ["xoxiukq"], + "search": "yleyhvepnvixnvz", + "tags": ["upj"], }, 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": "mbgefwoiwnicnyylcivnxdyy", - "tags": ["vxhthnylpsp"], + "search": "jmiyhiwoqs", + "tags": ["creggetfgqmeczszfl"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index f7eba08d..36c1ee4e 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="blanditiis", + tracking_link_id="ad", 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="blanditiis", + tracking_link_id="ad", 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="blanditiis", + tracking_link_id="ad", 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="blanditiis", + tracking_link_id="ad", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="blanditiis", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="blanditiis", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="blanditiis", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="blanditiis", + tracking_link_id="ad", account="", ) @@ -248,7 +248,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="excepturi", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="excepturi", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="excepturi", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="excepturi", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="excepturi", + tracking_link_id="tempore", account="", ) @@ -312,7 +312,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="nihil", + tracking_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="nihil", + tracking_link_id="ea", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="nihil", + tracking_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="nihil", + tracking_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="nihil", + tracking_link_id="ea", account="", ) @@ -563,7 +563,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="blanditiis", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="blanditiis", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="blanditiis", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="blanditiis", + tracking_link_id="ad", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="blanditiis", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="blanditiis", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="blanditiis", + tracking_link_id="ad", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="blanditiis", + tracking_link_id="ad", account="", ) @@ -726,7 +726,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="excepturi", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="excepturi", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="excepturi", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="excepturi", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="excepturi", + tracking_link_id="tempore", account="", ) @@ -790,7 +790,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="nihil", + tracking_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="nihil", + tracking_link_id="ea", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="nihil", + tracking_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="nihil", + tracking_link_id="ea", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="nihil", + tracking_link_id="ea", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 1624d164..e081ba06 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="doloribus", + trial_link_id="eveniet", 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="doloribus", + trial_link_id="eveniet", 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="doloribus", + trial_link_id="eveniet", 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="doloribus", + trial_link_id="eveniet", account="", ) @@ -205,7 +205,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="doloribus", + trial_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="doloribus", + trial_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="doloribus", + trial_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="doloribus", + trial_link_id="eveniet", account="", ) @@ -321,7 +321,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="quidem", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="quidem", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="quidem", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="quidem", + trial_link_id="aut", account="", limit=10, offset=0, @@ -383,7 +383,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="quasi", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="quasi", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="quasi", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="quasi", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="quasi", + trial_link_id="explicabo", account="", ) @@ -447,7 +447,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="sed", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="sed", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="sed", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="sed", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="sed", account="", ) @@ -583,7 +583,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="doloribus", + trial_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="doloribus", + trial_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="doloribus", + trial_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="doloribus", + trial_link_id="eveniet", account="", ) @@ -692,7 +692,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="doloribus", + trial_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="doloribus", + trial_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="doloribus", + trial_link_id="eveniet", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="doloribus", + trial_link_id="eveniet", account="", ) @@ -808,7 +808,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="quidem", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="quidem", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="quidem", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="quidem", + trial_link_id="aut", account="", limit=10, offset=0, @@ -870,7 +870,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="quasi", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="quasi", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="quasi", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="quasi", + trial_link_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="quasi", + trial_link_id="explicabo", account="", ) @@ -934,7 +934,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="sed", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="sed", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="sed", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="sed", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="sed", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 1c43a376..59394c07 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="glhesvw", + name="i", ) 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="glhesvw", + name="i", ) 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="glhesvw", + name="i", ) 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="glhesvw", + name="i", ) @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="glhesvw", + name="i", ) 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="glhesvw", + name="i", ) 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="glhesvw", + name="i", ) 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="glhesvw", + name="i", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 2ad0d5fc46416573dc8cf8836744636c8586120c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 13 Aug 2026 19:14:21 +0000 Subject: [PATCH 226/249] 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_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 32 +++--- tests/api_resources/test_tracking_links.py | 76 ++++++------- 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 60420b5b..73ae68b0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-15697c64ce0e5f2b490492854e85471ddc66ec9593502b053b6c21fc78baff51.yml -openapi_spec_hash: 09ce808b20cd019e2feddd877f251c82 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0051b267b340d73100cc82c613c23c169ec33f841a3fcf6246bf80a16ff1394c.yml +openapi_spec_hash: c026386eab286b73bfd3b742a83be83d config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 6c53319a..0f6fe42e 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="vero", + message_id="qui", 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="vero", + message_id="qui", 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="vero", + message_id="qui", 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="vero", + message_id="qui", 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="vero", + message_id="qui", 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="vero", + message_id="qui", 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="vero", + message_id="qui", 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="vero", + message_id="qui", 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="vero", + message_id="qui", 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="vero", + message_id="qui", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 24f1d8f3..643d718e 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", 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="vel", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index c9677632..47ce84d0 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="fugit", + post_id="laboriosam", 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="fugit", + post_id="laboriosam", 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="fugit", + post_id="laboriosam", 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="fugit", + post_id="laboriosam", 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="fugit", + post_id="laboriosam", 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="fugit", + post_id="laboriosam", 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="fugit", + post_id="laboriosam", 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="fugit", + post_id="laboriosam", 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="fugit", + post_id="laboriosam", 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="fugit", + post_id="laboriosam", 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="fugit", + post_id="laboriosam", 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="fugit", + post_id="laboriosam", 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="fugit", + post_id="laboriosam", 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="fugit", + post_id="laboriosam", 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="fugit", + post_id="laboriosam", 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="fugit", + post_id="laboriosam", 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="fugit", + post_id="laboriosam", 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="fugit", + post_id="laboriosam", 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="fugit", + post_id="laboriosam", 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="fugit", + post_id="laboriosam", 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 a62ccbd3..444937ba 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 b5f3d61a..2ced6cb5 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 d151c235..70bbf43b 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="vitae", + path_story_id="quam", 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="vitae", + path_story_id="quam", 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="vitae", + path_story_id="quam", 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="vitae", + path_story_id="quam", 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="vitae", + story_id="quam", 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="vitae", + story_id="quam", 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="vitae", + story_id="quam", 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="vitae", + story_id="quam", 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="vitae", + path_story_id="quam", 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="vitae", + path_story_id="quam", 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="vitae", + path_story_id="quam", 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="vitae", + path_story_id="quam", 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="vitae", + story_id="quam", 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="vitae", + story_id="quam", 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="vitae", + story_id="quam", 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="vitae", + story_id="quam", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 0f2d134b..7506d9b8 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( - "exercitationem", + "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( - "exercitationem", + "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( - "exercitationem", + "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( - "exercitationem", + "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( - "exercitationem", + "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( - "exercitationem", + "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 f08fd8e0..0356ecd1 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="amet", - auth_type="raw_data", - cookies="eius", + auth_id="neque", + auth_type="mobile_app", + cookies="est", custom_proxy={ "host": "proxy.example.com", - "password": 'Yo!3!F;"qF%(', + "password": "j77&|r8;8K^*0S", "port": 8080, - "username": "rerum", + "username": "quis", }, - email="velma.kling@example.com", + email="hoeger.curt@example.com", force_connect=True, - name="qui", - password="+h+s^79Uu%y!M=", - proxy_country="uk", - user_agent="dolorem", - xbc="suscipit", + name="error", + password="cr<@uML?]9", + proxy_country="us", + user_agent="ad", + 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="amet", - auth_type="raw_data", - cookies="eius", + auth_id="neque", + auth_type="mobile_app", + cookies="est", custom_proxy={ "host": "proxy.example.com", - "password": 'Yo!3!F;"qF%(', + "password": "j77&|r8;8K^*0S", "port": 8080, - "username": "rerum", + "username": "quis", }, - email="velma.kling@example.com", + email="hoeger.curt@example.com", force_connect=True, - name="qui", - password="+h+s^79Uu%y!M=", - proxy_country="uk", - user_agent="dolorem", - xbc="suscipit", + name="error", + password="cr<@uML?]9", + proxy_country="us", + user_agent="ad", + 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 1a80b275..413a2df6 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="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="onlyfans", + type="likes", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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 47362fe9..598e28a8 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": ["jhyjnfspmdel"]}, + filter={"tags": ["cmaxvxnrrbviacotv"]}, limit=50, name="Instagram", offset=0, @@ -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="est", + smart_link_id="culpa", ) 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="est", + smart_link_id="culpa", 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="est", + smart_link_id="culpa", ) 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="est", + smart_link_id="culpa", ) 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="molestiae", + smart_link_id="voluptatem", ) 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="molestiae", + smart_link_id="voluptatem", 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="molestiae", + smart_link_id="voluptatem", ) 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="molestiae", + smart_link_id="voluptatem", ) 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="consequatur", + smart_link_id="maiores", ) 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="consequatur", + smart_link_id="maiores", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="maiores", ) assert response.is_closed is True @@ -358,7 +358,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="maiores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="dignissimos", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="dignissimos", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="dignissimos", ) assert response.is_closed is True @@ -411,7 +411,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="dignissimos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="est", + smart_link_id="eum", ) assert smart_link is None @@ -441,7 +441,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="est", + smart_link_id="eum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="est", + smart_link_id="eum", ) assert response.is_closed is True @@ -464,7 +464,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="est", + smart_link_id="eum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="quisquam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="quisquam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="quisquam", ) assert response.is_closed is True @@ -516,7 +516,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="quisquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["jhyjnfspmdel"]}, + filter={"tags": ["cmaxvxnrrbviacotv"]}, limit=50, name="Instagram", offset=0, @@ -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="est", + 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="est", + 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="est", + 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="est", + 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="molestiae", + smart_link_id="voluptatem", ) 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="molestiae", + smart_link_id="voluptatem", 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="molestiae", + smart_link_id="voluptatem", ) 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="molestiae", + smart_link_id="voluptatem", ) 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="maiores", ) 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="maiores", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="maiores", ) assert response.is_closed is True @@ -871,7 +871,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="maiores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="dignissimos", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="dignissimos", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="dignissimos", ) assert response.is_closed is True @@ -924,7 +924,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="dignissimos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="est", + smart_link_id="eum", ) assert smart_link is None @@ -954,7 +954,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="est", + smart_link_id="eum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="est", + smart_link_id="eum", ) assert response.is_closed is True @@ -977,7 +977,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="est", + smart_link_id="eum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="quisquam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="quisquam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="quisquam", ) assert response.is_closed is True @@ -1029,7 +1029,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="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_stored.py b/tests/api_resources/test_stored.py index f25ede9b..36c23a13 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": "mymstyaishowzgtcmvbz", - "tags": ["dow"], + "search": "uwnjoxnqvpixtj", + "tags": ["fmjqspwcttmvvf"], }, 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": "dhimipa", - "tags": ["uejkdgkjfdqt"], + "search": "odycuklxbwgykzolkmxjdqla", + "tags": ["ubfzyquctn"], }, 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": "yleyhvepnvixnvz", - "tags": ["upj"], + "search": "qaaepqnrethkl", + "tags": ["iafiytwsycdmln"], }, 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": "jmiyhiwoqs", - "tags": ["creggetfgqmeczszfl"], + "search": "b", + "tags": ["ktntpbycprcqnk"], }, 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": "mymstyaishowzgtcmvbz", - "tags": ["dow"], + "search": "uwnjoxnqvpixtj", + "tags": ["fmjqspwcttmvvf"], }, 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": "dhimipa", - "tags": ["uejkdgkjfdqt"], + "search": "odycuklxbwgykzolkmxjdqla", + "tags": ["ubfzyquctn"], }, 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": "yleyhvepnvixnvz", - "tags": ["upj"], + "search": "qaaepqnrethkl", + "tags": ["iafiytwsycdmln"], }, 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": "jmiyhiwoqs", - "tags": ["creggetfgqmeczszfl"], + "search": "b", + "tags": ["ktntpbycprcqnk"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 36c1ee4e..149602f9 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="ad", + tracking_link_id="autem", 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="ad", + tracking_link_id="autem", 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="ad", + tracking_link_id="autem", 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="ad", + tracking_link_id="autem", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="ad", + tracking_link_id="autem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="ad", + tracking_link_id="autem", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="ad", + tracking_link_id="autem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="ad", + tracking_link_id="autem", account="", ) @@ -248,7 +248,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="tempore", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="tempore", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="tempore", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="tempore", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="tempore", + tracking_link_id="consequatur", account="", ) @@ -312,7 +312,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="ea", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="ea", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="ea", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="ea", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="ea", + tracking_link_id="ducimus", account="", ) @@ -563,7 +563,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="ad", + tracking_link_id="autem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="ad", + tracking_link_id="autem", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="ad", + tracking_link_id="autem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="ad", + tracking_link_id="autem", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="ad", + tracking_link_id="autem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="ad", + tracking_link_id="autem", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="ad", + tracking_link_id="autem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="ad", + tracking_link_id="autem", account="", ) @@ -726,7 +726,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="tempore", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="tempore", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="tempore", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="tempore", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="tempore", + tracking_link_id="consequatur", account="", ) @@ -790,7 +790,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="ea", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="ea", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="ea", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="ea", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="ea", + tracking_link_id="ducimus", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index e081ba06..ab068cd2 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="eveniet", + trial_link_id="praesentium", 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="eveniet", + trial_link_id="praesentium", 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="eveniet", + trial_link_id="praesentium", 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="eveniet", + trial_link_id="praesentium", account="", ) @@ -205,7 +205,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="eveniet", + trial_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="eveniet", + trial_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="eveniet", + trial_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="eveniet", + trial_link_id="praesentium", account="", ) @@ -321,7 +321,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="magni", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="magni", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="magni", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="magni", account="", limit=10, offset=0, @@ -383,7 +383,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="explicabo", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="explicabo", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="explicabo", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="explicabo", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="explicabo", + trial_link_id="quibusdam", account="", ) @@ -447,7 +447,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="sed", + trial_link_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="sed", + trial_link_id="suscipit", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="sed", + trial_link_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="sed", + trial_link_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="sed", + trial_link_id="suscipit", account="", ) @@ -583,7 +583,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="eveniet", + trial_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="eveniet", + trial_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="eveniet", + trial_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="eveniet", + trial_link_id="praesentium", account="", ) @@ -692,7 +692,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="eveniet", + trial_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="eveniet", + trial_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="eveniet", + trial_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="eveniet", + trial_link_id="praesentium", account="", ) @@ -808,7 +808,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="magni", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="magni", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="magni", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="magni", account="", limit=10, offset=0, @@ -870,7 +870,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="explicabo", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="explicabo", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="explicabo", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="explicabo", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="explicabo", + trial_link_id="quibusdam", account="", ) @@ -934,7 +934,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="sed", + trial_link_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="sed", + trial_link_id="suscipit", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="sed", + trial_link_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="sed", + trial_link_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="sed", + trial_link_id="suscipit", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 59394c07..1eac05c2 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="i", + name="nrmxdeecfdtvk", ) 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="i", + name="nrmxdeecfdtvk", ) 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="i", + name="nrmxdeecfdtvk", ) 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="i", + name="nrmxdeecfdtvk", ) @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="i", + name="nrmxdeecfdtvk", ) 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="i", + name="nrmxdeecfdtvk", ) 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="i", + name="nrmxdeecfdtvk", ) 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="i", + name="nrmxdeecfdtvk", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 4bbfdd189f41fe370f35ec1b9e428a3b1e5699fd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 13 Aug 2026 20:12:40 +0000 Subject: [PATCH 227/249] 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 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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 +-- 18 files changed, 274 insertions(+), 274 deletions(-) diff --git a/.stats.yml b/.stats.yml index 73ae68b0..da2ced40 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0051b267b340d73100cc82c613c23c169ec33f841a3fcf6246bf80a16ff1394c.yml -openapi_spec_hash: c026386eab286b73bfd3b742a83be83d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-901d18ae0073230cbc072f729528c17043fde31d4a7a993dd1d1ed1a786e9dce.yml +openapi_spec_hash: ed64e03b24764680ba2d50c82d9cb426 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 0f6fe42e..eb3e3bb7 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="qui", + message_id="ex", 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="qui", + message_id="ex", 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="qui", + message_id="ex", 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="qui", + message_id="ex", 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="qui", + message_id="ex", 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="qui", + message_id="ex", 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="qui", + message_id="ex", 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="qui", + message_id="ex", 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="qui", + message_id="ex", 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="qui", + message_id="ex", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 643d718e..406ca503 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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 47ce84d0..57e8a3ef 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="laboriosam", + post_id="quia", 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="laboriosam", + post_id="quia", 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="laboriosam", + post_id="quia", 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="laboriosam", + post_id="quia", 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="laboriosam", + post_id="quia", 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="laboriosam", + post_id="quia", 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="laboriosam", + post_id="quia", 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="laboriosam", + post_id="quia", 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="laboriosam", + post_id="quia", 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="laboriosam", + post_id="quia", 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="laboriosam", + post_id="quia", 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="laboriosam", + post_id="quia", 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="laboriosam", + post_id="quia", 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="laboriosam", + post_id="quia", 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="laboriosam", + post_id="quia", 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="laboriosam", + post_id="quia", 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="laboriosam", + post_id="quia", 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="laboriosam", + post_id="quia", 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="laboriosam", + post_id="quia", 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="laboriosam", + post_id="quia", 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 444937ba..aa735c97 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 2ced6cb5..b5f3d61a 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 9664075f..544df889 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 70bbf43b..64881003 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="quam", + path_story_id="officiis", 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="quam", + path_story_id="officiis", 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="quam", + path_story_id="officiis", 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="quam", + path_story_id="officiis", 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="quam", + story_id="officiis", 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="quam", + story_id="officiis", 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="quam", + story_id="officiis", 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="quam", + story_id="officiis", 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="quam", + path_story_id="officiis", 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="quam", + path_story_id="officiis", 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="quam", + path_story_id="officiis", 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="quam", + path_story_id="officiis", 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="quam", + story_id="officiis", 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="quam", + story_id="officiis", 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="quam", + story_id="officiis", 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="quam", + story_id="officiis", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 7506d9b8..0cbfcb97 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", + "quam", ) 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", + "quam", ) 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", + "quam", ) 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", + "quam", ) 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", + "quam", ) 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", + "quam", ) 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 0356ecd1..1079ff8d 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="neque", + auth_id="non", auth_type="mobile_app", - cookies="est", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "j77&|r8;8K^*0S", + "password": "YGO<(w'", "port": 8080, - "username": "quis", + "username": "voluptatum", }, - email="hoeger.curt@example.com", - force_connect=True, - name="error", - password="cr<@uML?]9", - proxy_country="us", - user_agent="ad", - xbc="nobis", + email="marquis.brekke@example.com", + force_connect=False, + name="totam", + password="LP,:xl`z/S1%/wy", + proxy_country="uk", + user_agent="et", + xbc="voluptatem", ) 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="neque", + auth_id="non", auth_type="mobile_app", - cookies="est", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "j77&|r8;8K^*0S", + "password": "YGO<(w'", "port": 8080, - "username": "quis", + "username": "voluptatum", }, - email="hoeger.curt@example.com", - force_connect=True, - name="error", - password="cr<@uML?]9", - proxy_country="us", - user_agent="ad", - xbc="nobis", + email="marquis.brekke@example.com", + force_connect=False, + name="totam", + password="LP,:xl`z/S1%/wy", + proxy_country="uk", + user_agent="et", + xbc="voluptatem", ) 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 3597ede6..9249f386 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 413a2df6..4d3e426f 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 598e28a8..9c99fccd 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": ["cmaxvxnrrbviacotv"]}, + filter={"tags": ["ezelqjxmjimobf"]}, limit=50, name="Instagram", offset=0, @@ -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="culpa", + smart_link_id="est", ) 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="culpa", + smart_link_id="est", 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="culpa", + smart_link_id="est", ) 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="culpa", + smart_link_id="est", ) 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="voluptatem", + smart_link_id="qui", ) 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="voluptatem", + smart_link_id="qui", 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="voluptatem", + smart_link_id="qui", ) 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="voluptatem", + smart_link_id="qui", ) 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="maiores", + smart_link_id="sunt", ) 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="maiores", + smart_link_id="sunt", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="maiores", + smart_link_id="sunt", ) assert response.is_closed is True @@ -358,7 +358,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="maiores", + smart_link_id="sunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="dignissimos", + smart_link_id="omnis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="dignissimos", + smart_link_id="omnis", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="dignissimos", + smart_link_id="omnis", ) assert response.is_closed is True @@ -411,7 +411,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="dignissimos", + smart_link_id="omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="ut", ) assert smart_link is None @@ -441,7 +441,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="ut", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="ut", ) assert response.is_closed is True @@ -464,7 +464,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="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="quisquam", + smart_link_id="et", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="quisquam", + smart_link_id="et", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="quisquam", + smart_link_id="et", ) assert response.is_closed is True @@ -516,7 +516,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="quisquam", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["cmaxvxnrrbviacotv"]}, + filter={"tags": ["ezelqjxmjimobf"]}, limit=50, name="Instagram", offset=0, @@ -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="culpa", + smart_link_id="est", ) 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="culpa", + smart_link_id="est", 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="culpa", + smart_link_id="est", ) 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="culpa", + smart_link_id="est", ) 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="voluptatem", + smart_link_id="qui", ) 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="voluptatem", + smart_link_id="qui", 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="voluptatem", + smart_link_id="qui", ) 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="voluptatem", + smart_link_id="qui", ) 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="maiores", + smart_link_id="sunt", ) 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="maiores", + smart_link_id="sunt", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="maiores", + smart_link_id="sunt", ) assert response.is_closed is True @@ -871,7 +871,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="maiores", + smart_link_id="sunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="dignissimos", + smart_link_id="omnis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="dignissimos", + smart_link_id="omnis", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="dignissimos", + smart_link_id="omnis", ) assert response.is_closed is True @@ -924,7 +924,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="dignissimos", + smart_link_id="omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="ut", ) assert smart_link is None @@ -954,7 +954,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="ut", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="ut", ) assert response.is_closed is True @@ -977,7 +977,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="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="quisquam", + smart_link_id="et", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="quisquam", + smart_link_id="et", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="quisquam", + smart_link_id="et", ) assert response.is_closed is True @@ -1029,7 +1029,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="quisquam", + 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 36c23a13..491f06ab 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": "uwnjoxnqvpixtj", - "tags": ["fmjqspwcttmvvf"], + "search": "kk", + "tags": ["hbuhiyzwt"], }, 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": "odycuklxbwgykzolkmxjdqla", - "tags": ["ubfzyquctn"], + "search": "gtkafsbfedgs", + "tags": ["jptykqgptz"], }, 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": "qaaepqnrethkl", - "tags": ["iafiytwsycdmln"], + "include_smart_links": False, + "search": "fsucqeolxriyl", + "tags": ["ivxssdjtavrrpoymokbxmxjyq"], }, 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": "b", - "tags": ["ktntpbycprcqnk"], + "include_smart_links": False, + "search": "lsieaypdykcbi", + "tags": ["dmfqnjtq"], }, 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": "uwnjoxnqvpixtj", - "tags": ["fmjqspwcttmvvf"], + "search": "kk", + "tags": ["hbuhiyzwt"], }, 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": "odycuklxbwgykzolkmxjdqla", - "tags": ["ubfzyquctn"], + "search": "gtkafsbfedgs", + "tags": ["jptykqgptz"], }, 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": "qaaepqnrethkl", - "tags": ["iafiytwsycdmln"], + "include_smart_links": False, + "search": "fsucqeolxriyl", + "tags": ["ivxssdjtavrrpoymokbxmxjyq"], }, 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": "b", - "tags": ["ktntpbycprcqnk"], + "include_smart_links": False, + "search": "lsieaypdykcbi", + "tags": ["dmfqnjtq"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 149602f9..dc76ca83 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="autem", + tracking_link_id="pariatur", 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="autem", + tracking_link_id="pariatur", 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="autem", + tracking_link_id="pariatur", 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="autem", + tracking_link_id="pariatur", account="", ) @@ -196,7 +196,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="autem", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="autem", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="autem", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="autem", + tracking_link_id="pariatur", account="", ) @@ -248,7 +248,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="consequatur", + tracking_link_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="consequatur", + tracking_link_id="temporibus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="consequatur", + tracking_link_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="consequatur", + tracking_link_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="consequatur", + tracking_link_id="temporibus", account="", ) @@ -312,7 +312,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="ducimus", + tracking_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="ducimus", + tracking_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="ducimus", + tracking_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="ducimus", + tracking_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="ducimus", + tracking_link_id="nostrum", account="", ) @@ -563,7 +563,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="autem", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="autem", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="autem", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="autem", + tracking_link_id="pariatur", account="", ) @@ -674,7 +674,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="autem", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="autem", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="autem", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="autem", + tracking_link_id="pariatur", account="", ) @@ -726,7 +726,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="consequatur", + tracking_link_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="consequatur", + tracking_link_id="temporibus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="consequatur", + tracking_link_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="consequatur", + tracking_link_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="consequatur", + tracking_link_id="temporibus", account="", ) @@ -790,7 +790,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="ducimus", + tracking_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="ducimus", + tracking_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="ducimus", + tracking_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="ducimus", + tracking_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="ducimus", + tracking_link_id="nostrum", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index ab068cd2..654e4e46 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="praesentium", + 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="praesentium", + 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="praesentium", + 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="praesentium", + trial_link_id="eius", account="", ) @@ -205,7 +205,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="praesentium", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="praesentium", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="praesentium", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="praesentium", + trial_link_id="eius", account="", ) @@ -321,7 +321,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="magni", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="magni", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="magni", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="magni", + trial_link_id="sit", account="", limit=10, offset=0, @@ -383,7 +383,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="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="reiciendis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="reiciendis", account="", ) @@ -447,7 +447,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="suscipit", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="suscipit", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="suscipit", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="suscipit", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="suscipit", + trial_link_id="labore", account="", ) @@ -583,7 +583,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="praesentium", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="praesentium", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="praesentium", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="praesentium", + trial_link_id="eius", account="", ) @@ -692,7 +692,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="praesentium", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="praesentium", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="praesentium", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="praesentium", + trial_link_id="eius", account="", ) @@ -808,7 +808,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="magni", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="magni", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="magni", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="magni", + trial_link_id="sit", account="", limit=10, offset=0, @@ -870,7 +870,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="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="reiciendis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="reiciendis", account="", ) @@ -934,7 +934,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="suscipit", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="suscipit", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="suscipit", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="suscipit", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="suscipit", + trial_link_id="labore", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 1eac05c2..7d44cec4 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="nrmxdeecfdtvk", + name="btsxknjjwrgwukfe", ) 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="nrmxdeecfdtvk", + name="btsxknjjwrgwukfe", ) 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="nrmxdeecfdtvk", + name="btsxknjjwrgwukfe", ) 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="nrmxdeecfdtvk", + name="btsxknjjwrgwukfe", ) @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="nrmxdeecfdtvk", + name="btsxknjjwrgwukfe", ) 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="nrmxdeecfdtvk", + name="btsxknjjwrgwukfe", ) 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="nrmxdeecfdtvk", + name="btsxknjjwrgwukfe", ) 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="nrmxdeecfdtvk", + name="btsxknjjwrgwukfe", ) @pytest.mark.skip(reason="Mock server tests are disabled") From a2ac1bd2100e6fe643ae2db04a789c250ba00d65 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 15 Aug 2026 03:12:40 +0000 Subject: [PATCH 228/249] feat(api): api update --- .stats.yml | 4 +- .../resources/statistics/statistics.py | 10 ++ ...statistic_get_subscriber_metrics_params.py | 8 +- .../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 | 48 ++++----- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_statistics.py | 2 + tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 76 ++++++------- tests/api_resources/test_trial_links.py | 88 +++++++-------- tests/api_resources/test_user_lists.py | 16 +-- 20 files changed, 287 insertions(+), 269 deletions(-) diff --git a/.stats.yml b/.stats.yml index da2ced40..c8a9d548 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-901d18ae0073230cbc072f729528c17043fde31d4a7a993dd1d1ed1a786e9dce.yml -openapi_spec_hash: ed64e03b24764680ba2d50c82d9cb426 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7fb04b7318a956be18b88bb8ec2c972ef3225505d36876b1cabd703546d81590.yml +openapi_spec_hash: 4d67fe9decba5dca8538c3a8e5bd584f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/statistics/statistics.py b/src/onlyfansapi/resources/statistics/statistics.py index 1f65b345..dc947f8d 100644 --- a/src/onlyfansapi/resources/statistics/statistics.py +++ b/src/onlyfansapi/resources/statistics/statistics.py @@ -184,6 +184,7 @@ def get_subscriber_metrics( end_date: str, start_date: str, detailed: Optional[bool] | Omit = omit, + detailed_type: Optional[Literal["total", "renew", "new"]] | 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, @@ -204,6 +205,9 @@ def get_subscriber_metrics( detailed: Include paid and free fan metrics. Will slow down the response time, and might time out if timeframe is too large. Default = `false` + detailed_type: Use only with `detailed=true` - otherwise, it has no effect. Filter the + subscriber statistics (default = total) + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -226,6 +230,7 @@ def get_subscriber_metrics( "end_date": end_date, "start_date": start_date, "detailed": detailed, + "detailed_type": detailed_type, }, statistic_get_subscriber_metrics_params.StatisticGetSubscriberMetricsParams, ), @@ -372,6 +377,7 @@ async def get_subscriber_metrics( end_date: str, start_date: str, detailed: Optional[bool] | Omit = omit, + detailed_type: Optional[Literal["total", "renew", "new"]] | 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, @@ -392,6 +398,9 @@ async def get_subscriber_metrics( detailed: Include paid and free fan metrics. Will slow down the response time, and might time out if timeframe is too large. Default = `false` + detailed_type: Use only with `detailed=true` - otherwise, it has no effect. Filter the + subscriber statistics (default = total) + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -414,6 +423,7 @@ async def get_subscriber_metrics( "end_date": end_date, "start_date": start_date, "detailed": detailed, + "detailed_type": detailed_type, }, statistic_get_subscriber_metrics_params.StatisticGetSubscriberMetricsParams, ), diff --git a/src/onlyfansapi/types/statistic_get_subscriber_metrics_params.py b/src/onlyfansapi/types/statistic_get_subscriber_metrics_params.py index 9f177238..90a0cd3e 100644 --- a/src/onlyfansapi/types/statistic_get_subscriber_metrics_params.py +++ b/src/onlyfansapi/types/statistic_get_subscriber_metrics_params.py @@ -3,7 +3,7 @@ from __future__ import annotations from typing import Optional -from typing_extensions import Required, TypedDict +from typing_extensions import Literal, Required, TypedDict __all__ = ["StatisticGetSubscriberMetricsParams"] @@ -21,3 +21,9 @@ class StatisticGetSubscriberMetricsParams(TypedDict, total=False): Will slow down the response time, and might time out if timeframe is too large. Default = `false` """ + + detailed_type: Optional[Literal["total", "renew", "new"]] + """Use only with `detailed=true` - otherwise, it has no effect. + + Filter the subscriber statistics (default = total) + """ diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index eb3e3bb7..4a6cc0a1 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="ex", + message_id="velit", 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="ex", + message_id="velit", 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="ex", + message_id="velit", 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="ex", + message_id="velit", 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="ex", + message_id="velit", 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="ex", + message_id="velit", 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="ex", + message_id="velit", 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="ex", + message_id="velit", 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="ex", + message_id="velit", 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="ex", + message_id="velit", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 406ca503..4c33956b 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="vitae", 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="vitae", 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="vitae", 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="vitae", 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="vitae", 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="vitae", 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="vitae", 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="vitae", 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="vitae", 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="vitae", 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="vitae", 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="vitae", 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="vitae", 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="vitae", 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="vitae", 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="vitae", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 57e8a3ef..f6759bf6 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="quia", + post_id="corporis", 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="quia", + post_id="corporis", 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="quia", + post_id="corporis", 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="quia", + post_id="corporis", 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="quia", + post_id="corporis", 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="quia", + post_id="corporis", 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="quia", + post_id="corporis", 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="quia", + post_id="corporis", 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="quia", + post_id="corporis", 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="quia", + post_id="corporis", 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="quia", + post_id="corporis", 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="quia", + post_id="corporis", 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="quia", + post_id="corporis", 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="quia", + post_id="corporis", 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="quia", + post_id="corporis", 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="quia", + post_id="corporis", 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="quia", + post_id="corporis", 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="quia", + post_id="corporis", 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="quia", + post_id="corporis", 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="quia", + post_id="corporis", 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 aa735c97..444937ba 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 64881003..506c2ed9 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + 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="officiis", + story_id="et", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 0cbfcb97..ca2c75e8 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( - "quam", + "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( - "quam", + "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( - "quam", + "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( - "quam", + "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( - "quam", + "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( - "quam", + "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 1079ff8d..78941db7 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="mobile_app", - cookies="et", + auth_id="eius", + auth_type="raw_data", + cookies="quia", custom_proxy={ "host": "proxy.example.com", - "password": "YGO<(w'", + "password": "2)LeU\\G/G", "port": 8080, - "username": "voluptatum", + "username": "aut", }, - email="marquis.brekke@example.com", - force_connect=False, - name="totam", - password="LP,:xl`z/S1%/wy", - proxy_country="uk", - user_agent="et", - xbc="voluptatem", + email="yschmitt@example.net", + force_connect=True, + name="mollitia", + password="0,N%='Vj@=]l^E", + proxy_country="gb", + user_agent="amet", + 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="non", - auth_type="mobile_app", - cookies="et", + auth_id="eius", + auth_type="raw_data", + cookies="quia", custom_proxy={ "host": "proxy.example.com", - "password": "YGO<(w'", + "password": "2)LeU\\G/G", "port": 8080, - "username": "voluptatum", + "username": "aut", }, - email="marquis.brekke@example.com", - force_connect=False, - name="totam", - password="LP,:xl`z/S1%/wy", - proxy_country="uk", - user_agent="et", - xbc="voluptatem", + email="yschmitt@example.net", + force_connect=True, + name="mollitia", + password="0,N%='Vj@=]l^E", + proxy_country="gb", + user_agent="amet", + xbc="qui", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 4d3e426f..4fb0fa41 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 65694e23..bd4f6161 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 9c99fccd..4414682d 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": ["ezelqjxmjimobf"]}, + filter={"tags": ["jksptgcxn"]}, limit=50, name="Instagram", offset=0, @@ -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="est", + smart_link_id="quia", ) 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="est", + smart_link_id="quia", 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="est", + smart_link_id="quia", ) 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="est", + smart_link_id="quia", ) 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="qui", + smart_link_id="ut", ) 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="qui", + smart_link_id="ut", 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="qui", + smart_link_id="ut", ) 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="qui", + smart_link_id="ut", ) 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="sunt", + smart_link_id="repellat", ) 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="sunt", + smart_link_id="repellat", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="sunt", + smart_link_id="repellat", ) assert response.is_closed is True @@ -358,7 +358,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="sunt", + smart_link_id="repellat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="omnis", + smart_link_id="unde", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="omnis", + smart_link_id="unde", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="omnis", + smart_link_id="unde", ) assert response.is_closed is True @@ -411,7 +411,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="omnis", + smart_link_id="unde", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="et", ) assert smart_link is None @@ -441,7 +441,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="et", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="et", ) assert response.is_closed is True @@ -464,7 +464,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="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="quae", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="quae", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="quae", ) assert response.is_closed is True @@ -516,7 +516,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="quae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["ezelqjxmjimobf"]}, + filter={"tags": ["jksptgcxn"]}, limit=50, name="Instagram", offset=0, @@ -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="est", + smart_link_id="quia", ) 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="est", + smart_link_id="quia", 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="est", + smart_link_id="quia", ) 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="est", + smart_link_id="quia", ) 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="qui", + 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="qui", + 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="qui", + 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="qui", + 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="sunt", + smart_link_id="repellat", ) 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="sunt", + smart_link_id="repellat", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="sunt", + smart_link_id="repellat", ) assert response.is_closed is True @@ -871,7 +871,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="sunt", + smart_link_id="repellat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="omnis", + smart_link_id="unde", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="omnis", + smart_link_id="unde", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="omnis", + smart_link_id="unde", ) assert response.is_closed is True @@ -924,7 +924,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="omnis", + smart_link_id="unde", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="et", ) assert smart_link is None @@ -954,7 +954,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="et", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="et", ) assert response.is_closed is True @@ -977,7 +977,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="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="quae", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="quae", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="quae", ) assert response.is_closed is True @@ -1029,7 +1029,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="quae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_statistics.py b/tests/api_resources/test_statistics.py index e2a43787..65697c2c 100644 --- a/tests/api_resources/test_statistics.py +++ b/tests/api_resources/test_statistics.py @@ -144,6 +144,7 @@ def test_method_get_subscriber_metrics_with_all_params(self, client: OnlyFansAPI end_date="2025-03-31 23:59:59", start_date="2025-01-01 00:00:00", detailed=False, + detailed_type="total", ) assert_matches_type(StatisticGetSubscriberMetricsResponse, statistic, path=["response"]) @@ -316,6 +317,7 @@ async def test_method_get_subscriber_metrics_with_all_params(self, async_client: end_date="2025-03-31 23:59:59", start_date="2025-01-01 00:00:00", detailed=False, + detailed_type="total", ) assert_matches_type(StatisticGetSubscriberMetricsResponse, statistic, path=["response"]) diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 491f06ab..66c3bb55 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": "kk", - "tags": ["hbuhiyzwt"], + "search": "byvpxkmqtacabqtt", + "tags": ["lxtterp"], }, 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": "gtkafsbfedgs", - "tags": ["jptykqgptz"], + "search": "onwwkqvik", + "tags": ["j"], }, 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": "fsucqeolxriyl", - "tags": ["ivxssdjtavrrpoymokbxmxjyq"], + "include_smart_links": True, + "search": "xaedhzfepfeaovnnihtrxqxd", + "tags": ["ztsgjacndpflmdrxpoyiudrl"], }, 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": "lsieaypdykcbi", - "tags": ["dmfqnjtq"], + "search": "bdkcpdadsq", + "tags": ["ochojeodrutkwpizbbig"], }, 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": "kk", - "tags": ["hbuhiyzwt"], + "search": "byvpxkmqtacabqtt", + "tags": ["lxtterp"], }, 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": "gtkafsbfedgs", - "tags": ["jptykqgptz"], + "search": "onwwkqvik", + "tags": ["j"], }, 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": "fsucqeolxriyl", - "tags": ["ivxssdjtavrrpoymokbxmxjyq"], + "include_smart_links": True, + "search": "xaedhzfepfeaovnnihtrxqxd", + "tags": ["ztsgjacndpflmdrxpoyiudrl"], }, 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": "lsieaypdykcbi", - "tags": ["dmfqnjtq"], + "search": "bdkcpdadsq", + "tags": ["ochojeodrutkwpizbbig"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index dc76ca83..8f79153f 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="pariatur", + tracking_link_id="rem", 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="pariatur", + tracking_link_id="rem", 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="pariatur", + tracking_link_id="rem", 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="pariatur", + tracking_link_id="rem", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="pariatur", + tracking_link_id="rem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="pariatur", + tracking_link_id="rem", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="pariatur", + tracking_link_id="rem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="pariatur", + tracking_link_id="rem", account="", ) @@ -248,7 +248,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="ratione", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="ratione", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="ratione", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="ratione", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="ratione", account="", ) @@ -312,7 +312,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="nostrum", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="nostrum", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="nostrum", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="nostrum", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="nostrum", + tracking_link_id="aspernatur", account="", ) @@ -563,7 +563,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="pariatur", + tracking_link_id="rem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="pariatur", + tracking_link_id="rem", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="pariatur", + tracking_link_id="rem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="pariatur", + tracking_link_id="rem", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="pariatur", + tracking_link_id="rem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="pariatur", + tracking_link_id="rem", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="pariatur", + tracking_link_id="rem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="pariatur", + tracking_link_id="rem", account="", ) @@ -726,7 +726,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="ratione", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="ratione", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="ratione", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="ratione", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="ratione", account="", ) @@ -790,7 +790,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="nostrum", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="nostrum", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="nostrum", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="nostrum", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="nostrum", + tracking_link_id="aspernatur", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 654e4e46..ca7a7ddc 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="enim", 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="enim", 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="enim", 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="enim", account="", ) @@ -205,7 +205,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="enim", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="enim", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="enim", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="enim", account="", ) @@ -321,7 +321,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="sit", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="sit", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="sit", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="sit", + trial_link_id="inventore", account="", limit=10, offset=0, @@ -383,7 +383,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="reiciendis", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="reiciendis", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="reiciendis", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="reiciendis", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="reiciendis", + trial_link_id="tempore", account="", ) @@ -447,7 +447,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="labore", + trial_link_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="labore", + trial_link_id="suscipit", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="labore", + trial_link_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="labore", + trial_link_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="labore", + trial_link_id="suscipit", account="", ) @@ -583,7 +583,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="enim", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="enim", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="enim", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="enim", account="", ) @@ -692,7 +692,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="enim", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="enim", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="enim", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="enim", account="", ) @@ -808,7 +808,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="sit", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="sit", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="sit", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="sit", + trial_link_id="inventore", account="", limit=10, offset=0, @@ -870,7 +870,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="reiciendis", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="reiciendis", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="reiciendis", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="reiciendis", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="reiciendis", + trial_link_id="tempore", account="", ) @@ -934,7 +934,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="labore", + trial_link_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="labore", + trial_link_id="suscipit", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="labore", + trial_link_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="labore", + trial_link_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="labore", + trial_link_id="suscipit", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 7d44cec4..7bbe1ea6 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="btsxknjjwrgwukfe", + name="kc", ) 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="btsxknjjwrgwukfe", + name="kc", ) 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="btsxknjjwrgwukfe", + name="kc", ) 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="btsxknjjwrgwukfe", + name="kc", ) @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="btsxknjjwrgwukfe", + name="kc", ) 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="btsxknjjwrgwukfe", + name="kc", ) 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="btsxknjjwrgwukfe", + name="kc", ) 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="btsxknjjwrgwukfe", + name="kc", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 6df6e2af35b416e3dfdee775b65ebbaff3d6a9fc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 15 Aug 2026 05:12:39 +0000 Subject: [PATCH 229/249] 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_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- .../api_resources/test_shared_trial_links.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 +-- 18 files changed, 266 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index c8a9d548..fb85fa7b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7fb04b7318a956be18b88bb8ec2c972ef3225505d36876b1cabd703546d81590.yml -openapi_spec_hash: 4d67fe9decba5dca8538c3a8e5bd584f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-26d242bf8bba4ea78c767ab736c06cf502c13ee0ec7423b5719b5c4858e163ea.yml +openapi_spec_hash: 87dff8cf9517213ce7c5a4521c9d7e08 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 4a6cc0a1..d4d97d07 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="velit", + message_id="accusantium", 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="velit", + message_id="accusantium", 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="velit", + message_id="accusantium", 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="velit", + message_id="accusantium", 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="velit", + message_id="accusantium", 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="velit", + message_id="accusantium", 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="velit", + message_id="accusantium", 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="velit", + message_id="accusantium", 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="velit", + message_id="accusantium", 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="velit", + message_id="accusantium", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 4c33956b..49f2ba15 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="vitae", + list_id="rem", 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="vitae", + list_id="rem", 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="vitae", + list_id="rem", 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="vitae", + list_id="rem", 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="vitae", + list_id="rem", 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="vitae", + list_id="rem", 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="vitae", + list_id="rem", 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="vitae", + list_id="rem", 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="vitae", + list_id="rem", 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="vitae", + list_id="rem", 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="vitae", + list_id="rem", 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="vitae", + list_id="rem", 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="vitae", + list_id="rem", 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="vitae", + list_id="rem", 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="vitae", + list_id="rem", 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="vitae", + list_id="rem", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index f6759bf6..818432bd 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="corporis", + post_id="dignissimos", 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="corporis", + post_id="dignissimos", 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="corporis", + post_id="dignissimos", 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="corporis", + post_id="dignissimos", 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="corporis", + post_id="dignissimos", 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="corporis", + post_id="dignissimos", 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="corporis", + post_id="dignissimos", 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="corporis", + post_id="dignissimos", 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="corporis", + post_id="dignissimos", 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="corporis", + post_id="dignissimos", 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="corporis", + post_id="dignissimos", 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="corporis", + post_id="dignissimos", 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="corporis", + post_id="dignissimos", 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="corporis", + post_id="dignissimos", 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="corporis", + post_id="dignissimos", 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="corporis", + post_id="dignissimos", 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="corporis", + post_id="dignissimos", 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="corporis", + post_id="dignissimos", 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="corporis", + post_id="dignissimos", 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="corporis", + post_id="dignissimos", 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 b5f3d61a..2ced6cb5 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 9664075f..544df889 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 506c2ed9..1d8e7702 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="consequuntur", 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="consequuntur", 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="consequuntur", 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="consequuntur", 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="consequuntur", 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="consequuntur", 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="consequuntur", 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="consequuntur", 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="consequuntur", 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="consequuntur", 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="consequuntur", 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="consequuntur", 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="consequuntur", 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="consequuntur", 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="consequuntur", 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="consequuntur", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index ca2c75e8..49b922c5 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", + "sunt", ) 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", + "sunt", ) 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", + "sunt", ) 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", + "sunt", ) 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", + "sunt", ) 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", + "sunt", ) 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 78941db7..63ba2ad7 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="eius", - auth_type="raw_data", - cookies="quia", + auth_id="et", + auth_type="mobile_app", + cookies="aut", custom_proxy={ "host": "proxy.example.com", - "password": "2)LeU\\G/G", + "password": "6t/6/12YB{l1]8", "port": 8080, - "username": "aut", + "username": "delectus", }, - email="yschmitt@example.net", + email="sauer.gideon@example.org", force_connect=True, - name="mollitia", - password="0,N%='Vj@=]l^E", - proxy_country="gb", - user_agent="amet", - xbc="qui", + name="nam", + password='P"-cez', + proxy_country="uk", + user_agent="minima", + xbc="perferendis", ) 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="eius", - auth_type="raw_data", - cookies="quia", + auth_id="et", + auth_type="mobile_app", + cookies="aut", custom_proxy={ "host": "proxy.example.com", - "password": "2)LeU\\G/G", + "password": "6t/6/12YB{l1]8", "port": 8080, - "username": "aut", + "username": "delectus", }, - email="yschmitt@example.net", + email="sauer.gideon@example.org", force_connect=True, - name="mollitia", - password="0,N%='Vj@=]l^E", - proxy_country="gb", - user_agent="amet", - xbc="qui", + name="nam", + password='P"-cez', + proxy_country="uk", + user_agent="minima", + xbc="perferendis", ) 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 9249f386..3597ede6 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 4fb0fa41..1a80b275 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="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="subscriptions", + type="onlyfans", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 4414682d..e2d88bd2 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": ["jksptgcxn"]}, + filter={"tags": ["ulalpvjh"]}, limit=50, name="Instagram", offset=0, @@ -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="quia", + smart_link_id="doloremque", ) 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="quia", + smart_link_id="doloremque", 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="quia", + smart_link_id="doloremque", ) 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="quia", + smart_link_id="doloremque", ) 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="ut", + smart_link_id="eius", ) 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="ut", + smart_link_id="eius", 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="ut", + smart_link_id="eius", ) 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="ut", + smart_link_id="eius", ) 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="repellat", + smart_link_id="suscipit", ) 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="repellat", + smart_link_id="suscipit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="repellat", + smart_link_id="suscipit", ) assert response.is_closed is True @@ -358,7 +358,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="repellat", + smart_link_id="suscipit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="unde", + smart_link_id="provident", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="unde", + smart_link_id="provident", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="unde", + smart_link_id="provident", ) assert response.is_closed is True @@ -411,7 +411,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="unde", + smart_link_id="provident", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="perferendis", ) assert smart_link is None @@ -441,7 +441,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="perferendis", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="perferendis", ) assert response.is_closed is True @@ -464,7 +464,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="perferendis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="quae", + smart_link_id="quia", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="quae", + smart_link_id="quia", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="quae", + smart_link_id="quia", ) assert response.is_closed is True @@ -516,7 +516,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="quae", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["jksptgcxn"]}, + filter={"tags": ["ulalpvjh"]}, limit=50, name="Instagram", offset=0, @@ -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="quia", + smart_link_id="doloremque", ) 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="quia", + smart_link_id="doloremque", 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="quia", + smart_link_id="doloremque", ) 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="quia", + smart_link_id="doloremque", ) 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="eius", ) 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="eius", 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="eius", ) 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="eius", ) 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="repellat", + smart_link_id="suscipit", ) 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="repellat", + smart_link_id="suscipit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="repellat", + smart_link_id="suscipit", ) assert response.is_closed is True @@ -871,7 +871,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="repellat", + smart_link_id="suscipit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="unde", + smart_link_id="provident", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="unde", + smart_link_id="provident", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="unde", + smart_link_id="provident", ) assert response.is_closed is True @@ -924,7 +924,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="unde", + smart_link_id="provident", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="perferendis", ) assert smart_link is None @@ -954,7 +954,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="perferendis", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="perferendis", ) assert response.is_closed is True @@ -977,7 +977,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="perferendis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="quae", + smart_link_id="quia", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="quae", + smart_link_id="quia", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="quae", + smart_link_id="quia", ) assert response.is_closed is True @@ -1029,7 +1029,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="quae", + 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 66c3bb55..a866bb38 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": "byvpxkmqtacabqtt", - "tags": ["lxtterp"], + "search": "icplsmfctmfnrttw", + "tags": ["f"], }, 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": "onwwkqvik", - "tags": ["j"], + "search": "mrooljactvjimkjrvfk", + "tags": ["fhyxjmzfkeudflwupkt"], }, 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": "xaedhzfepfeaovnnihtrxqxd", - "tags": ["ztsgjacndpflmdrxpoyiudrl"], + "search": "dnwouvihznylvtmxskj", + "tags": ["qvsygtbumsmao"], }, 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": "bdkcpdadsq", - "tags": ["ochojeodrutkwpizbbig"], + "include_smart_links": True, + "search": "wvtdsbehawdpsk", + "tags": ["yj"], }, 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": "byvpxkmqtacabqtt", - "tags": ["lxtterp"], + "search": "icplsmfctmfnrttw", + "tags": ["f"], }, 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": "onwwkqvik", - "tags": ["j"], + "search": "mrooljactvjimkjrvfk", + "tags": ["fhyxjmzfkeudflwupkt"], }, 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": "xaedhzfepfeaovnnihtrxqxd", - "tags": ["ztsgjacndpflmdrxpoyiudrl"], + "search": "dnwouvihznylvtmxskj", + "tags": ["qvsygtbumsmao"], }, 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": "bdkcpdadsq", - "tags": ["ochojeodrutkwpizbbig"], + "include_smart_links": True, + "search": "wvtdsbehawdpsk", + "tags": ["yj"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 8f79153f..95d5c5bc 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="rem", + tracking_link_id="ut", 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="rem", + tracking_link_id="ut", 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="rem", + tracking_link_id="ut", 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="rem", + tracking_link_id="ut", account="", ) @@ -196,7 +196,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="rem", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="rem", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="rem", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="rem", + tracking_link_id="ut", account="", ) @@ -248,7 +248,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="nulla", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="nulla", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="nulla", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="nulla", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="nulla", account="", ) @@ -312,7 +312,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="aspernatur", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="aspernatur", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="aspernatur", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="aspernatur", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="aspernatur", + tracking_link_id="molestiae", account="", ) @@ -563,7 +563,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="rem", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="rem", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="rem", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="rem", + tracking_link_id="ut", account="", ) @@ -674,7 +674,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="rem", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="rem", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="rem", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="rem", + tracking_link_id="ut", account="", ) @@ -726,7 +726,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="nulla", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="nulla", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="nulla", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="nulla", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="nulla", account="", ) @@ -790,7 +790,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="aspernatur", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="aspernatur", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="aspernatur", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="aspernatur", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="aspernatur", + tracking_link_id="molestiae", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index ca7a7ddc..411716cd 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="enim", + trial_link_id="asperiores", 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="enim", + trial_link_id="asperiores", 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="enim", + trial_link_id="asperiores", 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="enim", + trial_link_id="asperiores", account="", ) @@ -205,7 +205,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="enim", + trial_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="enim", + trial_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="enim", + trial_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="enim", + trial_link_id="asperiores", account="", ) @@ -321,7 +321,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="quo", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="quo", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="quo", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="quo", account="", limit=10, offset=0, @@ -383,7 +383,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="tempore", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="tempore", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="tempore", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="tempore", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="tempore", + trial_link_id="nesciunt", account="", ) @@ -447,7 +447,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="suscipit", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="suscipit", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="suscipit", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="suscipit", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="suscipit", + trial_link_id="vitae", account="", ) @@ -583,7 +583,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="enim", + trial_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="enim", + trial_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="enim", + trial_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="enim", + trial_link_id="asperiores", account="", ) @@ -692,7 +692,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="enim", + trial_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="enim", + trial_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="enim", + trial_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="enim", + trial_link_id="asperiores", account="", ) @@ -808,7 +808,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="quo", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="quo", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="quo", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="quo", account="", limit=10, offset=0, @@ -870,7 +870,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="tempore", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="tempore", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="tempore", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="tempore", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="tempore", + trial_link_id="nesciunt", account="", ) @@ -934,7 +934,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="suscipit", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="suscipit", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="suscipit", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="suscipit", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="suscipit", + trial_link_id="vitae", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 7bbe1ea6..dc940aec 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="kc", + name="zrdnpftdmggmcikmpsvipan", ) 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="kc", + name="zrdnpftdmggmcikmpsvipan", ) 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="kc", + name="zrdnpftdmggmcikmpsvipan", ) 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="kc", + name="zrdnpftdmggmcikmpsvipan", ) @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="kc", + name="zrdnpftdmggmcikmpsvipan", ) 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="kc", + name="zrdnpftdmggmcikmpsvipan", ) 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="kc", + name="zrdnpftdmggmcikmpsvipan", ) 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="kc", + name="zrdnpftdmggmcikmpsvipan", ) @pytest.mark.skip(reason="Mock server tests are disabled") From e222ff85f12c5818c112fa577d63d7199fc30277 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 15 Aug 2026 14:12:39 +0000 Subject: [PATCH 230/249] 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_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- .../api_resources/test_shared_trial_links.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 +-- 16 files changed, 256 insertions(+), 256 deletions(-) diff --git a/.stats.yml b/.stats.yml index fb85fa7b..41a52929 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-26d242bf8bba4ea78c767ab736c06cf502c13ee0ec7423b5719b5c4858e163ea.yml -openapi_spec_hash: 87dff8cf9517213ce7c5a4521c9d7e08 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-613af136f5c7dc6e23778725bbc12bcb401c4c6b9ea23a39f1829a0a78f765c0.yml +openapi_spec_hash: a29028052b286ae5243ff22ec8222806 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index d4d97d07..bf5f5271 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="accusantium", + message_id="omnis", 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="accusantium", + message_id="omnis", 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="accusantium", + message_id="omnis", 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="accusantium", + message_id="omnis", 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="accusantium", + message_id="omnis", 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="accusantium", + message_id="omnis", 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="accusantium", + message_id="omnis", 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="accusantium", + message_id="omnis", 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="accusantium", + message_id="omnis", 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="accusantium", + message_id="omnis", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 49f2ba15..977841df 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="rem", + list_id="omnis", 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="rem", + list_id="omnis", 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="rem", + list_id="omnis", 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="rem", + list_id="omnis", 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="rem", + list_id="omnis", 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="rem", + list_id="omnis", 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="rem", + list_id="omnis", 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="rem", + list_id="omnis", 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="rem", + list_id="omnis", 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="rem", + list_id="omnis", 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="rem", + list_id="omnis", 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="rem", + list_id="omnis", 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="rem", + list_id="omnis", 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="rem", + list_id="omnis", 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="rem", + list_id="omnis", 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="rem", + list_id="omnis", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 818432bd..4785a9cf 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + 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="dignissimos", + post_id="nihil", account="", ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 1d8e7702..4481eb3d 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="consequuntur", + path_story_id="ea", 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="consequuntur", + path_story_id="ea", 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="consequuntur", + path_story_id="ea", 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="consequuntur", + path_story_id="ea", 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="consequuntur", + story_id="ea", 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="consequuntur", + story_id="ea", 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="consequuntur", + story_id="ea", 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="consequuntur", + story_id="ea", 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="consequuntur", + path_story_id="ea", 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="consequuntur", + path_story_id="ea", 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="consequuntur", + path_story_id="ea", 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="consequuntur", + path_story_id="ea", 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="consequuntur", + story_id="ea", 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="consequuntur", + story_id="ea", 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="consequuntur", + story_id="ea", 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="consequuntur", + story_id="ea", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 49b922c5..06538592 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( - "sunt", + "repellendus", ) 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( - "sunt", + "repellendus", ) 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( - "sunt", + "repellendus", ) 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( - "sunt", + "repellendus", ) 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( - "sunt", + "repellendus", ) 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( - "sunt", + "repellendus", ) 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 63ba2ad7..030905d4 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_type="mobile_app", - cookies="aut", + auth_id="consequatur", + auth_type="raw_data", + cookies="fugiat", custom_proxy={ "host": "proxy.example.com", - "password": "6t/6/12YB{l1]8", + "password": "5qOVik++h_^28gV!,M7r", "port": 8080, - "username": "delectus", + "username": "nulla", }, - email="sauer.gideon@example.org", - force_connect=True, - name="nam", - password='P"-cez', - proxy_country="uk", - user_agent="minima", - xbc="perferendis", + email="austin.king@example.net", + force_connect=False, + name="maiores", + password="YT6Par_yUd~>?TF[gp", + proxy_country="us", + user_agent="sunt", + xbc="repellendus", ) 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_type="mobile_app", - cookies="aut", + auth_id="consequatur", + auth_type="raw_data", + cookies="fugiat", custom_proxy={ "host": "proxy.example.com", - "password": "6t/6/12YB{l1]8", + "password": "5qOVik++h_^28gV!,M7r", "port": 8080, - "username": "delectus", + "username": "nulla", }, - email="sauer.gideon@example.org", - force_connect=True, - name="nam", - password='P"-cez', - proxy_country="uk", - user_agent="minima", - xbc="perferendis", + email="austin.king@example.net", + force_connect=False, + name="maiores", + password="YT6Par_yUd~>?TF[gp", + proxy_country="us", + user_agent="sunt", + xbc="repellendus", ) 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 3597ede6..0d035d3b 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="gb", ) 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="gb", ) 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 1a80b275..413a2df6 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="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="onlyfans", + type="likes", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e23..bd4f6161 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index e2d88bd2..1725fdb9 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": ["ulalpvjh"]}, + filter={"tags": ["d"]}, limit=50, name="Instagram", offset=0, @@ -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="doloremque", + smart_link_id="velit", ) 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="doloremque", + smart_link_id="velit", 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="doloremque", + smart_link_id="velit", ) 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="doloremque", + smart_link_id="velit", ) 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="eius", + smart_link_id="molestiae", ) 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="eius", + smart_link_id="molestiae", 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="eius", + smart_link_id="molestiae", ) 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="eius", + smart_link_id="molestiae", ) 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="suscipit", + smart_link_id="ut", ) 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="suscipit", + smart_link_id="ut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="suscipit", + smart_link_id="ut", ) assert response.is_closed is True @@ -358,7 +358,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="suscipit", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="rerum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="rerum", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="rerum", ) assert response.is_closed is True @@ -411,7 +411,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="rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="perferendis", + smart_link_id="harum", ) assert smart_link is None @@ -441,7 +441,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="perferendis", + smart_link_id="harum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="perferendis", + smart_link_id="harum", ) assert response.is_closed is True @@ -464,7 +464,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="perferendis", + smart_link_id="harum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="et", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="et", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="et", ) assert response.is_closed is True @@ -516,7 +516,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="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["ulalpvjh"]}, + filter={"tags": ["d"]}, limit=50, name="Instagram", offset=0, @@ -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="doloremque", + smart_link_id="velit", ) 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="doloremque", + smart_link_id="velit", 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="doloremque", + smart_link_id="velit", ) 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="doloremque", + smart_link_id="velit", ) 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="eius", + smart_link_id="molestiae", ) 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="eius", + smart_link_id="molestiae", 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="eius", + smart_link_id="molestiae", ) 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="eius", + smart_link_id="molestiae", ) 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="suscipit", + smart_link_id="ut", ) 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="suscipit", + smart_link_id="ut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="suscipit", + smart_link_id="ut", ) assert response.is_closed is True @@ -871,7 +871,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="suscipit", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="rerum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="rerum", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="rerum", ) assert response.is_closed is True @@ -924,7 +924,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="rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="perferendis", + smart_link_id="harum", ) assert smart_link is None @@ -954,7 +954,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="perferendis", + smart_link_id="harum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="perferendis", + smart_link_id="harum", ) assert response.is_closed is True @@ -977,7 +977,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="perferendis", + smart_link_id="harum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="et", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="et", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="et", ) assert response.is_closed is True @@ -1029,7 +1029,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="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 a866bb38..7cf6717d 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": "icplsmfctmfnrttw", - "tags": ["f"], + "search": "aluxp", + "tags": ["btqpbzmafkbvtsww"], }, 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": "mrooljactvjimkjrvfk", - "tags": ["fhyxjmzfkeudflwupkt"], + "search": "ebsydpxhqr", + "tags": ["ttthpntd"], }, 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": "dnwouvihznylvtmxskj", - "tags": ["qvsygtbumsmao"], + "search": "k", + "tags": ["tr"], }, 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": "wvtdsbehawdpsk", - "tags": ["yj"], + "search": "kwpihf", + "tags": ["aijeizvsztsojhxpmejhdvv"], }, 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": "icplsmfctmfnrttw", - "tags": ["f"], + "search": "aluxp", + "tags": ["btqpbzmafkbvtsww"], }, 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": "mrooljactvjimkjrvfk", - "tags": ["fhyxjmzfkeudflwupkt"], + "search": "ebsydpxhqr", + "tags": ["ttthpntd"], }, 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": "dnwouvihznylvtmxskj", - "tags": ["qvsygtbumsmao"], + "search": "k", + "tags": ["tr"], }, 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": "wvtdsbehawdpsk", - "tags": ["yj"], + "search": "kwpihf", + "tags": ["aijeizvsztsojhxpmejhdvv"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 95d5c5bc..320b8e2d 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="ut", + tracking_link_id="reiciendis", 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="ut", + tracking_link_id="reiciendis", 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="ut", + tracking_link_id="reiciendis", 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="ut", + tracking_link_id="reiciendis", account="", ) @@ -196,7 +196,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="ut", + tracking_link_id="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="ut", + tracking_link_id="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="ut", + tracking_link_id="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="ut", + tracking_link_id="reiciendis", account="", ) @@ -248,7 +248,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="nulla", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="nulla", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="nulla", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="nulla", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="nulla", + tracking_link_id="veniam", account="", ) @@ -312,7 +312,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="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="dolorem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="dolorem", account="", ) @@ -563,7 +563,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="ut", + tracking_link_id="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="ut", + tracking_link_id="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="ut", + tracking_link_id="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="ut", + tracking_link_id="reiciendis", account="", ) @@ -674,7 +674,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="ut", + tracking_link_id="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="ut", + tracking_link_id="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="ut", + tracking_link_id="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="ut", + tracking_link_id="reiciendis", account="", ) @@ -726,7 +726,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="nulla", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="nulla", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="nulla", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="nulla", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="nulla", + tracking_link_id="veniam", account="", ) @@ -790,7 +790,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="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="dolorem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="dolorem", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 411716cd..4392db9a 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="asperiores", + trial_link_id="a", 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="asperiores", + trial_link_id="a", 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="asperiores", + trial_link_id="a", 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="asperiores", + trial_link_id="a", account="", ) @@ -205,7 +205,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="asperiores", + trial_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="asperiores", + trial_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="asperiores", + trial_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="asperiores", + trial_link_id="a", account="", ) @@ -321,7 +321,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="quo", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="quo", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="quo", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="quo", + trial_link_id="illum", account="", limit=10, offset=0, @@ -383,7 +383,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="nesciunt", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="nesciunt", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="nesciunt", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="nesciunt", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="nesciunt", + trial_link_id="necessitatibus", account="", ) @@ -447,7 +447,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="vitae", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="vitae", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="vitae", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="vitae", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="vitae", + trial_link_id="voluptatem", account="", ) @@ -583,7 +583,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="asperiores", + trial_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="asperiores", + trial_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="asperiores", + trial_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="asperiores", + trial_link_id="a", account="", ) @@ -692,7 +692,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="asperiores", + trial_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="asperiores", + trial_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="asperiores", + trial_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="asperiores", + trial_link_id="a", account="", ) @@ -808,7 +808,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="quo", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="quo", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="quo", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="quo", + trial_link_id="illum", account="", limit=10, offset=0, @@ -870,7 +870,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="nesciunt", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="nesciunt", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="nesciunt", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="nesciunt", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="nesciunt", + trial_link_id="necessitatibus", account="", ) @@ -934,7 +934,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="vitae", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="vitae", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="vitae", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="vitae", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="vitae", + trial_link_id="voluptatem", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index dc940aec..90e4ff63 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="zrdnpftdmggmcikmpsvipan", + name="qofnodruutfxhcz", ) 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="zrdnpftdmggmcikmpsvipan", + name="qofnodruutfxhcz", ) 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="zrdnpftdmggmcikmpsvipan", + name="qofnodruutfxhcz", ) 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="zrdnpftdmggmcikmpsvipan", + name="qofnodruutfxhcz", ) @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="zrdnpftdmggmcikmpsvipan", + name="qofnodruutfxhcz", ) 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="zrdnpftdmggmcikmpsvipan", + name="qofnodruutfxhcz", ) 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="zrdnpftdmggmcikmpsvipan", + name="qofnodruutfxhcz", ) 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="zrdnpftdmggmcikmpsvipan", + name="qofnodruutfxhcz", ) @pytest.mark.skip(reason="Mock server tests are disabled") From b073e8f89f72d1960c9250a5b4b898401ba68216 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 16 Aug 2026 03:12:41 +0000 Subject: [PATCH 231/249] 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_smart_links.py | 84 +++++++++--------- 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, 264 insertions(+), 264 deletions(-) diff --git a/.stats.yml b/.stats.yml index 41a52929..48394c7e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-613af136f5c7dc6e23778725bbc12bcb401c4c6b9ea23a39f1829a0a78f765c0.yml -openapi_spec_hash: a29028052b286ae5243ff22ec8222806 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9211f591b9039824ae8fe2671723b7c1d92e0fba48b5ccc1609904535787fee2.yml +openapi_spec_hash: 4f46a9fe89ae6b600a9f629b5fd06b85 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index bf5f5271..fdd373c5 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="omnis", + message_id="labore", 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="omnis", + message_id="labore", 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="omnis", + message_id="labore", 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="omnis", + message_id="labore", 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="omnis", + message_id="labore", 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="omnis", + message_id="labore", 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="omnis", + message_id="labore", 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="omnis", + message_id="labore", 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="omnis", + message_id="labore", 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="omnis", + message_id="labore", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 977841df..c84c04ec 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="omnis", + list_id="quae", 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="omnis", + list_id="quae", 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="omnis", + list_id="quae", 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="omnis", + list_id="quae", 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="omnis", + list_id="quae", 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="omnis", + list_id="quae", 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="omnis", + list_id="quae", 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="omnis", + list_id="quae", 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="omnis", + list_id="quae", 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="omnis", + list_id="quae", 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="omnis", + list_id="quae", 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="omnis", + list_id="quae", 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="omnis", + list_id="quae", 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="omnis", + list_id="quae", 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="omnis", + list_id="quae", 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="omnis", + list_id="quae", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 4785a9cf..1e3a045e 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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="inventore", 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 444937ba..aa735c97 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 2ced6cb5..9c80483e 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 544df889..9664075f 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 4481eb3d..c0fbb81d 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="ea", + path_story_id="accusantium", 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="ea", + path_story_id="accusantium", 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="ea", + path_story_id="accusantium", 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="ea", + path_story_id="accusantium", 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="ea", + story_id="accusantium", 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="ea", + story_id="accusantium", 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="ea", + story_id="accusantium", 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="ea", + story_id="accusantium", 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="ea", + path_story_id="accusantium", 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="ea", + path_story_id="accusantium", 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="ea", + path_story_id="accusantium", 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="ea", + path_story_id="accusantium", 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="ea", + story_id="accusantium", 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="ea", + story_id="accusantium", 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="ea", + story_id="accusantium", 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="ea", + story_id="accusantium", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 06538592..b456ddec 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( - "repellendus", + "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( - "repellendus", + "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( - "repellendus", + "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( - "repellendus", + "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( - "repellendus", + "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( - "repellendus", + "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 030905d4..f1092eb1 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="consequatur", - auth_type="raw_data", - cookies="fugiat", + auth_id="cumque", + auth_type="mobile_app", + cookies="dolor", custom_proxy={ "host": "proxy.example.com", - "password": "5qOVik++h_^28gV!,M7r", + "password": "d*vLI0>#h9", "port": 8080, - "username": "nulla", + "username": "et", }, - email="austin.king@example.net", - force_connect=False, - name="maiores", - password="YT6Par_yUd~>?TF[gp", - proxy_country="us", - user_agent="sunt", - xbc="repellendus", + email="toy.laron@example.net", + force_connect=True, + name="consequuntur", + password='(Ivq:7|x"Gf', + proxy_country="uk", + user_agent="fugit", + xbc="voluptate", ) 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="consequatur", - auth_type="raw_data", - cookies="fugiat", + auth_id="cumque", + auth_type="mobile_app", + cookies="dolor", custom_proxy={ "host": "proxy.example.com", - "password": "5qOVik++h_^28gV!,M7r", + "password": "d*vLI0>#h9", "port": 8080, - "username": "nulla", + "username": "et", }, - email="austin.king@example.net", - force_connect=False, - name="maiores", - password="YT6Par_yUd~>?TF[gp", - proxy_country="us", - user_agent="sunt", - xbc="repellendus", + email="toy.laron@example.net", + force_connect=True, + name="consequuntur", + password='(Ivq:7|x"Gf', + proxy_country="uk", + user_agent="fugit", + xbc="voluptate", ) 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 0d035d3b..9249f386 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="gb", + 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="gb", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 1725fdb9..6c368921 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": ["d"]}, + filter={"tags": ["okykacneryoekoaps"]}, limit=50, name="Instagram", offset=0, @@ -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="velit", + smart_link_id="laboriosam", ) 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="velit", + smart_link_id="laboriosam", 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="velit", + smart_link_id="laboriosam", ) 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="velit", + smart_link_id="laboriosam", ) 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="ut", + 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="ut", + smart_link_id="est", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="ut", + smart_link_id="est", ) assert response.is_closed is True @@ -358,7 +358,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="ut", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="rerum", + smart_link_id="nulla", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="rerum", + smart_link_id="nulla", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="rerum", + smart_link_id="nulla", ) assert response.is_closed is True @@ -411,7 +411,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="rerum", + smart_link_id="nulla", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="harum", + smart_link_id="numquam", ) assert smart_link is None @@ -441,7 +441,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="harum", + smart_link_id="numquam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="harum", + smart_link_id="numquam", ) assert response.is_closed is True @@ -464,7 +464,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="harum", + smart_link_id="numquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="quisquam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="quisquam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="quisquam", ) assert response.is_closed is True @@ -516,7 +516,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="quisquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["d"]}, + filter={"tags": ["okykacneryoekoaps"]}, limit=50, name="Instagram", offset=0, @@ -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="velit", + smart_link_id="laboriosam", ) 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="velit", + smart_link_id="laboriosam", 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="velit", + smart_link_id="laboriosam", ) 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="velit", + smart_link_id="laboriosam", ) 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="ut", + 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="ut", + smart_link_id="est", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="ut", + smart_link_id="est", ) assert response.is_closed is True @@ -871,7 +871,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="ut", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="rerum", + smart_link_id="nulla", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="rerum", + smart_link_id="nulla", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="rerum", + smart_link_id="nulla", ) assert response.is_closed is True @@ -924,7 +924,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="rerum", + smart_link_id="nulla", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="harum", + smart_link_id="numquam", ) assert smart_link is None @@ -954,7 +954,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="harum", + smart_link_id="numquam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="harum", + smart_link_id="numquam", ) assert response.is_closed is True @@ -977,7 +977,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="harum", + smart_link_id="numquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="quisquam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="quisquam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="quisquam", ) assert response.is_closed is True @@ -1029,7 +1029,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="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_stored.py b/tests/api_resources/test_stored.py index 7cf6717d..1987f2e6 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": "aluxp", - "tags": ["btqpbzmafkbvtsww"], + "search": "fgnrjidfnkcaqskvzaya", + "tags": ["xsor"], }, 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": "ebsydpxhqr", - "tags": ["ttthpntd"], + "search": "jszczeyyd", + "tags": ["bmyqsuaqorggnqzfkvmj"], }, 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": "k", - "tags": ["tr"], + "include_smart_links": False, + "search": "atohswlhx", + "tags": ["khvydisoyzgqybffhnunjtrf"], }, 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": "kwpihf", - "tags": ["aijeizvsztsojhxpmejhdvv"], + "include_smart_links": False, + "search": "gdodefsdsydkwkmkzmhxf", + "tags": ["dbinnfhpsgzfutg"], }, 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": "aluxp", - "tags": ["btqpbzmafkbvtsww"], + "search": "fgnrjidfnkcaqskvzaya", + "tags": ["xsor"], }, 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": "ebsydpxhqr", - "tags": ["ttthpntd"], + "search": "jszczeyyd", + "tags": ["bmyqsuaqorggnqzfkvmj"], }, 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": "k", - "tags": ["tr"], + "include_smart_links": False, + "search": "atohswlhx", + "tags": ["khvydisoyzgqybffhnunjtrf"], }, 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": "kwpihf", - "tags": ["aijeizvsztsojhxpmejhdvv"], + "include_smart_links": False, + "search": "gdodefsdsydkwkmkzmhxf", + "tags": ["dbinnfhpsgzfutg"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 320b8e2d..83c121a2 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="reiciendis", + tracking_link_id="ipsam", 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="reiciendis", + tracking_link_id="ipsam", 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="reiciendis", + tracking_link_id="ipsam", 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="reiciendis", + tracking_link_id="ipsam", account="", ) @@ -196,7 +196,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="reiciendis", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="reiciendis", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="reiciendis", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="reiciendis", + tracking_link_id="ipsam", account="", ) @@ -248,7 +248,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="veniam", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="veniam", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="veniam", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="veniam", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="veniam", + tracking_link_id="non", account="", ) @@ -312,7 +312,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="dolorem", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="dolorem", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="dolorem", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="dolorem", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="dolorem", + tracking_link_id="quasi", account="", ) @@ -563,7 +563,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="reiciendis", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="reiciendis", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="reiciendis", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="reiciendis", + tracking_link_id="ipsam", account="", ) @@ -674,7 +674,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="reiciendis", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="reiciendis", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="reiciendis", + tracking_link_id="ipsam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="reiciendis", + tracking_link_id="ipsam", account="", ) @@ -726,7 +726,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="veniam", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="veniam", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="veniam", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="veniam", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="veniam", + tracking_link_id="non", account="", ) @@ -790,7 +790,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="dolorem", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="dolorem", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="dolorem", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="dolorem", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="dolorem", + tracking_link_id="quasi", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 4392db9a..60525c23 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="a", + 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="a", + 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="a", + 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="a", + trial_link_id="at", account="", ) @@ -205,7 +205,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="a", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="a", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="a", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="a", + trial_link_id="at", account="", ) @@ -321,7 +321,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="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="ut", account="", limit=10, offset=0, @@ -383,7 +383,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="iste", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="iste", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="iste", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="iste", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="iste", account="", ) @@ -447,7 +447,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="ab", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="ab", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="ab", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="ab", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="ab", account="", ) @@ -583,7 +583,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="a", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="a", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="a", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="a", + trial_link_id="at", account="", ) @@ -692,7 +692,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="a", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="a", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="a", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="a", + trial_link_id="at", account="", ) @@ -808,7 +808,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="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="ut", account="", limit=10, offset=0, @@ -870,7 +870,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="iste", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="iste", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="iste", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="iste", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="iste", account="", ) @@ -934,7 +934,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="ab", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="ab", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="ab", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="ab", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="ab", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 90e4ff63..99638817 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="qofnodruutfxhcz", + name="tpepavyd", ) 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="qofnodruutfxhcz", + name="tpepavyd", ) 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="qofnodruutfxhcz", + name="tpepavyd", ) 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="qofnodruutfxhcz", + name="tpepavyd", ) @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="qofnodruutfxhcz", + name="tpepavyd", ) 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="qofnodruutfxhcz", + name="tpepavyd", ) 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="qofnodruutfxhcz", + name="tpepavyd", ) 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="qofnodruutfxhcz", + name="tpepavyd", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 96bef37d1dafec25f6edaa283b070041a567ab46 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 17 Aug 2026 22:12:38 +0000 Subject: [PATCH 232/249] 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 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 84 +++++++++--------- 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, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index 48394c7e..612bd15d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9211f591b9039824ae8fe2671723b7c1d92e0fba48b5ccc1609904535787fee2.yml -openapi_spec_hash: 4f46a9fe89ae6b600a9f629b5fd06b85 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7e3e550412c99358098687ea8efec491c92578ed5817d0a81b97aa95b4650140.yml +openapi_spec_hash: 3518dea1c76095b666e7e8f04ef0dc05 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index fdd373c5..339d49e0 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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="labore", + 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 c84c04ec..67bb6393 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="quae", + list_id="illum", 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="quae", + list_id="illum", 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="quae", + list_id="illum", 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="quae", + list_id="illum", 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="quae", + list_id="illum", 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="quae", + list_id="illum", 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="quae", + list_id="illum", 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="quae", + list_id="illum", 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="quae", + list_id="illum", 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="quae", + list_id="illum", 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="quae", + list_id="illum", 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="quae", + list_id="illum", 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="quae", + list_id="illum", 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="quae", + list_id="illum", 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="quae", + list_id="illum", 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="quae", + list_id="illum", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 1e3a045e..8c14c542 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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="inventore", + 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 aa735c97..a62ccbd3 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 9c80483e..2ced6cb5 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 c0fbb81d..2dcf476c 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="accusantium", + path_story_id="expedita", 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="accusantium", + path_story_id="expedita", 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="accusantium", + path_story_id="expedita", 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="accusantium", + path_story_id="expedita", 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="accusantium", + story_id="expedita", 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="accusantium", + story_id="expedita", 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="accusantium", + story_id="expedita", 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="accusantium", + story_id="expedita", 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="accusantium", + path_story_id="expedita", 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="accusantium", + path_story_id="expedita", 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="accusantium", + path_story_id="expedita", 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="accusantium", + path_story_id="expedita", 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="accusantium", + story_id="expedita", 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="accusantium", + story_id="expedita", 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="accusantium", + story_id="expedita", 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="accusantium", + story_id="expedita", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index b456ddec..04c760b7 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", + "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( - "et", + "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( - "et", + "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( - "et", + "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( - "et", + "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( - "et", + "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 f1092eb1..934d774f 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="mobile_app", - cookies="dolor", + auth_id="sit", + auth_type="raw_data", + cookies="odit", custom_proxy={ "host": "proxy.example.com", - "password": "d*vLI0>#h9", + "password": "h4T;>=FH", "port": 8080, - "username": "et", + "username": "ea", }, - email="toy.laron@example.net", + email="watson.rath@example.com", force_connect=True, - name="consequuntur", - password='(Ivq:7|x"Gf', + name="at", + password="~_)9[f", proxy_country="uk", - user_agent="fugit", - xbc="voluptate", + user_agent="nam", + 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="cumque", - auth_type="mobile_app", - cookies="dolor", + auth_id="sit", + auth_type="raw_data", + cookies="odit", custom_proxy={ "host": "proxy.example.com", - "password": "d*vLI0>#h9", + "password": "h4T;>=FH", "port": 8080, - "username": "et", + "username": "ea", }, - email="toy.laron@example.net", + email="watson.rath@example.com", force_connect=True, - name="consequuntur", - password='(Ivq:7|x"Gf', + name="at", + password="~_)9[f", proxy_country="uk", - user_agent="fugit", - xbc="voluptate", + user_agent="nam", + xbc="ipsam", ) 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 9249f386..3597ede6 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 413a2df6..280e3de9 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="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="likes", + 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 bd4f6161..65694e23 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 6c368921..c8f508bd 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": ["okykacneryoekoaps"]}, + filter={"tags": ["hg"]}, limit=50, name="Instagram", offset=0, @@ -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="laboriosam", + smart_link_id="provident", ) 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="laboriosam", + smart_link_id="provident", 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="laboriosam", + smart_link_id="provident", ) 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="laboriosam", + smart_link_id="provident", ) 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="molestiae", + smart_link_id="aut", ) 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="molestiae", + smart_link_id="aut", 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="molestiae", + smart_link_id="aut", ) 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="molestiae", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="nulla", + smart_link_id="libero", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="nulla", + smart_link_id="libero", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="nulla", + smart_link_id="libero", ) assert response.is_closed is True @@ -411,7 +411,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="nulla", + smart_link_id="libero", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="numquam", + smart_link_id="nobis", ) assert smart_link is None @@ -441,7 +441,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="numquam", + smart_link_id="nobis", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="numquam", + smart_link_id="nobis", ) assert response.is_closed is True @@ -464,7 +464,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="numquam", + smart_link_id="nobis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="quisquam", + smart_link_id="minima", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="quisquam", + smart_link_id="minima", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="quisquam", + smart_link_id="minima", ) assert response.is_closed is True @@ -516,7 +516,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="quisquam", + smart_link_id="minima", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["okykacneryoekoaps"]}, + filter={"tags": ["hg"]}, limit=50, name="Instagram", offset=0, @@ -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="laboriosam", + smart_link_id="provident", ) 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="laboriosam", + smart_link_id="provident", 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="laboriosam", + smart_link_id="provident", ) 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="laboriosam", + smart_link_id="provident", ) 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="molestiae", + smart_link_id="aut", ) 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="molestiae", + smart_link_id="aut", 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="molestiae", + smart_link_id="aut", ) 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="molestiae", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="nulla", + smart_link_id="libero", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="nulla", + smart_link_id="libero", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="nulla", + smart_link_id="libero", ) assert response.is_closed is True @@ -924,7 +924,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="nulla", + smart_link_id="libero", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="numquam", + smart_link_id="nobis", ) assert smart_link is None @@ -954,7 +954,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="numquam", + smart_link_id="nobis", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="numquam", + smart_link_id="nobis", ) assert response.is_closed is True @@ -977,7 +977,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="numquam", + smart_link_id="nobis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="quisquam", + smart_link_id="minima", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="quisquam", + smart_link_id="minima", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="quisquam", + smart_link_id="minima", ) assert response.is_closed is True @@ -1029,7 +1029,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="quisquam", + smart_link_id="minima", ) 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 1987f2e6..a9f1ac41 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": "fgnrjidfnkcaqskvzaya", - "tags": ["xsor"], + "search": "kiptnfuyesvwd", + "tags": ["rnwvoztowhqduxw"], }, 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": "jszczeyyd", - "tags": ["bmyqsuaqorggnqzfkvmj"], + "search": "rst", + "tags": ["cmjlluoybzgmljnbwkqyktc"], }, 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": "atohswlhx", - "tags": ["khvydisoyzgqybffhnunjtrf"], + "include_smart_links": True, + "search": "ecohi", + "tags": ["htqphhdqlxknllut"], }, 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": "gdodefsdsydkwkmkzmhxf", - "tags": ["dbinnfhpsgzfutg"], + "search": "rquvmbmnvxwphlenxicolj", + "tags": ["msgkkdnmxi"], }, 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": "fgnrjidfnkcaqskvzaya", - "tags": ["xsor"], + "search": "kiptnfuyesvwd", + "tags": ["rnwvoztowhqduxw"], }, 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": "jszczeyyd", - "tags": ["bmyqsuaqorggnqzfkvmj"], + "search": "rst", + "tags": ["cmjlluoybzgmljnbwkqyktc"], }, 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": "atohswlhx", - "tags": ["khvydisoyzgqybffhnunjtrf"], + "include_smart_links": True, + "search": "ecohi", + "tags": ["htqphhdqlxknllut"], }, 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": "gdodefsdsydkwkmkzmhxf", - "tags": ["dbinnfhpsgzfutg"], + "search": "rquvmbmnvxwphlenxicolj", + "tags": ["msgkkdnmxi"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 83c121a2..c7a4a9ab 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="ipsam", + tracking_link_id="saepe", 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="ipsam", + tracking_link_id="saepe", 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="ipsam", + tracking_link_id="saepe", 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="ipsam", + tracking_link_id="saepe", account="", ) @@ -196,7 +196,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="ipsam", + tracking_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="ipsam", + tracking_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="ipsam", + tracking_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="ipsam", + tracking_link_id="saepe", account="", ) @@ -248,7 +248,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="quia", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="quia", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="quia", account="", ) @@ -312,7 +312,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="quasi", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="quasi", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="quasi", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="quasi", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="quasi", + tracking_link_id="blanditiis", account="", ) @@ -563,7 +563,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="ipsam", + tracking_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="ipsam", + tracking_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="ipsam", + tracking_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="ipsam", + tracking_link_id="saepe", account="", ) @@ -674,7 +674,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="ipsam", + tracking_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="ipsam", + tracking_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="ipsam", + tracking_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="ipsam", + tracking_link_id="saepe", account="", ) @@ -726,7 +726,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="quia", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="quia", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="quia", account="", ) @@ -790,7 +790,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="quasi", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="quasi", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="quasi", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="quasi", + tracking_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="quasi", + tracking_link_id="blanditiis", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 60525c23..cc74f96e 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="beatae", 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="beatae", 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="beatae", 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="beatae", account="", ) @@ -205,7 +205,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="beatae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="beatae", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="beatae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="beatae", account="", ) @@ -321,7 +321,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="eius", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="eius", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="eius", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="eius", account="", limit=10, offset=0, @@ -383,7 +383,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="iste", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="iste", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="iste", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="iste", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="iste", + trial_link_id="voluptatum", account="", ) @@ -447,7 +447,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="ab", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="ab", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="ab", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="ab", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="ab", + trial_link_id="rerum", account="", ) @@ -583,7 +583,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="beatae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="beatae", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="beatae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="beatae", account="", ) @@ -692,7 +692,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="beatae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="beatae", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="beatae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="beatae", account="", ) @@ -808,7 +808,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="eius", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="eius", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="eius", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="eius", account="", limit=10, offset=0, @@ -870,7 +870,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="iste", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="iste", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="iste", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="iste", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="iste", + trial_link_id="voluptatum", account="", ) @@ -934,7 +934,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="ab", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="ab", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="ab", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="ab", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="ab", + trial_link_id="rerum", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 99638817..546b7bb6 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="tpepavyd", + name="cuatcmrijdfxdezfermnbfpic", ) 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="tpepavyd", + name="cuatcmrijdfxdezfermnbfpic", ) 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="tpepavyd", + name="cuatcmrijdfxdezfermnbfpic", ) 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="tpepavyd", + name="cuatcmrijdfxdezfermnbfpic", ) @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="tpepavyd", + name="cuatcmrijdfxdezfermnbfpic", ) 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="tpepavyd", + name="cuatcmrijdfxdezfermnbfpic", ) 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="tpepavyd", + name="cuatcmrijdfxdezfermnbfpic", ) 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="tpepavyd", + name="cuatcmrijdfxdezfermnbfpic", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 8d7342b6d4076c2087a926f7f79b776036826b85 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 17 Aug 2026 23:12:40 +0000 Subject: [PATCH 233/249] 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_profiles.py | 4 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 40 +++---- tests/api_resources/test_tracking_links.py | 76 ++++++------- tests/api_resources/test_trial_links.py | 88 +++++++-------- tests/api_resources/test_user_lists.py | 16 +-- 18 files changed, 268 insertions(+), 268 deletions(-) diff --git a/.stats.yml b/.stats.yml index 612bd15d..aed49705 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7e3e550412c99358098687ea8efec491c92578ed5817d0a81b97aa95b4650140.yml -openapi_spec_hash: 3518dea1c76095b666e7e8f04ef0dc05 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d405ec53846be49bd1a6484b0af2fb42e46b3d1f700eba30d689da5cac3ce71c.yml +openapi_spec_hash: 106c4b2587de1b257da1e8773985ea43 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 339d49e0..7506a921 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="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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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="vel", + 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 67bb6393..8cc3f45e 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="illum", + list_id="in", 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="illum", + list_id="in", 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="illum", + list_id="in", 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="illum", + list_id="in", 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="illum", + list_id="in", 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="illum", + list_id="in", 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="illum", + list_id="in", 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="illum", + list_id="in", 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="illum", + list_id="in", 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="illum", + list_id="in", 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="illum", + list_id="in", 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="illum", + list_id="in", 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="illum", + list_id="in", 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="illum", + list_id="in", 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="illum", + list_id="in", 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="illum", + list_id="in", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 8c14c542..accff03c 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", 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 2ced6cb5..fc7b1635 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 9664075f..544df889 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 2dcf476c..5b3b61a4 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="expedita", + 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="expedita", + 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="expedita", + 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="expedita", + 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="expedita", + 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="expedita", + 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="expedita", + 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="expedita", + 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="expedita", + 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="expedita", + 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="expedita", + 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="expedita", + 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="expedita", + 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="expedita", + 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="expedita", + 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="expedita", + story_id="totam", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 04c760b7..06538592 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", + "repellendus", ) 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", + "repellendus", ) 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", + "repellendus", ) 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", + "repellendus", ) 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", + "repellendus", ) 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", + "repellendus", ) 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 934d774f..c61ed26e 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="sit", + auth_id="quasi", auth_type="raw_data", - cookies="odit", + cookies="omnis", custom_proxy={ "host": "proxy.example.com", - "password": "h4T;>=FH", + "password": "o(Mx/i*", "port": 8080, - "username": "ea", + "username": "qui", }, - email="watson.rath@example.com", + email="monserrat54@example.com", force_connect=True, - name="at", - password="~_)9[f", - proxy_country="uk", - user_agent="nam", - xbc="ipsam", + name="illo", + password="}xSuFB", + proxy_country="us", + user_agent="et", + xbc="aspernatur", ) 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="sit", + auth_id="quasi", auth_type="raw_data", - cookies="odit", + cookies="omnis", custom_proxy={ "host": "proxy.example.com", - "password": "h4T;>=FH", + "password": "o(Mx/i*", "port": 8080, - "username": "ea", + "username": "qui", }, - email="watson.rath@example.com", + email="monserrat54@example.com", force_connect=True, - name="at", - password="~_)9[f", - proxy_country="uk", - user_agent="nam", - xbc="ipsam", + name="illo", + password="}xSuFB", + proxy_country="us", + user_agent="et", + xbc="aspernatur", ) 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 3597ede6..9249f386 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 280e3de9..1a80b275 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="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="comments", + type="onlyfans", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e23..bd4f6161 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index c8f508bd..8eaf4aef 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": ["hg"]}, + filter={"tags": ["acxqmgykwfnqzuhboiqetxsj"]}, limit=50, name="Instagram", offset=0, @@ -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="provident", + smart_link_id="nam", ) 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="provident", + smart_link_id="nam", 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="provident", + smart_link_id="nam", ) 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="provident", + smart_link_id="nam", ) 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="aut", + smart_link_id="et", ) 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="aut", + smart_link_id="et", 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="aut", + smart_link_id="et", ) 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="aut", + smart_link_id="et", ) 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="est", + smart_link_id="qui", ) 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="est", + smart_link_id="qui", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="qui", ) assert response.is_closed is True @@ -358,7 +358,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="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="libero", + smart_link_id="ipsam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="libero", + smart_link_id="ipsam", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="libero", + smart_link_id="ipsam", ) assert response.is_closed is True @@ -411,7 +411,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="libero", + smart_link_id="ipsam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="nobis", + smart_link_id="aut", ) assert smart_link is None @@ -441,7 +441,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="nobis", + smart_link_id="aut", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="nobis", + smart_link_id="aut", ) assert response.is_closed is True @@ -464,7 +464,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="nobis", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="minima", + smart_link_id="ut", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="minima", + smart_link_id="ut", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="minima", + smart_link_id="ut", ) assert response.is_closed is True @@ -516,7 +516,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="minima", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["hg"]}, + filter={"tags": ["acxqmgykwfnqzuhboiqetxsj"]}, limit=50, name="Instagram", offset=0, @@ -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="provident", + smart_link_id="nam", ) 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="provident", + smart_link_id="nam", 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="provident", + smart_link_id="nam", ) 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="provident", + smart_link_id="nam", ) 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="aut", + smart_link_id="et", ) 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="aut", + smart_link_id="et", 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="aut", + smart_link_id="et", ) 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="aut", + smart_link_id="et", ) 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="qui", ) 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="qui", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="qui", ) assert response.is_closed is True @@ -871,7 +871,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="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="libero", + smart_link_id="ipsam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="libero", + smart_link_id="ipsam", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="libero", + smart_link_id="ipsam", ) assert response.is_closed is True @@ -924,7 +924,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="libero", + smart_link_id="ipsam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="nobis", + smart_link_id="aut", ) assert smart_link is None @@ -954,7 +954,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="nobis", + smart_link_id="aut", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="nobis", + smart_link_id="aut", ) assert response.is_closed is True @@ -977,7 +977,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="nobis", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="minima", + smart_link_id="ut", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="minima", + smart_link_id="ut", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="minima", + smart_link_id="ut", ) assert response.is_closed is True @@ -1029,7 +1029,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="minima", + 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 a9f1ac41..5ff258af 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": "kiptnfuyesvwd", - "tags": ["rnwvoztowhqduxw"], + "search": "zelprabexgxprovprlmvtkn", + "tags": ["i"], }, 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": "rst", - "tags": ["cmjlluoybzgmljnbwkqyktc"], + "search": "rjmtwooeymd", + "tags": ["fzof"], }, 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": "ecohi", - "tags": ["htqphhdqlxknllut"], + "include_smart_links": False, + "search": "joxmsjqaoemfryahenkwa", + "tags": ["kbedgqugpoiqwmzh"], }, 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": "rquvmbmnvxwphlenxicolj", - "tags": ["msgkkdnmxi"], + "include_smart_links": True, + "search": "zvdsepuaic", + "tags": ["hyutmekgocphlnqnceysw"], }, 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": "kiptnfuyesvwd", - "tags": ["rnwvoztowhqduxw"], + "search": "zelprabexgxprovprlmvtkn", + "tags": ["i"], }, 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": "rst", - "tags": ["cmjlluoybzgmljnbwkqyktc"], + "search": "rjmtwooeymd", + "tags": ["fzof"], }, 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": "ecohi", - "tags": ["htqphhdqlxknllut"], + "include_smart_links": False, + "search": "joxmsjqaoemfryahenkwa", + "tags": ["kbedgqugpoiqwmzh"], }, 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": "rquvmbmnvxwphlenxicolj", - "tags": ["msgkkdnmxi"], + "include_smart_links": True, + "search": "zvdsepuaic", + "tags": ["hyutmekgocphlnqnceysw"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index c7a4a9ab..e3f727fe 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="saepe", + tracking_link_id="harum", 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="saepe", + tracking_link_id="harum", 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="saepe", + tracking_link_id="harum", 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="saepe", + tracking_link_id="harum", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="saepe", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="saepe", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="saepe", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="saepe", + tracking_link_id="harum", account="", ) @@ -248,7 +248,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="sit", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="sit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="sit", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="sit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="sit", account="", ) @@ -312,7 +312,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="blanditiis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="blanditiis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="blanditiis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="blanditiis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="blanditiis", + tracking_link_id="qui", account="", ) @@ -563,7 +563,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="saepe", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="saepe", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="saepe", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="saepe", + tracking_link_id="harum", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="saepe", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="saepe", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="saepe", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="saepe", + tracking_link_id="harum", account="", ) @@ -726,7 +726,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="sit", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="sit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="sit", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="sit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="sit", account="", ) @@ -790,7 +790,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="blanditiis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="blanditiis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="blanditiis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="blanditiis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="blanditiis", + tracking_link_id="qui", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index cc74f96e..e8ef554e 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="beatae", + 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="beatae", + 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="beatae", + 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="beatae", + trial_link_id="culpa", account="", ) @@ -205,7 +205,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="beatae", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="beatae", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="beatae", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="beatae", + trial_link_id="culpa", account="", ) @@ -321,7 +321,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="eius", + trial_link_id="eaque", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="eius", + trial_link_id="eaque", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="eius", + trial_link_id="eaque", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="eius", + trial_link_id="eaque", account="", limit=10, offset=0, @@ -383,7 +383,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="et", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="et", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="et", account="", ) @@ -447,7 +447,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="rerum", + trial_link_id="quos", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="rerum", + trial_link_id="quos", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="rerum", + trial_link_id="quos", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="rerum", + trial_link_id="quos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="rerum", + trial_link_id="quos", account="", ) @@ -583,7 +583,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="beatae", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="beatae", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="beatae", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="beatae", + trial_link_id="culpa", account="", ) @@ -692,7 +692,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="beatae", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="beatae", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="beatae", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="beatae", + trial_link_id="culpa", account="", ) @@ -808,7 +808,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="eius", + trial_link_id="eaque", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="eius", + trial_link_id="eaque", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="eius", + trial_link_id="eaque", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="eius", + trial_link_id="eaque", account="", limit=10, offset=0, @@ -870,7 +870,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="et", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="et", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="et", account="", ) @@ -934,7 +934,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="rerum", + trial_link_id="quos", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="rerum", + trial_link_id="quos", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="rerum", + trial_link_id="quos", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="rerum", + trial_link_id="quos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="rerum", + trial_link_id="quos", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 546b7bb6..31bfdb33 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="cuatcmrijdfxdezfermnbfpic", + name="rfunebjtmxkcx", ) 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="cuatcmrijdfxdezfermnbfpic", + name="rfunebjtmxkcx", ) 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="cuatcmrijdfxdezfermnbfpic", + name="rfunebjtmxkcx", ) 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="cuatcmrijdfxdezfermnbfpic", + name="rfunebjtmxkcx", ) @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="cuatcmrijdfxdezfermnbfpic", + name="rfunebjtmxkcx", ) 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="cuatcmrijdfxdezfermnbfpic", + name="rfunebjtmxkcx", ) 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="cuatcmrijdfxdezfermnbfpic", + name="rfunebjtmxkcx", ) 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="cuatcmrijdfxdezfermnbfpic", + name="rfunebjtmxkcx", ) @pytest.mark.skip(reason="Mock server tests are disabled") From ed392bf29df7ce14f69760ea55338a61aaf1b8a7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Aug 2026 00:12:38 +0000 Subject: [PATCH 234/249] 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 | 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 | 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, 272 insertions(+), 272 deletions(-) diff --git a/.stats.yml b/.stats.yml index aed49705..570fba11 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d405ec53846be49bd1a6484b0af2fb42e46b3d1f700eba30d689da5cac3ce71c.yml -openapi_spec_hash: 106c4b2587de1b257da1e8773985ea43 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-23242adeafcf47de7fa93b9f3ca5c97663bd58039566842a69c640967cebed1a.yml +openapi_spec_hash: 8af32fd575ba1dce811202ad05432f84 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 7506a921..cac757f8 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 8cc3f45e..232832d1 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="in", + list_id="dolores", 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="in", + list_id="dolores", 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="in", + list_id="dolores", 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="in", + list_id="dolores", 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="in", + list_id="dolores", 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="in", + list_id="dolores", 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="in", + list_id="dolores", 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="in", + list_id="dolores", 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="in", + list_id="dolores", 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="in", + list_id="dolores", 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="in", + list_id="dolores", 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="in", + list_id="dolores", 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="in", + list_id="dolores", 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="in", + list_id="dolores", 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="in", + list_id="dolores", 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="in", + list_id="dolores", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index accff03c..8c13b633 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="reiciendis", + post_id="dolorem", 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="reiciendis", + post_id="dolorem", 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="reiciendis", + post_id="dolorem", 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="reiciendis", + post_id="dolorem", 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="reiciendis", + post_id="dolorem", 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="reiciendis", + post_id="dolorem", 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="reiciendis", + post_id="dolorem", 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="reiciendis", + post_id="dolorem", 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="reiciendis", + post_id="dolorem", 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="reiciendis", + post_id="dolorem", 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="reiciendis", + post_id="dolorem", 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="reiciendis", + post_id="dolorem", 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="reiciendis", + post_id="dolorem", 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="reiciendis", + post_id="dolorem", 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="reiciendis", + post_id="dolorem", 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="reiciendis", + post_id="dolorem", 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="reiciendis", + post_id="dolorem", 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="reiciendis", + post_id="dolorem", 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="reiciendis", + post_id="dolorem", 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="reiciendis", + post_id="dolorem", 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 a62ccbd3..444937ba 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 fc7b1635..2ced6cb5 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 5b3b61a4..7a38983a 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", 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="fugit", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 06538592..334f5fb6 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( - "repellendus", + "excepturi", ) 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( - "repellendus", + "excepturi", ) 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( - "repellendus", + "excepturi", ) 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( - "repellendus", + "excepturi", ) 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( - "repellendus", + "excepturi", ) 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( - "repellendus", + "excepturi", ) 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 c61ed26e..8c01c505 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="quasi", - auth_type="raw_data", - cookies="omnis", + auth_id="aspernatur", + auth_type="mobile_app", + cookies="eaque", custom_proxy={ "host": "proxy.example.com", - "password": "o(Mx/i*", + "password": "4&>J>su?F':Fn.0Id", "port": 8080, - "username": "qui", + "username": "atque", }, - email="monserrat54@example.com", - force_connect=True, - name="illo", - password="}xSuFB", - proxy_country="us", - user_agent="et", - xbc="aspernatur", + email="ssteuber@example.net", + force_connect=False, + name="esse", + password='/1X-2"D)Y', + proxy_country="uk", + user_agent="dolorem", + 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="quasi", - auth_type="raw_data", - cookies="omnis", + auth_id="aspernatur", + auth_type="mobile_app", + cookies="eaque", custom_proxy={ "host": "proxy.example.com", - "password": "o(Mx/i*", + "password": "4&>J>su?F':Fn.0Id", "port": 8080, - "username": "qui", + "username": "atque", }, - email="monserrat54@example.com", - force_connect=True, - name="illo", - password="}xSuFB", - proxy_country="us", - user_agent="et", - xbc="aspernatur", + email="ssteuber@example.net", + force_connect=False, + name="esse", + password='/1X-2"D)Y', + proxy_country="uk", + user_agent="dolorem", + 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 9249f386..0d035d3b 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="gb", ) 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="gb", ) 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 1a80b275..280e3de9 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="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="onlyfans", + 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 bd4f6161..65694e23 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 8eaf4aef..702dc471 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": ["acxqmgykwfnqzuhboiqetxsj"]}, + filter={"tags": ["unhvmeoqfjwzhyakrbpgje"]}, limit=50, name="Instagram", offset=0, @@ -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="nam", + smart_link_id="ad", ) 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="nam", + smart_link_id="ad", 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="nam", + smart_link_id="ad", ) 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="nam", + smart_link_id="ad", ) 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="et", + smart_link_id="aut", ) 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="et", + smart_link_id="aut", 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="et", + smart_link_id="aut", ) 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="et", + smart_link_id="aut", ) 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="qui", + smart_link_id="consequuntur", ) 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="qui", + smart_link_id="consequuntur", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="consequuntur", ) assert response.is_closed is True @@ -358,7 +358,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="consequuntur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="ipsam", + smart_link_id="sit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="ipsam", + smart_link_id="sit", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="ipsam", + smart_link_id="sit", ) assert response.is_closed is True @@ -411,7 +411,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="ipsam", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="ducimus", ) assert smart_link is None @@ -441,7 +441,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="ducimus", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="ducimus", ) assert response.is_closed is True @@ -464,7 +464,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="ducimus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="voluptatem", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="voluptatem", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="voluptatem", ) assert response.is_closed is True @@ -516,7 +516,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="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["acxqmgykwfnqzuhboiqetxsj"]}, + filter={"tags": ["unhvmeoqfjwzhyakrbpgje"]}, limit=50, name="Instagram", offset=0, @@ -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="nam", + smart_link_id="ad", ) 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="nam", + smart_link_id="ad", 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="nam", + smart_link_id="ad", ) 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="nam", + smart_link_id="ad", ) 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="et", + smart_link_id="aut", ) 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="et", + smart_link_id="aut", 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="et", + smart_link_id="aut", ) 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="et", + smart_link_id="aut", ) 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="qui", + smart_link_id="consequuntur", ) 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="qui", + smart_link_id="consequuntur", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="consequuntur", ) assert response.is_closed is True @@ -871,7 +871,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="consequuntur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="ipsam", + smart_link_id="sit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="ipsam", + smart_link_id="sit", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="ipsam", + smart_link_id="sit", ) assert response.is_closed is True @@ -924,7 +924,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="ipsam", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="ducimus", ) assert smart_link is None @@ -954,7 +954,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="ducimus", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="ducimus", ) assert response.is_closed is True @@ -977,7 +977,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="ducimus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="voluptatem", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="voluptatem", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="voluptatem", ) assert response.is_closed is True @@ -1029,7 +1029,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="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 5ff258af..9df2635e 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": "zelprabexgxprovprlmvtkn", - "tags": ["i"], + "search": "ymnoqla", + "tags": ["mitgiazldi"], }, 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": "rjmtwooeymd", - "tags": ["fzof"], + "search": "fypiy", + "tags": ["wljhkoxybjdfvp"], }, 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": "joxmsjqaoemfryahenkwa", - "tags": ["kbedgqugpoiqwmzh"], + "include_smart_links": True, + "search": "rbe", + "tags": ["reulawlbqidykxuc"], }, 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": "zvdsepuaic", - "tags": ["hyutmekgocphlnqnceysw"], + "search": "vh", + "tags": ["avzubqpscpmijwgb"], }, 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": "zelprabexgxprovprlmvtkn", - "tags": ["i"], + "search": "ymnoqla", + "tags": ["mitgiazldi"], }, 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": "rjmtwooeymd", - "tags": ["fzof"], + "search": "fypiy", + "tags": ["wljhkoxybjdfvp"], }, 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": "joxmsjqaoemfryahenkwa", - "tags": ["kbedgqugpoiqwmzh"], + "include_smart_links": True, + "search": "rbe", + "tags": ["reulawlbqidykxuc"], }, 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": "zvdsepuaic", - "tags": ["hyutmekgocphlnqnceysw"], + "search": "vh", + "tags": ["avzubqpscpmijwgb"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index e3f727fe..c87a8dcb 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="harum", + tracking_link_id="voluptatem", 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="harum", + tracking_link_id="voluptatem", 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="harum", + tracking_link_id="voluptatem", 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="harum", + tracking_link_id="voluptatem", account="", ) @@ -196,7 +196,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="harum", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="harum", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="harum", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="harum", + tracking_link_id="voluptatem", account="", ) @@ -248,7 +248,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="enim", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="enim", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="enim", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="enim", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="enim", account="", ) @@ -312,7 +312,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="qui", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="qui", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="qui", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="qui", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="qui", + tracking_link_id="quia", account="", ) @@ -563,7 +563,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="harum", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="harum", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="harum", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="harum", + tracking_link_id="voluptatem", account="", ) @@ -674,7 +674,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="harum", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="harum", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="harum", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="harum", + tracking_link_id="voluptatem", account="", ) @@ -726,7 +726,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="enim", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="enim", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="enim", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="enim", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="enim", account="", ) @@ -790,7 +790,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="qui", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="qui", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="qui", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="qui", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="qui", + tracking_link_id="quia", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index e8ef554e..c10a2c24 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="accusamus", 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="accusamus", 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="accusamus", 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="accusamus", account="", ) @@ -205,7 +205,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="accusamus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="accusamus", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="accusamus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="accusamus", account="", ) @@ -321,7 +321,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="eaque", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="eaque", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="eaque", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="eaque", + trial_link_id="et", account="", limit=10, offset=0, @@ -383,7 +383,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="et", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="et", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="et", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="et", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="et", + trial_link_id="eum", account="", ) @@ -447,7 +447,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="quos", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="quos", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="quos", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="quos", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="quos", + trial_link_id="numquam", account="", ) @@ -583,7 +583,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="accusamus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="accusamus", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="accusamus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="accusamus", account="", ) @@ -692,7 +692,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="accusamus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="accusamus", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="accusamus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="accusamus", account="", ) @@ -808,7 +808,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="eaque", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="eaque", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="eaque", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="eaque", + trial_link_id="et", account="", limit=10, offset=0, @@ -870,7 +870,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="et", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="et", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="et", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="et", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="et", + trial_link_id="eum", account="", ) @@ -934,7 +934,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="quos", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="quos", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="quos", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="quos", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="quos", + trial_link_id="numquam", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 31bfdb33..16403511 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="rfunebjtmxkcx", + name="qqyvncwahrgdpaeaadk", ) 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="rfunebjtmxkcx", + name="qqyvncwahrgdpaeaadk", ) 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="rfunebjtmxkcx", + name="qqyvncwahrgdpaeaadk", ) 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="rfunebjtmxkcx", + name="qqyvncwahrgdpaeaadk", ) @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="rfunebjtmxkcx", + name="qqyvncwahrgdpaeaadk", ) 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="rfunebjtmxkcx", + name="qqyvncwahrgdpaeaadk", ) 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="rfunebjtmxkcx", + name="qqyvncwahrgdpaeaadk", ) 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="rfunebjtmxkcx", + name="qqyvncwahrgdpaeaadk", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 5eaf7b862cd58198b4d370c588e1b4e06517dcbb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Aug 2026 12:12:49 +0000 Subject: [PATCH 235/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/following.py | 34 ++++-- .../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 +- .../api_resources/test_shared_trial_links.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 +-- 20 files changed, 300 insertions(+), 282 deletions(-) diff --git a/.stats.yml b/.stats.yml index 570fba11..fb88c543 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-23242adeafcf47de7fa93b9f3ca5c97663bd58039566842a69c640967cebed1a.yml -openapi_spec_hash: 8af32fd575ba1dce811202ad05432f84 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a2d5f52ed1f85349c85e1d5e456592651e902edad67d67c38c9c704edb60af74.yml +openapi_spec_hash: 610275aba2d84b6adbb63416c2d03a07 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/following.py b/src/onlyfansapi/resources/following.py index d7294b14..08df4085 100644 --- a/src/onlyfansapi/resources/following.py +++ b/src/onlyfansapi/resources/following.py @@ -64,7 +64,9 @@ def list_active( ) -> FollowingListActiveResponse: """Get a paginated list of followings for an Account. - Newest followings are first. + OnlyFans returns this list + newest-first, sorted by `subscribedByData.subscribeAt` descending. The expired + list does not share this order, so do not assume it applies there. Args: limit: Number of followings to return (1-50). Must be at least 1. Must not be greater @@ -121,7 +123,9 @@ def list_all( ) -> FollowingListAllResponse: """Get a paginated list of followings for an Account. - Newest followings are first. + OnlyFans returns this list + newest-first, sorted by `subscribedByData.subscribeAt` descending. The expired + list does not share this order, so do not assume it applies there. Args: limit: Number of followings to return (1-50). Must be at least 1. Must not be greater @@ -178,8 +182,13 @@ def list_expired( ) -> FollowingListExpiredResponse: """Get a paginated list of expired followings for an Account. - Newest followings are - first. + This list has no + order guarantee. Unlike the all and active lists, it is sorted by neither + `subscribedByData.subscribeAt` nor `subscribedByData.expiredAt`. To poll for new + expirations, page through the full list each cycle (`limit=50`, follow + `_pagination.next_page` until it is null) and diff it against your own store + using `subscribedByData.expiredAt`. Do NOT stop early at the first entry you + have already seen, as that can silently skip real expirations. Args: limit: Number of followings to return (1-50). Must be at least 1. Must not be greater @@ -259,7 +268,9 @@ async def list_active( ) -> FollowingListActiveResponse: """Get a paginated list of followings for an Account. - Newest followings are first. + OnlyFans returns this list + newest-first, sorted by `subscribedByData.subscribeAt` descending. The expired + list does not share this order, so do not assume it applies there. Args: limit: Number of followings to return (1-50). Must be at least 1. Must not be greater @@ -316,7 +327,9 @@ async def list_all( ) -> FollowingListAllResponse: """Get a paginated list of followings for an Account. - Newest followings are first. + OnlyFans returns this list + newest-first, sorted by `subscribedByData.subscribeAt` descending. The expired + list does not share this order, so do not assume it applies there. Args: limit: Number of followings to return (1-50). Must be at least 1. Must not be greater @@ -373,8 +386,13 @@ async def list_expired( ) -> FollowingListExpiredResponse: """Get a paginated list of expired followings for an Account. - Newest followings are - first. + This list has no + order guarantee. Unlike the all and active lists, it is sorted by neither + `subscribedByData.subscribeAt` nor `subscribedByData.expiredAt`. To poll for new + expirations, page through the full list each cycle (`limit=50`, follow + `_pagination.next_page` until it is null) and diff it against your own store + using `subscribedByData.expiredAt`. Do NOT stop early at the first entry you + have already seen, as that can silently skip real expirations. Args: limit: Number of followings to return (1-50). Must be at least 1. Must not be greater diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index cac757f8..74a8622b 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="fugit", + message_id="non", 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="fugit", + message_id="non", 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="fugit", + message_id="non", 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="fugit", + message_id="non", 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="fugit", + message_id="non", 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="fugit", + message_id="non", 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="fugit", + message_id="non", 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="fugit", + message_id="non", 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="fugit", + message_id="non", 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="fugit", + message_id="non", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 232832d1..92d05df7 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="dolores", + list_id="sint", 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="dolores", + list_id="sint", 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="dolores", + list_id="sint", 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="dolores", + list_id="sint", 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="dolores", + list_id="sint", 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="dolores", + list_id="sint", 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="dolores", + list_id="sint", 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="dolores", + list_id="sint", 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="dolores", + list_id="sint", 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="dolores", + list_id="sint", 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="dolores", + list_id="sint", 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="dolores", + list_id="sint", 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="dolores", + list_id="sint", 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="dolores", + list_id="sint", 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="dolores", + list_id="sint", 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="dolores", + list_id="sint", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 8c13b633..cea7d5d2 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + 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="dolorem", + post_id="excepturi", 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 444937ba..7549791e 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 2ced6cb5..fc7b1635 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 544df889..9664075f 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 7a38983a..2bc4f7d7 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="fugit", + path_story_id="illum", 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="fugit", + path_story_id="illum", 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="fugit", + path_story_id="illum", 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="fugit", + path_story_id="illum", 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="fugit", + story_id="illum", 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="fugit", + story_id="illum", 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="fugit", + story_id="illum", 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="fugit", + story_id="illum", 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="fugit", + path_story_id="illum", 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="fugit", + path_story_id="illum", 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="fugit", + path_story_id="illum", 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="fugit", + path_story_id="illum", 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="fugit", + story_id="illum", 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="fugit", + story_id="illum", 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="fugit", + story_id="illum", 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="fugit", + story_id="illum", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 334f5fb6..58c24f2e 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( - "excepturi", + "nam", ) 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( - "excepturi", + "nam", ) 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( - "excepturi", + "nam", ) 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( - "excepturi", + "nam", ) 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( - "excepturi", + "nam", ) 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( - "excepturi", + "nam", ) 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 8c01c505..386ebcf7 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="aspernatur", - auth_type="mobile_app", - cookies="eaque", + auth_id="architecto", + auth_type="raw_data", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "4&>J>su?F':Fn.0Id", + "password": "Fs`88MG3ijUFxTI", "port": 8080, - "username": "atque", + "username": "id", }, - email="ssteuber@example.net", + email="kayden.trantow@example.org", force_connect=False, - name="esse", - password='/1X-2"D)Y', - proxy_country="uk", - user_agent="dolorem", - xbc="qui", + name="consequuntur", + password='stojg=g8"0', + proxy_country="us", + user_agent="debitis", + xbc="nisi", ) 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="aspernatur", - auth_type="mobile_app", - cookies="eaque", + auth_id="architecto", + auth_type="raw_data", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "4&>J>su?F':Fn.0Id", + "password": "Fs`88MG3ijUFxTI", "port": 8080, - "username": "atque", + "username": "id", }, - email="ssteuber@example.net", + email="kayden.trantow@example.org", force_connect=False, - name="esse", - password='/1X-2"D)Y', - proxy_country="uk", - user_agent="dolorem", - xbc="qui", + name="consequuntur", + password='stojg=g8"0', + proxy_country="us", + user_agent="debitis", + xbc="nisi", ) 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 0d035d3b..3597ede6 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="gb", + 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="gb", + 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 280e3de9..bea1ef2e 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="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="comments", + 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 65694e23..bd4f6161 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 702dc471..02ed41b8 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": ["unhvmeoqfjwzhyakrbpgje"]}, + filter={"tags": ["ddtfnelafcbcg"]}, limit=50, name="Instagram", offset=0, @@ -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="ad", + smart_link_id="id", ) 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="ad", + smart_link_id="id", 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="ad", + smart_link_id="id", ) 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="ad", + smart_link_id="id", ) 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="aut", + smart_link_id="at", ) 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="aut", + smart_link_id="at", 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="aut", + smart_link_id="at", ) 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="aut", + smart_link_id="at", ) 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="consequuntur", + smart_link_id="sit", ) 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="consequuntur", + smart_link_id="sit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="consequuntur", + smart_link_id="sit", ) assert response.is_closed is True @@ -358,7 +358,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="consequuntur", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="distinctio", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="distinctio", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="distinctio", ) assert response.is_closed is True @@ -411,7 +411,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="distinctio", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="ducimus", + smart_link_id="ullam", ) assert smart_link is None @@ -441,7 +441,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="ducimus", + smart_link_id="ullam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="ducimus", + smart_link_id="ullam", ) assert response.is_closed is True @@ -464,7 +464,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="ducimus", + smart_link_id="ullam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="occaecati", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="occaecati", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="occaecati", ) assert response.is_closed is True @@ -516,7 +516,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="occaecati", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["unhvmeoqfjwzhyakrbpgje"]}, + filter={"tags": ["ddtfnelafcbcg"]}, limit=50, name="Instagram", offset=0, @@ -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="ad", + smart_link_id="id", ) 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="ad", + smart_link_id="id", 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="ad", + smart_link_id="id", ) 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="ad", + smart_link_id="id", ) 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="aut", + smart_link_id="at", ) 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="aut", + smart_link_id="at", 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="aut", + smart_link_id="at", ) 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="aut", + smart_link_id="at", ) 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="consequuntur", + smart_link_id="sit", ) 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="consequuntur", + smart_link_id="sit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="consequuntur", + smart_link_id="sit", ) assert response.is_closed is True @@ -871,7 +871,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="consequuntur", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="distinctio", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="distinctio", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="distinctio", ) assert response.is_closed is True @@ -924,7 +924,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="distinctio", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="ducimus", + smart_link_id="ullam", ) assert smart_link is None @@ -954,7 +954,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="ducimus", + smart_link_id="ullam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="ducimus", + smart_link_id="ullam", ) assert response.is_closed is True @@ -977,7 +977,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="ducimus", + smart_link_id="ullam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="occaecati", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="occaecati", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="occaecati", ) assert response.is_closed is True @@ -1029,7 +1029,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="occaecati", ) 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 9df2635e..01c01af0 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": "ymnoqla", - "tags": ["mitgiazldi"], + "search": "ewqigpmk", + "tags": ["idph"], }, 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": "fypiy", - "tags": ["wljhkoxybjdfvp"], + "search": "bqqxjyjcfwkzzpujuda", + "tags": ["htc"], }, 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": "rbe", - "tags": ["reulawlbqidykxuc"], + "include_smart_links": False, + "search": "u", + "tags": ["uvlz"], }, 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": "vh", - "tags": ["avzubqpscpmijwgb"], + "search": "ummhkywplyyuzhnynwsafrruk", + "tags": ["bwhisnwscpmir"], }, 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": "ymnoqla", - "tags": ["mitgiazldi"], + "search": "ewqigpmk", + "tags": ["idph"], }, 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": "fypiy", - "tags": ["wljhkoxybjdfvp"], + "search": "bqqxjyjcfwkzzpujuda", + "tags": ["htc"], }, 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": "rbe", - "tags": ["reulawlbqidykxuc"], + "include_smart_links": False, + "search": "u", + "tags": ["uvlz"], }, 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": "vh", - "tags": ["avzubqpscpmijwgb"], + "search": "ummhkywplyyuzhnynwsafrruk", + "tags": ["bwhisnwscpmir"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index c87a8dcb..d4a6a2b3 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="voluptatem", + tracking_link_id="ut", 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="voluptatem", + tracking_link_id="ut", 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="voluptatem", + tracking_link_id="ut", 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="voluptatem", + tracking_link_id="ut", account="", ) @@ -196,7 +196,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="voluptatem", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="voluptatem", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="voluptatem", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="voluptatem", + tracking_link_id="ut", account="", ) @@ -248,7 +248,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="enim", + tracking_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="enim", + tracking_link_id="earum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="enim", + tracking_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="enim", + tracking_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="enim", + tracking_link_id="earum", account="", ) @@ -312,7 +312,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="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="voluptatem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="voluptatem", account="", ) @@ -563,7 +563,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="voluptatem", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="voluptatem", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="voluptatem", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="voluptatem", + tracking_link_id="ut", account="", ) @@ -674,7 +674,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="voluptatem", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="voluptatem", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="voluptatem", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="voluptatem", + tracking_link_id="ut", account="", ) @@ -726,7 +726,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="enim", + tracking_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="enim", + tracking_link_id="earum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="enim", + tracking_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="enim", + tracking_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="enim", + tracking_link_id="earum", account="", ) @@ -790,7 +790,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="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="voluptatem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="voluptatem", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index c10a2c24..9499b4c1 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="accusamus", + trial_link_id="qui", 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="accusamus", + trial_link_id="qui", 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="accusamus", + trial_link_id="qui", 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="accusamus", + trial_link_id="qui", account="", ) @@ -205,7 +205,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="accusamus", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="accusamus", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="accusamus", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="accusamus", + trial_link_id="qui", account="", ) @@ -321,7 +321,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="similique", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="similique", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="similique", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="similique", account="", limit=10, offset=0, @@ -383,7 +383,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="eum", + trial_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="eum", + trial_link_id="harum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="eum", + trial_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="eum", + trial_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="eum", + trial_link_id="harum", account="", ) @@ -447,7 +447,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="numquam", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="numquam", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="numquam", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="numquam", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="numquam", + trial_link_id="assumenda", account="", ) @@ -583,7 +583,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="accusamus", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="accusamus", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="accusamus", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="accusamus", + trial_link_id="qui", account="", ) @@ -692,7 +692,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="accusamus", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="accusamus", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="accusamus", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="accusamus", + trial_link_id="qui", account="", ) @@ -808,7 +808,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="similique", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="similique", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="similique", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="similique", account="", limit=10, offset=0, @@ -870,7 +870,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="eum", + trial_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="eum", + trial_link_id="harum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="eum", + trial_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="eum", + trial_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="eum", + trial_link_id="harum", account="", ) @@ -934,7 +934,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="numquam", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="numquam", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="numquam", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="numquam", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="numquam", + trial_link_id="assumenda", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 16403511..ba2b2697 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="qqyvncwahrgdpaeaadk", + name="werwytboubtrvievkh", ) 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="qqyvncwahrgdpaeaadk", + name="werwytboubtrvievkh", ) 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="qqyvncwahrgdpaeaadk", + name="werwytboubtrvievkh", ) 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="qqyvncwahrgdpaeaadk", + name="werwytboubtrvievkh", ) @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="qqyvncwahrgdpaeaadk", + name="werwytboubtrvievkh", ) 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="qqyvncwahrgdpaeaadk", + name="werwytboubtrvievkh", ) 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="qqyvncwahrgdpaeaadk", + name="werwytboubtrvievkh", ) 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="qqyvncwahrgdpaeaadk", + name="werwytboubtrvievkh", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 930eecf179c3c1ec246f7308901ebb44ad4529d4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Aug 2026 14:12:43 +0000 Subject: [PATCH 236/249] 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_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- 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 +-- 18 files changed, 276 insertions(+), 276 deletions(-) diff --git a/.stats.yml b/.stats.yml index fb88c543..c617ea48 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a2d5f52ed1f85349c85e1d5e456592651e902edad67d67c38c9c704edb60af74.yml -openapi_spec_hash: 610275aba2d84b6adbb63416c2d03a07 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3e41fe0e34300060c6b811748d8c6d41c25296780772981088799f57f3a62620.yml +openapi_spec_hash: 1fef4a251599b597914b6e44589ec522 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 74a8622b..e83812f7 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="non", + message_id="sint", 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="non", + message_id="sint", 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="non", + message_id="sint", 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="non", + message_id="sint", 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="non", + message_id="sint", 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="non", + message_id="sint", 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="non", + message_id="sint", 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="non", + message_id="sint", 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="non", + message_id="sint", 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="non", + message_id="sint", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 92d05df7..b49ad30f 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="sint", + list_id="nobis", 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="sint", + list_id="nobis", 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="sint", + list_id="nobis", 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="sint", + list_id="nobis", 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="sint", + list_id="nobis", 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="sint", + list_id="nobis", 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="sint", + list_id="nobis", 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="sint", + list_id="nobis", 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="sint", + list_id="nobis", 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="sint", + list_id="nobis", 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="sint", + list_id="nobis", 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="sint", + list_id="nobis", 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="sint", + list_id="nobis", 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="sint", + list_id="nobis", 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="sint", + list_id="nobis", 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="sint", + list_id="nobis", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index cea7d5d2..926b89df 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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="architecto", 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 7549791e..a62ccbd3 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index fc7b1635..b5f3d61a 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=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=6, + 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=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_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=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=6, + 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=6, + 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=6, + 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=6, + period=24, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075f..544df889 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 2bc4f7d7..506c2ed9 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + story_id="et", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 58c24f2e..7cda7cb0 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( - "nam", + "sint", ) 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( - "nam", + "sint", ) 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( - "nam", + "sint", ) 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( - "nam", + "sint", ) 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( - "nam", + "sint", ) 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( - "nam", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 386ebcf7..24b0d6d1 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="architecto", - auth_type="raw_data", - cookies="et", + auth_id="odio", + auth_type="mobile_app", + cookies="tempora", custom_proxy={ "host": "proxy.example.com", - "password": "Fs`88MG3ijUFxTI", + "password": "yLUj}dhnk\\y@4s?Y2z", "port": 8080, - "username": "id", + "username": "doloribus", }, - email="kayden.trantow@example.org", - force_connect=False, - name="consequuntur", - password='stojg=g8"0', - proxy_country="us", - user_agent="debitis", - xbc="nisi", + email="pinkie37@example.org", + force_connect=True, + name="qui", + password="Q.eq=X\\un|C[BeFC\\", + proxy_country="uk", + user_agent="ut", + xbc="molestias", ) 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="architecto", - auth_type="raw_data", - cookies="et", + auth_id="odio", + auth_type="mobile_app", + cookies="tempora", custom_proxy={ "host": "proxy.example.com", - "password": "Fs`88MG3ijUFxTI", + "password": "yLUj}dhnk\\y@4s?Y2z", "port": 8080, - "username": "id", + "username": "doloribus", }, - email="kayden.trantow@example.org", - force_connect=False, - name="consequuntur", - password='stojg=g8"0', - proxy_country="us", - user_agent="debitis", - xbc="nisi", + email="pinkie37@example.org", + force_connect=True, + name="qui", + password="Q.eq=X\\un|C[BeFC\\", + proxy_country="uk", + user_agent="ut", + xbc="molestias", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index bea1ef2e..1a80b275 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="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="tags", + type="onlyfans", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f6161..65694e23 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 02ed41b8..016b69d1 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": ["ddtfnelafcbcg"]}, + filter={"tags": ["zwlvnthqluhbdydpukgggpluf"]}, limit=50, name="Instagram", offset=0, @@ -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="id", + smart_link_id="iste", ) 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="id", + smart_link_id="iste", 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="id", + smart_link_id="iste", ) 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="id", + smart_link_id="iste", ) 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="at", + smart_link_id="voluptas", ) 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="at", + smart_link_id="voluptas", 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="at", + smart_link_id="voluptas", ) 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="at", + smart_link_id="voluptas", ) 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="sit", + smart_link_id="sed", ) 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="sit", + smart_link_id="sed", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="sit", + smart_link_id="sed", ) assert response.is_closed is True @@ -358,7 +358,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="sit", + smart_link_id="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="distinctio", + smart_link_id="culpa", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="distinctio", + smart_link_id="culpa", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="distinctio", + smart_link_id="culpa", ) assert response.is_closed is True @@ -411,7 +411,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="distinctio", + smart_link_id="culpa", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="ullam", + smart_link_id="ratione", ) assert smart_link is None @@ -441,7 +441,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="ullam", + smart_link_id="ratione", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="ullam", + smart_link_id="ratione", ) assert response.is_closed is True @@ -464,7 +464,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="ullam", + smart_link_id="ratione", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="occaecati", + smart_link_id="sint", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="occaecati", + smart_link_id="sint", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="occaecati", + smart_link_id="sint", ) assert response.is_closed is True @@ -516,7 +516,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="occaecati", + smart_link_id="sint", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["ddtfnelafcbcg"]}, + filter={"tags": ["zwlvnthqluhbdydpukgggpluf"]}, limit=50, name="Instagram", offset=0, @@ -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="id", + smart_link_id="iste", ) 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="id", + smart_link_id="iste", 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="id", + smart_link_id="iste", ) 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="id", + smart_link_id="iste", ) 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="at", + smart_link_id="voluptas", ) 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="at", + smart_link_id="voluptas", 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="at", + smart_link_id="voluptas", ) 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="at", + smart_link_id="voluptas", ) 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="sit", + smart_link_id="sed", ) 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="sit", + smart_link_id="sed", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="sit", + smart_link_id="sed", ) assert response.is_closed is True @@ -871,7 +871,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="sit", + smart_link_id="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="distinctio", + smart_link_id="culpa", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="distinctio", + smart_link_id="culpa", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="distinctio", + smart_link_id="culpa", ) assert response.is_closed is True @@ -924,7 +924,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="distinctio", + smart_link_id="culpa", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="ullam", + smart_link_id="ratione", ) assert smart_link is None @@ -954,7 +954,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="ullam", + smart_link_id="ratione", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="ullam", + smart_link_id="ratione", ) assert response.is_closed is True @@ -977,7 +977,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="ullam", + smart_link_id="ratione", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="occaecati", + smart_link_id="sint", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="occaecati", + smart_link_id="sint", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="occaecati", + smart_link_id="sint", ) assert response.is_closed is True @@ -1029,7 +1029,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="occaecati", + 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 01c01af0..cef6afe2 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": "ewqigpmk", - "tags": ["idph"], + "search": "cowcnvfoyzgkbr", + "tags": ["thylo"], }, 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": "bqqxjyjcfwkzzpujuda", - "tags": ["htc"], + "search": "m", + "tags": ["juosglzjnkgnnkyxvxzmrgm"], }, 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": "u", - "tags": ["uvlz"], + "include_smart_links": True, + "search": "vhorhty", + "tags": ["cxrkgfmfqiopndjxrfhd"], }, 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": "ummhkywplyyuzhnynwsafrruk", - "tags": ["bwhisnwscpmir"], + "include_smart_links": False, + "search": "apoxygemhfoudmfathtw", + "tags": ["pfuuvtodeflxnug"], }, 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": "ewqigpmk", - "tags": ["idph"], + "search": "cowcnvfoyzgkbr", + "tags": ["thylo"], }, 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": "bqqxjyjcfwkzzpujuda", - "tags": ["htc"], + "search": "m", + "tags": ["juosglzjnkgnnkyxvxzmrgm"], }, 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": "u", - "tags": ["uvlz"], + "include_smart_links": True, + "search": "vhorhty", + "tags": ["cxrkgfmfqiopndjxrfhd"], }, 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": "ummhkywplyyuzhnynwsafrruk", - "tags": ["bwhisnwscpmir"], + "include_smart_links": False, + "search": "apoxygemhfoudmfathtw", + "tags": ["pfuuvtodeflxnug"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index d4a6a2b3..f91a0c73 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="ut", + tracking_link_id="doloribus", 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="ut", + tracking_link_id="doloribus", 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="ut", + tracking_link_id="doloribus", 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="ut", + tracking_link_id="doloribus", account="", ) @@ -196,7 +196,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="ut", + tracking_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="ut", + tracking_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="ut", + tracking_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="ut", + tracking_link_id="doloribus", account="", ) @@ -248,7 +248,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="earum", + tracking_link_id="ipsum", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="earum", + tracking_link_id="ipsum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="earum", + tracking_link_id="ipsum", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="earum", + tracking_link_id="ipsum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="earum", + tracking_link_id="ipsum", account="", ) @@ -312,7 +312,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="voluptatem", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="voluptatem", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="voluptatem", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="voluptatem", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="voluptatem", + tracking_link_id="magnam", account="", ) @@ -563,7 +563,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="ut", + tracking_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="ut", + tracking_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="ut", + tracking_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="ut", + tracking_link_id="doloribus", account="", ) @@ -674,7 +674,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="ut", + tracking_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="ut", + tracking_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="ut", + tracking_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="ut", + tracking_link_id="doloribus", account="", ) @@ -726,7 +726,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="earum", + tracking_link_id="ipsum", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="earum", + tracking_link_id="ipsum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="earum", + tracking_link_id="ipsum", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="earum", + tracking_link_id="ipsum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="earum", + tracking_link_id="ipsum", account="", ) @@ -790,7 +790,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="voluptatem", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="voluptatem", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="voluptatem", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="voluptatem", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="voluptatem", + tracking_link_id="magnam", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 9499b4c1..ef920384 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="qui", + 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="qui", + 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="qui", + 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="qui", + trial_link_id="culpa", account="", ) @@ -205,7 +205,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="qui", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="qui", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="qui", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="qui", + trial_link_id="culpa", account="", ) @@ -321,7 +321,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="velit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="velit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="velit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="velit", account="", limit=10, offset=0, @@ -383,7 +383,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="harum", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="harum", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="harum", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="harum", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="harum", + trial_link_id="nobis", account="", ) @@ -447,7 +447,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="iusto", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="iusto", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="iusto", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="iusto", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="iusto", account="", ) @@ -583,7 +583,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="qui", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="qui", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="qui", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="qui", + trial_link_id="culpa", account="", ) @@ -692,7 +692,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="qui", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="qui", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="qui", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="qui", + trial_link_id="culpa", account="", ) @@ -808,7 +808,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="velit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="velit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="velit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="velit", account="", limit=10, offset=0, @@ -870,7 +870,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="harum", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="harum", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="harum", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="harum", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="harum", + trial_link_id="nobis", account="", ) @@ -934,7 +934,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="iusto", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="iusto", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="iusto", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="iusto", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="iusto", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index ba2b2697..4c7a4a70 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="werwytboubtrvievkh", + name="isfkhsndbcnwtcefzbnzqx", ) 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="werwytboubtrvievkh", + name="isfkhsndbcnwtcefzbnzqx", ) 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="werwytboubtrvievkh", + name="isfkhsndbcnwtcefzbnzqx", ) 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="werwytboubtrvievkh", + name="isfkhsndbcnwtcefzbnzqx", ) @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="werwytboubtrvievkh", + name="isfkhsndbcnwtcefzbnzqx", ) 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="werwytboubtrvievkh", + name="isfkhsndbcnwtcefzbnzqx", ) 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="werwytboubtrvievkh", + name="isfkhsndbcnwtcefzbnzqx", ) 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="werwytboubtrvievkh", + name="isfkhsndbcnwtcefzbnzqx", ) @pytest.mark.skip(reason="Mock server tests are disabled") From d41110bfe79b27ab9b14acc56479dd3e1828c3fb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Aug 2026 15:12:41 +0000 Subject: [PATCH 237/249] 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 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 32 +++--- tests/api_resources/test_tracking_links.py | 76 ++++++------- 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 c617ea48..8da4e8f3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3e41fe0e34300060c6b811748d8c6d41c25296780772981088799f57f3a62620.yml -openapi_spec_hash: 1fef4a251599b597914b6e44589ec522 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3a681811f9dca9fafb1afffb864339f1522537aee190126620680aeca3803358.yml +openapi_spec_hash: 1b0a40a3f83009a9b99ea771335d528f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index e83812f7..b5cbb6bd 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="sint", + message_id="veritatis", 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="sint", + message_id="veritatis", 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="sint", + message_id="veritatis", 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="sint", + message_id="veritatis", 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="sint", + message_id="veritatis", 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="sint", + message_id="veritatis", 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="sint", + message_id="veritatis", 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="sint", + message_id="veritatis", 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="sint", + message_id="veritatis", 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="sint", + message_id="veritatis", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index b49ad30f..eab16a1b 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="nobis", + list_id="voluptatem", 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="nobis", + list_id="voluptatem", 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="nobis", + list_id="voluptatem", 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="nobis", + list_id="voluptatem", 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="nobis", + list_id="voluptatem", 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="nobis", + list_id="voluptatem", 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="nobis", + list_id="voluptatem", 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="nobis", + list_id="voluptatem", 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="nobis", + list_id="voluptatem", 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="nobis", + list_id="voluptatem", 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="nobis", + list_id="voluptatem", 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="nobis", + list_id="voluptatem", 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="nobis", + list_id="voluptatem", 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="nobis", + list_id="voluptatem", 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="nobis", + list_id="voluptatem", 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="nobis", + list_id="voluptatem", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 926b89df..0d70ffc7 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + 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="architecto", + post_id="aut", 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 a62ccbd3..aa735c97 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index b5f3d61a..2ced6cb5 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 544df889..9664075f 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 506c2ed9..06d474b9 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", 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="autem", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 7cda7cb0..7b1105e8 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( - "sint", + "at", ) 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( - "sint", + "at", ) 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( - "sint", + "at", ) 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( - "sint", + "at", ) 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( - "sint", + "at", ) 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( - "sint", + "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_authenticate.py b/tests/api_resources/test_authenticate.py index 24b0d6d1..7899902f 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="odio", - auth_type="mobile_app", - cookies="tempora", + auth_id="modi", + auth_type="raw_data", + cookies="commodi", custom_proxy={ "host": "proxy.example.com", - "password": "yLUj}dhnk\\y@4s?Y2z", + "password": "]Shxu\\", "port": 8080, - "username": "doloribus", + "username": "quisquam", }, - email="pinkie37@example.org", - force_connect=True, - name="qui", - password="Q.eq=X\\un|C[BeFC\\", + email="hills.marques@example.net", + force_connect=False, + name="est", + password="3O)l.[n,a;wMpwRT8Y>", proxy_country="uk", - user_agent="ut", - xbc="molestias", + user_agent="qui", + xbc="esse", ) 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="odio", - auth_type="mobile_app", - cookies="tempora", + auth_id="modi", + auth_type="raw_data", + cookies="commodi", custom_proxy={ "host": "proxy.example.com", - "password": "yLUj}dhnk\\y@4s?Y2z", + "password": "]Shxu\\", "port": 8080, - "username": "doloribus", + "username": "quisquam", }, - email="pinkie37@example.org", - force_connect=True, - name="qui", - password="Q.eq=X\\un|C[BeFC\\", + email="hills.marques@example.net", + force_connect=False, + name="est", + password="3O)l.[n,a;wMpwRT8Y>", proxy_country="uk", - user_agent="ut", - xbc="molestias", + user_agent="qui", + xbc="esse", ) 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 3597ede6..9249f386 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 1a80b275..bea1ef2e 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="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="onlyfans", + type="tags", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 016b69d1..26b62225 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": ["zwlvnthqluhbdydpukgggpluf"]}, + filter={"tags": ["vijlzegwf"]}, limit=50, name="Instagram", offset=0, @@ -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="iste", + smart_link_id="repudiandae", ) 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="iste", + smart_link_id="repudiandae", 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="iste", + smart_link_id="repudiandae", ) 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="iste", + smart_link_id="repudiandae", ) 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="voluptas", + smart_link_id="natus", ) 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="voluptas", + smart_link_id="natus", 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="voluptas", + smart_link_id="natus", ) 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="voluptas", + smart_link_id="natus", ) 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="sed", + smart_link_id="amet", ) 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="sed", + smart_link_id="amet", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="amet", ) assert response.is_closed is True @@ -358,7 +358,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="amet", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="veritatis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="veritatis", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="veritatis", ) assert response.is_closed is True @@ -411,7 +411,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="veritatis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="ratione", + smart_link_id="dolores", ) assert smart_link is None @@ -441,7 +441,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="ratione", + smart_link_id="dolores", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="ratione", + smart_link_id="dolores", ) assert response.is_closed is True @@ -464,7 +464,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="ratione", + smart_link_id="dolores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="accusamus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="accusamus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="accusamus", ) assert response.is_closed is True @@ -516,7 +516,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="accusamus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["zwlvnthqluhbdydpukgggpluf"]}, + filter={"tags": ["vijlzegwf"]}, limit=50, name="Instagram", offset=0, @@ -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="iste", + smart_link_id="repudiandae", ) 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="iste", + smart_link_id="repudiandae", 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="iste", + smart_link_id="repudiandae", ) 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="iste", + smart_link_id="repudiandae", ) 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="voluptas", + smart_link_id="natus", ) 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="voluptas", + smart_link_id="natus", 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="voluptas", + smart_link_id="natus", ) 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="voluptas", + smart_link_id="natus", ) 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="sed", + smart_link_id="amet", ) 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="sed", + smart_link_id="amet", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="amet", ) assert response.is_closed is True @@ -871,7 +871,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="amet", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="veritatis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="veritatis", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="veritatis", ) assert response.is_closed is True @@ -924,7 +924,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="veritatis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="ratione", + smart_link_id="dolores", ) assert smart_link is None @@ -954,7 +954,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="ratione", + smart_link_id="dolores", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="ratione", + smart_link_id="dolores", ) assert response.is_closed is True @@ -977,7 +977,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="ratione", + smart_link_id="dolores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="accusamus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="accusamus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="accusamus", ) assert response.is_closed is True @@ -1029,7 +1029,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="accusamus", ) 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 cef6afe2..27e0efb4 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": "cowcnvfoyzgkbr", - "tags": ["thylo"], + "search": "iggxxamskaeznl", + "tags": ["pmdsklnywhipknxxrcdy"], }, 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": "m", - "tags": ["juosglzjnkgnnkyxvxzmrgm"], + "search": "ku", + "tags": ["rei"], }, 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": "vhorhty", - "tags": ["cxrkgfmfqiopndjxrfhd"], + "search": "krnctelvnfawrdlsd", + "tags": ["xoaoiyfshwhuohjnc"], }, 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": "apoxygemhfoudmfathtw", - "tags": ["pfuuvtodeflxnug"], + "search": "buobyvlzqlbssdyicgyieuenj", + "tags": ["oajjidv"], }, 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": "cowcnvfoyzgkbr", - "tags": ["thylo"], + "search": "iggxxamskaeznl", + "tags": ["pmdsklnywhipknxxrcdy"], }, 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": "m", - "tags": ["juosglzjnkgnnkyxvxzmrgm"], + "search": "ku", + "tags": ["rei"], }, 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": "vhorhty", - "tags": ["cxrkgfmfqiopndjxrfhd"], + "search": "krnctelvnfawrdlsd", + "tags": ["xoaoiyfshwhuohjnc"], }, 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": "apoxygemhfoudmfathtw", - "tags": ["pfuuvtodeflxnug"], + "search": "buobyvlzqlbssdyicgyieuenj", + "tags": ["oajjidv"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index f91a0c73..4cdb1093 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="doloribus", + 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="doloribus", + 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="doloribus", + 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="doloribus", + tracking_link_id="et", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="doloribus", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="doloribus", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="doloribus", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="doloribus", + tracking_link_id="et", account="", ) @@ -248,7 +248,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="ipsum", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="ipsum", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="ipsum", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="ipsum", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="ipsum", + tracking_link_id="et", account="", ) @@ -312,7 +312,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="magnam", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="magnam", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="magnam", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="magnam", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="magnam", + tracking_link_id="et", account="", ) @@ -563,7 +563,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="doloribus", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="doloribus", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="doloribus", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="doloribus", + tracking_link_id="et", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="doloribus", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="doloribus", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="doloribus", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="doloribus", + tracking_link_id="et", account="", ) @@ -726,7 +726,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="ipsum", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="ipsum", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="ipsum", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="ipsum", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="ipsum", + tracking_link_id="et", account="", ) @@ -790,7 +790,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="magnam", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="magnam", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="magnam", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="magnam", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="magnam", + tracking_link_id="et", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index ef920384..7aff5157 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="dolorum", 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="dolorum", 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="dolorum", 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="dolorum", account="", ) @@ -205,7 +205,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="dolorum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="dolorum", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="dolorum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="dolorum", account="", ) @@ -321,7 +321,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="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="qui", account="", limit=10, offset=0, @@ -383,7 +383,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="nobis", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="nobis", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="nobis", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="nobis", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="nobis", + trial_link_id="ut", account="", ) @@ -447,7 +447,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="iusto", + trial_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="iusto", + trial_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="iusto", + trial_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="iusto", + trial_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="iusto", + trial_link_id="delectus", account="", ) @@ -583,7 +583,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="dolorum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="dolorum", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="dolorum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="dolorum", account="", ) @@ -692,7 +692,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="dolorum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="dolorum", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="dolorum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="dolorum", account="", ) @@ -808,7 +808,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="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="qui", account="", limit=10, offset=0, @@ -870,7 +870,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="nobis", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="nobis", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="nobis", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="nobis", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="nobis", + trial_link_id="ut", account="", ) @@ -934,7 +934,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="iusto", + trial_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="iusto", + trial_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="iusto", + trial_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="iusto", + trial_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="iusto", + trial_link_id="delectus", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 4c7a4a70..9e9dd940 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="isfkhsndbcnwtcefzbnzqx", + name="nbkdeagayzijsh", ) 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="isfkhsndbcnwtcefzbnzqx", + name="nbkdeagayzijsh", ) 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="isfkhsndbcnwtcefzbnzqx", + name="nbkdeagayzijsh", ) 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="isfkhsndbcnwtcefzbnzqx", + name="nbkdeagayzijsh", ) @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="isfkhsndbcnwtcefzbnzqx", + name="nbkdeagayzijsh", ) 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="isfkhsndbcnwtcefzbnzqx", + name="nbkdeagayzijsh", ) 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="isfkhsndbcnwtcefzbnzqx", + name="nbkdeagayzijsh", ) 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="isfkhsndbcnwtcefzbnzqx", + name="nbkdeagayzijsh", ) @pytest.mark.skip(reason="Mock server tests are disabled") From c7bed4511bd2fa1c394cd1076fbd1430e34477c6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Aug 2026 23:13:24 +0000 Subject: [PATCH 238/249] 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_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 | 52 ++++----- tests/api_resources/test_trial_links.py | 88 +++++++-------- tests/api_resources/test_user_lists.py | 16 +-- 15 files changed, 254 insertions(+), 254 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8da4e8f3..986ed842 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3a681811f9dca9fafb1afffb864339f1522537aee190126620680aeca3803358.yml -openapi_spec_hash: 1b0a40a3f83009a9b99ea771335d528f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d77c40bb8d593aea1bef6ab925354c00f69d9f92c1e67a8965997e6d363237a9.yml +openapi_spec_hash: 79ccca3bec6097941e6b20ab10a3b09e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index b5cbb6bd..0f6fe42e 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="veritatis", + message_id="qui", 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="veritatis", + message_id="qui", 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="veritatis", + message_id="qui", 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="veritatis", + message_id="qui", 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="veritatis", + message_id="qui", 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="veritatis", + message_id="qui", 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="veritatis", + message_id="qui", 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="veritatis", + message_id="qui", 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="veritatis", + message_id="qui", 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="veritatis", + message_id="qui", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index eab16a1b..3f828857 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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="voluptatem", + 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 0d70ffc7..57718d85 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="error", 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="error", 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="error", 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="error", 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="error", 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="error", 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="error", 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="error", 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="error", 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="error", 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="error", 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="error", 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="error", 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="error", 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="error", 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="error", 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="error", 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="error", 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="error", 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="error", 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 aa735c97..444937ba 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 2ced6cb5..b5f3d61a 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 06d474b9..eff80ac0 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="eum", 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="eum", 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="eum", 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="eum", 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="eum", 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="eum", 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="eum", 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="eum", 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="eum", 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="eum", 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="eum", 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="eum", 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="eum", 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="eum", 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="eum", 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="eum", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 7b1105e8..a7e0f0a4 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( - "at", + "odit", ) 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( - "at", + "odit", ) 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( - "at", + "odit", ) 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( - "at", + "odit", ) 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( - "at", + "odit", ) 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( - "at", + "odit", ) 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 7899902f..23081e35 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="modi", - auth_type="raw_data", - cookies="commodi", + auth_id="architecto", + auth_type="mobile_app", + cookies="placeat", custom_proxy={ "host": "proxy.example.com", - "password": "]Shxu\\", + "password": "'[;q;Z~6FqomM5", "port": 8080, - "username": "quisquam", + "username": "ab", }, - email="hills.marques@example.net", - force_connect=False, - name="est", - password="3O)l.[n,a;wMpwRT8Y>", + email="ava15@example.com", + force_connect=True, + name="reprehenderit", + password='j" None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="modi", - auth_type="raw_data", - cookies="commodi", + auth_id="architecto", + auth_type="mobile_app", + cookies="placeat", custom_proxy={ "host": "proxy.example.com", - "password": "]Shxu\\", + "password": "'[;q;Z~6FqomM5", "port": 8080, - "username": "quisquam", + "username": "ab", }, - email="hills.marques@example.net", - force_connect=False, - name="est", - password="3O)l.[n,a;wMpwRT8Y>", + email="ava15@example.com", + force_connect=True, + name="reprehenderit", + password='j" None: from_id=123, limit=10, skip_users="all", - type="tags", + 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="tags", + 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 26b62225..2caeed1a 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": ["vijlzegwf"]}, + filter={"tags": ["iagjbibujmbrfj"]}, limit=50, name="Instagram", offset=0, @@ -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="repudiandae", + smart_link_id="sapiente", ) 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="repudiandae", + smart_link_id="sapiente", 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="repudiandae", + smart_link_id="sapiente", ) 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="repudiandae", + smart_link_id="sapiente", ) 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="natus", + smart_link_id="architecto", ) 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="natus", + smart_link_id="architecto", 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="natus", + smart_link_id="architecto", ) 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="natus", + smart_link_id="architecto", ) 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="amet", + smart_link_id="magni", ) 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="amet", + smart_link_id="magni", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="magni", ) assert response.is_closed is True @@ -358,7 +358,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="magni", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="veritatis", + smart_link_id="esse", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="veritatis", + smart_link_id="esse", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="veritatis", + smart_link_id="esse", ) assert response.is_closed is True @@ -411,7 +411,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="veritatis", + smart_link_id="esse", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="dolores", + smart_link_id="ab", ) assert smart_link is None @@ -441,7 +441,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="dolores", + smart_link_id="ab", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="dolores", + smart_link_id="ab", ) assert response.is_closed is True @@ -464,7 +464,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="dolores", + smart_link_id="ab", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="accusamus", + smart_link_id="quod", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="accusamus", + smart_link_id="quod", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="accusamus", + smart_link_id="quod", ) assert response.is_closed is True @@ -516,7 +516,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="accusamus", + smart_link_id="quod", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["vijlzegwf"]}, + filter={"tags": ["iagjbibujmbrfj"]}, limit=50, name="Instagram", offset=0, @@ -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="repudiandae", + smart_link_id="sapiente", ) 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="repudiandae", + smart_link_id="sapiente", 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="repudiandae", + smart_link_id="sapiente", ) 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="repudiandae", + smart_link_id="sapiente", ) 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="natus", + smart_link_id="architecto", ) 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="natus", + smart_link_id="architecto", 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="natus", + smart_link_id="architecto", ) 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="natus", + smart_link_id="architecto", ) 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="amet", + smart_link_id="magni", ) 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="amet", + smart_link_id="magni", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="magni", ) assert response.is_closed is True @@ -871,7 +871,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="magni", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="veritatis", + smart_link_id="esse", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="veritatis", + smart_link_id="esse", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="veritatis", + smart_link_id="esse", ) assert response.is_closed is True @@ -924,7 +924,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="veritatis", + smart_link_id="esse", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="dolores", + smart_link_id="ab", ) assert smart_link is None @@ -954,7 +954,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="dolores", + smart_link_id="ab", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="dolores", + smart_link_id="ab", ) assert response.is_closed is True @@ -977,7 +977,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="dolores", + smart_link_id="ab", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="accusamus", + smart_link_id="quod", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="accusamus", + smart_link_id="quod", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="accusamus", + smart_link_id="quod", ) assert response.is_closed is True @@ -1029,7 +1029,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="accusamus", + smart_link_id="quod", ) 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 27e0efb4..584d4688 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": "iggxxamskaeznl", - "tags": ["pmdsklnywhipknxxrcdy"], + "search": "xrho", + "tags": ["yrijvvykpelpyszb"], }, 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": "ku", - "tags": ["rei"], + "search": "ixcexrtbrlndykk", + "tags": ["nlyezkevnvxmlylbtq"], }, 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": "krnctelvnfawrdlsd", - "tags": ["xoaoiyfshwhuohjnc"], + "search": "mmperewfynhkshvxgagla", + "tags": ["iwkfbadxicatpid"], }, 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": "buobyvlzqlbssdyicgyieuenj", - "tags": ["oajjidv"], + "search": "hiuuwqvbuivmxscpcwj", + "tags": ["ljyv"], }, 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": "iggxxamskaeznl", - "tags": ["pmdsklnywhipknxxrcdy"], + "search": "xrho", + "tags": ["yrijvvykpelpyszb"], }, 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": "ku", - "tags": ["rei"], + "search": "ixcexrtbrlndykk", + "tags": ["nlyezkevnvxmlylbtq"], }, 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": "krnctelvnfawrdlsd", - "tags": ["xoaoiyfshwhuohjnc"], + "search": "mmperewfynhkshvxgagla", + "tags": ["iwkfbadxicatpid"], }, 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": "buobyvlzqlbssdyicgyieuenj", - "tags": ["oajjidv"], + "search": "hiuuwqvbuivmxscpcwj", + "tags": ["ljyv"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 4cdb1093..b2a33eee 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="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="et", + 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="et", + 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="et", + tracking_link_id="qui", account="", ) @@ -196,7 +196,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="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="qui", account="", ) @@ -312,7 +312,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="libero", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="libero", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="libero", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="libero", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="libero", account="", ) @@ -563,7 +563,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="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="qui", account="", ) @@ -674,7 +674,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="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="qui", account="", ) @@ -790,7 +790,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="libero", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="libero", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="libero", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="libero", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="libero", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 7aff5157..211d0233 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="dolorum", + 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="dolorum", + 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="dolorum", + 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="dolorum", + trial_link_id="voluptatem", account="", ) @@ -205,7 +205,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="dolorum", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="dolorum", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="dolorum", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="dolorum", + trial_link_id="voluptatem", account="", ) @@ -321,7 +321,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="ipsum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="ipsum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="ipsum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="ipsum", account="", limit=10, offset=0, @@ -383,7 +383,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="placeat", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="placeat", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="placeat", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="placeat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="placeat", account="", ) @@ -447,7 +447,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="delectus", + trial_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="delectus", + trial_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="delectus", + trial_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="delectus", + trial_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="delectus", + trial_link_id="laudantium", account="", ) @@ -583,7 +583,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="dolorum", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="dolorum", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="dolorum", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="dolorum", + trial_link_id="voluptatem", account="", ) @@ -692,7 +692,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="dolorum", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="dolorum", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="dolorum", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="dolorum", + trial_link_id="voluptatem", account="", ) @@ -808,7 +808,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="ipsum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="ipsum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="ipsum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="ipsum", account="", limit=10, offset=0, @@ -870,7 +870,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="placeat", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="placeat", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="placeat", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="placeat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="placeat", account="", ) @@ -934,7 +934,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="delectus", + trial_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="delectus", + trial_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="delectus", + trial_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="delectus", + trial_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="delectus", + trial_link_id="laudantium", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 9e9dd940..13db8803 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="nbkdeagayzijsh", + name="fzqezaenenscbqdhjo", ) 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="nbkdeagayzijsh", + name="fzqezaenenscbqdhjo", ) 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="nbkdeagayzijsh", + name="fzqezaenenscbqdhjo", ) 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="nbkdeagayzijsh", + name="fzqezaenenscbqdhjo", ) @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="nbkdeagayzijsh", + name="fzqezaenenscbqdhjo", ) 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="nbkdeagayzijsh", + name="fzqezaenenscbqdhjo", ) 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="nbkdeagayzijsh", + name="fzqezaenenscbqdhjo", ) 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="nbkdeagayzijsh", + name="fzqezaenenscbqdhjo", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 0cc46970e4bb4a1e947737b47d177ce67ef99579 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Aug 2026 16:12:38 +0000 Subject: [PATCH 239/249] 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_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, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index 986ed842..2ddb459b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d77c40bb8d593aea1bef6ab925354c00f69d9f92c1e67a8965997e6d363237a9.yml -openapi_spec_hash: 79ccca3bec6097941e6b20ab10a3b09e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f64ed313defbcde810e1a8d9a094e06799e72d0d1d29c6a0c0e7917f8020642f.yml +openapi_spec_hash: d508d92cc5afbca8b9fb3c20b0fee10b config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 0f6fe42e..b22b93e5 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="qui", + message_id="illum", 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="qui", + message_id="illum", 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="qui", + message_id="illum", 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="qui", + message_id="illum", 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="qui", + message_id="illum", 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="qui", + message_id="illum", 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="qui", + message_id="illum", 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="qui", + message_id="illum", 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="qui", + message_id="illum", 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="qui", + message_id="illum", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 3f828857..92d05df7 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="sint", 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="sint", 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="sint", 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="sint", 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="sint", 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="sint", 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="sint", 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="sint", 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="sint", 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="sint", 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="sint", 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="sint", 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="sint", 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="sint", 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="sint", 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="sint", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 57718d85..56d6dacf 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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 444937ba..aa735c97 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 b5f3d61a..2ced6cb5 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 eff80ac0..9ee0e4fa 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="eum", + path_story_id="deserunt", 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="eum", + path_story_id="deserunt", 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="eum", + path_story_id="deserunt", 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="eum", + path_story_id="deserunt", 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="eum", + story_id="deserunt", 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="eum", + story_id="deserunt", 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="eum", + story_id="deserunt", 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="eum", + story_id="deserunt", 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="eum", + path_story_id="deserunt", 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="eum", + path_story_id="deserunt", 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="eum", + path_story_id="deserunt", 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="eum", + path_story_id="deserunt", 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="eum", + story_id="deserunt", 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="eum", + story_id="deserunt", 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="eum", + story_id="deserunt", 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="eum", + story_id="deserunt", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index a7e0f0a4..23f17ad0 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( - "odit", + "occaecati", ) 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( - "odit", + "occaecati", ) 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( - "odit", + "occaecati", ) 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( - "odit", + "occaecati", ) 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( - "odit", + "occaecati", ) 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( - "odit", + "occaecati", ) 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 23081e35..ae332f35 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="architecto", + auth_id="iste", auth_type="mobile_app", - cookies="placeat", + cookies="voluptatem", custom_proxy={ "host": "proxy.example.com", - "password": "'[;q;Z~6FqomM5", + "password": "!I4Eg1NzM[>G$9Z%(", "port": 8080, - "username": "ab", + "username": "corporis", }, - email="ava15@example.com", - force_connect=True, - name="reprehenderit", - password='j" None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="architecto", + auth_id="iste", auth_type="mobile_app", - cookies="placeat", + cookies="voluptatem", custom_proxy={ "host": "proxy.example.com", - "password": "'[;q;Z~6FqomM5", + "password": "!I4Eg1NzM[>G$9Z%(", "port": 8080, - "username": "ab", + "username": "corporis", }, - email="ava15@example.com", - force_connect=True, - name="reprehenderit", - password='j" 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": ["iagjbibujmbrfj"]}, + filter={"tags": ["qty"]}, limit=50, name="Instagram", offset=0, @@ -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="sapiente", + smart_link_id="dolore", ) 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="sapiente", + smart_link_id="dolore", 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="sapiente", + smart_link_id="dolore", ) 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="sapiente", + smart_link_id="dolore", ) 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="architecto", + smart_link_id="minima", ) 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="architecto", + smart_link_id="minima", 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="architecto", + smart_link_id="minima", ) 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="architecto", + smart_link_id="minima", ) 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="magni", + smart_link_id="enim", ) 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="magni", + smart_link_id="enim", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="magni", + smart_link_id="enim", ) assert response.is_closed is True @@ -358,7 +358,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="magni", + smart_link_id="enim", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="esse", + smart_link_id="vel", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="esse", + smart_link_id="vel", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="esse", + smart_link_id="vel", ) assert response.is_closed is True @@ -411,7 +411,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="esse", + smart_link_id="vel", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="ab", + smart_link_id="omnis", ) assert smart_link is None @@ -441,7 +441,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="ab", + smart_link_id="omnis", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="ab", + smart_link_id="omnis", ) assert response.is_closed is True @@ -464,7 +464,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="ab", + smart_link_id="omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="quod", + smart_link_id="est", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="quod", + smart_link_id="est", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="quod", + smart_link_id="est", ) assert response.is_closed is True @@ -516,7 +516,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="quod", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["iagjbibujmbrfj"]}, + filter={"tags": ["qty"]}, limit=50, name="Instagram", offset=0, @@ -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="sapiente", + smart_link_id="dolore", ) 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="sapiente", + smart_link_id="dolore", 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="sapiente", + smart_link_id="dolore", ) 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="sapiente", + smart_link_id="dolore", ) 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="architecto", + smart_link_id="minima", ) 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="architecto", + smart_link_id="minima", 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="architecto", + smart_link_id="minima", ) 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="architecto", + smart_link_id="minima", ) 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="magni", + smart_link_id="enim", ) 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="magni", + smart_link_id="enim", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="magni", + smart_link_id="enim", ) assert response.is_closed is True @@ -871,7 +871,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="magni", + smart_link_id="enim", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="esse", + smart_link_id="vel", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="esse", + smart_link_id="vel", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="esse", + smart_link_id="vel", ) assert response.is_closed is True @@ -924,7 +924,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="esse", + smart_link_id="vel", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="ab", + smart_link_id="omnis", ) assert smart_link is None @@ -954,7 +954,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="ab", + smart_link_id="omnis", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="ab", + smart_link_id="omnis", ) assert response.is_closed is True @@ -977,7 +977,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="ab", + smart_link_id="omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="quod", + smart_link_id="est", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="quod", + smart_link_id="est", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="quod", + smart_link_id="est", ) assert response.is_closed is True @@ -1029,7 +1029,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="quod", + 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 584d4688..17e775de 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": "xrho", - "tags": ["yrijvvykpelpyszb"], + "search": "bgaonlgjj", + "tags": ["qwmnhswbocbrwyzmtneha"], }, 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": "ixcexrtbrlndykk", - "tags": ["nlyezkevnvxmlylbtq"], + "search": "uffegxbbnxob", + "tags": ["enbwof"], }, 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": "mmperewfynhkshvxgagla", - "tags": ["iwkfbadxicatpid"], + "include_smart_links": False, + "search": "zkbzrdbyfvgdeban", + "tags": ["xoaswtcgdhrwrpsnogw"], }, 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": "hiuuwqvbuivmxscpcwj", - "tags": ["ljyv"], + "search": "widzwerqijicuin", + "tags": ["yzuzrcmjetykfjencjbidnqxg"], }, 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": "xrho", - "tags": ["yrijvvykpelpyszb"], + "search": "bgaonlgjj", + "tags": ["qwmnhswbocbrwyzmtneha"], }, 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": "ixcexrtbrlndykk", - "tags": ["nlyezkevnvxmlylbtq"], + "search": "uffegxbbnxob", + "tags": ["enbwof"], }, 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": "mmperewfynhkshvxgagla", - "tags": ["iwkfbadxicatpid"], + "include_smart_links": False, + "search": "zkbzrdbyfvgdeban", + "tags": ["xoaswtcgdhrwrpsnogw"], }, 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": "hiuuwqvbuivmxscpcwj", - "tags": ["ljyv"], + "search": "widzwerqijicuin", + "tags": ["yzuzrcmjetykfjencjbidnqxg"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index b2a33eee..753d6712 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="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="qui", + 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="qui", + 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="qui", + tracking_link_id="quia", account="", ) @@ -196,7 +196,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="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="quia", account="", ) @@ -248,7 +248,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="veritatis", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="veritatis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="veritatis", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="veritatis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="veritatis", account="", ) @@ -312,7 +312,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="libero", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="libero", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="libero", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="libero", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="libero", + tracking_link_id="quis", account="", ) @@ -563,7 +563,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="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="quia", account="", ) @@ -674,7 +674,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="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="quia", account="", ) @@ -726,7 +726,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="veritatis", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="veritatis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="veritatis", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="veritatis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="veritatis", account="", ) @@ -790,7 +790,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="libero", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="libero", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="libero", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="libero", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="libero", + tracking_link_id="quis", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 211d0233..ae470b84 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="reiciendis", 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="reiciendis", 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="reiciendis", 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="reiciendis", account="", ) @@ -205,7 +205,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="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="reiciendis", account="", ) @@ -321,7 +321,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="ipsum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="ipsum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="ipsum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="ipsum", + trial_link_id="est", account="", limit=10, offset=0, @@ -383,7 +383,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="placeat", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="placeat", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="placeat", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="placeat", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="placeat", + trial_link_id="sit", account="", ) @@ -447,7 +447,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="laudantium", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="laudantium", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="laudantium", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="laudantium", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="laudantium", + trial_link_id="id", account="", ) @@ -583,7 +583,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="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="reiciendis", account="", ) @@ -692,7 +692,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="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="reiciendis", account="", ) @@ -808,7 +808,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="ipsum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="ipsum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="ipsum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="ipsum", + trial_link_id="est", account="", limit=10, offset=0, @@ -870,7 +870,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="placeat", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="placeat", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="placeat", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="placeat", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="placeat", + trial_link_id="sit", account="", ) @@ -934,7 +934,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="laudantium", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="laudantium", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="laudantium", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="laudantium", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="laudantium", + trial_link_id="id", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 13db8803..418af39c 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="fzqezaenenscbqdhjo", + name="lwpqwwwqqffdonvikp", ) 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="fzqezaenenscbqdhjo", + name="lwpqwwwqqffdonvikp", ) 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="fzqezaenenscbqdhjo", + name="lwpqwwwqqffdonvikp", ) 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="fzqezaenenscbqdhjo", + name="lwpqwwwqqffdonvikp", ) @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="fzqezaenenscbqdhjo", + name="lwpqwwwqqffdonvikp", ) 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="fzqezaenenscbqdhjo", + name="lwpqwwwqqffdonvikp", ) 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="fzqezaenenscbqdhjo", + name="lwpqwwwqqffdonvikp", ) 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="fzqezaenenscbqdhjo", + name="lwpqwwwqqffdonvikp", ) @pytest.mark.skip(reason="Mock server tests are disabled") From d0e53221eecfb493a4607194bf28a81f9b372a43 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 23 Aug 2026 21:12:35 +0000 Subject: [PATCH 240/249] 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 +- .../api_resources/test_shared_trial_links.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 +-- 18 files changed, 272 insertions(+), 272 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2ddb459b..1aca34c8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f64ed313defbcde810e1a8d9a094e06799e72d0d1d29c6a0c0e7917f8020642f.yml -openapi_spec_hash: d508d92cc5afbca8b9fb3c20b0fee10b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-02449c7bd0ee06a1b5581c42d74655e56bd85c35f6d15f866331750c288a3221.yml +openapi_spec_hash: 9d4de106d4e6df753ada574f4c637d28 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index b22b93e5..b0522fcb 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="illum", + message_id="maiores", 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="illum", + message_id="maiores", 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="illum", + message_id="maiores", 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="illum", + message_id="maiores", 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="illum", + message_id="maiores", 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="illum", + message_id="maiores", 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="illum", + message_id="maiores", 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="illum", + message_id="maiores", 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="illum", + message_id="maiores", 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="illum", + message_id="maiores", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 92d05df7..49f2ba15 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="sint", + list_id="rem", 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="sint", + list_id="rem", 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="sint", + list_id="rem", 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="sint", + list_id="rem", 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="sint", + list_id="rem", 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="sint", + list_id="rem", 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="sint", + list_id="rem", 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="sint", + list_id="rem", 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="sint", + list_id="rem", 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="sint", + list_id="rem", 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="sint", + list_id="rem", 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="sint", + list_id="rem", 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="sint", + list_id="rem", 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="sint", + list_id="rem", 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="sint", + list_id="rem", 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="sint", + list_id="rem", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 56d6dacf..d485e8c6 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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="nisi", 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 aa735c97..a62ccbd3 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 2ced6cb5..fc7b1635 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 9664075f..544df889 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 9ee0e4fa..e1fd8753 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="deserunt", + path_story_id="aut", 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="deserunt", + path_story_id="aut", 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="deserunt", + path_story_id="aut", 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="deserunt", + path_story_id="aut", 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="deserunt", + story_id="aut", 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="deserunt", + story_id="aut", 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="deserunt", + story_id="aut", 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="deserunt", + story_id="aut", 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="deserunt", + path_story_id="aut", 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="deserunt", + path_story_id="aut", 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="deserunt", + path_story_id="aut", 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="deserunt", + path_story_id="aut", 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="deserunt", + story_id="aut", 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="deserunt", + story_id="aut", 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="deserunt", + story_id="aut", 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="deserunt", + story_id="aut", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 23f17ad0..858c6412 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( - "occaecati", + "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( - "occaecati", + "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( - "occaecati", + "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( - "occaecati", + "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( - "occaecati", + "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( - "occaecati", + "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 ae332f35..7ec6cba3 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="iste", + auth_id="asperiores", auth_type="mobile_app", - cookies="voluptatem", + cookies="autem", custom_proxy={ "host": "proxy.example.com", - "password": "!I4Eg1NzM[>G$9Z%(", + "password": "&}#1#sdFK[X|fVkt`5#|", "port": 8080, - "username": "corporis", + "username": "ut", }, - email="raleigh81@example.com", - force_connect=False, - name="beatae", - password="nN^&m?X+~Hc**Z", - proxy_country="uk", - user_agent="molestiae", - xbc="voluptatibus", + email="douglas.schaefer@example.net", + force_connect=True, + name="eum", + password="\\&@i@u(FN{x4h|2qrZLE", + proxy_country="us", + user_agent="nam", + xbc="labore", ) 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="iste", + auth_id="asperiores", auth_type="mobile_app", - cookies="voluptatem", + cookies="autem", custom_proxy={ "host": "proxy.example.com", - "password": "!I4Eg1NzM[>G$9Z%(", + "password": "&}#1#sdFK[X|fVkt`5#|", "port": 8080, - "username": "corporis", + "username": "ut", }, - email="raleigh81@example.com", - force_connect=False, - name="beatae", - password="nN^&m?X+~Hc**Z", - proxy_country="uk", - user_agent="molestiae", - xbc="voluptatibus", + email="douglas.schaefer@example.net", + force_connect=True, + name="eum", + password="\\&@i@u(FN{x4h|2qrZLE", + proxy_country="us", + user_agent="nam", + xbc="labore", ) 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 9249f386..0d035d3b 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="gb", ) 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="gb", ) 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 aaff3bff..280e3de9 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 460562b7..6acc8db5 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": ["qty"]}, + filter={"tags": ["rqxssyy"]}, limit=50, name="Instagram", offset=0, @@ -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="dolore", + smart_link_id="voluptatem", ) 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="dolore", + smart_link_id="voluptatem", 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="dolore", + smart_link_id="voluptatem", ) 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="dolore", + smart_link_id="voluptatem", ) 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="minima", + smart_link_id="itaque", ) 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="minima", + smart_link_id="itaque", 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="minima", + smart_link_id="itaque", ) 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="minima", + smart_link_id="itaque", ) 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="enim", + smart_link_id="doloremque", ) 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="enim", + smart_link_id="doloremque", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="enim", + smart_link_id="doloremque", ) assert response.is_closed is True @@ -358,7 +358,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="enim", + smart_link_id="doloremque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="sit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="sit", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="sit", ) assert response.is_closed is True @@ -411,7 +411,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="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="omnis", + smart_link_id="sequi", ) assert smart_link is None @@ -441,7 +441,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="omnis", + smart_link_id="sequi", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="omnis", + smart_link_id="sequi", ) assert response.is_closed is True @@ -464,7 +464,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="omnis", + smart_link_id="sequi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="iure", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="iure", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="iure", ) assert response.is_closed is True @@ -516,7 +516,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="iure", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["qty"]}, + filter={"tags": ["rqxssyy"]}, limit=50, name="Instagram", offset=0, @@ -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="dolore", + smart_link_id="voluptatem", ) 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="dolore", + smart_link_id="voluptatem", 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="dolore", + smart_link_id="voluptatem", ) 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="dolore", + smart_link_id="voluptatem", ) 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="minima", + smart_link_id="itaque", ) 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="minima", + smart_link_id="itaque", 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="minima", + smart_link_id="itaque", ) 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="minima", + smart_link_id="itaque", ) 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="enim", + smart_link_id="doloremque", ) 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="enim", + smart_link_id="doloremque", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="enim", + smart_link_id="doloremque", ) assert response.is_closed is True @@ -871,7 +871,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="enim", + smart_link_id="doloremque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="sit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="sit", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="sit", ) assert response.is_closed is True @@ -924,7 +924,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="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="omnis", + smart_link_id="sequi", ) assert smart_link is None @@ -954,7 +954,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="omnis", + smart_link_id="sequi", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="omnis", + smart_link_id="sequi", ) assert response.is_closed is True @@ -977,7 +977,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="omnis", + smart_link_id="sequi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="iure", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="iure", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="iure", ) assert response.is_closed is True @@ -1029,7 +1029,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="iure", ) 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 17e775de..1c47906a 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": "bgaonlgjj", - "tags": ["qwmnhswbocbrwyzmtneha"], + "search": "ptrfd", + "tags": ["zw"], }, 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": "uffegxbbnxob", - "tags": ["enbwof"], + "search": "jsmazp", + "tags": ["gdyflvjhpfmhkf"], }, 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": "zkbzrdbyfvgdeban", - "tags": ["xoaswtcgdhrwrpsnogw"], + "include_smart_links": True, + "search": "glgtfnknygsghuv", + "tags": ["nsipbeapoiokwha"], }, 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": "widzwerqijicuin", - "tags": ["yzuzrcmjetykfjencjbidnqxg"], + "search": "ffhedwfczlsraryjdeqmz", + "tags": ["mdedjimeudkcqqvkofngnso"], }, 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": "bgaonlgjj", - "tags": ["qwmnhswbocbrwyzmtneha"], + "search": "ptrfd", + "tags": ["zw"], }, 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": "uffegxbbnxob", - "tags": ["enbwof"], + "search": "jsmazp", + "tags": ["gdyflvjhpfmhkf"], }, 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": "zkbzrdbyfvgdeban", - "tags": ["xoaswtcgdhrwrpsnogw"], + "include_smart_links": True, + "search": "glgtfnknygsghuv", + "tags": ["nsipbeapoiokwha"], }, 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": "widzwerqijicuin", - "tags": ["yzuzrcmjetykfjencjbidnqxg"], + "search": "ffhedwfczlsraryjdeqmz", + "tags": ["mdedjimeudkcqqvkofngnso"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 753d6712..b1c3365e 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="vel", 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="vel", 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="vel", 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="vel", account="", ) @@ -196,7 +196,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="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="vel", account="", ) @@ -248,7 +248,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="veritatis", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="veritatis", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="veritatis", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="veritatis", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="veritatis", + tracking_link_id="et", account="", ) @@ -312,7 +312,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="quis", + tracking_link_id="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="quis", + tracking_link_id="reiciendis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="quis", + tracking_link_id="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="quis", + tracking_link_id="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="quis", + tracking_link_id="reiciendis", account="", ) @@ -563,7 +563,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="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="vel", account="", ) @@ -674,7 +674,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="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="vel", account="", ) @@ -726,7 +726,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="veritatis", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="veritatis", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="veritatis", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="veritatis", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="veritatis", + tracking_link_id="et", account="", ) @@ -790,7 +790,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="quis", + tracking_link_id="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="quis", + tracking_link_id="reiciendis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="quis", + tracking_link_id="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="quis", + tracking_link_id="reiciendis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="quis", + tracking_link_id="reiciendis", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index ae470b84..4ee036ef 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="reiciendis", + trial_link_id="aut", 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="reiciendis", + trial_link_id="aut", 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="reiciendis", + trial_link_id="aut", 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="reiciendis", + trial_link_id="aut", account="", ) @@ -205,7 +205,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="reiciendis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="reiciendis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="reiciendis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="reiciendis", + trial_link_id="aut", account="", ) @@ -321,7 +321,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="voluptas", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="voluptas", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="voluptas", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="voluptas", account="", limit=10, offset=0, @@ -383,7 +383,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="sit", + trial_link_id="nisi", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="sit", + trial_link_id="nisi", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="sit", + trial_link_id="nisi", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="sit", + trial_link_id="nisi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="sit", + trial_link_id="nisi", account="", ) @@ -447,7 +447,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="eum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="eum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="eum", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="eum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="eum", account="", ) @@ -583,7 +583,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="reiciendis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="reiciendis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="reiciendis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="reiciendis", + trial_link_id="aut", account="", ) @@ -692,7 +692,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="reiciendis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="reiciendis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="reiciendis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="reiciendis", + trial_link_id="aut", account="", ) @@ -808,7 +808,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="voluptas", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="voluptas", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="voluptas", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="voluptas", account="", limit=10, offset=0, @@ -870,7 +870,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="sit", + trial_link_id="nisi", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="sit", + trial_link_id="nisi", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="sit", + trial_link_id="nisi", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="sit", + trial_link_id="nisi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="sit", + trial_link_id="nisi", account="", ) @@ -934,7 +934,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="eum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="eum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="eum", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="eum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="eum", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 418af39c..b29d2b14 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="lwpqwwwqqffdonvikp", + name="xvntzgfveqrouznemdtwig", ) 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="lwpqwwwqqffdonvikp", + name="xvntzgfveqrouznemdtwig", ) 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="lwpqwwwqqffdonvikp", + name="xvntzgfveqrouznemdtwig", ) 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="lwpqwwwqqffdonvikp", + name="xvntzgfveqrouznemdtwig", ) @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="lwpqwwwqqffdonvikp", + name="xvntzgfveqrouznemdtwig", ) 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="lwpqwwwqqffdonvikp", + name="xvntzgfveqrouznemdtwig", ) 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="lwpqwwwqqffdonvikp", + name="xvntzgfveqrouznemdtwig", ) 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="lwpqwwwqqffdonvikp", + name="xvntzgfveqrouznemdtwig", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 89c4de4ba7fb9a789dfb8a0e01cbe61b16c8701d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 24 Aug 2026 00:12:34 +0000 Subject: [PATCH 241/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/mass_messaging.py | 24 +++-- src/onlyfansapi/resources/queue.py | 57 ++++++---- src/onlyfansapi/types/queue_list_params.py | 31 ++++-- .../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_queue.py | 34 ++++-- .../api_resources/test_shared_trial_links.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 +-- 22 files changed, 373 insertions(+), 313 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1aca34c8..593b3843 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-02449c7bd0ee06a1b5581c42d74655e56bd85c35f6d15f866331750c288a3221.yml -openapi_spec_hash: 9d4de106d4e6df753ada574f4c637d28 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f140a250991f032346b7608fc1537772544176a5415f903ea8c1575bd526f21c.yml +openapi_spec_hash: 8d2af7aeb4b1adf6e44d2314ff7cab03 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/mass_messaging.py b/src/onlyfansapi/resources/mass_messaging.py index 796b6ea1..03fb38e4 100644 --- a/src/onlyfansapi/resources/mass_messaging.py +++ b/src/onlyfansapi/resources/mass_messaging.py @@ -62,7 +62,8 @@ def retrieve( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> MassMessagingRetrieveResponse: """ - Get the content of a mass message. + Get the content and settings of a mass message, including a message scheduled + for later. Args: extra_headers: Send extra headers @@ -108,7 +109,8 @@ def update( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> MassMessagingUpdateResponse: """ - Update a mass message. + Update the content, recipients, media, price, or scheduled send time of an + existing mass message. Args: text: The message text content @@ -185,8 +187,10 @@ def list( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> MassMessagingListResponse: - """ - List the pending or recently sent mass messages in the message queue. + """List pending, scheduled, and recently sent mass messages. + + Use an item ID to + retrieve, update, reschedule, delete, or unsend the message. Args: extra_headers: Send extra headers @@ -446,7 +450,8 @@ async def retrieve( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> MassMessagingRetrieveResponse: """ - Get the content of a mass message. + Get the content and settings of a mass message, including a message scheduled + for later. Args: extra_headers: Send extra headers @@ -492,7 +497,8 @@ async def update( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> MassMessagingUpdateResponse: """ - Update a mass message. + Update the content, recipients, media, price, or scheduled send time of an + existing mass message. Args: text: The message text content @@ -569,8 +575,10 @@ async def list( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> MassMessagingListResponse: - """ - List the pending or recently sent mass messages in the message queue. + """List pending, scheduled, and recently sent mass messages. + + Use an item ID to + retrieve, update, reschedule, delete, or unsend the message. Args: extra_headers: Send extra headers diff --git a/src/onlyfansapi/resources/queue.py b/src/onlyfansapi/resources/queue.py index 68a2fa71..20a96cca 100644 --- a/src/onlyfansapi/resources/queue.py +++ b/src/onlyfansapi/resources/queue.py @@ -2,10 +2,13 @@ from __future__ import annotations +from typing import List +from typing_extensions import Literal + import httpx from ..types import queue_list_params, queue_count_params -from .._types import Body, Query, Headers, NotGiven, not_given +from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from .._utils import path_template, maybe_transform, async_maybe_transform from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -47,10 +50,11 @@ def list( self, account: str, *, - limit: int, publish_date_end: str, publish_date_start: str, timezone: str, + limit: int | Omit = omit, + type: List[Literal["chat", "post"]] | 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, @@ -58,18 +62,24 @@ def list( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> QueueListResponse: - """ - List posts and messages in the queue. + """List scheduled posts and mass messages for a date range. + + Use the type filter to + return only posts, messages, or both. Args: - limit: Maximum number of queue items to return (default = 20) + publish_date_end: Latest publish date to return. Must be a valid date. Must be a valid date. Must + be a date after or equal to publishDateStart. - publish_date_end: Latest publish date to return + publish_date_start: Earliest publish date to return (must be at least today). Must be a valid date. + Must be a valid date. Must be a date after or equal to today. - publish_date_start: Earliest publish date to return (must be at least today) + timezone: Timezone of the provided dates. + [View available timezone values](https://www.php.net/manual/en/timezones.php). + Must be a valid time zone, such as Africa/Accra. - timezone: Time timezone of the provided dates. - [View available timezone values](https://www.php.net/manual/en/timezones.php) + limit: Maximum number of queue items to return (default 20). Must be at least 1. Must + not be greater than 100. extra_headers: Send extra headers @@ -90,10 +100,11 @@ def list( timeout=timeout, query=maybe_transform( { - "limit": limit, "publish_date_end": publish_date_end, "publish_date_start": publish_date_start, "timezone": timezone, + "limit": limit, + "type": type, }, queue_list_params.QueueListParams, ), @@ -218,10 +229,11 @@ async def list( self, account: str, *, - limit: int, publish_date_end: str, publish_date_start: str, timezone: str, + limit: int | Omit = omit, + type: List[Literal["chat", "post"]] | 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, @@ -229,18 +241,24 @@ async def list( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> QueueListResponse: - """ - List posts and messages in the queue. + """List scheduled posts and mass messages for a date range. + + Use the type filter to + return only posts, messages, or both. Args: - limit: Maximum number of queue items to return (default = 20) + publish_date_end: Latest publish date to return. Must be a valid date. Must be a valid date. Must + be a date after or equal to publishDateStart. - publish_date_end: Latest publish date to return + publish_date_start: Earliest publish date to return (must be at least today). Must be a valid date. + Must be a valid date. Must be a date after or equal to today. - publish_date_start: Earliest publish date to return (must be at least today) + timezone: Timezone of the provided dates. + [View available timezone values](https://www.php.net/manual/en/timezones.php). + Must be a valid time zone, such as Africa/Accra. - timezone: Time timezone of the provided dates. - [View available timezone values](https://www.php.net/manual/en/timezones.php) + limit: Maximum number of queue items to return (default 20). Must be at least 1. Must + not be greater than 100. extra_headers: Send extra headers @@ -261,10 +279,11 @@ async def list( timeout=timeout, query=await async_maybe_transform( { - "limit": limit, "publish_date_end": publish_date_end, "publish_date_start": publish_date_start, "timezone": timezone, + "limit": limit, + "type": type, }, queue_list_params.QueueListParams, ), diff --git a/src/onlyfansapi/types/queue_list_params.py b/src/onlyfansapi/types/queue_list_params.py index 93bd08f1..dab6b00b 100644 --- a/src/onlyfansapi/types/queue_list_params.py +++ b/src/onlyfansapi/types/queue_list_params.py @@ -2,7 +2,8 @@ from __future__ import annotations -from typing_extensions import Required, Annotated, TypedDict +from typing import List +from typing_extensions import Literal, Required, Annotated, TypedDict from .._utils import PropertyInfo @@ -10,17 +11,31 @@ class QueueListParams(TypedDict, total=False): - limit: Required[int] - """Maximum number of queue items to return (default = 20)""" - publish_date_end: Required[Annotated[str, PropertyInfo(alias="publishDateEnd")]] - """Latest publish date to return""" + """Latest publish date to return. + + Must be a valid date. Must be a valid date. Must be a date after or equal to + publishDateStart. + """ publish_date_start: Required[Annotated[str, PropertyInfo(alias="publishDateStart")]] - """Earliest publish date to return (must be at least today)""" + """Earliest publish date to return (must be at least today). + + Must be a valid date. Must be a valid date. Must be a date after or equal to + today. + """ timezone: Required[str] - """Time timezone of the provided dates. + """Timezone of the provided dates. - [View available timezone values](https://www.php.net/manual/en/timezones.php) + [View available timezone values](https://www.php.net/manual/en/timezones.php). + Must be a valid time zone, such as Africa/Accra. """ + + limit: int + """Maximum number of queue items to return (default 20). + + Must be at least 1. Must not be greater than 100. + """ + + type: List[Literal["chat", "post"]] diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index b0522fcb..1807ff00 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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="maiores", + 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 49f2ba15..7e10c878 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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="rem", + 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 d485e8c6..c7066f7e 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="nisi", + post_id="illum", 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="nisi", + post_id="illum", 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="nisi", + post_id="illum", 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="nisi", + post_id="illum", 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="nisi", + post_id="illum", 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="nisi", + post_id="illum", 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="nisi", + post_id="illum", 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="nisi", + post_id="illum", 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="nisi", + post_id="illum", 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="nisi", + post_id="illum", 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="nisi", + post_id="illum", 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="nisi", + post_id="illum", 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="nisi", + post_id="illum", 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="nisi", + post_id="illum", 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="nisi", + post_id="illum", 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="nisi", + post_id="illum", 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="nisi", + post_id="illum", 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="nisi", + post_id="illum", 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="nisi", + post_id="illum", 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="nisi", + post_id="illum", 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 a62ccbd3..aa735c97 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/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index fc7b1635..9c80483e 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 e1fd8753..2788413e 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="aut", + path_story_id="accusamus", 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="aut", + path_story_id="accusamus", 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="aut", + path_story_id="accusamus", 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="aut", + path_story_id="accusamus", 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="aut", + story_id="accusamus", 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="aut", + story_id="accusamus", 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="aut", + story_id="accusamus", 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="aut", + story_id="accusamus", 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="aut", + path_story_id="accusamus", 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="aut", + path_story_id="accusamus", 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="aut", + path_story_id="accusamus", 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="aut", + path_story_id="accusamus", 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="aut", + story_id="accusamus", 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="aut", + story_id="accusamus", 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="aut", + story_id="accusamus", 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="aut", + story_id="accusamus", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 858c6412..ca2c75e8 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", + "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( - "quo", + "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( - "quo", + "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( - "quo", + "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( - "quo", + "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( - "quo", + "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 7ec6cba3..84df544c 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="asperiores", + auth_id="necessitatibus", auth_type="mobile_app", - cookies="autem", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "&}#1#sdFK[X|fVkt`5#|", + "password": "9MJ#od)P(AV", "port": 8080, - "username": "ut", + "username": "dolor", }, - email="douglas.schaefer@example.net", + email="roscoe46@example.com", force_connect=True, - name="eum", - password="\\&@i@u(FN{x4h|2qrZLE", - proxy_country="us", - user_agent="nam", - xbc="labore", + name="consequatur", + password="yb}Uh^", + proxy_country="gb", + user_agent="sunt", + xbc="sed", ) 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="asperiores", + auth_id="necessitatibus", auth_type="mobile_app", - cookies="autem", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "&}#1#sdFK[X|fVkt`5#|", + "password": "9MJ#od)P(AV", "port": 8080, - "username": "ut", + "username": "dolor", }, - email="douglas.schaefer@example.net", + email="roscoe46@example.com", force_connect=True, - name="eum", - password="\\&@i@u(FN{x4h|2qrZLE", - proxy_country="us", - user_agent="nam", - xbc="labore", + name="consequatur", + password="yb}Uh^", + proxy_country="gb", + user_agent="sunt", + xbc="sed", ) 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 0d035d3b..3597ede6 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="gb", + 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="gb", + 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 280e3de9..1a80b275 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="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="comments", + type="onlyfans", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e23..bd4f6161 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_queue.py b/tests/api_resources/test_queue.py index b5cda3e9..ed4d6f6f 100644 --- a/tests/api_resources/test_queue.py +++ b/tests/api_resources/test_queue.py @@ -26,19 +26,30 @@ class TestQueue: def test_method_list(self, client: OnlyFansAPI) -> None: queue = client.queue.list( account="acct_XXXXXXXXXXXXXXX", - limit=20, publish_date_end="2025-01-01", publish_date_start="2025-01-01", timezone="Europe/Prague", ) assert_matches_type(QueueListResponse, queue, path=["response"]) + @pytest.mark.skip(reason="Mock server tests are disabled") + @parametrize + def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: + queue = client.queue.list( + account="acct_XXXXXXXXXXXXXXX", + publish_date_end="2025-01-01", + publish_date_start="2025-01-01", + timezone="Europe/Prague", + limit=20, + type=["post"], + ) + assert_matches_type(QueueListResponse, queue, path=["response"]) + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.queue.with_raw_response.list( account="acct_XXXXXXXXXXXXXXX", - limit=20, publish_date_end="2025-01-01", publish_date_start="2025-01-01", timezone="Europe/Prague", @@ -54,7 +65,6 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.queue.with_streaming_response.list( account="acct_XXXXXXXXXXXXXXX", - limit=20, publish_date_end="2025-01-01", publish_date_start="2025-01-01", timezone="Europe/Prague", @@ -73,7 +83,6 @@ 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.queue.with_raw_response.list( account="", - limit=20, publish_date_end="2025-01-01", publish_date_start="2025-01-01", timezone="Europe/Prague", @@ -196,19 +205,30 @@ class TestAsyncQueue: async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: queue = await async_client.queue.list( account="acct_XXXXXXXXXXXXXXX", - limit=20, publish_date_end="2025-01-01", publish_date_start="2025-01-01", timezone="Europe/Prague", ) assert_matches_type(QueueListResponse, queue, path=["response"]) + @pytest.mark.skip(reason="Mock server tests are disabled") + @parametrize + async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: + queue = await async_client.queue.list( + account="acct_XXXXXXXXXXXXXXX", + publish_date_end="2025-01-01", + publish_date_start="2025-01-01", + timezone="Europe/Prague", + limit=20, + type=["post"], + ) + assert_matches_type(QueueListResponse, queue, path=["response"]) + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.queue.with_raw_response.list( account="acct_XXXXXXXXXXXXXXX", - limit=20, publish_date_end="2025-01-01", publish_date_start="2025-01-01", timezone="Europe/Prague", @@ -224,7 +244,6 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.queue.with_streaming_response.list( account="acct_XXXXXXXXXXXXXXX", - limit=20, publish_date_end="2025-01-01", publish_date_start="2025-01-01", timezone="Europe/Prague", @@ -243,7 +262,6 @@ 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.queue.with_raw_response.list( account="", - limit=20, publish_date_end="2025-01-01", publish_date_start="2025-01-01", timezone="Europe/Prague", diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 6acc8db5..5fc7e10c 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": ["rqxssyy"]}, + filter={"tags": ["uvxtseimknpzix"]}, limit=50, name="Instagram", offset=0, @@ -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="voluptatem", + smart_link_id="blanditiis", ) 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="voluptatem", + smart_link_id="blanditiis", 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="voluptatem", + smart_link_id="blanditiis", ) 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="voluptatem", + smart_link_id="blanditiis", ) 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="itaque", + smart_link_id="ut", ) 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="itaque", + smart_link_id="ut", 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="itaque", + smart_link_id="ut", ) 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="itaque", + smart_link_id="ut", ) 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="doloremque", + smart_link_id="velit", ) 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="doloremque", + smart_link_id="velit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="doloremque", + smart_link_id="velit", ) assert response.is_closed is True @@ -358,7 +358,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="doloremque", + smart_link_id="velit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="velit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="velit", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="velit", ) assert response.is_closed is True @@ -411,7 +411,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="velit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="sequi", + smart_link_id="ipsum", ) assert smart_link is None @@ -441,7 +441,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="sequi", + smart_link_id="ipsum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="sequi", + smart_link_id="ipsum", ) assert response.is_closed is True @@ -464,7 +464,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="sequi", + smart_link_id="ipsum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="iure", + smart_link_id="est", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="iure", + smart_link_id="est", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="iure", + smart_link_id="est", ) assert response.is_closed is True @@ -516,7 +516,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="iure", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["rqxssyy"]}, + filter={"tags": ["uvxtseimknpzix"]}, limit=50, name="Instagram", offset=0, @@ -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="voluptatem", + smart_link_id="blanditiis", ) 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="voluptatem", + smart_link_id="blanditiis", 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="voluptatem", + smart_link_id="blanditiis", ) 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="voluptatem", + smart_link_id="blanditiis", ) 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="itaque", + 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="itaque", + 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="itaque", + 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="itaque", + 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="doloremque", + smart_link_id="velit", ) 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="doloremque", + smart_link_id="velit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="doloremque", + smart_link_id="velit", ) assert response.is_closed is True @@ -871,7 +871,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="doloremque", + smart_link_id="velit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="velit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="velit", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="velit", ) assert response.is_closed is True @@ -924,7 +924,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="velit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="sequi", + smart_link_id="ipsum", ) assert smart_link is None @@ -954,7 +954,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="sequi", + smart_link_id="ipsum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="sequi", + smart_link_id="ipsum", ) assert response.is_closed is True @@ -977,7 +977,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="sequi", + smart_link_id="ipsum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="iure", + smart_link_id="est", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="iure", + smart_link_id="est", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="iure", + smart_link_id="est", ) assert response.is_closed is True @@ -1029,7 +1029,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="iure", + 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 1c47906a..811cd048 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": "ptrfd", - "tags": ["zw"], + "search": "dvwbz", + "tags": ["bbh"], }, 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": "jsmazp", - "tags": ["gdyflvjhpfmhkf"], + "search": "ieqitbvrigfzlrapnuv", + "tags": ["yybzmtltlrnmy"], }, 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": "glgtfnknygsghuv", - "tags": ["nsipbeapoiokwha"], + "search": "jzjaucvoclvaozt", + "tags": ["vrrwahe"], }, 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": "ffhedwfczlsraryjdeqmz", - "tags": ["mdedjimeudkcqqvkofngnso"], + "include_smart_links": True, + "search": "tpuuzkym", + "tags": ["ysiyeyjxezjffmlmxn"], }, 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": "ptrfd", - "tags": ["zw"], + "search": "dvwbz", + "tags": ["bbh"], }, 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": "jsmazp", - "tags": ["gdyflvjhpfmhkf"], + "search": "ieqitbvrigfzlrapnuv", + "tags": ["yybzmtltlrnmy"], }, 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": "glgtfnknygsghuv", - "tags": ["nsipbeapoiokwha"], + "search": "jzjaucvoclvaozt", + "tags": ["vrrwahe"], }, 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": "ffhedwfczlsraryjdeqmz", - "tags": ["mdedjimeudkcqqvkofngnso"], + "include_smart_links": True, + "search": "tpuuzkym", + "tags": ["ysiyeyjxezjffmlmxn"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index b1c3365e..6607cd3d 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="vel", + tracking_link_id="dolorum", 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="vel", + tracking_link_id="dolorum", 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="vel", + tracking_link_id="dolorum", 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="vel", + tracking_link_id="dolorum", account="", ) @@ -196,7 +196,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="vel", + tracking_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="vel", + tracking_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="vel", + tracking_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="vel", + tracking_link_id="dolorum", account="", ) @@ -248,7 +248,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="ad", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="ad", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="ad", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="ad", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="ad", account="", ) @@ -312,7 +312,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="ad", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="ad", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="ad", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="ad", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="ad", account="", ) @@ -563,7 +563,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="vel", + tracking_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="vel", + tracking_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="vel", + tracking_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="vel", + tracking_link_id="dolorum", account="", ) @@ -674,7 +674,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="vel", + tracking_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="vel", + tracking_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="vel", + tracking_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="vel", + tracking_link_id="dolorum", account="", ) @@ -726,7 +726,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="ad", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="ad", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="ad", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="ad", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="ad", account="", ) @@ -790,7 +790,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="ad", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="ad", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="ad", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="ad", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="ad", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 4ee036ef..726dd0d7 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="aut", + trial_link_id="qui", 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="aut", + trial_link_id="qui", 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="aut", + trial_link_id="qui", 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="aut", + trial_link_id="qui", account="", ) @@ -205,7 +205,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="aut", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="aut", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="aut", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="aut", + trial_link_id="qui", account="", ) @@ -321,7 +321,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="voluptas", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="voluptas", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="voluptas", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="voluptas", + trial_link_id="dolores", account="", limit=10, offset=0, @@ -383,7 +383,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="nisi", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="nisi", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="nisi", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="nisi", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="nisi", + trial_link_id="consectetur", account="", ) @@ -447,7 +447,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="eum", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="eum", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="eum", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="eum", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="eum", + trial_link_id="consequatur", account="", ) @@ -583,7 +583,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="aut", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="aut", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="aut", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="aut", + trial_link_id="qui", account="", ) @@ -692,7 +692,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="aut", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="aut", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="aut", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="aut", + trial_link_id="qui", account="", ) @@ -808,7 +808,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="voluptas", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="voluptas", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="voluptas", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="voluptas", + trial_link_id="dolores", account="", limit=10, offset=0, @@ -870,7 +870,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="nisi", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="nisi", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="nisi", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="nisi", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="nisi", + trial_link_id="consectetur", account="", ) @@ -934,7 +934,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="eum", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="eum", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="eum", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="eum", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="eum", + trial_link_id="consequatur", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index b29d2b14..ff2ae577 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="xvntzgfveqrouznemdtwig", + name="bdqaozoqrnmisspdfdifh", ) 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="xvntzgfveqrouznemdtwig", + name="bdqaozoqrnmisspdfdifh", ) 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="xvntzgfveqrouznemdtwig", + name="bdqaozoqrnmisspdfdifh", ) 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="xvntzgfveqrouznemdtwig", + name="bdqaozoqrnmisspdfdifh", ) @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="xvntzgfveqrouznemdtwig", + name="bdqaozoqrnmisspdfdifh", ) 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="xvntzgfveqrouznemdtwig", + name="bdqaozoqrnmisspdfdifh", ) 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="xvntzgfveqrouznemdtwig", + name="bdqaozoqrnmisspdfdifh", ) 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="xvntzgfveqrouznemdtwig", + name="bdqaozoqrnmisspdfdifh", ) @pytest.mark.skip(reason="Mock server tests are disabled") From a8ad51825b5fb756c8bdf68944ae66da6f4c3eb0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 24 Aug 2026 15:12:37 +0000 Subject: [PATCH 242/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/following.py | 133 ++++++++++++++++-- .../types/following_list_active_params.py | 19 ++- .../types/following_list_all_params.py | 19 ++- .../types/following_list_expired_params.py | 19 ++- .../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_following.py | 12 ++ tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 ++++++------- 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, 451 insertions(+), 283 deletions(-) diff --git a/.stats.yml b/.stats.yml index 593b3843..b12d9a09 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f140a250991f032346b7608fc1537772544176a5415f903ea8c1575bd526f21c.yml -openapi_spec_hash: 8d2af7aeb4b1adf6e44d2314ff7cab03 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2981bb00d5867ed47941041f5cf03f89c9b8886804df5861b6ced90a57e4b284.yml +openapi_spec_hash: 9bf4bd2681b9df87f9a020cfe5d547a3 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/following.py b/src/onlyfansapi/resources/following.py index 08df4085..92209297 100644 --- a/src/onlyfansapi/resources/following.py +++ b/src/onlyfansapi/resources/following.py @@ -3,6 +3,7 @@ from __future__ import annotations from typing import Optional +from typing_extensions import Literal import httpx @@ -55,6 +56,8 @@ def list_active( limit: int | Omit = omit, offset: int | Omit = omit, query: Optional[str] | Omit = omit, + sort: Optional[Literal["last_activity", "expire_date", "subscribe_date", "is_expired"]] | Omit = omit, + sort_direction: Optional[Literal["asc", "desc"]] | 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, @@ -64,9 +67,11 @@ def list_active( ) -> FollowingListActiveResponse: """Get a paginated list of followings for an Account. - OnlyFans returns this list - newest-first, sorted by `subscribedByData.subscribeAt` descending. The expired - list does not share this order, so do not assume it applies there. + By default OnlyFans returns + this list newest-first, sorted by `subscribedByData.subscribeAt` descending. The + expired list does not share this order, so do not assume it applies there. Pass + `sort` (optionally with `sortDirection`) to reorder the list — see the parameter + description for the caveat that OnlyFans persists the chosen order account-wide. Args: limit: Number of followings to return (1-50). Must be at least 1. Must not be greater @@ -76,6 +81,17 @@ def list_active( query: Search within following name/username. + sort: Order the list by `last_activity` (the followed creator's last activity), + `expire_date` (subscription expiry), `subscribe_date` (subscription start) or + `is_expired` (expired first — OnlyFans only offers this one on the expired + list). Omit it to keep whichever order is currently stored for the account. + **Note:** OnlyFans persists this order account-wide, so it also applies to later + requests that omit `sort` and to the creator's own onlyfans.com UI, until it is + changed again. This field is required when sortDirection is + present. + + sort_direction: Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -99,6 +115,8 @@ def list_active( "limit": limit, "offset": offset, "query": query, + "sort": sort, + "sort_direction": sort_direction, }, following_list_active_params.FollowingListActiveParams, ), @@ -114,6 +132,8 @@ def list_all( limit: int | Omit = omit, offset: int | Omit = omit, query: Optional[str] | Omit = omit, + sort: Optional[Literal["last_activity", "expire_date", "subscribe_date", "is_expired"]] | Omit = omit, + sort_direction: Optional[Literal["asc", "desc"]] | 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, @@ -123,9 +143,11 @@ def list_all( ) -> FollowingListAllResponse: """Get a paginated list of followings for an Account. - OnlyFans returns this list - newest-first, sorted by `subscribedByData.subscribeAt` descending. The expired - list does not share this order, so do not assume it applies there. + By default OnlyFans returns + this list newest-first, sorted by `subscribedByData.subscribeAt` descending. The + expired list does not share this order, so do not assume it applies there. Pass + `sort` (optionally with `sortDirection`) to reorder the list — see the parameter + description for the caveat that OnlyFans persists the chosen order account-wide. Args: limit: Number of followings to return (1-50). Must be at least 1. Must not be greater @@ -135,6 +157,17 @@ def list_all( query: Search within following name/username. + sort: Order the list by `last_activity` (the followed creator's last activity), + `expire_date` (subscription expiry), `subscribe_date` (subscription start) or + `is_expired` (expired first — OnlyFans only offers this one on the expired + list). Omit it to keep whichever order is currently stored for the account. + **Note:** OnlyFans persists this order account-wide, so it also applies to later + requests that omit `sort` and to the creator's own onlyfans.com UI, until it is + changed again. This field is required when sortDirection is + present. + + sort_direction: Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -158,6 +191,8 @@ def list_all( "limit": limit, "offset": offset, "query": query, + "sort": sort, + "sort_direction": sort_direction, }, following_list_all_params.FollowingListAllParams, ), @@ -173,6 +208,8 @@ def list_expired( limit: int | Omit = omit, offset: int | Omit = omit, query: Optional[str] | Omit = omit, + sort: Optional[Literal["last_activity", "expire_date", "subscribe_date", "is_expired"]] | Omit = omit, + sort_direction: Optional[Literal["asc", "desc"]] | 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, @@ -188,7 +225,10 @@ def list_expired( expirations, page through the full list each cycle (`limit=50`, follow `_pagination.next_page` until it is null) and diff it against your own store using `subscribedByData.expiredAt`. Do NOT stop early at the first entry you - have already seen, as that can silently skip real expirations. + have already seen, as that can silently skip real expirations. Pass + `sort=expire_date` (optionally with `sortDirection`) to get a deterministic + order instead — see the parameter description for the caveat that OnlyFans + persists the chosen order account-wide. Args: limit: Number of followings to return (1-50). Must be at least 1. Must not be greater @@ -198,6 +238,17 @@ def list_expired( query: Search within following name/username. + sort: Order the list by `last_activity` (the followed creator's last activity), + `expire_date` (subscription expiry), `subscribe_date` (subscription start) or + `is_expired` (expired first — OnlyFans only offers this one on the expired + list). Omit it to keep whichever order is currently stored for the account. + **Note:** OnlyFans persists this order account-wide, so it also applies to later + requests that omit `sort` and to the creator's own onlyfans.com UI, until it is + changed again. This field is required when sortDirection is + present. + + sort_direction: Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -221,6 +272,8 @@ def list_expired( "limit": limit, "offset": offset, "query": query, + "sort": sort, + "sort_direction": sort_direction, }, following_list_expired_params.FollowingListExpiredParams, ), @@ -259,6 +312,8 @@ async def list_active( limit: int | Omit = omit, offset: int | Omit = omit, query: Optional[str] | Omit = omit, + sort: Optional[Literal["last_activity", "expire_date", "subscribe_date", "is_expired"]] | Omit = omit, + sort_direction: Optional[Literal["asc", "desc"]] | 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, @@ -268,9 +323,11 @@ async def list_active( ) -> FollowingListActiveResponse: """Get a paginated list of followings for an Account. - OnlyFans returns this list - newest-first, sorted by `subscribedByData.subscribeAt` descending. The expired - list does not share this order, so do not assume it applies there. + By default OnlyFans returns + this list newest-first, sorted by `subscribedByData.subscribeAt` descending. The + expired list does not share this order, so do not assume it applies there. Pass + `sort` (optionally with `sortDirection`) to reorder the list — see the parameter + description for the caveat that OnlyFans persists the chosen order account-wide. Args: limit: Number of followings to return (1-50). Must be at least 1. Must not be greater @@ -280,6 +337,17 @@ async def list_active( query: Search within following name/username. + sort: Order the list by `last_activity` (the followed creator's last activity), + `expire_date` (subscription expiry), `subscribe_date` (subscription start) or + `is_expired` (expired first — OnlyFans only offers this one on the expired + list). Omit it to keep whichever order is currently stored for the account. + **Note:** OnlyFans persists this order account-wide, so it also applies to later + requests that omit `sort` and to the creator's own onlyfans.com UI, until it is + changed again. This field is required when sortDirection is + present. + + sort_direction: Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -303,6 +371,8 @@ async def list_active( "limit": limit, "offset": offset, "query": query, + "sort": sort, + "sort_direction": sort_direction, }, following_list_active_params.FollowingListActiveParams, ), @@ -318,6 +388,8 @@ async def list_all( limit: int | Omit = omit, offset: int | Omit = omit, query: Optional[str] | Omit = omit, + sort: Optional[Literal["last_activity", "expire_date", "subscribe_date", "is_expired"]] | Omit = omit, + sort_direction: Optional[Literal["asc", "desc"]] | 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, @@ -327,9 +399,11 @@ async def list_all( ) -> FollowingListAllResponse: """Get a paginated list of followings for an Account. - OnlyFans returns this list - newest-first, sorted by `subscribedByData.subscribeAt` descending. The expired - list does not share this order, so do not assume it applies there. + By default OnlyFans returns + this list newest-first, sorted by `subscribedByData.subscribeAt` descending. The + expired list does not share this order, so do not assume it applies there. Pass + `sort` (optionally with `sortDirection`) to reorder the list — see the parameter + description for the caveat that OnlyFans persists the chosen order account-wide. Args: limit: Number of followings to return (1-50). Must be at least 1. Must not be greater @@ -339,6 +413,17 @@ async def list_all( query: Search within following name/username. + sort: Order the list by `last_activity` (the followed creator's last activity), + `expire_date` (subscription expiry), `subscribe_date` (subscription start) or + `is_expired` (expired first — OnlyFans only offers this one on the expired + list). Omit it to keep whichever order is currently stored for the account. + **Note:** OnlyFans persists this order account-wide, so it also applies to later + requests that omit `sort` and to the creator's own onlyfans.com UI, until it is + changed again. This field is required when sortDirection is + present. + + sort_direction: Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -362,6 +447,8 @@ async def list_all( "limit": limit, "offset": offset, "query": query, + "sort": sort, + "sort_direction": sort_direction, }, following_list_all_params.FollowingListAllParams, ), @@ -377,6 +464,8 @@ async def list_expired( limit: int | Omit = omit, offset: int | Omit = omit, query: Optional[str] | Omit = omit, + sort: Optional[Literal["last_activity", "expire_date", "subscribe_date", "is_expired"]] | Omit = omit, + sort_direction: Optional[Literal["asc", "desc"]] | 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, @@ -392,7 +481,10 @@ async def list_expired( expirations, page through the full list each cycle (`limit=50`, follow `_pagination.next_page` until it is null) and diff it against your own store using `subscribedByData.expiredAt`. Do NOT stop early at the first entry you - have already seen, as that can silently skip real expirations. + have already seen, as that can silently skip real expirations. Pass + `sort=expire_date` (optionally with `sortDirection`) to get a deterministic + order instead — see the parameter description for the caveat that OnlyFans + persists the chosen order account-wide. Args: limit: Number of followings to return (1-50). Must be at least 1. Must not be greater @@ -402,6 +494,17 @@ async def list_expired( query: Search within following name/username. + sort: Order the list by `last_activity` (the followed creator's last activity), + `expire_date` (subscription expiry), `subscribe_date` (subscription start) or + `is_expired` (expired first — OnlyFans only offers this one on the expired + list). Omit it to keep whichever order is currently stored for the account. + **Note:** OnlyFans persists this order account-wide, so it also applies to later + requests that omit `sort` and to the creator's own onlyfans.com UI, until it is + changed again. This field is required when sortDirection is + present. + + sort_direction: Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -425,6 +528,8 @@ async def list_expired( "limit": limit, "offset": offset, "query": query, + "sort": sort, + "sort_direction": sort_direction, }, following_list_expired_params.FollowingListExpiredParams, ), diff --git a/src/onlyfansapi/types/following_list_active_params.py b/src/onlyfansapi/types/following_list_active_params.py index 3b609c2e..bc76f72b 100644 --- a/src/onlyfansapi/types/following_list_active_params.py +++ b/src/onlyfansapi/types/following_list_active_params.py @@ -3,7 +3,9 @@ from __future__ import annotations from typing import Optional -from typing_extensions import Literal, TypedDict +from typing_extensions import Literal, Annotated, TypedDict + +from .._utils import PropertyInfo __all__ = ["FollowingListActiveParams", "Filter"] @@ -23,6 +25,21 @@ class FollowingListActiveParams(TypedDict, total=False): query: Optional[str] """Search within following name/username.""" + sort: Optional[Literal["last_activity", "expire_date", "subscribe_date", "is_expired"]] + """ + Order the list by `last_activity` (the followed creator's last activity), + `expire_date` (subscription expiry), `subscribe_date` (subscription start) or + `is_expired` (expired first — OnlyFans only offers this one on the expired + list). Omit it to keep whichever order is currently stored for the account. + **Note:** OnlyFans persists this order account-wide, so it also applies to later + requests that omit `sort` and to the creator's own onlyfans.com UI, until it is + changed again. This field is required when sortDirection is + present. + """ + + sort_direction: Annotated[Optional[Literal["asc", "desc"]], PropertyInfo(alias="sortDirection")] + """Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set.""" + class Filter(TypedDict, total=False): online: Optional[Literal[1, 0]] diff --git a/src/onlyfansapi/types/following_list_all_params.py b/src/onlyfansapi/types/following_list_all_params.py index 8016b3f8..40e24a34 100644 --- a/src/onlyfansapi/types/following_list_all_params.py +++ b/src/onlyfansapi/types/following_list_all_params.py @@ -3,7 +3,9 @@ from __future__ import annotations from typing import Optional -from typing_extensions import Literal, TypedDict +from typing_extensions import Literal, Annotated, TypedDict + +from .._utils import PropertyInfo __all__ = ["FollowingListAllParams", "Filter"] @@ -23,6 +25,21 @@ class FollowingListAllParams(TypedDict, total=False): query: Optional[str] """Search within following name/username.""" + sort: Optional[Literal["last_activity", "expire_date", "subscribe_date", "is_expired"]] + """ + Order the list by `last_activity` (the followed creator's last activity), + `expire_date` (subscription expiry), `subscribe_date` (subscription start) or + `is_expired` (expired first — OnlyFans only offers this one on the expired + list). Omit it to keep whichever order is currently stored for the account. + **Note:** OnlyFans persists this order account-wide, so it also applies to later + requests that omit `sort` and to the creator's own onlyfans.com UI, until it is + changed again. This field is required when sortDirection is + present. + """ + + sort_direction: Annotated[Optional[Literal["asc", "desc"]], PropertyInfo(alias="sortDirection")] + """Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set.""" + class Filter(TypedDict, total=False): online: Optional[Literal[1, 0]] diff --git a/src/onlyfansapi/types/following_list_expired_params.py b/src/onlyfansapi/types/following_list_expired_params.py index a3ac1f99..06167493 100644 --- a/src/onlyfansapi/types/following_list_expired_params.py +++ b/src/onlyfansapi/types/following_list_expired_params.py @@ -3,7 +3,9 @@ from __future__ import annotations from typing import Optional -from typing_extensions import Literal, TypedDict +from typing_extensions import Literal, Annotated, TypedDict + +from .._utils import PropertyInfo __all__ = ["FollowingListExpiredParams", "Filter"] @@ -23,6 +25,21 @@ class FollowingListExpiredParams(TypedDict, total=False): query: Optional[str] """Search within following name/username.""" + sort: Optional[Literal["last_activity", "expire_date", "subscribe_date", "is_expired"]] + """ + Order the list by `last_activity` (the followed creator's last activity), + `expire_date` (subscription expiry), `subscribe_date` (subscription start) or + `is_expired` (expired first — OnlyFans only offers this one on the expired + list). Omit it to keep whichever order is currently stored for the account. + **Note:** OnlyFans persists this order account-wide, so it also applies to later + requests that omit `sort` and to the creator's own onlyfans.com UI, until it is + changed again. This field is required when sortDirection is + present. + """ + + sort_direction: Annotated[Optional[Literal["asc", "desc"]], PropertyInfo(alias="sortDirection")] + """Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set.""" + class Filter(TypedDict, total=False): online: Optional[Literal[1, 0]] diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 1807ff00..b5cbb6bd 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="veritatis", 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="veritatis", 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="veritatis", 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="veritatis", 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="veritatis", 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="veritatis", 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="veritatis", 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="veritatis", 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="veritatis", 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="veritatis", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 7e10c878..e29d108e 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", 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="necessitatibus", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index c7066f7e..c1a63acc 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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="illum", + 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 aa735c97..444937ba 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/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 2788413e..ee78fc67 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="accusamus", + path_story_id="natus", 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="accusamus", + path_story_id="natus", 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="accusamus", + path_story_id="natus", 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="accusamus", + path_story_id="natus", 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="accusamus", + story_id="natus", 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="accusamus", + story_id="natus", 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="accusamus", + story_id="natus", 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="accusamus", + story_id="natus", 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="accusamus", + path_story_id="natus", 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="accusamus", + path_story_id="natus", 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="accusamus", + path_story_id="natus", 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="accusamus", + path_story_id="natus", 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="accusamus", + story_id="natus", 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="accusamus", + story_id="natus", 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="accusamus", + story_id="natus", 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="accusamus", + story_id="natus", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index ca2c75e8..69631938 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", + "cupiditate", ) 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", + "cupiditate", ) 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", + "cupiditate", ) 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", + "cupiditate", ) 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", + "cupiditate", ) 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", + "cupiditate", ) 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 84df544c..7c70fdb8 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="necessitatibus", - auth_type="mobile_app", - cookies="et", + auth_id="qui", + auth_type="email_password", + cookies="aliquid", custom_proxy={ "host": "proxy.example.com", - "password": "9MJ#od)P(AV", + "password": "=@+fxN`EC@aB2.", "port": 8080, - "username": "dolor", + "username": "impedit", }, - email="roscoe46@example.com", + email="rippin.lura@example.org", force_connect=True, - name="consequatur", - password="yb}Uh^", - proxy_country="gb", - user_agent="sunt", - xbc="sed", + name="minima", + password="~9@)vE1wMD/MH6{hRJ", + proxy_country="us", + user_agent="rerum", + xbc="dolor", ) 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="necessitatibus", - auth_type="mobile_app", - cookies="et", + auth_id="qui", + auth_type="email_password", + cookies="aliquid", custom_proxy={ "host": "proxy.example.com", - "password": "9MJ#od)P(AV", + "password": "=@+fxN`EC@aB2.", "port": 8080, - "username": "dolor", + "username": "impedit", }, - email="roscoe46@example.com", + email="rippin.lura@example.org", force_connect=True, - name="consequatur", - password="yb}Uh^", - proxy_country="gb", - user_agent="sunt", - xbc="sed", + name="minima", + password="~9@)vE1wMD/MH6{hRJ", + proxy_country="us", + user_agent="rerum", + xbc="dolor", ) 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 3597ede6..9249f386 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_following.py b/tests/api_resources/test_following.py index 3fa2f038..e650457e 100644 --- a/tests/api_resources/test_following.py +++ b/tests/api_resources/test_following.py @@ -41,6 +41,8 @@ def test_method_list_active_with_all_params(self, client: OnlyFansAPI) -> None: limit=10, offset=0, query="john", + sort="subscribe_date", + sort_direction="desc", ) assert_matches_type(FollowingListActiveResponse, following, path=["response"]) @@ -98,6 +100,8 @@ def test_method_list_all_with_all_params(self, client: OnlyFansAPI) -> None: limit=10, offset=0, query="john", + sort="subscribe_date", + sort_direction="desc", ) assert_matches_type(FollowingListAllResponse, following, path=["response"]) @@ -155,6 +159,8 @@ def test_method_list_expired_with_all_params(self, client: OnlyFansAPI) -> None: limit=10, offset=0, query="john", + sort="subscribe_date", + sort_direction="desc", ) assert_matches_type(FollowingListExpiredResponse, following, path=["response"]) @@ -218,6 +224,8 @@ async def test_method_list_active_with_all_params(self, async_client: AsyncOnlyF limit=10, offset=0, query="john", + sort="subscribe_date", + sort_direction="desc", ) assert_matches_type(FollowingListActiveResponse, following, path=["response"]) @@ -275,6 +283,8 @@ async def test_method_list_all_with_all_params(self, async_client: AsyncOnlyFans limit=10, offset=0, query="john", + sort="subscribe_date", + sort_direction="desc", ) assert_matches_type(FollowingListAllResponse, following, path=["response"]) @@ -332,6 +342,8 @@ async def test_method_list_expired_with_all_params(self, async_client: AsyncOnly limit=10, offset=0, query="john", + sort="subscribe_date", + sort_direction="desc", ) assert_matches_type(FollowingListExpiredResponse, following, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 1a80b275..b2158856 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="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="onlyfans", + 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 bd4f6161..65694e23 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_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 5fc7e10c..f30954ee 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": ["uvxtseimknpzix"]}, + filter={"tags": ["amdpaulqoziiqlfipiy"]}, limit=50, name="Instagram", offset=0, @@ -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="blanditiis", + smart_link_id="voluptatibus", ) 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="blanditiis", + smart_link_id="voluptatibus", 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="blanditiis", + smart_link_id="voluptatibus", ) 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="blanditiis", + smart_link_id="voluptatibus", ) 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="ut", + smart_link_id="nam", ) 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="ut", + smart_link_id="nam", 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="ut", + smart_link_id="nam", ) 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="ut", + smart_link_id="nam", ) 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="velit", + smart_link_id="delectus", ) 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="velit", + smart_link_id="delectus", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="velit", + smart_link_id="delectus", ) assert response.is_closed is True @@ -358,7 +358,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="velit", + smart_link_id="delectus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="velit", + smart_link_id="sit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="velit", + smart_link_id="sit", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="velit", + smart_link_id="sit", ) assert response.is_closed is True @@ -411,7 +411,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="velit", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="ipsum", + smart_link_id="repellat", ) assert smart_link is None @@ -441,7 +441,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="ipsum", + smart_link_id="repellat", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="ipsum", + smart_link_id="repellat", ) assert response.is_closed is True @@ -464,7 +464,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="ipsum", + smart_link_id="repellat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="ad", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="ad", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="ad", ) assert response.is_closed is True @@ -516,7 +516,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="ad", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["uvxtseimknpzix"]}, + filter={"tags": ["amdpaulqoziiqlfipiy"]}, limit=50, name="Instagram", offset=0, @@ -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="blanditiis", + smart_link_id="voluptatibus", ) 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="blanditiis", + smart_link_id="voluptatibus", 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="blanditiis", + smart_link_id="voluptatibus", ) 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="blanditiis", + smart_link_id="voluptatibus", ) 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="nam", ) 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="nam", 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="nam", ) 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="nam", ) 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="velit", + smart_link_id="delectus", ) 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="velit", + smart_link_id="delectus", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="velit", + smart_link_id="delectus", ) assert response.is_closed is True @@ -871,7 +871,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="velit", + smart_link_id="delectus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="velit", + smart_link_id="sit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="velit", + smart_link_id="sit", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="velit", + smart_link_id="sit", ) assert response.is_closed is True @@ -924,7 +924,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="velit", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="ipsum", + smart_link_id="repellat", ) assert smart_link is None @@ -954,7 +954,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="ipsum", + smart_link_id="repellat", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="ipsum", + smart_link_id="repellat", ) assert response.is_closed is True @@ -977,7 +977,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="ipsum", + smart_link_id="repellat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="ad", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="ad", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="ad", ) assert response.is_closed is True @@ -1029,7 +1029,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="ad", ) 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 811cd048..2a65ee15 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": "dvwbz", - "tags": ["bbh"], + "search": "szumoecyoo", + "tags": ["wyxgubcnqntanuerkcslefaou"], }, 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": "ieqitbvrigfzlrapnuv", - "tags": ["yybzmtltlrnmy"], + "search": "bdkzbud", + "tags": ["ga"], }, 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": "jzjaucvoclvaozt", - "tags": ["vrrwahe"], + "include_smart_links": False, + "search": "vktzylgkakrqnt", + "tags": ["hupqbipo"], }, 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": "tpuuzkym", - "tags": ["ysiyeyjxezjffmlmxn"], + "include_smart_links": False, + "search": "rnenf", + "tags": ["bcdkxxpvgwtvfyar"], }, 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": "dvwbz", - "tags": ["bbh"], + "search": "szumoecyoo", + "tags": ["wyxgubcnqntanuerkcslefaou"], }, 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": "ieqitbvrigfzlrapnuv", - "tags": ["yybzmtltlrnmy"], + "search": "bdkzbud", + "tags": ["ga"], }, 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": "jzjaucvoclvaozt", - "tags": ["vrrwahe"], + "include_smart_links": False, + "search": "vktzylgkakrqnt", + "tags": ["hupqbipo"], }, 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": "tpuuzkym", - "tags": ["ysiyeyjxezjffmlmxn"], + "include_smart_links": False, + "search": "rnenf", + "tags": ["bcdkxxpvgwtvfyar"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 6607cd3d..dbcbd0d5 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="dolorum", + 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="dolorum", + 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="dolorum", + 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="dolorum", + tracking_link_id="et", account="", ) @@ -196,7 +196,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="dolorum", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="dolorum", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="dolorum", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="dolorum", + tracking_link_id="et", account="", ) @@ -248,7 +248,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="ad", + tracking_link_id="corrupti", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="ad", + tracking_link_id="corrupti", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="ad", + tracking_link_id="corrupti", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="ad", + tracking_link_id="corrupti", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="ad", + tracking_link_id="corrupti", account="", ) @@ -312,7 +312,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="ad", + tracking_link_id="totam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="ad", + tracking_link_id="totam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="ad", + tracking_link_id="totam", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="ad", + tracking_link_id="totam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="ad", + tracking_link_id="totam", account="", ) @@ -563,7 +563,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="dolorum", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="dolorum", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="dolorum", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="dolorum", + tracking_link_id="et", account="", ) @@ -674,7 +674,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="dolorum", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="dolorum", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="dolorum", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="dolorum", + tracking_link_id="et", account="", ) @@ -726,7 +726,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="ad", + tracking_link_id="corrupti", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="ad", + tracking_link_id="corrupti", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="ad", + tracking_link_id="corrupti", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="ad", + tracking_link_id="corrupti", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="ad", + tracking_link_id="corrupti", account="", ) @@ -790,7 +790,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="ad", + tracking_link_id="totam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="ad", + tracking_link_id="totam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="ad", + tracking_link_id="totam", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="ad", + tracking_link_id="totam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="ad", + tracking_link_id="totam", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 726dd0d7..45815a0c 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="qui", + trial_link_id="voluptates", 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="qui", + trial_link_id="voluptates", 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="qui", + trial_link_id="voluptates", 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="qui", + trial_link_id="voluptates", account="", ) @@ -205,7 +205,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="qui", + trial_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="qui", + trial_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="qui", + trial_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="qui", + trial_link_id="voluptates", account="", ) @@ -321,7 +321,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="dolores", + trial_link_id="cum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="dolores", + trial_link_id="cum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="dolores", + trial_link_id="cum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="dolores", + trial_link_id="cum", account="", limit=10, offset=0, @@ -383,7 +383,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="consectetur", + trial_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="consectetur", + trial_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="consectetur", + trial_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="consectetur", + trial_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="consectetur", + trial_link_id="laudantium", account="", ) @@ -447,7 +447,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="consequatur", + trial_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="consequatur", + trial_link_id="libero", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="consequatur", + trial_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="consequatur", + trial_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="consequatur", + trial_link_id="libero", account="", ) @@ -583,7 +583,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="qui", + trial_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="qui", + trial_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="qui", + trial_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="qui", + trial_link_id="voluptates", account="", ) @@ -692,7 +692,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="qui", + trial_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="qui", + trial_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="qui", + trial_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="qui", + trial_link_id="voluptates", account="", ) @@ -808,7 +808,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="dolores", + trial_link_id="cum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="dolores", + trial_link_id="cum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="dolores", + trial_link_id="cum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="dolores", + trial_link_id="cum", account="", limit=10, offset=0, @@ -870,7 +870,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="consectetur", + trial_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="consectetur", + trial_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="consectetur", + trial_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="consectetur", + trial_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="consectetur", + trial_link_id="laudantium", account="", ) @@ -934,7 +934,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="consequatur", + trial_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="consequatur", + trial_link_id="libero", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="consequatur", + trial_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="consequatur", + trial_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="consequatur", + trial_link_id="libero", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index ff2ae577..c995d793 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="bdqaozoqrnmisspdfdifh", + name="ffckfyolvlbkmim", ) 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="bdqaozoqrnmisspdfdifh", + name="ffckfyolvlbkmim", ) 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="bdqaozoqrnmisspdfdifh", + name="ffckfyolvlbkmim", ) 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="bdqaozoqrnmisspdfdifh", + name="ffckfyolvlbkmim", ) @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="bdqaozoqrnmisspdfdifh", + name="ffckfyolvlbkmim", ) 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="bdqaozoqrnmisspdfdifh", + name="ffckfyolvlbkmim", ) 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="bdqaozoqrnmisspdfdifh", + name="ffckfyolvlbkmim", ) 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="bdqaozoqrnmisspdfdifh", + name="ffckfyolvlbkmim", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 253811ccddb3642133030b0398247f7e153830a0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 16:12:47 +0000 Subject: [PATCH 243/249] 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_queue.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 32 +++--- tests/api_resources/test_tracking_links.py | 76 ++++++------- 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 b12d9a09..ebf847c6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2981bb00d5867ed47941041f5cf03f89c9b8886804df5861b6ced90a57e4b284.yml -openapi_spec_hash: 9bf4bd2681b9df87f9a020cfe5d547a3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e51a86ed2d022a357a3c23d6131e7ef5dc02e6eed7938a2194636c0af981b1a2.yml +openapi_spec_hash: 6193cd485cc05096d76def90c29701a0 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index b5cbb6bd..7f34f504 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="veritatis", + message_id="asperiores", 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="veritatis", + message_id="asperiores", 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="veritatis", + message_id="asperiores", 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="veritatis", + message_id="asperiores", 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="veritatis", + message_id="asperiores", 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="veritatis", + message_id="asperiores", 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="veritatis", + message_id="asperiores", 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="veritatis", + message_id="asperiores", 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="veritatis", + message_id="asperiores", 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="veritatis", + message_id="asperiores", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index e29d108e..8c83f1ad 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="necessitatibus", + 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="necessitatibus", + 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="necessitatibus", + 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="necessitatibus", + 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="necessitatibus", + 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="necessitatibus", + 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="necessitatibus", + 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="necessitatibus", + 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="necessitatibus", + 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="necessitatibus", + 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="necessitatibus", + 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="necessitatibus", + 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="necessitatibus", + 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="necessitatibus", + 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="necessitatibus", + 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="necessitatibus", + 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 c1a63acc..66b938fe 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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="eveniet", 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 444937ba..a62ccbd3 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 9c80483e..2ced6cb5 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/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df889..9664075f 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 ee78fc67..506c2ed9 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + 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="natus", + story_id="et", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 69631938..334f5fb6 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( - "cupiditate", + "excepturi", ) 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( - "cupiditate", + "excepturi", ) 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( - "cupiditate", + "excepturi", ) 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( - "cupiditate", + "excepturi", ) 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( - "cupiditate", + "excepturi", ) 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( - "cupiditate", + "excepturi", ) 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 7c70fdb8..df0cade0 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="qui", - auth_type="email_password", - cookies="aliquid", + auth_id="et", + auth_type="mobile_app", + cookies="illum", custom_proxy={ "host": "proxy.example.com", - "password": "=@+fxN`EC@aB2.", + "password": "\"!2[jgi>5opCJNij'&", "port": 8080, - "username": "impedit", + "username": "quas", }, - email="rippin.lura@example.org", - force_connect=True, - name="minima", - password="~9@)vE1wMD/MH6{hRJ", + email="zoey67@example.net", + force_connect=False, + name="ut", + password="C)bRA80X", proxy_country="us", - user_agent="rerum", - xbc="dolor", + user_agent="consequatur", + xbc="tempore", ) 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="qui", - auth_type="email_password", - cookies="aliquid", + auth_id="et", + auth_type="mobile_app", + cookies="illum", custom_proxy={ "host": "proxy.example.com", - "password": "=@+fxN`EC@aB2.", + "password": "\"!2[jgi>5opCJNij'&", "port": 8080, - "username": "impedit", + "username": "quas", }, - email="rippin.lura@example.org", - force_connect=True, - name="minima", - password="~9@)vE1wMD/MH6{hRJ", + email="zoey67@example.net", + force_connect=False, + name="ut", + password="C)bRA80X", proxy_country="us", - user_agent="rerum", - xbc="dolor", + user_agent="consequatur", + xbc="tempore", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index b2158856..bea1ef2e 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="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="purchases", + type="tags", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_queue.py b/tests/api_resources/test_queue.py index ed4d6f6f..70085d5a 100644 --- a/tests/api_resources/test_queue.py +++ b/tests/api_resources/test_queue.py @@ -41,7 +41,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: publish_date_start="2025-01-01", timezone="Europe/Prague", limit=20, - type=["post"], + type=["chat"], ) assert_matches_type(QueueListResponse, queue, path=["response"]) @@ -220,7 +220,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) publish_date_start="2025-01-01", timezone="Europe/Prague", limit=20, - type=["post"], + type=["chat"], ) assert_matches_type(QueueListResponse, queue, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index f30954ee..48c760fd 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": ["amdpaulqoziiqlfipiy"]}, + filter={"tags": ["mfysmhgmplrkea"]}, limit=50, name="Instagram", offset=0, @@ -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="voluptatibus", + smart_link_id="quibusdam", ) 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="voluptatibus", + smart_link_id="quibusdam", 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="voluptatibus", + smart_link_id="quibusdam", ) 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="voluptatibus", + smart_link_id="quibusdam", ) 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="nam", + smart_link_id="quia", ) 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="nam", + smart_link_id="quia", 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="nam", + smart_link_id="quia", ) 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="nam", + smart_link_id="quia", ) 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="delectus", + smart_link_id="tempora", ) 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="delectus", + smart_link_id="tempora", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="tempora", ) assert response.is_closed is True @@ -358,7 +358,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="tempora", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="rerum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="rerum", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="rerum", ) assert response.is_closed is True @@ -411,7 +411,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="rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="repellat", + smart_link_id="eum", ) assert smart_link is None @@ -441,7 +441,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="repellat", + smart_link_id="eum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="repellat", + smart_link_id="eum", ) assert response.is_closed is True @@ -464,7 +464,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="repellat", + smart_link_id="eum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="ad", + smart_link_id="quibusdam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="ad", + smart_link_id="quibusdam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="ad", + smart_link_id="quibusdam", ) assert response.is_closed is True @@ -516,7 +516,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="ad", + smart_link_id="quibusdam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["amdpaulqoziiqlfipiy"]}, + filter={"tags": ["mfysmhgmplrkea"]}, limit=50, name="Instagram", offset=0, @@ -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="voluptatibus", + smart_link_id="quibusdam", ) 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="voluptatibus", + smart_link_id="quibusdam", 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="voluptatibus", + smart_link_id="quibusdam", ) 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="voluptatibus", + smart_link_id="quibusdam", ) 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="nam", + smart_link_id="quia", ) 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="nam", + smart_link_id="quia", 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="nam", + smart_link_id="quia", ) 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="nam", + smart_link_id="quia", ) 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="delectus", + smart_link_id="tempora", ) 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="delectus", + smart_link_id="tempora", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="tempora", ) assert response.is_closed is True @@ -871,7 +871,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="tempora", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="rerum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="rerum", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="rerum", ) assert response.is_closed is True @@ -924,7 +924,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="rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="repellat", + smart_link_id="eum", ) assert smart_link is None @@ -954,7 +954,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="repellat", + smart_link_id="eum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="repellat", + smart_link_id="eum", ) assert response.is_closed is True @@ -977,7 +977,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="repellat", + smart_link_id="eum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="ad", + smart_link_id="quibusdam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="ad", + smart_link_id="quibusdam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="ad", + smart_link_id="quibusdam", ) assert response.is_closed is True @@ -1029,7 +1029,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="ad", + smart_link_id="quibusdam", ) 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 2a65ee15..23cbd829 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": "szumoecyoo", - "tags": ["wyxgubcnqntanuerkcslefaou"], + "search": "nzyu", + "tags": ["nyppoctwckxxpnnau"], }, 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": "bdkzbud", - "tags": ["ga"], + "search": "ogawofckdgfni", + "tags": ["xavcixqhfssaqbns"], }, 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": "vktzylgkakrqnt", - "tags": ["hupqbipo"], + "search": "ljseacxzujwooto", + "tags": ["ydgx"], }, 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": "rnenf", - "tags": ["bcdkxxpvgwtvfyar"], + "search": "xolibyhdqxzszdvaygvsfnavs", + "tags": ["qugkgcyyoxpfqhehw"], }, 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": "szumoecyoo", - "tags": ["wyxgubcnqntanuerkcslefaou"], + "search": "nzyu", + "tags": ["nyppoctwckxxpnnau"], }, 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": "bdkzbud", - "tags": ["ga"], + "search": "ogawofckdgfni", + "tags": ["xavcixqhfssaqbns"], }, 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": "vktzylgkakrqnt", - "tags": ["hupqbipo"], + "search": "ljseacxzujwooto", + "tags": ["ydgx"], }, 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": "rnenf", - "tags": ["bcdkxxpvgwtvfyar"], + "search": "xolibyhdqxzszdvaygvsfnavs", + "tags": ["qugkgcyyoxpfqhehw"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index dbcbd0d5..fb93aa1e 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="similique", 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="similique", 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="similique", 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="similique", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="similique", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="similique", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="similique", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="similique", account="", ) @@ -248,7 +248,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="corrupti", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="corrupti", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="corrupti", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="corrupti", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="corrupti", + tracking_link_id="quis", account="", ) @@ -312,7 +312,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="totam", + tracking_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="totam", + tracking_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="totam", + tracking_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="totam", + tracking_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="totam", + tracking_link_id="quaerat", account="", ) @@ -563,7 +563,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="similique", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="similique", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="similique", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="similique", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="similique", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="similique", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="similique", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="similique", account="", ) @@ -726,7 +726,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="corrupti", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="corrupti", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="corrupti", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="corrupti", + tracking_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="corrupti", + tracking_link_id="quis", account="", ) @@ -790,7 +790,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="totam", + tracking_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="totam", + tracking_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="totam", + tracking_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="totam", + tracking_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="totam", + tracking_link_id="quaerat", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 45815a0c..19c28c78 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="voluptates", + trial_link_id="delectus", 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="voluptates", + trial_link_id="delectus", 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="voluptates", + trial_link_id="delectus", 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="voluptates", + trial_link_id="delectus", account="", ) @@ -205,7 +205,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="voluptates", + trial_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="voluptates", + trial_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="voluptates", + trial_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="voluptates", + trial_link_id="delectus", account="", ) @@ -321,7 +321,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="cum", + trial_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="cum", + trial_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="cum", + trial_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="cum", + trial_link_id="impedit", account="", limit=10, offset=0, @@ -383,7 +383,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="laudantium", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="laudantium", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="laudantium", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="laudantium", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="laudantium", + trial_link_id="possimus", account="", ) @@ -447,7 +447,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="libero", + trial_link_id="error", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="libero", + trial_link_id="error", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="libero", + trial_link_id="error", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="libero", + trial_link_id="error", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="libero", + trial_link_id="error", account="", ) @@ -583,7 +583,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="voluptates", + trial_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="voluptates", + trial_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="voluptates", + trial_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="voluptates", + trial_link_id="delectus", account="", ) @@ -692,7 +692,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="voluptates", + trial_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="voluptates", + trial_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="voluptates", + trial_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="voluptates", + trial_link_id="delectus", account="", ) @@ -808,7 +808,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="cum", + trial_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="cum", + trial_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="cum", + trial_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="cum", + trial_link_id="impedit", account="", limit=10, offset=0, @@ -870,7 +870,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="laudantium", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="laudantium", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="laudantium", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="laudantium", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="laudantium", + trial_link_id="possimus", account="", ) @@ -934,7 +934,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="libero", + trial_link_id="error", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="libero", + trial_link_id="error", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="libero", + trial_link_id="error", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="libero", + trial_link_id="error", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="libero", + trial_link_id="error", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index c995d793..455f5bca 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="ffckfyolvlbkmim", + name="sqofdvxjl", ) 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="ffckfyolvlbkmim", + name="sqofdvxjl", ) 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="ffckfyolvlbkmim", + name="sqofdvxjl", ) 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="ffckfyolvlbkmim", + name="sqofdvxjl", ) @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="ffckfyolvlbkmim", + name="sqofdvxjl", ) 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="ffckfyolvlbkmim", + name="sqofdvxjl", ) 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="ffckfyolvlbkmim", + name="sqofdvxjl", ) 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="ffckfyolvlbkmim", + name="sqofdvxjl", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 78fc5ee8b96e4b6f879459f02af92a0328bf6ffa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 05:12:43 +0000 Subject: [PATCH 244/249] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++--- .../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_queue.py | 4 +- .../api_resources/test_shared_trial_links.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 +-- 15 files changed, 236 insertions(+), 236 deletions(-) diff --git a/.stats.yml b/.stats.yml index ebf847c6..2282b87f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e51a86ed2d022a357a3c23d6131e7ef5dc02e6eed7938a2194636c0af981b1a2.yml -openapi_spec_hash: 6193cd485cc05096d76def90c29701a0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0f5b27a377922abdbb2e57feb12601f2d92833cefaad9e301ad09a9972ea72c2.yml +openapi_spec_hash: 57c96cc1e38a5988580696892c0ce585 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 7f34f504..0b48bdd2 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="asperiores", + message_id="tempora", 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="asperiores", + message_id="tempora", 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="asperiores", + message_id="tempora", 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="asperiores", + message_id="tempora", 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="asperiores", + message_id="tempora", 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="asperiores", + message_id="tempora", 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="asperiores", + message_id="tempora", 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="asperiores", + message_id="tempora", 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="asperiores", + message_id="tempora", 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="asperiores", + message_id="tempora", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 8c83f1ad..0a9c37f9 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", 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="ducimus", account="", media_ids=["string"], ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 506c2ed9..588383ac 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="laboriosam", 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="laboriosam", 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="laboriosam", 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="laboriosam", 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="laboriosam", 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="laboriosam", 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="laboriosam", 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="laboriosam", 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="laboriosam", 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="laboriosam", 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="laboriosam", 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="laboriosam", 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="laboriosam", 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="laboriosam", 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="laboriosam", 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="laboriosam", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 334f5fb6..9c2e59bf 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( - "excepturi", + "incidunt", ) 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( - "excepturi", + "incidunt", ) 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( - "excepturi", + "incidunt", ) 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( - "excepturi", + "incidunt", ) 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( - "excepturi", + "incidunt", ) 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( - "excepturi", + "incidunt", ) 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 df0cade0..c7898c7e 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_type="mobile_app", - cookies="illum", + auth_id="sed", + auth_type="raw_data", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "\"!2[jgi>5opCJNij'&", + "password": "Q.5Fr$NJQ0WfAv", "port": 8080, - "username": "quas", + "username": "quia", }, - email="zoey67@example.net", + email="cartwright.dena@example.com", force_connect=False, - name="ut", - password="C)bRA80X", - proxy_country="us", - user_agent="consequatur", - xbc="tempore", + name="ab", + password="yc`=qUZF1h[", + proxy_country="uk", + user_agent="necessitatibus", + xbc="quae", ) 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_type="mobile_app", - cookies="illum", + auth_id="sed", + auth_type="raw_data", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "\"!2[jgi>5opCJNij'&", + "password": "Q.5Fr$NJQ0WfAv", "port": 8080, - "username": "quas", + "username": "quia", }, - email="zoey67@example.net", + email="cartwright.dena@example.com", force_connect=False, - name="ut", - password="C)bRA80X", - proxy_country="us", - user_agent="consequatur", - xbc="tempore", + name="ab", + password="yc`=qUZF1h[", + proxy_country="uk", + user_agent="necessitatibus", + xbc="quae", ) 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 9249f386..0d035d3b 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="gb", ) 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="gb", ) 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 bea1ef2e..0f3980c1 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="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="tags", + type="tips", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_queue.py b/tests/api_resources/test_queue.py index 70085d5a..ed4d6f6f 100644 --- a/tests/api_resources/test_queue.py +++ b/tests/api_resources/test_queue.py @@ -41,7 +41,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: publish_date_start="2025-01-01", timezone="Europe/Prague", limit=20, - type=["chat"], + type=["post"], ) assert_matches_type(QueueListResponse, queue, path=["response"]) @@ -220,7 +220,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) publish_date_start="2025-01-01", timezone="Europe/Prague", limit=20, - type=["chat"], + type=["post"], ) assert_matches_type(QueueListResponse, queue, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 48c760fd..68307518 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": ["mfysmhgmplrkea"]}, + filter={"tags": ["rjyqgoshkztmneg"]}, limit=50, name="Instagram", offset=0, @@ -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="quibusdam", + smart_link_id="qui", ) 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="quibusdam", + smart_link_id="qui", 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="quibusdam", + smart_link_id="qui", ) 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="quibusdam", + smart_link_id="qui", ) 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="quia", + smart_link_id="voluptatum", ) 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="quia", + smart_link_id="voluptatum", 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="quia", + smart_link_id="voluptatum", ) 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="quia", + smart_link_id="voluptatum", ) 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="tempora", + smart_link_id="nulla", ) 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="tempora", + smart_link_id="nulla", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="tempora", + smart_link_id="nulla", ) assert response.is_closed is True @@ -358,7 +358,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="tempora", + smart_link_id="nulla", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="rerum", + smart_link_id="soluta", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="rerum", + smart_link_id="soluta", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="rerum", + smart_link_id="soluta", ) assert response.is_closed is True @@ -411,7 +411,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="rerum", + smart_link_id="soluta", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="qui", ) assert smart_link is None @@ -441,7 +441,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="qui", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="qui", ) assert response.is_closed is True @@ -464,7 +464,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="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="quibusdam", + smart_link_id="velit", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="quibusdam", + smart_link_id="velit", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="quibusdam", + smart_link_id="velit", ) assert response.is_closed is True @@ -516,7 +516,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="quibusdam", + smart_link_id="velit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["mfysmhgmplrkea"]}, + filter={"tags": ["rjyqgoshkztmneg"]}, limit=50, name="Instagram", offset=0, @@ -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="quibusdam", + smart_link_id="qui", ) 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="quibusdam", + smart_link_id="qui", 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="quibusdam", + smart_link_id="qui", ) 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="quibusdam", + smart_link_id="qui", ) 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="quia", + smart_link_id="voluptatum", ) 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="quia", + smart_link_id="voluptatum", 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="quia", + smart_link_id="voluptatum", ) 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="quia", + smart_link_id="voluptatum", ) 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="tempora", + smart_link_id="nulla", ) 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="tempora", + smart_link_id="nulla", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="tempora", + smart_link_id="nulla", ) assert response.is_closed is True @@ -871,7 +871,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="tempora", + smart_link_id="nulla", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="rerum", + smart_link_id="soluta", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="rerum", + smart_link_id="soluta", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="rerum", + smart_link_id="soluta", ) assert response.is_closed is True @@ -924,7 +924,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="rerum", + smart_link_id="soluta", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="qui", ) assert smart_link is None @@ -954,7 +954,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="qui", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="qui", ) assert response.is_closed is True @@ -977,7 +977,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="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="quibusdam", + smart_link_id="velit", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="quibusdam", + smart_link_id="velit", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="quibusdam", + smart_link_id="velit", ) assert response.is_closed is True @@ -1029,7 +1029,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="quibusdam", + smart_link_id="velit", ) 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 23cbd829..8c2c6949 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": "nzyu", - "tags": ["nyppoctwckxxpnnau"], + "search": "eeqphejptgpx", + "tags": ["ucothogjwsivkr"], }, 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": "ogawofckdgfni", - "tags": ["xavcixqhfssaqbns"], + "search": "qaewcbalxwpwj", + "tags": ["uqenubo"], }, 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": "ljseacxzujwooto", - "tags": ["ydgx"], + "search": "fdwuimmjhgheqeunjyuu", + "tags": ["gibswfgslrtvtccmrkd"], }, 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": "xolibyhdqxzszdvaygvsfnavs", - "tags": ["qugkgcyyoxpfqhehw"], + "include_smart_links": True, + "search": "ijcdvxaukimmosvvcsdaq", + "tags": ["axpueb"], }, 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": "nzyu", - "tags": ["nyppoctwckxxpnnau"], + "search": "eeqphejptgpx", + "tags": ["ucothogjwsivkr"], }, 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": "ogawofckdgfni", - "tags": ["xavcixqhfssaqbns"], + "search": "qaewcbalxwpwj", + "tags": ["uqenubo"], }, 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": "ljseacxzujwooto", - "tags": ["ydgx"], + "search": "fdwuimmjhgheqeunjyuu", + "tags": ["gibswfgslrtvtccmrkd"], }, 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": "xolibyhdqxzszdvaygvsfnavs", - "tags": ["qugkgcyyoxpfqhehw"], + "include_smart_links": True, + "search": "ijcdvxaukimmosvvcsdaq", + "tags": ["axpueb"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index fb93aa1e..0ad4cac1 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="similique", + tracking_link_id="perspiciatis", 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="similique", + tracking_link_id="perspiciatis", 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="similique", + tracking_link_id="perspiciatis", 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="similique", + tracking_link_id="perspiciatis", account="", ) @@ -196,7 +196,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="similique", + tracking_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="similique", + tracking_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="similique", + tracking_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="similique", + tracking_link_id="perspiciatis", account="", ) @@ -248,7 +248,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="quis", + tracking_link_id="iste", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="quis", + tracking_link_id="iste", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="quis", + tracking_link_id="iste", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="quis", + tracking_link_id="iste", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="quis", + tracking_link_id="iste", account="", ) @@ -312,7 +312,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="quaerat", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="quaerat", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="quaerat", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="quaerat", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="quaerat", + tracking_link_id="tempore", account="", ) @@ -563,7 +563,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="similique", + tracking_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="similique", + tracking_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="similique", + tracking_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="similique", + tracking_link_id="perspiciatis", account="", ) @@ -674,7 +674,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="similique", + tracking_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="similique", + tracking_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="similique", + tracking_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="similique", + tracking_link_id="perspiciatis", account="", ) @@ -726,7 +726,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="quis", + tracking_link_id="iste", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="quis", + tracking_link_id="iste", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="quis", + tracking_link_id="iste", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="quis", + tracking_link_id="iste", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="quis", + tracking_link_id="iste", account="", ) @@ -790,7 +790,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="quaerat", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="quaerat", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="quaerat", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="quaerat", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="quaerat", + tracking_link_id="tempore", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 19c28c78..ea17881c 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="delectus", + 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="delectus", + 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="delectus", + 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="delectus", + trial_link_id="earum", account="", ) @@ -205,7 +205,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="delectus", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="delectus", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="delectus", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="delectus", + trial_link_id="earum", account="", ) @@ -321,7 +321,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="impedit", + trial_link_id="quos", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="impedit", + trial_link_id="quos", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="impedit", + trial_link_id="quos", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="impedit", + trial_link_id="quos", account="", limit=10, offset=0, @@ -383,7 +383,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="quasi", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="quasi", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="quasi", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="quasi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="quasi", account="", ) @@ -447,7 +447,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="error", + trial_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="error", + trial_link_id="enim", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="error", + trial_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="error", + trial_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="error", + trial_link_id="enim", account="", ) @@ -583,7 +583,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="delectus", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="delectus", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="delectus", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="delectus", + trial_link_id="earum", account="", ) @@ -692,7 +692,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="delectus", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="delectus", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="delectus", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="delectus", + trial_link_id="earum", account="", ) @@ -808,7 +808,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="impedit", + trial_link_id="quos", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="impedit", + trial_link_id="quos", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="impedit", + trial_link_id="quos", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="impedit", + trial_link_id="quos", account="", limit=10, offset=0, @@ -870,7 +870,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="quasi", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="quasi", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="quasi", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="quasi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="quasi", account="", ) @@ -934,7 +934,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="error", + trial_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="error", + trial_link_id="enim", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="error", + trial_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="error", + trial_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="error", + trial_link_id="enim", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 455f5bca..84367684 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="sqofdvxjl", + name="kdgreiataph", ) 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="sqofdvxjl", + name="kdgreiataph", ) 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="sqofdvxjl", + name="kdgreiataph", ) 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="sqofdvxjl", + name="kdgreiataph", ) @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="sqofdvxjl", + name="kdgreiataph", ) 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="sqofdvxjl", + name="kdgreiataph", ) 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="sqofdvxjl", + name="kdgreiataph", ) 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="sqofdvxjl", + name="kdgreiataph", ) @pytest.mark.skip(reason="Mock server tests are disabled") From b8ee283efe94a9bc2338d29b93fd1c0efda4166e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 06:12:39 +0000 Subject: [PATCH 245/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/data_exports.py | 98 +++++++------ .../resources/media/vault/lists/lists.py | 108 ++++++++++---- .../types/data_export_create_params.py | 47 +++--- .../types/data_export_list_params.py | 1 + .../types/media/vault/list_list_params.py | 7 + .../types/media/vault/list_list_response.py | 137 ++++++++++++++---- .../api_resources/engagement/test_messages.py | 20 +-- .../media/vault/lists/test_media.py | 32 ++-- tests/api_resources/media/vault/test_lists.py | 2 + 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 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 ++++++------- tests/api_resources/test_stored.py | 32 ++-- tests/api_resources/test_tracking_links.py | 76 +++++----- tests/api_resources/test_trial_links.py | 88 +++++------ tests/api_resources/test_user_lists.py | 16 +- 25 files changed, 555 insertions(+), 389 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2282b87f..410df9e4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0f5b27a377922abdbb2e57feb12601f2d92833cefaad9e301ad09a9972ea72c2.yml -openapi_spec_hash: 57c96cc1e38a5988580696892c0ce585 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5b7eaf3aea520bc245be9b93991257f9c1b5ad2ebad57eb17e80ac97fbdc66a4.yml +openapi_spec_hash: c6cfa0dc8655e915bd8f945d84121803 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/data_exports.py b/src/onlyfansapi/resources/data_exports.py index 40ad8235..54c0baa0 100644 --- a/src/onlyfansapi/resources/data_exports.py +++ b/src/onlyfansapi/resources/data_exports.py @@ -70,6 +70,7 @@ def create( "fans", "followings", "profile_visitors", + "fansly_chat_messages", ], account_ids: SequenceNotStr[str] | Omit = omit, auto_start: bool | Omit = omit, @@ -91,18 +92,20 @@ def create( end_date: The end date for the export (ISO 8601 format). file_type: The output file format. Supported formats vary by export type: `csv` or `xlsx` - for transactions, chat_messages, trial_links, tracking_links, smart_links, - payouts, chargebacks, public_profiles, fans, followings, profile_visitors; `zip` - for media_vault. + for transactions, chat_messages, fansly_chat_messages, trial_links, + tracking_links, smart_links, payouts, chargebacks, public_profiles, fans, + followings, profile_visitors; `zip` for media_vault. start_date: The start date for the export (ISO 8601 format). - type: The type of data to export. `profile_visitors` returns one row per account per - day, scraped one day at a time so the daily numbers are not aggregated away by - OnlyFans. + type: The type of data to export. Use `fansly_chat_messages` to export Fansly chat + messages (all other types are OnlyFans). `profile_visitors` returns one row per + account per day, scraped one day at a time so the daily numbers are not + aggregated away by OnlyFans. account_ids: Array of account prefixed IDs to export data from. Not required for - `public_profiles` type. + `public_profiles` type. For `fansly_chat_messages`, pass Fansly account prefixed + IDs (`fansly_acct_...`); all other types take OnlyFans account IDs. auto_start: When true, automatically starts the export after creation. @@ -113,20 +116,23 @@ def create( account, max 10,000,000), `maxChats` (optional per-account chat scrape limit), `skipMassMessages` (optional, bool), `chatIds` (optional array of numeric fan/chat IDs; filters output and can drastically reduce totals). For - `media_vault`: `mediaType` (required, one of: `all`, `photo`, `gif`, `video`, - `audio`). For `fans`: `type` (required, one of: `all`, `active`, `expired`, - `latest`). For `followings`: `type` (required, one of: `all`, `active`, - `expired`). For `public_profiles`: `query` (optional, full-text search), - `gender` (optional, filter: male, female, trans, couple), `minSubscribePrice` - (optional, USD), `maxSubscribePrice` (optional, USD), `location` (optional), - `minPostsCount` (optional, minimum posts), `minPhotosCount` (optional, minimum - photos), `minVideosCount` (optional, minimum videos), `minSubscribersCount` - (optional, minimum subscribers), `maxSubscribersCount` (optional, maximum - subscribers), `minJoinDate` (optional, ISO 8601 date), `minLastSeenAt` - (optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601 date, profile - added to DB after), `createdAtTo` (optional, ISO 8601 date, profile added to DB - before), `instagram` (optional), `twitter` (optional), `tiktok` (optional), - `maxResults` (optional, limit results). + `fansly_chat_messages`: `maxMessages` (required per account, max 10,000,000), + `maxChats` (optional per-account chat scrape limit), `chatIds` (optional array + of Fansly group ID strings; filters output and can drastically reduce totals). + For `media_vault`: `mediaType` (required, one of: `all`, `photo`, `gif`, + `video`, `audio`). For `fans`: `type` (required, one of: `all`, `active`, + `expired`, `latest`). For `followings`: `type` (required, one of: `all`, + `active`, `expired`). For `public_profiles`: `query` (optional, full-text + search), `gender` (optional, filter: male, female, trans, couple), + `minSubscribePrice` (optional, USD), `maxSubscribePrice` (optional, USD), + `location` (optional), `minPostsCount` (optional, minimum posts), + `minPhotosCount` (optional, minimum photos), `minVideosCount` (optional, minimum + videos), `minSubscribersCount` (optional, minimum subscribers), + `maxSubscribersCount` (optional, maximum subscribers), `minJoinDate` (optional, + ISO 8601 date), `minLastSeenAt` (optional, ISO 8601 date), `createdAtFrom` + (optional, ISO 8601 date, profile added to DB after), `createdAtTo` (optional, + ISO 8601 date, profile added to DB before), `instagram` (optional), `twitter` + (optional), `tiktok` (optional), `maxResults` (optional, limit results). extra_headers: Send extra headers @@ -230,6 +236,7 @@ def list( "fans", "followings", "profile_visitors", + "fansly_chat_messages", ] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -428,6 +435,7 @@ async def create( "fans", "followings", "profile_visitors", + "fansly_chat_messages", ], account_ids: SequenceNotStr[str] | Omit = omit, auto_start: bool | Omit = omit, @@ -449,18 +457,20 @@ async def create( end_date: The end date for the export (ISO 8601 format). file_type: The output file format. Supported formats vary by export type: `csv` or `xlsx` - for transactions, chat_messages, trial_links, tracking_links, smart_links, - payouts, chargebacks, public_profiles, fans, followings, profile_visitors; `zip` - for media_vault. + for transactions, chat_messages, fansly_chat_messages, trial_links, + tracking_links, smart_links, payouts, chargebacks, public_profiles, fans, + followings, profile_visitors; `zip` for media_vault. start_date: The start date for the export (ISO 8601 format). - type: The type of data to export. `profile_visitors` returns one row per account per - day, scraped one day at a time so the daily numbers are not aggregated away by - OnlyFans. + type: The type of data to export. Use `fansly_chat_messages` to export Fansly chat + messages (all other types are OnlyFans). `profile_visitors` returns one row per + account per day, scraped one day at a time so the daily numbers are not + aggregated away by OnlyFans. account_ids: Array of account prefixed IDs to export data from. Not required for - `public_profiles` type. + `public_profiles` type. For `fansly_chat_messages`, pass Fansly account prefixed + IDs (`fansly_acct_...`); all other types take OnlyFans account IDs. auto_start: When true, automatically starts the export after creation. @@ -471,20 +481,23 @@ async def create( account, max 10,000,000), `maxChats` (optional per-account chat scrape limit), `skipMassMessages` (optional, bool), `chatIds` (optional array of numeric fan/chat IDs; filters output and can drastically reduce totals). For - `media_vault`: `mediaType` (required, one of: `all`, `photo`, `gif`, `video`, - `audio`). For `fans`: `type` (required, one of: `all`, `active`, `expired`, - `latest`). For `followings`: `type` (required, one of: `all`, `active`, - `expired`). For `public_profiles`: `query` (optional, full-text search), - `gender` (optional, filter: male, female, trans, couple), `minSubscribePrice` - (optional, USD), `maxSubscribePrice` (optional, USD), `location` (optional), - `minPostsCount` (optional, minimum posts), `minPhotosCount` (optional, minimum - photos), `minVideosCount` (optional, minimum videos), `minSubscribersCount` - (optional, minimum subscribers), `maxSubscribersCount` (optional, maximum - subscribers), `minJoinDate` (optional, ISO 8601 date), `minLastSeenAt` - (optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601 date, profile - added to DB after), `createdAtTo` (optional, ISO 8601 date, profile added to DB - before), `instagram` (optional), `twitter` (optional), `tiktok` (optional), - `maxResults` (optional, limit results). + `fansly_chat_messages`: `maxMessages` (required per account, max 10,000,000), + `maxChats` (optional per-account chat scrape limit), `chatIds` (optional array + of Fansly group ID strings; filters output and can drastically reduce totals). + For `media_vault`: `mediaType` (required, one of: `all`, `photo`, `gif`, + `video`, `audio`). For `fans`: `type` (required, one of: `all`, `active`, + `expired`, `latest`). For `followings`: `type` (required, one of: `all`, + `active`, `expired`). For `public_profiles`: `query` (optional, full-text + search), `gender` (optional, filter: male, female, trans, couple), + `minSubscribePrice` (optional, USD), `maxSubscribePrice` (optional, USD), + `location` (optional), `minPostsCount` (optional, minimum posts), + `minPhotosCount` (optional, minimum photos), `minVideosCount` (optional, minimum + videos), `minSubscribersCount` (optional, minimum subscribers), + `maxSubscribersCount` (optional, maximum subscribers), `minJoinDate` (optional, + ISO 8601 date), `minLastSeenAt` (optional, ISO 8601 date), `createdAtFrom` + (optional, ISO 8601 date, profile added to DB after), `createdAtTo` (optional, + ISO 8601 date, profile added to DB before), `instagram` (optional), `twitter` + (optional), `tiktok` (optional), `maxResults` (optional, limit results). extra_headers: Send extra headers @@ -588,6 +601,7 @@ async def list( "fans", "followings", "profile_visitors", + "fansly_chat_messages", ] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. diff --git a/src/onlyfansapi/resources/media/vault/lists/lists.py b/src/onlyfansapi/resources/media/vault/lists/lists.py index b5f709f2..5274387f 100644 --- a/src/onlyfansapi/resources/media/vault/lists/lists.py +++ b/src/onlyfansapi/resources/media/vault/lists/lists.py @@ -2,6 +2,8 @@ from __future__ import annotations +from typing import Any, cast + import httpx from .media import ( @@ -175,6 +177,7 @@ def list( self, account: str, *, + lightweight: bool | Omit = omit, limit: int | Omit = omit, offset: int | Omit = omit, query: str | Omit = omit, @@ -188,7 +191,25 @@ def list( """ List your Vault lists (categories). + Every response carries an `ETag` computed over the `data` payload. Send it back + as `If-None-Match` on your next call and you will get a `304 Not Modified` with + an empty body when nothing changed, so you can keep serving your cached copy + instead of re-parsing the full list. Credits are debited either way — we still + have to ask OnlyFans for the current state to know whether it changed. + + The `ETag` covers `data` only, never `_meta` — your credits balance changes on + every call, so including it would mean the `ETag` never matches. Because a `304` + has no body, it also has no `_meta`: read the current credits and rate-limit + counters from the `X-OFAPI-Credits-Used`, `X-OFAPI-Credits-Balance`, + `X-Rate-Limit-Limit-Minute` and `X-Rate-Limit-Remaining-Minute` response + headers, which are sent on `304` responses too. The `_meta` inside a body you + cached earlier is stale by definition. + Args: + lightweight: Set to `true` to return only `id`, `name`, `type`, `canUpdate` and a rolled-up + `mediaCount` per list, dropping the `medias` previews. Much smaller payload — + ideal for rendering a folder picker. Default: `false` + limit: Number of media to return per page. Default: `24` offset: The offset used for pagination. Default `0` @@ -205,23 +226,27 @@ def list( """ if not account: raise ValueError(f"Expected a non-empty value for `account` but received {account!r}") - return self._get( - path_template("/api/{account}/media/vault/lists", account=account), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=maybe_transform( - { - "limit": limit, - "offset": offset, - "query": query, - }, - list_list_params.ListListParams, + return cast( + ListListResponse, + self._get( + path_template("/api/{account}/media/vault/lists", account=account), + options=make_request_options( + extra_headers=extra_headers, + extra_query=extra_query, + extra_body=extra_body, + timeout=timeout, + query=maybe_transform( + { + "lightweight": lightweight, + "limit": limit, + "offset": offset, + "query": query, + }, + list_list_params.ListListParams, + ), ), + cast_to=cast(Any, ListListResponse), # Union types cannot be passed in as arguments in the type system ), - cast_to=ListListResponse, ) def delete( @@ -403,6 +428,7 @@ async def list( self, account: str, *, + lightweight: bool | Omit = omit, limit: int | Omit = omit, offset: int | Omit = omit, query: str | Omit = omit, @@ -416,7 +442,25 @@ async def list( """ List your Vault lists (categories). + Every response carries an `ETag` computed over the `data` payload. Send it back + as `If-None-Match` on your next call and you will get a `304 Not Modified` with + an empty body when nothing changed, so you can keep serving your cached copy + instead of re-parsing the full list. Credits are debited either way — we still + have to ask OnlyFans for the current state to know whether it changed. + + The `ETag` covers `data` only, never `_meta` — your credits balance changes on + every call, so including it would mean the `ETag` never matches. Because a `304` + has no body, it also has no `_meta`: read the current credits and rate-limit + counters from the `X-OFAPI-Credits-Used`, `X-OFAPI-Credits-Balance`, + `X-Rate-Limit-Limit-Minute` and `X-Rate-Limit-Remaining-Minute` response + headers, which are sent on `304` responses too. The `_meta` inside a body you + cached earlier is stale by definition. + Args: + lightweight: Set to `true` to return only `id`, `name`, `type`, `canUpdate` and a rolled-up + `mediaCount` per list, dropping the `medias` previews. Much smaller payload — + ideal for rendering a folder picker. Default: `false` + limit: Number of media to return per page. Default: `24` offset: The offset used for pagination. Default `0` @@ -433,23 +477,27 @@ async def list( """ if not account: raise ValueError(f"Expected a non-empty value for `account` but received {account!r}") - return await self._get( - path_template("/api/{account}/media/vault/lists", account=account), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=await async_maybe_transform( - { - "limit": limit, - "offset": offset, - "query": query, - }, - list_list_params.ListListParams, + return cast( + ListListResponse, + await self._get( + path_template("/api/{account}/media/vault/lists", account=account), + options=make_request_options( + extra_headers=extra_headers, + extra_query=extra_query, + extra_body=extra_body, + timeout=timeout, + query=await async_maybe_transform( + { + "lightweight": lightweight, + "limit": limit, + "offset": offset, + "query": query, + }, + list_list_params.ListListParams, + ), ), + cast_to=cast(Any, ListListResponse), # Union types cannot be passed in as arguments in the type system ), - cast_to=ListListResponse, ) async def delete( diff --git a/src/onlyfansapi/types/data_export_create_params.py b/src/onlyfansapi/types/data_export_create_params.py index b6982bff..0bba8553 100644 --- a/src/onlyfansapi/types/data_export_create_params.py +++ b/src/onlyfansapi/types/data_export_create_params.py @@ -18,8 +18,9 @@ class DataExportCreateParams(TypedDict, total=False): """The output file format. Supported formats vary by export type: `csv` or `xlsx` for transactions, - chat_messages, trial_links, tracking_links, smart_links, payouts, chargebacks, - public_profiles, fans, followings, profile_visitors; `zip` for media_vault. + chat_messages, fansly_chat_messages, trial_links, tracking_links, smart_links, + payouts, chargebacks, public_profiles, fans, followings, profile_visitors; `zip` + for media_vault. """ start_date: Required[str] @@ -39,18 +40,22 @@ class DataExportCreateParams(TypedDict, total=False): "fans", "followings", "profile_visitors", + "fansly_chat_messages", ] ] """The type of data to export. - `profile_visitors` returns one row per account per day, scraped one day at a - time so the daily numbers are not aggregated away by OnlyFans. + Use `fansly_chat_messages` to export Fansly chat messages (all other types are + OnlyFans). `profile_visitors` returns one row per account per day, scraped one + day at a time so the daily numbers are not aggregated away by OnlyFans. """ account_ids: SequenceNotStr[str] """Array of account prefixed IDs to export data from. - Not required for `public_profiles` type. + Not required for `public_profiles` type. For `fansly_chat_messages`, pass Fansly + account prefixed IDs (`fansly_acct_...`); all other types take OnlyFans account + IDs. """ auto_start: bool @@ -68,18 +73,22 @@ class DataExportCreateParams(TypedDict, total=False): For `chat_messages`: `maxMessages` (required per account, max 10,000,000), `maxChats` (optional per-account chat scrape limit), `skipMassMessages` (optional, bool), `chatIds` (optional array of numeric fan/chat IDs; filters - output and can drastically reduce totals). For `media_vault`: `mediaType` - (required, one of: `all`, `photo`, `gif`, `video`, `audio`). For `fans`: `type` - (required, one of: `all`, `active`, `expired`, `latest`). For `followings`: - `type` (required, one of: `all`, `active`, `expired`). For `public_profiles`: - `query` (optional, full-text search), `gender` (optional, filter: male, female, - trans, couple), `minSubscribePrice` (optional, USD), `maxSubscribePrice` - (optional, USD), `location` (optional), `minPostsCount` (optional, minimum - posts), `minPhotosCount` (optional, minimum photos), `minVideosCount` (optional, - minimum videos), `minSubscribersCount` (optional, minimum subscribers), - `maxSubscribersCount` (optional, maximum subscribers), `minJoinDate` (optional, - ISO 8601 date), `minLastSeenAt` (optional, ISO 8601 date), `createdAtFrom` - (optional, ISO 8601 date, profile added to DB after), `createdAtTo` (optional, - ISO 8601 date, profile added to DB before), `instagram` (optional), `twitter` - (optional), `tiktok` (optional), `maxResults` (optional, limit results). + output and can drastically reduce totals). For `fansly_chat_messages`: + `maxMessages` (required per account, max 10,000,000), `maxChats` (optional + per-account chat scrape limit), `chatIds` (optional array of Fansly group ID + strings; filters output and can drastically reduce totals). For `media_vault`: + `mediaType` (required, one of: `all`, `photo`, `gif`, `video`, `audio`). For + `fans`: `type` (required, one of: `all`, `active`, `expired`, `latest`). For + `followings`: `type` (required, one of: `all`, `active`, `expired`). For + `public_profiles`: `query` (optional, full-text search), `gender` (optional, + filter: male, female, trans, couple), `minSubscribePrice` (optional, USD), + `maxSubscribePrice` (optional, USD), `location` (optional), `minPostsCount` + (optional, minimum posts), `minPhotosCount` (optional, minimum photos), + `minVideosCount` (optional, minimum videos), `minSubscribersCount` (optional, + minimum subscribers), `maxSubscribersCount` (optional, maximum subscribers), + `minJoinDate` (optional, ISO 8601 date), `minLastSeenAt` (optional, ISO 8601 + date), `createdAtFrom` (optional, ISO 8601 date, profile added to DB after), + `createdAtTo` (optional, ISO 8601 date, profile added to DB before), `instagram` + (optional), `twitter` (optional), `tiktok` (optional), `maxResults` (optional, + limit results). """ diff --git a/src/onlyfansapi/types/data_export_list_params.py b/src/onlyfansapi/types/data_export_list_params.py index ec26ff75..28030250 100644 --- a/src/onlyfansapi/types/data_export_list_params.py +++ b/src/onlyfansapi/types/data_export_list_params.py @@ -41,5 +41,6 @@ class DataExportListParams(TypedDict, total=False): "fans", "followings", "profile_visitors", + "fansly_chat_messages", ] """Filter by export type""" diff --git a/src/onlyfansapi/types/media/vault/list_list_params.py b/src/onlyfansapi/types/media/vault/list_list_params.py index 43887be9..affafb44 100644 --- a/src/onlyfansapi/types/media/vault/list_list_params.py +++ b/src/onlyfansapi/types/media/vault/list_list_params.py @@ -8,6 +8,13 @@ class ListListParams(TypedDict, total=False): + lightweight: bool + """ + Set to `true` to return only `id`, `name`, `type`, `canUpdate` and a rolled-up + `mediaCount` per list, dropping the `medias` previews. Much smaller payload — + ideal for rendering a folder picker. Default: `false` + """ + limit: int """Number of media to return per page. Default: `24`""" diff --git a/src/onlyfansapi/types/media/vault/list_list_response.py b/src/onlyfansapi/types/media/vault/list_list_response.py index 4af848db..82b97043 100644 --- a/src/onlyfansapi/types/media/vault/list_list_response.py +++ b/src/onlyfansapi/types/media/vault/list_list_response.py @@ -1,6 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import List, Union, Optional +from typing_extensions import TypeAlias from pydantic import Field as FieldInfo @@ -8,24 +9,33 @@ __all__ = [ "ListListResponse", - "_Meta", - "_Meta_Cache", - "_Meta_Credits", - "_Meta_RateLimits", - "Data", - "DataAll", - "DataAllMedia", - "DataList", + "UnionMember0", + "UnionMember0_Meta", + "UnionMember0_Meta_Cache", + "UnionMember0_Meta_Credits", + "UnionMember0_Meta_RateLimits", + "UnionMember0Data", + "UnionMember0DataAll", + "UnionMember0DataAllMedia", + "UnionMember0DataList", + "UnionMember1", + "UnionMember1_Meta", + "UnionMember1_Meta_Cache", + "UnionMember1_Meta_Credits", + "UnionMember1_Meta_RateLimits", + "UnionMember1Data", + "UnionMember1DataAll", + "UnionMember1DataList", ] -class _Meta_Cache(BaseModel): +class UnionMember0_Meta_Cache(BaseModel): is_cached: Optional[bool] = None note: Optional[str] = None -class _Meta_Credits(BaseModel): +class UnionMember0_Meta_Credits(BaseModel): balance: Optional[int] = None note: Optional[str] = None @@ -33,7 +43,7 @@ class _Meta_Credits(BaseModel): used: Optional[int] = None -class _Meta_RateLimits(BaseModel): +class UnionMember0_Meta_RateLimits(BaseModel): limit_day: Optional[int] = None limit_minute: Optional[int] = None @@ -43,33 +53,33 @@ class _Meta_RateLimits(BaseModel): remaining_minute: Optional[int] = None -class _Meta(BaseModel): - api_cache: Optional[_Meta_Cache] = FieldInfo(alias="_cache", default=None) +class UnionMember0_Meta(BaseModel): + api_cache: Optional[UnionMember0_Meta_Cache] = FieldInfo(alias="_cache", default=None) - api_credits: Optional[_Meta_Credits] = FieldInfo(alias="_credits", default=None) + api_credits: Optional[UnionMember0_Meta_Credits] = FieldInfo(alias="_credits", default=None) - api_rate_limits: Optional[_Meta_RateLimits] = FieldInfo(alias="_rate_limits", default=None) + api_rate_limits: Optional[UnionMember0_Meta_RateLimits] = FieldInfo(alias="_rate_limits", default=None) -class DataAllMedia(BaseModel): +class UnionMember0DataAllMedia(BaseModel): type: Optional[str] = None url: Optional[str] = None -class DataAll(BaseModel): +class UnionMember0DataAll(BaseModel): audios_count: Optional[int] = FieldInfo(alias="audiosCount", default=None) gifs_count: Optional[int] = FieldInfo(alias="gifsCount", default=None) - medias: Optional[List[DataAllMedia]] = None + medias: Optional[List[UnionMember0DataAllMedia]] = None photos_count: Optional[int] = FieldInfo(alias="photosCount", default=None) videos_count: Optional[int] = FieldInfo(alias="videosCount", default=None) -class DataList(BaseModel): +class UnionMember0DataList(BaseModel): id: Optional[int] = None audios_count: Optional[int] = FieldInfo(alias="audiosCount", default=None) @@ -93,21 +103,96 @@ class DataList(BaseModel): videos_count: Optional[int] = FieldInfo(alias="videosCount", default=None) -class Data(BaseModel): - all: Optional[DataAll] = None +class UnionMember0Data(BaseModel): + all: Optional[UnionMember0DataAll] = None can_create_vault_lists: Optional[bool] = FieldInfo(alias="canCreateVaultLists", default=None) has_more: Optional[bool] = FieldInfo(alias="hasMore", default=None) - list: Optional[List[DataList]] = None + list: Optional[List[UnionMember0DataList]] = None order: Optional[str] = None sort: Optional[str] = None -class ListListResponse(BaseModel): - api_meta: Optional[_Meta] = FieldInfo(alias="_meta", default=None) +class UnionMember0(BaseModel): + """Success""" - data: Optional[Data] = None + api_meta: Optional[UnionMember0_Meta] = FieldInfo(alias="_meta", default=None) + + data: Optional[UnionMember0Data] = None + + +class UnionMember1_Meta_Cache(BaseModel): + is_cached: Optional[bool] = None + + note: Optional[str] = None + + +class UnionMember1_Meta_Credits(BaseModel): + balance: Optional[int] = None + + note: Optional[str] = None + + used: Optional[int] = None + + +class UnionMember1_Meta_RateLimits(BaseModel): + limit_day: Optional[int] = None + + limit_minute: Optional[int] = None + + remaining_day: Optional[int] = None + + remaining_minute: Optional[int] = None + + +class UnionMember1_Meta(BaseModel): + api_cache: Optional[UnionMember1_Meta_Cache] = FieldInfo(alias="_cache", default=None) + + api_credits: Optional[UnionMember1_Meta_Credits] = FieldInfo(alias="_credits", default=None) + + api_rate_limits: Optional[UnionMember1_Meta_RateLimits] = FieldInfo(alias="_rate_limits", default=None) + + +class UnionMember1DataAll(BaseModel): + media_count: Optional[int] = FieldInfo(alias="mediaCount", default=None) + + +class UnionMember1DataList(BaseModel): + id: Optional[int] = None + + can_update: Optional[bool] = FieldInfo(alias="canUpdate", default=None) + + media_count: Optional[int] = FieldInfo(alias="mediaCount", default=None) + + name: Optional[str] = None + + type: Optional[str] = None + + +class UnionMember1Data(BaseModel): + all: Optional[UnionMember1DataAll] = None + + can_create_vault_lists: Optional[bool] = FieldInfo(alias="canCreateVaultLists", default=None) + + has_more: Optional[bool] = FieldInfo(alias="hasMore", default=None) + + list: Optional[List[UnionMember1DataList]] = None + + order: Optional[str] = None + + sort: Optional[str] = None + + +class UnionMember1(BaseModel): + """Success (lightweight=true)""" + + api_meta: Optional[UnionMember1_Meta] = FieldInfo(alias="_meta", default=None) + + data: Optional[UnionMember1Data] = None + + +ListListResponse: TypeAlias = Union[UnionMember0, UnionMember1] diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 0b48bdd2..339d49e0 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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="tempora", + 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 0a9c37f9..a2bd40c7 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="ducimus", + list_id="facere", 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="ducimus", + list_id="facere", 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="ducimus", + list_id="facere", 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="ducimus", + list_id="facere", 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="ducimus", + list_id="facere", 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="ducimus", + list_id="facere", 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="ducimus", + list_id="facere", 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="ducimus", + list_id="facere", 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="ducimus", + list_id="facere", 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="ducimus", + list_id="facere", 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="ducimus", + list_id="facere", 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="ducimus", + list_id="facere", 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="ducimus", + list_id="facere", 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="ducimus", + list_id="facere", 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="ducimus", + list_id="facere", 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="ducimus", + list_id="facere", 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 a3fa3044..008cfa79 100644 --- a/tests/api_resources/media/vault/test_lists.py +++ b/tests/api_resources/media/vault/test_lists.py @@ -191,6 +191,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: list_ = client.media.vault.lists.list( account="acct_XXXXXXXXXXXXXXX", + lightweight=True, limit=24, offset=0, query="My list name", @@ -457,6 +458,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: list_ = await async_client.media.vault.lists.list( account="acct_XXXXXXXXXXXXXXX", + lightweight=True, limit=24, offset=0, query="My list name", diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 66b938fe..c9677632 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="eveniet", + post_id="fugit", 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="eveniet", + post_id="fugit", 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="eveniet", + post_id="fugit", 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="eveniet", + post_id="fugit", 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="eveniet", + post_id="fugit", 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="eveniet", + post_id="fugit", 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="eveniet", + post_id="fugit", 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="eveniet", + post_id="fugit", 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="eveniet", + post_id="fugit", 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="eveniet", + post_id="fugit", 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="eveniet", + post_id="fugit", 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="eveniet", + post_id="fugit", 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="eveniet", + post_id="fugit", 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="eveniet", + post_id="fugit", 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="eveniet", + post_id="fugit", 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="eveniet", + post_id="fugit", 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="eveniet", + post_id="fugit", 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="eveniet", + post_id="fugit", 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="eveniet", + post_id="fugit", 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="eveniet", + post_id="fugit", 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 a62ccbd3..7549791e 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 2ced6cb5..b5f3d61a 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 9664075f..544df889 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 588383ac..09c67db6 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="laboriosam", + path_story_id="consequatur", 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="laboriosam", + path_story_id="consequatur", 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="laboriosam", + path_story_id="consequatur", 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="laboriosam", + path_story_id="consequatur", 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="laboriosam", + story_id="consequatur", 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="laboriosam", + story_id="consequatur", 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="laboriosam", + story_id="consequatur", 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="laboriosam", + story_id="consequatur", 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="laboriosam", + path_story_id="consequatur", 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="laboriosam", + path_story_id="consequatur", 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="laboriosam", + path_story_id="consequatur", 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="laboriosam", + path_story_id="consequatur", 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="laboriosam", + story_id="consequatur", 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="laboriosam", + story_id="consequatur", 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="laboriosam", + story_id="consequatur", 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="laboriosam", + story_id="consequatur", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 9c2e59bf..15dbf748 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( - "incidunt", + "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( - "incidunt", + "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( - "incidunt", + "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( - "incidunt", + "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( - "incidunt", + "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( - "incidunt", + "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 c7898c7e..0646f08f 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="sint", auth_type="raw_data", - cookies="et", + cookies="neque", custom_proxy={ "host": "proxy.example.com", - "password": "Q.5Fr$NJQ0WfAv", + "password": "oHv'cd2Gqw`", "port": 8080, - "username": "quia", + "username": "in", }, - email="cartwright.dena@example.com", - force_connect=False, - name="ab", - password="yc`=qUZF1h[", - proxy_country="uk", - user_agent="necessitatibus", - xbc="quae", + email="wpouros@example.net", + force_connect=True, + name="ratione", + password=" 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="sint", auth_type="raw_data", - cookies="et", + cookies="neque", custom_proxy={ "host": "proxy.example.com", - "password": "Q.5Fr$NJQ0WfAv", + "password": "oHv'cd2Gqw`", "port": 8080, - "username": "quia", + "username": "in", }, - email="cartwright.dena@example.com", - force_connect=False, - name="ab", - password="yc`=qUZF1h[", - proxy_country="uk", - user_agent="necessitatibus", - xbc="quae", + email="wpouros@example.net", + force_connect=True, + name="ratione", + password=" None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="gb", + 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="gb", + 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 0f3980c1..1a80b275 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="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="tips", + type="onlyfans", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 68307518..061cee84 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": ["rjyqgoshkztmneg"]}, + filter={"tags": ["scvppxnx"]}, limit=50, name="Instagram", offset=0, @@ -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="qui", + smart_link_id="molestiae", ) 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="qui", + smart_link_id="molestiae", 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="qui", + smart_link_id="molestiae", ) 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="qui", + smart_link_id="molestiae", ) 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="voluptatum", + smart_link_id="rerum", ) 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="voluptatum", + smart_link_id="rerum", 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="voluptatum", + smart_link_id="rerum", ) 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="voluptatum", + smart_link_id="rerum", ) 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="nulla", + smart_link_id="dolor", ) 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="nulla", + smart_link_id="dolor", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="nulla", + smart_link_id="dolor", ) assert response.is_closed is True @@ -358,7 +358,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="nulla", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="soluta", + smart_link_id="sint", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="soluta", + smart_link_id="sint", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="soluta", + smart_link_id="sint", ) assert response.is_closed is True @@ -411,7 +411,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="soluta", + smart_link_id="sint", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="et", ) assert smart_link is None @@ -441,7 +441,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="et", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="et", ) assert response.is_closed is True @@ -464,7 +464,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="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="velit", + smart_link_id="cumque", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="velit", + smart_link_id="cumque", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="velit", + smart_link_id="cumque", ) assert response.is_closed is True @@ -516,7 +516,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="velit", + smart_link_id="cumque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["rjyqgoshkztmneg"]}, + filter={"tags": ["scvppxnx"]}, limit=50, name="Instagram", offset=0, @@ -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="qui", + smart_link_id="molestiae", ) 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="qui", + smart_link_id="molestiae", 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="qui", + smart_link_id="molestiae", ) 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="qui", + smart_link_id="molestiae", ) 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="voluptatum", + smart_link_id="rerum", ) 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="voluptatum", + smart_link_id="rerum", 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="voluptatum", + smart_link_id="rerum", ) 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="voluptatum", + smart_link_id="rerum", ) 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="nulla", + smart_link_id="dolor", ) 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="nulla", + smart_link_id="dolor", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="nulla", + smart_link_id="dolor", ) assert response.is_closed is True @@ -871,7 +871,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="nulla", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="soluta", + smart_link_id="sint", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="soluta", + smart_link_id="sint", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="soluta", + smart_link_id="sint", ) assert response.is_closed is True @@ -924,7 +924,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="soluta", + smart_link_id="sint", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="et", ) assert smart_link is None @@ -954,7 +954,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="et", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="et", ) assert response.is_closed is True @@ -977,7 +977,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="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="velit", + smart_link_id="cumque", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="velit", + smart_link_id="cumque", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="velit", + smart_link_id="cumque", ) assert response.is_closed is True @@ -1029,7 +1029,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="velit", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index 8c2c6949..37d46929 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": "eeqphejptgpx", - "tags": ["ucothogjwsivkr"], + "search": "vwlhysdsdhhsfplqylypvu", + "tags": ["xwz"], }, 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": "qaewcbalxwpwj", - "tags": ["uqenubo"], + "search": "ndxr", + "tags": ["yduje"], }, 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": "fdwuimmjhgheqeunjyuu", - "tags": ["gibswfgslrtvtccmrkd"], + "search": "zfz", + "tags": ["riisnybn"], }, 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": "ijcdvxaukimmosvvcsdaq", - "tags": ["axpueb"], + "search": "qvssvqhiuhhlhsgjedl", + "tags": ["mjidphitcakqzyqvsgbtiiy"], }, 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": "eeqphejptgpx", - "tags": ["ucothogjwsivkr"], + "search": "vwlhysdsdhhsfplqylypvu", + "tags": ["xwz"], }, 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": "qaewcbalxwpwj", - "tags": ["uqenubo"], + "search": "ndxr", + "tags": ["yduje"], }, 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": "fdwuimmjhgheqeunjyuu", - "tags": ["gibswfgslrtvtccmrkd"], + "search": "zfz", + "tags": ["riisnybn"], }, 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": "ijcdvxaukimmosvvcsdaq", - "tags": ["axpueb"], + "search": "qvssvqhiuhhlhsgjedl", + "tags": ["mjidphitcakqzyqvsgbtiiy"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 0ad4cac1..00a9dd95 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="perspiciatis", + tracking_link_id="voluptatem", 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="perspiciatis", + tracking_link_id="voluptatem", 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="perspiciatis", + tracking_link_id="voluptatem", 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="perspiciatis", + tracking_link_id="voluptatem", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="perspiciatis", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="perspiciatis", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="perspiciatis", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="perspiciatis", + tracking_link_id="voluptatem", account="", ) @@ -248,7 +248,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="iste", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="iste", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="iste", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="iste", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="iste", + tracking_link_id="minima", account="", ) @@ -312,7 +312,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="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="qui", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="qui", account="", ) @@ -563,7 +563,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="perspiciatis", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="perspiciatis", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="perspiciatis", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="perspiciatis", + tracking_link_id="voluptatem", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="perspiciatis", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="perspiciatis", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="perspiciatis", + tracking_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="perspiciatis", + tracking_link_id="voluptatem", account="", ) @@ -726,7 +726,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="iste", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="iste", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="iste", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="iste", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="iste", + tracking_link_id="minima", account="", ) @@ -790,7 +790,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="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="qui", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="qui", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index ea17881c..e3029473 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="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="earum", + 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="earum", + 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="earum", + trial_link_id="sint", account="", ) @@ -205,7 +205,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="sint", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="sint", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="sint", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="sint", account="", ) @@ -321,7 +321,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="quos", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="quos", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="quos", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="quos", + trial_link_id="dolorum", account="", limit=10, offset=0, @@ -383,7 +383,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="quasi", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="quasi", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="quasi", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="quasi", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="quasi", + trial_link_id="quidem", account="", ) @@ -447,7 +447,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="enim", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="enim", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="enim", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="enim", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="enim", + trial_link_id="quasi", account="", ) @@ -583,7 +583,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="sint", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="sint", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="sint", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="sint", account="", ) @@ -692,7 +692,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="sint", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="sint", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="sint", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="sint", account="", ) @@ -808,7 +808,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="quos", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="quos", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="quos", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="quos", + trial_link_id="dolorum", account="", limit=10, offset=0, @@ -870,7 +870,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="quasi", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="quasi", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="quasi", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="quasi", + trial_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="quasi", + trial_link_id="quidem", account="", ) @@ -934,7 +934,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="enim", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="enim", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="enim", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="enim", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="enim", + trial_link_id="quasi", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 84367684..bf6cdf6b 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="kdgreiataph", + name="djinyxqtyxdktwmewn", ) 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="kdgreiataph", + name="djinyxqtyxdktwmewn", ) 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="kdgreiataph", + name="djinyxqtyxdktwmewn", ) 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="kdgreiataph", + name="djinyxqtyxdktwmewn", ) @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="kdgreiataph", + name="djinyxqtyxdktwmewn", ) 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="kdgreiataph", + name="djinyxqtyxdktwmewn", ) 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="kdgreiataph", + name="djinyxqtyxdktwmewn", ) 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="kdgreiataph", + name="djinyxqtyxdktwmewn", ) @pytest.mark.skip(reason="Mock server tests are disabled") From f0ae8161addd075897099da7a4f6952cd9f7c538 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 07:12:40 +0000 Subject: [PATCH 246/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/stories/stories.py | 62 +++++++-- src/onlyfansapi/types/story_create_params.py | 112 +++++++++++++++- .../types/story_create_response.py | 120 +++++++++++++++++- .../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 | 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 | 100 +++++++-------- tests/api_resources/test_stored.py | 40 +++--- tests/api_resources/test_stories.py | 76 +++++++++++ tests/api_resources/test_tracking_links.py | 76 +++++------ tests/api_resources/test_trial_links.py | 88 ++++++------- tests/api_resources/test_user_lists.py | 16 +-- 21 files changed, 625 insertions(+), 285 deletions(-) diff --git a/.stats.yml b/.stats.yml index 410df9e4..d4b3109f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5b7eaf3aea520bc245be9b93991257f9c1b5ad2ebad57eb17e80ac97fbdc66a4.yml -openapi_spec_hash: c6cfa0dc8655e915bd8f945d84121803 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-edfaafe1957998ebfbda2d08eaaa72e8c2d00323ae5d025bd86083a71b7d6612.yml +openapi_spec_hash: abf7eda561eb13076e85063eb92088ba config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/stories/stories.py b/src/onlyfansapi/resources/stories/stories.py index e0f472e0..3cb0db75 100644 --- a/src/onlyfansapi/resources/stories/stories.py +++ b/src/onlyfansapi/resources/stories/stories.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Optional +from typing import Iterable, Optional import httpx @@ -70,6 +70,10 @@ def create( account: str, *, media_files: SequenceNotStr[str], + canvas_height: int | Omit = omit, + canvas_width: int | Omit = omit, + question: story_create_params.Question | Omit = omit, + texts: Iterable[story_create_params.Text] | 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, @@ -78,11 +82,20 @@ def create( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> StoryCreateResponse: """ - Post a new media or vault file to your story. + Post a new media or vault file to your story, optionally with text overlays, + @mentions, and a question sticker. Overlay elements are rendered by OnlyFans on + top of your story media at view time. Args: - media_files: Array of media file upload prefixed_ids, or OF media IDs (required if price is - not 0). + media_files: Array of media file upload prefixed_ids, or OF vault media IDs. + + canvas_height: Canvas height overlay positions are relative to. Default `1920`. + + canvas_width: Canvas width overlay positions are relative to. Default `1080`. + + question: Interactive question sticker viewers can answer. + + texts: Text and @mention overlays. extra_headers: Send extra headers @@ -96,7 +109,16 @@ def create( raise ValueError(f"Expected a non-empty value for `account` but received {account!r}") return self._post( path_template("/api/{account}/stories", account=account), - body=maybe_transform({"media_files": media_files}, story_create_params.StoryCreateParams), + body=maybe_transform( + { + "media_files": media_files, + "canvas_height": canvas_height, + "canvas_width": canvas_width, + "question": question, + "texts": texts, + }, + story_create_params.StoryCreateParams, + ), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), @@ -405,6 +427,10 @@ async def create( account: str, *, media_files: SequenceNotStr[str], + canvas_height: int | Omit = omit, + canvas_width: int | Omit = omit, + question: story_create_params.Question | Omit = omit, + texts: Iterable[story_create_params.Text] | 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, @@ -413,11 +439,20 @@ async def create( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> StoryCreateResponse: """ - Post a new media or vault file to your story. + Post a new media or vault file to your story, optionally with text overlays, + @mentions, and a question sticker. Overlay elements are rendered by OnlyFans on + top of your story media at view time. Args: - media_files: Array of media file upload prefixed_ids, or OF media IDs (required if price is - not 0). + media_files: Array of media file upload prefixed_ids, or OF vault media IDs. + + canvas_height: Canvas height overlay positions are relative to. Default `1920`. + + canvas_width: Canvas width overlay positions are relative to. Default `1080`. + + question: Interactive question sticker viewers can answer. + + texts: Text and @mention overlays. extra_headers: Send extra headers @@ -431,7 +466,16 @@ async def create( raise ValueError(f"Expected a non-empty value for `account` but received {account!r}") return await self._post( path_template("/api/{account}/stories", account=account), - body=await async_maybe_transform({"media_files": media_files}, story_create_params.StoryCreateParams), + body=await async_maybe_transform( + { + "media_files": media_files, + "canvas_height": canvas_height, + "canvas_width": canvas_width, + "question": question, + "texts": texts, + }, + story_create_params.StoryCreateParams, + ), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), diff --git a/src/onlyfansapi/types/story_create_params.py b/src/onlyfansapi/types/story_create_params.py index 77e52aca..5fc7fbb9 100644 --- a/src/onlyfansapi/types/story_create_params.py +++ b/src/onlyfansapi/types/story_create_params.py @@ -2,17 +2,121 @@ from __future__ import annotations -from typing_extensions import Required, Annotated, TypedDict +from typing import Iterable +from typing_extensions import Literal, Required, Annotated, TypedDict from .._types import SequenceNotStr from .._utils import PropertyInfo -__all__ = ["StoryCreateParams"] +__all__ = ["StoryCreateParams", "Question", "Text"] class StoryCreateParams(TypedDict, total=False): media_files: Required[Annotated[SequenceNotStr[str], PropertyInfo(alias="mediaFiles")]] + """Array of media file upload prefixed_ids, or OF vault media IDs.""" + + canvas_height: Annotated[int, PropertyInfo(alias="canvasHeight")] + """Canvas height overlay positions are relative to. Default `1920`.""" + + canvas_width: Annotated[int, PropertyInfo(alias="canvasWidth")] + """Canvas width overlay positions are relative to. Default `1080`.""" + + question: Question + """Interactive question sticker viewers can answer.""" + + texts: Iterable[Text] + """Text and @mention overlays.""" + + +class Question(TypedDict, total=False): + """Interactive question sticker viewers can answer.""" + + color: str + """Sticker accent color (hex). Default `#FF51DC`.""" + + height: float + """Sticker height in canvas px. Default `160`.""" + + left: float + """Horizontal position as a percentage of the canvas width (0-100). Default `25`.""" + + text: str + """The question to ask.""" + + top: float + """Vertical position as a percentage of the canvas height (0-100). Default `30`.""" + + width: float + """Sticker width in canvas px. Default `257`.""" + + +class Text(TypedDict, total=False): + text: Required[str] + """The overlay text. + + For mentions this must be the `@username` to mention (OnlyFans resolves the user + and adds them to the story's release forms). + """ + + angle: float + """Rotation in degrees. Default `0`.""" + + bg_color: Annotated[str, PropertyInfo(alias="bgColor")] + """Background color (hex, `#00000000` = transparent). + + Native editor palette: #FFFFFF #000000 #69818C #FF51DC #FF4081 #FA3240 #FF8040 + #FCA800 #70CF27 #00C864 #00B1CC #2196F3 #7953F5 #A832BF. Default: transparent + for texts, white for mentions. """ - Array of media file upload prefixed_ids, or OF media IDs (required if price is - not 0). + + color: str + """Text color (hex). + + Defaults to the native editor behavior: white on a colored background, black on + a white background (mentions: OnlyFans blue `#0091EA` on white). + """ + + font_family: Annotated[ + Literal["Roboto", "PTMono", "ShantellSans", "SofiaSans", "YanoneKaffeesatz", "RubikMedium", "RubikBlack"], + PropertyInfo(alias="fontFamily"), + ] + """Font family. + + Families support specific weights only: Roboto (400/500/700), PTMono (400), + ShantellSans (400), SofiaSans (400, renders uppercase), YanoneKaffeesatz (700), + RubikMedium (500), RubikBlack (700). Default `Roboto`. Ignored for mentions + (always Roboto 500). + """ + + font_size: Annotated[float, PropertyInfo(alias="fontSize")] + """Font size in canvas px (8-100). The native editor uses 9-36. Default `20`.""" + + font_weight: Annotated[Literal[400, 500, 700], PropertyInfo(alias="fontWeight")] + """Font weight; must match the chosen family (see `fontFamily`).""" + + left: float + """Horizontal position as a percentage of the canvas width (0-100). Default `25`.""" + + scale: float + """Scale factor. Default `1`.""" + + text_align: Annotated[Literal["left", "center", "right"], PropertyInfo(alias="textAlign")] + """Text alignment. Default `left`.""" + + text_height: Annotated[float, PropertyInfo(alias="textHeight")] + """Rendered text box height in canvas px. Estimated automatically when omitted.""" + + text_width: Annotated[float, PropertyInfo(alias="textWidth")] + """Rendered text box width in canvas px. Estimated automatically when omitted.""" + + top: float + """Vertical position as a percentage of the canvas height (0-100). + + Defaults stagger each overlay below the previous one. """ + + type: Literal["text", "mention"] + """Overlay type. Default `text`.""" + + z_index: Annotated[int, PropertyInfo(alias="zIndex")] + """Stacking order. Defaults to placement order.""" diff --git a/src/onlyfansapi/types/story_create_response.py b/src/onlyfansapi/types/story_create_response.py index 599c07d9..2cb26954 100644 --- a/src/onlyfansapi/types/story_create_response.py +++ b/src/onlyfansapi/types/story_create_response.py @@ -16,6 +16,12 @@ "DataMedia", "DataMediaFiles", "DataMediaFilesFull", + "DataQuestion", + "DataQuestionEntity", + "DataQuestionPositions", + "DataReleaseForm", + "DataReleaseFormUser", + "DataText", ] @@ -97,11 +103,119 @@ class DataMedia(BaseModel): type: Optional[str] = None +class DataQuestionEntity(BaseModel): + id: Optional[int] = None + + created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) + + text: Optional[str] = None + + +class DataQuestionPositions(BaseModel): + angle: Optional[int] = None + + color: Optional[str] = None + + height: Optional[int] = None + + left: Optional[int] = None + + top: Optional[int] = None + + width: Optional[int] = None + + x: Optional[str] = None + + y: Optional[str] = None + + z_index: Optional[int] = FieldInfo(alias="zIndex", default=None) + + +class DataQuestion(BaseModel): + entity: Optional[DataQuestionEntity] = None + + positions: Optional[DataQuestionPositions] = None + + type: Optional[str] = None + + +class DataReleaseFormUser(BaseModel): + id: Optional[int] = None + + avatar: Optional[str] = None + + avatar_thumbs: Optional[str] = FieldInfo(alias="avatarThumbs", default=None) + + is_from_guest: Optional[bool] = FieldInfo(alias="isFromGuest", default=None) + + is_identity_verified: Optional[bool] = FieldInfo(alias="isIdentityVerified", default=None) + + iv_status: Optional[str] = FieldInfo(alias="ivStatus", default=None) + + name: Optional[str] = None + + username: Optional[str] = None + + view: Optional[str] = None + + +class DataReleaseForm(BaseModel): + id: Optional[int] = None + + name: Optional[str] = None + + partner_source: Optional[str] = FieldInfo(alias="partnerSource", default=None) + + type: Optional[str] = None + + user: Optional[DataReleaseFormUser] = None + + +class DataText(BaseModel): + angle: Optional[int] = None + + bg_color: Optional[str] = FieldInfo(alias="bgColor", default=None) + + color: Optional[str] = None + + font_family: Optional[str] = FieldInfo(alias="fontFamily", default=None) + + font_size: Optional[str] = FieldInfo(alias="fontSize", default=None) + + font_style: Optional[str] = FieldInfo(alias="fontStyle", default=None) + + font_weight: Optional[int] = FieldInfo(alias="fontWeight", default=None) + + left: Optional[int] = None + + scale: Optional[int] = None + + text: Optional[str] = None + + text_align: Optional[str] = FieldInfo(alias="textAlign", default=None) + + text_height: Optional[float] = FieldInfo(alias="textHeight", default=None) + + text_width: Optional[int] = FieldInfo(alias="textWidth", default=None) + + top: Optional[int] = None + + type: Optional[str] = None + + users: Optional[List[object]] = None + + z_index: Optional[int] = FieldInfo(alias="zIndex", default=None) + + class Data(BaseModel): id: Optional[int] = None can_delete: Optional[bool] = FieldInfo(alias="canDelete", default=None) + canvas_height: Optional[int] = FieldInfo(alias="canvasHeight", default=None) + + canvas_width: Optional[int] = FieldInfo(alias="canvasWidth", default=None) + comments_count: Optional[int] = FieldInfo(alias="commentsCount", default=None) created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) @@ -120,9 +234,11 @@ class Data(BaseModel): media: Optional[List[DataMedia]] = None - question: Optional[str] = None + question: Optional[DataQuestion] = None + + release_forms: Optional[List[DataReleaseForm]] = FieldInfo(alias="releaseForms", default=None) - release_forms: Optional[List[object]] = FieldInfo(alias="releaseForms", default=None) + texts: Optional[List[DataText]] = None tips_amount: Optional[str] = FieldInfo(alias="tipsAmount", default=None) diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 339d49e0..7f34f504 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", 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="asperiores", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index a2bd40c7..e44b782d 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="facere", + list_id="error", 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="facere", + list_id="error", 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="facere", + list_id="error", 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="facere", + list_id="error", 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="facere", + list_id="error", 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="facere", + list_id="error", 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="facere", + list_id="error", 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="facere", + list_id="error", 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="facere", + list_id="error", 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="facere", + list_id="error", 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="facere", + list_id="error", 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="facere", + list_id="error", 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="facere", + list_id="error", 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="facere", + list_id="error", 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="facere", + list_id="error", 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="facere", + list_id="error", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index c9677632..8006dcf9 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="fugit", + post_id="nesciunt", 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="fugit", + post_id="nesciunt", 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="fugit", + post_id="nesciunt", 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="fugit", + post_id="nesciunt", 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="fugit", + post_id="nesciunt", 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="fugit", + post_id="nesciunt", 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="fugit", + post_id="nesciunt", 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="fugit", + post_id="nesciunt", 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="fugit", + post_id="nesciunt", 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="fugit", + post_id="nesciunt", 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="fugit", + post_id="nesciunt", 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="fugit", + post_id="nesciunt", 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="fugit", + post_id="nesciunt", 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="fugit", + post_id="nesciunt", 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="fugit", + post_id="nesciunt", 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="fugit", + post_id="nesciunt", 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="fugit", + post_id="nesciunt", 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="fugit", + post_id="nesciunt", 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="fugit", + post_id="nesciunt", 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="fugit", + post_id="nesciunt", 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 7549791e..aa735c97 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 544df889..9664075f 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 09c67db6..50e749cc 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="consequatur", + path_story_id="enim", 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="consequatur", + path_story_id="enim", 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="consequatur", + path_story_id="enim", 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="consequatur", + path_story_id="enim", 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="consequatur", + story_id="enim", 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="consequatur", + story_id="enim", 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="consequatur", + story_id="enim", 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="consequatur", + story_id="enim", 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="consequatur", + path_story_id="enim", 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="consequatur", + path_story_id="enim", 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="consequatur", + path_story_id="enim", 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="consequatur", + path_story_id="enim", 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="consequatur", + story_id="enim", 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="consequatur", + story_id="enim", 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="consequatur", + story_id="enim", 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="consequatur", + story_id="enim", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 15dbf748..66a8a949 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", + "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( - "est", + "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( - "est", + "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( - "est", + "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( - "est", + "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( - "est", + "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 0646f08f..6bebb135 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="sint", - auth_type="raw_data", - cookies="neque", + auth_id="repellendus", + auth_type="email_password", + cookies="pariatur", custom_proxy={ "host": "proxy.example.com", - "password": "oHv'cd2Gqw`", + "password": "Ipau-'T$Ke7Az;BrfGd)", "port": 8080, - "username": "in", + "username": "id", }, - email="wpouros@example.net", - force_connect=True, - name="ratione", - password=" None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="sint", - auth_type="raw_data", - cookies="neque", + auth_id="repellendus", + auth_type="email_password", + cookies="pariatur", custom_proxy={ "host": "proxy.example.com", - "password": "oHv'cd2Gqw`", + "password": "Ipau-'T$Ke7Az;BrfGd)", "port": 8080, - "username": "in", + "username": "id", }, - email="wpouros@example.net", - force_connect=True, - name="ratione", - 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="gb", ) 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="gb", ) 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 1a80b275..583d8ad4 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_profiles.py b/tests/api_resources/test_profiles.py index 65694e23..bd4f6161 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 061cee84..22769c70 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": ["scvppxnx"]}, + filter={"tags": ["iyifnd"]}, limit=50, name="Instagram", offset=0, @@ -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="molestiae", + smart_link_id="ut", ) 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="molestiae", + smart_link_id="ut", 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="molestiae", + smart_link_id="ut", ) 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="molestiae", + smart_link_id="ut", ) 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="rerum", + smart_link_id="quasi", ) 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="rerum", + smart_link_id="quasi", 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="rerum", + smart_link_id="quasi", ) 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="rerum", + smart_link_id="quasi", ) 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="dolor", + smart_link_id="quia", ) 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="dolor", + smart_link_id="quia", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="dolor", + smart_link_id="quia", ) assert response.is_closed is True @@ -358,7 +358,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="dolor", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="ea", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="ea", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="ea", ) assert response.is_closed is True @@ -411,7 +411,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="ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="quibusdam", ) assert smart_link is None @@ -441,7 +441,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="quibusdam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="quibusdam", ) assert response.is_closed is True @@ -464,7 +464,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="quibusdam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="cumque", + smart_link_id="eveniet", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="cumque", + smart_link_id="eveniet", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="cumque", + smart_link_id="eveniet", ) assert response.is_closed is True @@ -516,7 +516,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="cumque", + smart_link_id="eveniet", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["scvppxnx"]}, + filter={"tags": ["iyifnd"]}, limit=50, name="Instagram", offset=0, @@ -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="molestiae", + smart_link_id="ut", ) 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="molestiae", + smart_link_id="ut", 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="molestiae", + smart_link_id="ut", ) 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="molestiae", + smart_link_id="ut", ) 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="rerum", + smart_link_id="quasi", ) 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="rerum", + smart_link_id="quasi", 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="rerum", + smart_link_id="quasi", ) 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="rerum", + smart_link_id="quasi", ) 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="dolor", + smart_link_id="quia", ) 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="dolor", + smart_link_id="quia", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="dolor", + smart_link_id="quia", ) assert response.is_closed is True @@ -871,7 +871,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="dolor", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="ea", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="ea", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="ea", ) assert response.is_closed is True @@ -924,7 +924,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="ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="quibusdam", ) assert smart_link is None @@ -954,7 +954,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="quibusdam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="quibusdam", ) assert response.is_closed is True @@ -977,7 +977,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="quibusdam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="cumque", + smart_link_id="eveniet", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="cumque", + smart_link_id="eveniet", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="cumque", + smart_link_id="eveniet", ) assert response.is_closed is True @@ -1029,7 +1029,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="cumque", + smart_link_id="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_stored.py b/tests/api_resources/test_stored.py index 37d46929..d1e93690 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": "vwlhysdsdhhsfplqylypvu", - "tags": ["xwz"], + "search": "mpfcyvlrzkhzlfod", + "tags": ["bujzmjwjfhuvitrgvwebukm"], }, 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": "ndxr", - "tags": ["yduje"], + "search": "yclihieijc", + "tags": ["jjjhqcnp"], }, 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": "zfz", - "tags": ["riisnybn"], + "include_smart_links": True, + "search": "egkqomvmyajbmtrsuz", + "tags": ["tgjnxf"], }, 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": "qvssvqhiuhhlhsgjedl", - "tags": ["mjidphitcakqzyqvsgbtiiy"], + "include_smart_links": False, + "search": "dbdfzetymdkcbmfsiohqa", + "tags": ["jgiexrokracuawwbitjn"], }, 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": "vwlhysdsdhhsfplqylypvu", - "tags": ["xwz"], + "search": "mpfcyvlrzkhzlfod", + "tags": ["bujzmjwjfhuvitrgvwebukm"], }, 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": "ndxr", - "tags": ["yduje"], + "search": "yclihieijc", + "tags": ["jjjhqcnp"], }, 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": "zfz", - "tags": ["riisnybn"], + "include_smart_links": True, + "search": "egkqomvmyajbmtrsuz", + "tags": ["tgjnxf"], }, 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": "qvssvqhiuhhlhsgjedl", - "tags": ["mjidphitcakqzyqvsgbtiiy"], + "include_smart_links": False, + "search": "dbdfzetymdkcbmfsiohqa", + "tags": ["jgiexrokracuawwbitjn"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_stories.py b/tests/api_resources/test_stories.py index 444b68b4..71635ace 100644 --- a/tests/api_resources/test_stories.py +++ b/tests/api_resources/test_stories.py @@ -35,6 +35,44 @@ def test_method_create(self, client: OnlyFansAPI) -> None: ) assert_matches_type(StoryCreateResponse, story, path=["response"]) + @pytest.mark.skip(reason="Mock server tests are disabled") + @parametrize + def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: + story = client.stories.create( + account="acct_XXXXXXXXXXXXXXX", + media_files=["ofapi_media_abc123", "string"], + canvas_height=1920, + canvas_width=1080, + question={ + "color": "#FF51DC", + "height": 160, + "left": 25, + "text": "Ask me anything!", + "top": 30, + "width": 257, + }, + texts=[ + { + "text": "New drop today!", + "angle": 0, + "bg_color": "#FF51DC", + "color": "#FFFFFF", + "font_family": "ShantellSans", + "font_size": 24, + "font_weight": 400, + "left": 30.5, + "scale": 1, + "text_align": "center", + "text_height": 36, + "text_width": 140, + "top": 60, + "type": "text", + "z_index": 8, + } + ], + ) + assert_matches_type(StoryCreateResponse, story, path=["response"]) + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: @@ -422,6 +460,44 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: ) assert_matches_type(StoryCreateResponse, story, path=["response"]) + @pytest.mark.skip(reason="Mock server tests are disabled") + @parametrize + async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: + story = await async_client.stories.create( + account="acct_XXXXXXXXXXXXXXX", + media_files=["ofapi_media_abc123", "string"], + canvas_height=1920, + canvas_width=1080, + question={ + "color": "#FF51DC", + "height": 160, + "left": 25, + "text": "Ask me anything!", + "top": 30, + "width": 257, + }, + texts=[ + { + "text": "New drop today!", + "angle": 0, + "bg_color": "#FF51DC", + "color": "#FFFFFF", + "font_family": "ShantellSans", + "font_size": 24, + "font_weight": 400, + "left": 30.5, + "scale": 1, + "text_align": "center", + "text_height": 36, + "text_width": 140, + "top": 60, + "type": "text", + "z_index": 8, + } + ], + ) + assert_matches_type(StoryCreateResponse, story, path=["response"]) + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 00a9dd95..26ea88b5 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="voluptatem", + tracking_link_id="veniam", 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="voluptatem", + tracking_link_id="veniam", 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="voluptatem", + tracking_link_id="veniam", 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="voluptatem", + tracking_link_id="veniam", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="voluptatem", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="voluptatem", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="voluptatem", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="voluptatem", + tracking_link_id="veniam", account="", ) @@ -248,7 +248,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="minima", + tracking_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="minima", + tracking_link_id="sit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="minima", + tracking_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="minima", + tracking_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="minima", + tracking_link_id="sit", account="", ) @@ -312,7 +312,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="qui", + tracking_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="qui", + tracking_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="qui", + tracking_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="qui", + tracking_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="qui", + tracking_link_id="architecto", account="", ) @@ -563,7 +563,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="voluptatem", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="voluptatem", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="voluptatem", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="voluptatem", + tracking_link_id="veniam", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=1, + pagination=0, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="voluptatem", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="voluptatem", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="voluptatem", + tracking_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="voluptatem", + tracking_link_id="veniam", account="", ) @@ -726,7 +726,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="minima", + tracking_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="minima", + tracking_link_id="sit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="minima", + tracking_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="minima", + tracking_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="minima", + tracking_link_id="sit", account="", ) @@ -790,7 +790,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="qui", + tracking_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="qui", + tracking_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="qui", + tracking_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="qui", + tracking_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="qui", + tracking_link_id="architecto", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index e3029473..b4b06817 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="id", 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="id", 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="id", 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="id", account="", ) @@ -205,7 +205,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="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="id", account="", ) @@ -321,7 +321,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="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="est", account="", limit=10, offset=0, @@ -383,7 +383,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="quidem", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="quidem", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="quidem", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="quidem", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="quidem", + trial_link_id="vel", account="", ) @@ -447,7 +447,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="alias", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="alias", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="alias", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="alias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="alias", account="", ) @@ -583,7 +583,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="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="id", account="", ) @@ -692,7 +692,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="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="id", account="", ) @@ -808,7 +808,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="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="est", account="", limit=10, offset=0, @@ -870,7 +870,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="quidem", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="quidem", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="quidem", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="quidem", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="quidem", + trial_link_id="vel", account="", ) @@ -934,7 +934,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="alias", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="alias", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="alias", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="alias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="alias", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index bf6cdf6b..3a2ce910 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="djinyxqtyxdktwmewn", + name="whwktrmekficw", ) 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="djinyxqtyxdktwmewn", + name="whwktrmekficw", ) 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="djinyxqtyxdktwmewn", + name="whwktrmekficw", ) 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="djinyxqtyxdktwmewn", + name="whwktrmekficw", ) @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="djinyxqtyxdktwmewn", + name="whwktrmekficw", ) 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="djinyxqtyxdktwmewn", + name="whwktrmekficw", ) 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="djinyxqtyxdktwmewn", + name="whwktrmekficw", ) 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="djinyxqtyxdktwmewn", + name="whwktrmekficw", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 6ce56b042902c60d0265a3b28c5100c27f51d566 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 08:12:41 +0000 Subject: [PATCH 247/249] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/following.py | 136 ++++++++++++++++-- .../types/following_list_active_params.py | 19 ++- .../types/following_list_all_params.py | 19 ++- .../types/following_list_expired_params.py | 19 ++- .../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_queue.py | 4 +- .../api_resources/test_shared_trial_links.py | 4 +- tests/api_resources/test_smart_links.py | 100 ++++++------- tests/api_resources/test_stored.py | 36 ++--- tests/api_resources/test_tracking_links.py | 76 +++++----- tests/api_resources/test_trial_links.py | 88 ++++++------ tests/api_resources/test_user_lists.py | 16 +-- 22 files changed, 447 insertions(+), 294 deletions(-) diff --git a/.stats.yml b/.stats.yml index d4b3109f..a48b1ad0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-edfaafe1957998ebfbda2d08eaaa72e8c2d00323ae5d025bd86083a71b7d6612.yml -openapi_spec_hash: abf7eda561eb13076e85063eb92088ba +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-adc2248fbfadd296a372e1cfaa0f2017dfa4a0d611edea0a6006264d4328cada.yml +openapi_spec_hash: 1986e762bd172ac144a57ea678357cad config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/following.py b/src/onlyfansapi/resources/following.py index 92209297..a8845668 100644 --- a/src/onlyfansapi/resources/following.py +++ b/src/onlyfansapi/resources/following.py @@ -72,6 +72,11 @@ def list_active( expired list does not share this order, so do not assume it applies there. Pass `sort` (optionally with `sortDirection`) to reorder the list — see the parameter description for the caveat that OnlyFans persists the chosen order account-wide. + An empty page is not the end of the list: OnlyFans applies `offset` to the whole + following collection before filtering it down to the requested list, so a page + can come back empty while more results follow. Keep following + `_pagination.next_page` until it is `null` instead of stopping at the first + empty page. Args: limit: Number of followings to return (1-50). Must be at least 1. Must not be greater @@ -87,10 +92,22 @@ def list_active( list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is - changed again. This field is required when sortDirection is + changed again. **Expired list:** OnlyFans applies `offset` to the whole + following collection and only then filters it down to expired subscriptions, so + ordering by expiry descending puts the still-active subscriptions first and + moves the expired rows to the tail of the collection — the first several hundred + offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to + get expired-first results. For that reason `sort=expire_date` on the expired + list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. + Whatever order you pick, an empty page is **not** the end of the list: keep + following `_pagination.next_page` until it is `null` rather than stopping at the + first empty page. This field is required when sortDirection is present. sort_direction: Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. + Exception: `sort=expire_date` on the expired list defaults to `asc`, because + `desc` moves the expired rows to the tail of the underlying collection and + leaves the early pages empty. Passing `sortDirection` explicitly always wins. extra_headers: Send extra headers @@ -148,6 +165,11 @@ def list_all( expired list does not share this order, so do not assume it applies there. Pass `sort` (optionally with `sortDirection`) to reorder the list — see the parameter description for the caveat that OnlyFans persists the chosen order account-wide. + An empty page is not the end of the list: OnlyFans applies `offset` to the whole + following collection before filtering it down to the requested list, so a page + can come back empty while more results follow. Keep following + `_pagination.next_page` until it is `null` instead of stopping at the first + empty page. Args: limit: Number of followings to return (1-50). Must be at least 1. Must not be greater @@ -163,10 +185,22 @@ def list_all( list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is - changed again. This field is required when sortDirection is + changed again. **Expired list:** OnlyFans applies `offset` to the whole + following collection and only then filters it down to expired subscriptions, so + ordering by expiry descending puts the still-active subscriptions first and + moves the expired rows to the tail of the collection — the first several hundred + offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to + get expired-first results. For that reason `sort=expire_date` on the expired + list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. + Whatever order you pick, an empty page is **not** the end of the list: keep + following `_pagination.next_page` until it is `null` rather than stopping at the + first empty page. This field is required when sortDirection is present. sort_direction: Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. + Exception: `sort=expire_date` on the expired list defaults to `asc`, because + `desc` moves the expired rows to the tail of the underlying collection and + leaves the early pages empty. Passing `sortDirection` explicitly always wins. extra_headers: Send extra headers @@ -225,10 +259,18 @@ def list_expired( expirations, page through the full list each cycle (`limit=50`, follow `_pagination.next_page` until it is null) and diff it against your own store using `subscribedByData.expiredAt`. Do NOT stop early at the first entry you - have already seen, as that can silently skip real expirations. Pass - `sort=expire_date` (optionally with `sortDirection`) to get a deterministic - order instead — see the parameter description for the caveat that OnlyFans - persists the chosen order account-wide. + have already seen, as that can silently skip real expirations. An empty page is + not the end of the list either: OnlyFans applies `offset` to the whole following + collection and only then filters that window down to expired subscriptions, so + early pages can come back empty while hundreds of expired rows still follow. + Keep following `_pagination.next_page` until it is `null` instead of stopping at + the first empty page. Pass `sort=expire_date` (optionally with `sortDirection`) + to get a deterministic order instead — see the parameter description for the + caveat that OnlyFans persists the chosen order account-wide. Ordering by expiry + descending puts the still-active subscriptions first and moves the expired rows + to the tail of the collection, so prefer `sortDirection=asc` or + `sort=is_expired` for expired-first results; for that reason `sort=expire_date` + defaults to `asc` on this list when no `sortDirection` is given. Args: limit: Number of followings to return (1-50). Must be at least 1. Must not be greater @@ -244,10 +286,22 @@ def list_expired( list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is - changed again. This field is required when sortDirection is + changed again. **Expired list:** OnlyFans applies `offset` to the whole + following collection and only then filters it down to expired subscriptions, so + ordering by expiry descending puts the still-active subscriptions first and + moves the expired rows to the tail of the collection — the first several hundred + offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to + get expired-first results. For that reason `sort=expire_date` on the expired + list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. + Whatever order you pick, an empty page is **not** the end of the list: keep + following `_pagination.next_page` until it is `null` rather than stopping at the + first empty page. This field is required when sortDirection is present. sort_direction: Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. + Exception: `sort=expire_date` on the expired list defaults to `asc`, because + `desc` moves the expired rows to the tail of the underlying collection and + leaves the early pages empty. Passing `sortDirection` explicitly always wins. extra_headers: Send extra headers @@ -328,6 +382,11 @@ async def list_active( expired list does not share this order, so do not assume it applies there. Pass `sort` (optionally with `sortDirection`) to reorder the list — see the parameter description for the caveat that OnlyFans persists the chosen order account-wide. + An empty page is not the end of the list: OnlyFans applies `offset` to the whole + following collection before filtering it down to the requested list, so a page + can come back empty while more results follow. Keep following + `_pagination.next_page` until it is `null` instead of stopping at the first + empty page. Args: limit: Number of followings to return (1-50). Must be at least 1. Must not be greater @@ -343,10 +402,22 @@ async def list_active( list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is - changed again. This field is required when sortDirection is + changed again. **Expired list:** OnlyFans applies `offset` to the whole + following collection and only then filters it down to expired subscriptions, so + ordering by expiry descending puts the still-active subscriptions first and + moves the expired rows to the tail of the collection — the first several hundred + offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to + get expired-first results. For that reason `sort=expire_date` on the expired + list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. + Whatever order you pick, an empty page is **not** the end of the list: keep + following `_pagination.next_page` until it is `null` rather than stopping at the + first empty page. This field is required when sortDirection is present. sort_direction: Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. + Exception: `sort=expire_date` on the expired list defaults to `asc`, because + `desc` moves the expired rows to the tail of the underlying collection and + leaves the early pages empty. Passing `sortDirection` explicitly always wins. extra_headers: Send extra headers @@ -404,6 +475,11 @@ async def list_all( expired list does not share this order, so do not assume it applies there. Pass `sort` (optionally with `sortDirection`) to reorder the list — see the parameter description for the caveat that OnlyFans persists the chosen order account-wide. + An empty page is not the end of the list: OnlyFans applies `offset` to the whole + following collection before filtering it down to the requested list, so a page + can come back empty while more results follow. Keep following + `_pagination.next_page` until it is `null` instead of stopping at the first + empty page. Args: limit: Number of followings to return (1-50). Must be at least 1. Must not be greater @@ -419,10 +495,22 @@ async def list_all( list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is - changed again. This field is required when sortDirection is + changed again. **Expired list:** OnlyFans applies `offset` to the whole + following collection and only then filters it down to expired subscriptions, so + ordering by expiry descending puts the still-active subscriptions first and + moves the expired rows to the tail of the collection — the first several hundred + offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to + get expired-first results. For that reason `sort=expire_date` on the expired + list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. + Whatever order you pick, an empty page is **not** the end of the list: keep + following `_pagination.next_page` until it is `null` rather than stopping at the + first empty page. This field is required when sortDirection is present. sort_direction: Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. + Exception: `sort=expire_date` on the expired list defaults to `asc`, because + `desc` moves the expired rows to the tail of the underlying collection and + leaves the early pages empty. Passing `sortDirection` explicitly always wins. extra_headers: Send extra headers @@ -481,10 +569,18 @@ async def list_expired( expirations, page through the full list each cycle (`limit=50`, follow `_pagination.next_page` until it is null) and diff it against your own store using `subscribedByData.expiredAt`. Do NOT stop early at the first entry you - have already seen, as that can silently skip real expirations. Pass - `sort=expire_date` (optionally with `sortDirection`) to get a deterministic - order instead — see the parameter description for the caveat that OnlyFans - persists the chosen order account-wide. + have already seen, as that can silently skip real expirations. An empty page is + not the end of the list either: OnlyFans applies `offset` to the whole following + collection and only then filters that window down to expired subscriptions, so + early pages can come back empty while hundreds of expired rows still follow. + Keep following `_pagination.next_page` until it is `null` instead of stopping at + the first empty page. Pass `sort=expire_date` (optionally with `sortDirection`) + to get a deterministic order instead — see the parameter description for the + caveat that OnlyFans persists the chosen order account-wide. Ordering by expiry + descending puts the still-active subscriptions first and moves the expired rows + to the tail of the collection, so prefer `sortDirection=asc` or + `sort=is_expired` for expired-first results; for that reason `sort=expire_date` + defaults to `asc` on this list when no `sortDirection` is given. Args: limit: Number of followings to return (1-50). Must be at least 1. Must not be greater @@ -500,10 +596,22 @@ async def list_expired( list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is - changed again. This field is required when sortDirection is + changed again. **Expired list:** OnlyFans applies `offset` to the whole + following collection and only then filters it down to expired subscriptions, so + ordering by expiry descending puts the still-active subscriptions first and + moves the expired rows to the tail of the collection — the first several hundred + offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to + get expired-first results. For that reason `sort=expire_date` on the expired + list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. + Whatever order you pick, an empty page is **not** the end of the list: keep + following `_pagination.next_page` until it is `null` rather than stopping at the + first empty page. This field is required when sortDirection is present. sort_direction: Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. + Exception: `sort=expire_date` on the expired list defaults to `asc`, because + `desc` moves the expired rows to the tail of the underlying collection and + leaves the early pages empty. Passing `sortDirection` explicitly always wins. extra_headers: Send extra headers diff --git a/src/onlyfansapi/types/following_list_active_params.py b/src/onlyfansapi/types/following_list_active_params.py index bc76f72b..daca43d1 100644 --- a/src/onlyfansapi/types/following_list_active_params.py +++ b/src/onlyfansapi/types/following_list_active_params.py @@ -33,12 +33,27 @@ class FollowingListActiveParams(TypedDict, total=False): list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is - changed again. This field is required when sortDirection is + changed again. **Expired list:** OnlyFans applies `offset` to the whole + following collection and only then filters it down to expired subscriptions, so + ordering by expiry descending puts the still-active subscriptions first and + moves the expired rows to the tail of the collection — the first several hundred + offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to + get expired-first results. For that reason `sort=expire_date` on the expired + list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. + Whatever order you pick, an empty page is **not** the end of the list: keep + following `_pagination.next_page` until it is `null` rather than stopping at the + first empty page. This field is required when sortDirection is present. """ sort_direction: Annotated[Optional[Literal["asc", "desc"]], PropertyInfo(alias="sortDirection")] - """Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set.""" + """Direction for `sort`: `desc` (default) or `asc`. + + Requires `sort` to be set. Exception: `sort=expire_date` on the expired list + defaults to `asc`, because `desc` moves the expired rows to the tail of the + underlying collection and leaves the early pages empty. Passing `sortDirection` + explicitly always wins. + """ class Filter(TypedDict, total=False): diff --git a/src/onlyfansapi/types/following_list_all_params.py b/src/onlyfansapi/types/following_list_all_params.py index 40e24a34..cb0a25e0 100644 --- a/src/onlyfansapi/types/following_list_all_params.py +++ b/src/onlyfansapi/types/following_list_all_params.py @@ -33,12 +33,27 @@ class FollowingListAllParams(TypedDict, total=False): list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is - changed again. This field is required when sortDirection is + changed again. **Expired list:** OnlyFans applies `offset` to the whole + following collection and only then filters it down to expired subscriptions, so + ordering by expiry descending puts the still-active subscriptions first and + moves the expired rows to the tail of the collection — the first several hundred + offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to + get expired-first results. For that reason `sort=expire_date` on the expired + list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. + Whatever order you pick, an empty page is **not** the end of the list: keep + following `_pagination.next_page` until it is `null` rather than stopping at the + first empty page. This field is required when sortDirection is present. """ sort_direction: Annotated[Optional[Literal["asc", "desc"]], PropertyInfo(alias="sortDirection")] - """Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set.""" + """Direction for `sort`: `desc` (default) or `asc`. + + Requires `sort` to be set. Exception: `sort=expire_date` on the expired list + defaults to `asc`, because `desc` moves the expired rows to the tail of the + underlying collection and leaves the early pages empty. Passing `sortDirection` + explicitly always wins. + """ class Filter(TypedDict, total=False): diff --git a/src/onlyfansapi/types/following_list_expired_params.py b/src/onlyfansapi/types/following_list_expired_params.py index 06167493..4c5b3771 100644 --- a/src/onlyfansapi/types/following_list_expired_params.py +++ b/src/onlyfansapi/types/following_list_expired_params.py @@ -33,12 +33,27 @@ class FollowingListExpiredParams(TypedDict, total=False): list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is - changed again. This field is required when sortDirection is + changed again. **Expired list:** OnlyFans applies `offset` to the whole + following collection and only then filters it down to expired subscriptions, so + ordering by expiry descending puts the still-active subscriptions first and + moves the expired rows to the tail of the collection — the first several hundred + offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to + get expired-first results. For that reason `sort=expire_date` on the expired + list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. + Whatever order you pick, an empty page is **not** the end of the list: keep + following `_pagination.next_page` until it is `null` rather than stopping at the + first empty page. This field is required when sortDirection is present. """ sort_direction: Annotated[Optional[Literal["asc", "desc"]], PropertyInfo(alias="sortDirection")] - """Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set.""" + """Direction for `sort`: `desc` (default) or `asc`. + + Requires `sort` to be set. Exception: `sort=expire_date` on the expired list + defaults to `asc`, because `desc` moves the expired rows to the tail of the + underlying collection and leaves the early pages empty. Passing `sortDirection` + explicitly always wins. + """ class Filter(TypedDict, total=False): diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 7f34f504..240af482 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="asperiores", + message_id="voluptas", 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="asperiores", + message_id="voluptas", 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="asperiores", + message_id="voluptas", 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="asperiores", + message_id="voluptas", 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="asperiores", + message_id="voluptas", 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="asperiores", + message_id="voluptas", 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="asperiores", + message_id="voluptas", 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="asperiores", + message_id="voluptas", 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="asperiores", + message_id="voluptas", 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="asperiores", + message_id="voluptas", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index e44b782d..3f828857 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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="error", + 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 8006dcf9..fe76e723 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="nesciunt", + post_id="enim", 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="nesciunt", + post_id="enim", 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="nesciunt", + post_id="enim", 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="nesciunt", + post_id="enim", 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="nesciunt", + post_id="enim", 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="nesciunt", + post_id="enim", 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="nesciunt", + post_id="enim", 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="nesciunt", + post_id="enim", 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="nesciunt", + post_id="enim", 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="nesciunt", + post_id="enim", 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="nesciunt", + post_id="enim", 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="nesciunt", + post_id="enim", 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="nesciunt", + post_id="enim", 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="nesciunt", + post_id="enim", 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="nesciunt", + post_id="enim", 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="nesciunt", + post_id="enim", 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="nesciunt", + post_id="enim", 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="nesciunt", + post_id="enim", 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="nesciunt", + post_id="enim", 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="nesciunt", + post_id="enim", 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 aa735c97..7549791e 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 b5f3d61a..9c80483e 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 50e749cc..c9e5095c 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="enim", + path_story_id="reiciendis", 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="enim", + path_story_id="reiciendis", 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="enim", + path_story_id="reiciendis", 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="enim", + path_story_id="reiciendis", 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="enim", + story_id="reiciendis", 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="enim", + story_id="reiciendis", 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="enim", + story_id="reiciendis", 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="enim", + story_id="reiciendis", 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="enim", + path_story_id="reiciendis", 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="enim", + path_story_id="reiciendis", 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="enim", + path_story_id="reiciendis", 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="enim", + path_story_id="reiciendis", 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="enim", + story_id="reiciendis", 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="enim", + story_id="reiciendis", 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="enim", + story_id="reiciendis", 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="enim", + story_id="reiciendis", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 66a8a949..5e2fdaf0 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", + "neque", ) 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", + "neque", ) 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", + "neque", ) 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", + "neque", ) 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", + "neque", ) 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", + "neque", ) 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 6bebb135..8af95677 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="repellendus", - auth_type="email_password", - cookies="pariatur", + auth_id="veniam", + auth_type="raw_data", + cookies="similique", custom_proxy={ "host": "proxy.example.com", - "password": "Ipau-'T$Ke7Az;BrfGd)", + "password": "tJgR777<:=}", "port": 8080, - "username": "id", + "username": "aut", }, - email="sipes.garry@example.com", + email="erica25@example.org", force_connect=False, - name="a", - password="Gl,]M9", - proxy_country="uk", - user_agent="magni", - xbc="aperiam", + name="laborum", + password="=!(\\63~z^?$Z'&", + proxy_country="gb", + user_agent="nulla", + xbc="temporibus", ) 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="repellendus", - auth_type="email_password", - cookies="pariatur", + auth_id="veniam", + auth_type="raw_data", + cookies="similique", custom_proxy={ "host": "proxy.example.com", - "password": "Ipau-'T$Ke7Az;BrfGd)", + "password": "tJgR777<:=}", "port": 8080, - "username": "id", + "username": "aut", }, - email="sipes.garry@example.com", + email="erica25@example.org", force_connect=False, - name="a", - password="Gl,]M9", - proxy_country="uk", - user_agent="magni", - xbc="aperiam", + name="laborum", + password="=!(\\63~z^?$Z'&", + proxy_country="gb", + user_agent="nulla", + xbc="temporibus", ) 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 0d035d3b..9249f386 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="gb", + 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="gb", + 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 583d8ad4..413a2df6 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="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="all", + type="likes", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_queue.py b/tests/api_resources/test_queue.py index ed4d6f6f..70085d5a 100644 --- a/tests/api_resources/test_queue.py +++ b/tests/api_resources/test_queue.py @@ -41,7 +41,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: publish_date_start="2025-01-01", timezone="Europe/Prague", limit=20, - type=["post"], + type=["chat"], ) assert_matches_type(QueueListResponse, queue, path=["response"]) @@ -220,7 +220,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) publish_date_start="2025-01-01", timezone="Europe/Prague", limit=20, - type=["post"], + type=["chat"], ) assert_matches_type(QueueListResponse, queue, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 3b03cb92..1cce8225 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=0, + pagination=1, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 22769c70..0e72c304 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": ["iyifnd"]}, + filter={"tags": ["zyckorazykqzmhp"]}, limit=50, name="Instagram", offset=0, @@ -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="ut", + smart_link_id="reprehenderit", ) 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="ut", + smart_link_id="reprehenderit", 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="ut", + smart_link_id="reprehenderit", ) 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="ut", + smart_link_id="reprehenderit", ) 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="quasi", + smart_link_id="eos", ) 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="quasi", + smart_link_id="eos", 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="quasi", + smart_link_id="eos", ) 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="quasi", + smart_link_id="eos", ) 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="quia", + smart_link_id="numquam", ) 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="quia", + smart_link_id="numquam", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="numquam", ) assert response.is_closed is True @@ -358,7 +358,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="numquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="ea", + smart_link_id="facilis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="ea", + smart_link_id="facilis", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="ea", + smart_link_id="facilis", ) assert response.is_closed is True @@ -411,7 +411,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="ea", + smart_link_id="facilis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="quibusdam", + smart_link_id="sunt", ) assert smart_link is None @@ -441,7 +441,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="quibusdam", + smart_link_id="sunt", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="quibusdam", + smart_link_id="sunt", ) assert response.is_closed is True @@ -464,7 +464,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="quibusdam", + smart_link_id="sunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="eveniet", + smart_link_id="incidunt", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="eveniet", + smart_link_id="incidunt", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="eveniet", + smart_link_id="incidunt", ) assert response.is_closed is True @@ -516,7 +516,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="eveniet", + smart_link_id="incidunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["iyifnd"]}, + filter={"tags": ["zyckorazykqzmhp"]}, limit=50, name="Instagram", offset=0, @@ -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="ut", + smart_link_id="reprehenderit", ) 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="ut", + smart_link_id="reprehenderit", 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="ut", + smart_link_id="reprehenderit", ) 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="ut", + smart_link_id="reprehenderit", ) 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="quasi", + smart_link_id="eos", ) 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="quasi", + smart_link_id="eos", 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="quasi", + smart_link_id="eos", ) 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="quasi", + smart_link_id="eos", ) 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="quia", + smart_link_id="numquam", ) 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="quia", + smart_link_id="numquam", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="numquam", ) assert response.is_closed is True @@ -871,7 +871,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="numquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="ea", + smart_link_id="facilis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="ea", + smart_link_id="facilis", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="ea", + smart_link_id="facilis", ) assert response.is_closed is True @@ -924,7 +924,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="ea", + smart_link_id="facilis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="quibusdam", + smart_link_id="sunt", ) assert smart_link is None @@ -954,7 +954,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="quibusdam", + smart_link_id="sunt", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="quibusdam", + smart_link_id="sunt", ) assert response.is_closed is True @@ -977,7 +977,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="quibusdam", + smart_link_id="sunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="eveniet", + smart_link_id="incidunt", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="eveniet", + smart_link_id="incidunt", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="eveniet", + smart_link_id="incidunt", ) assert response.is_closed is True @@ -1029,7 +1029,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="eveniet", + smart_link_id="incidunt", ) 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 d1e93690..bcc33a39 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": "mpfcyvlrzkhzlfod", - "tags": ["bujzmjwjfhuvitrgvwebukm"], + "search": "uuvgytadbqohslscf", + "tags": ["kpplkccmcknfujztase"], }, 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": "yclihieijc", - "tags": ["jjjhqcnp"], + "search": "rac", + "tags": ["p"], }, 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": "egkqomvmyajbmtrsuz", - "tags": ["tgjnxf"], + "search": "dwmyugpjlvochsqhpuh", + "tags": ["eshegajbbu"], }, 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": "dbdfzetymdkcbmfsiohqa", - "tags": ["jgiexrokracuawwbitjn"], + "include_smart_links": True, + "search": "sgjpxvqss", + "tags": ["blunzvbjmnhaam"], }, 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": "mpfcyvlrzkhzlfod", - "tags": ["bujzmjwjfhuvitrgvwebukm"], + "search": "uuvgytadbqohslscf", + "tags": ["kpplkccmcknfujztase"], }, 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": "yclihieijc", - "tags": ["jjjhqcnp"], + "search": "rac", + "tags": ["p"], }, 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": "egkqomvmyajbmtrsuz", - "tags": ["tgjnxf"], + "search": "dwmyugpjlvochsqhpuh", + "tags": ["eshegajbbu"], }, 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": "dbdfzetymdkcbmfsiohqa", - "tags": ["jgiexrokracuawwbitjn"], + "include_smart_links": True, + "search": "sgjpxvqss", + "tags": ["blunzvbjmnhaam"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 26ea88b5..61ad3399 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="veniam", + tracking_link_id="vel", 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="veniam", + tracking_link_id="vel", 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="veniam", + tracking_link_id="vel", 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="veniam", + tracking_link_id="vel", account="", ) @@ -149,7 +149,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -196,7 +196,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="veniam", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="veniam", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="veniam", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="veniam", + tracking_link_id="vel", account="", ) @@ -248,7 +248,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="quis", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="quis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="quis", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="quis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="quis", account="", ) @@ -312,7 +312,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="architecto", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="architecto", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="architecto", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="architecto", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="architecto", + tracking_link_id="velit", account="", ) @@ -563,7 +563,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="veniam", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="veniam", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="veniam", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="veniam", + tracking_link_id="vel", account="", ) @@ -627,7 +627,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) end_date="2025-01-31 23:59:59", limit=10, offset=0, - pagination=0, + pagination=1, sort="desc", sortby="claims", start_date="2025-01-01 00:00:00", @@ -674,7 +674,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="veniam", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="veniam", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="veniam", + tracking_link_id="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="veniam", + tracking_link_id="vel", account="", ) @@ -726,7 +726,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="quis", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="quis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="quis", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="quis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="quis", account="", ) @@ -790,7 +790,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="architecto", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="architecto", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="architecto", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="architecto", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="architecto", + tracking_link_id="velit", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index b4b06817..89ce1ad3 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="id", + 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="id", + 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="id", + 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="id", + trial_link_id="et", account="", ) @@ -205,7 +205,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="id", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="id", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="id", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="id", + trial_link_id="et", account="", ) @@ -321,7 +321,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="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="aut", account="", limit=10, offset=0, @@ -383,7 +383,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="vel", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="vel", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="vel", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="vel", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="vel", + trial_link_id="natus", account="", ) @@ -447,7 +447,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="alias", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="alias", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="alias", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="alias", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="alias", + trial_link_id="saepe", account="", ) @@ -583,7 +583,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="id", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="id", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="id", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="id", + trial_link_id="et", account="", ) @@ -692,7 +692,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="id", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="id", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="id", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="id", + trial_link_id="et", account="", ) @@ -808,7 +808,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="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="aut", account="", limit=10, offset=0, @@ -870,7 +870,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="vel", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="vel", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="vel", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="vel", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="vel", + trial_link_id="natus", account="", ) @@ -934,7 +934,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="alias", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="alias", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="alias", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="alias", + trial_link_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="alias", + trial_link_id="saepe", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 3a2ce910..59394c07 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="whwktrmekficw", + name="i", ) 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="whwktrmekficw", + name="i", ) 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="whwktrmekficw", + name="i", ) 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="whwktrmekficw", + name="i", ) @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="whwktrmekficw", + name="i", ) 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="whwktrmekficw", + name="i", ) 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="whwktrmekficw", + name="i", ) 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="whwktrmekficw", + name="i", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 74730714f173cf850e0eb7975f03eec04f9dc8cc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 11:12:42 +0000 Subject: [PATCH 248/249] feat(api): api update --- .stats.yml | 4 +- .../resources/user_lists/user_lists.py | 23 +++- .../types/user_list_list_params.py | 8 +- .../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 | 48 ++++----- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_queue.py | 4 +- .../api_resources/test_shared_trial_links.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 | 18 ++-- 19 files changed, 300 insertions(+), 277 deletions(-) diff --git a/.stats.yml b/.stats.yml index a48b1ad0..0751bec3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-adc2248fbfadd296a372e1cfaa0f2017dfa4a0d611edea0a6006264d4328cada.yml -openapi_spec_hash: 1986e762bd172ac144a57ea678357cad +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5ac36f138ceb953477f1830fb90a8455ee5fb60bb00b79351f49a0d930a7bb44.yml +openapi_spec_hash: 4925a6c29f19d5958094e6a45fb3cd5a config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/user_lists/user_lists.py b/src/onlyfansapi/resources/user_lists/user_lists.py index 44b1169b..8b89b85f 100644 --- a/src/onlyfansapi/resources/user_lists/user_lists.py +++ b/src/onlyfansapi/resources/user_lists/user_lists.py @@ -3,6 +3,7 @@ from __future__ import annotations from typing import Optional +from typing_extensions import Literal import httpx @@ -187,6 +188,7 @@ def list( *, limit: Optional[int] | Omit = omit, offset: Optional[int] | Omit = omit, + view: Literal["queue"] | 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, @@ -194,8 +196,10 @@ def list( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> UserListListResponse: - """ - Get a list of OnlyFans Collections - User Lists + """Get a list of OnlyFans Collections - User Lists. + + If you only want to get User + Lists available for sending a Mass-Message, use `?view=queue` Args: limit: How many results to return in the request. Max. 50 user lists. Must be at @@ -203,6 +207,9 @@ def list( offset: Must be at least 0. + view: How to return the results. `queue` returns the user lists that are available for + Mass-Messaging. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -224,6 +231,7 @@ def list( { "limit": limit, "offset": offset, + "view": view, }, user_list_list_params.UserListListParams, ), @@ -420,6 +428,7 @@ async def list( *, limit: Optional[int] | Omit = omit, offset: Optional[int] | Omit = omit, + view: Literal["queue"] | 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, @@ -427,8 +436,10 @@ async def list( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> UserListListResponse: - """ - Get a list of OnlyFans Collections - User Lists + """Get a list of OnlyFans Collections - User Lists. + + If you only want to get User + Lists available for sending a Mass-Message, use `?view=queue` Args: limit: How many results to return in the request. Max. 50 user lists. Must be at @@ -436,6 +447,9 @@ async def list( offset: Must be at least 0. + view: How to return the results. `queue` returns the user lists that are available for + Mass-Messaging. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -457,6 +471,7 @@ async def list( { "limit": limit, "offset": offset, + "view": view, }, user_list_list_params.UserListListParams, ), diff --git a/src/onlyfansapi/types/user_list_list_params.py b/src/onlyfansapi/types/user_list_list_params.py index a1213c95..a99daaf5 100644 --- a/src/onlyfansapi/types/user_list_list_params.py +++ b/src/onlyfansapi/types/user_list_list_params.py @@ -3,7 +3,7 @@ from __future__ import annotations from typing import Optional -from typing_extensions import TypedDict +from typing_extensions import Literal, TypedDict __all__ = ["UserListListParams"] @@ -17,3 +17,9 @@ class UserListListParams(TypedDict, total=False): offset: Optional[int] """Must be at least 0.""" + + view: Literal["queue"] + """How to return the results. + + `queue` returns the user lists that are available for Mass-Messaging. + """ diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 240af482..e3986949 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="voluptas", + message_id="ipsa", 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="voluptas", + message_id="ipsa", 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="voluptas", + message_id="ipsa", 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="voluptas", + message_id="ipsa", 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="voluptas", + message_id="ipsa", 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="voluptas", + message_id="ipsa", 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="voluptas", + message_id="ipsa", 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="voluptas", + message_id="ipsa", 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="voluptas", + message_id="ipsa", 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="voluptas", + message_id="ipsa", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 3f828857..283ca8bb 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", 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="qui", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index fe76e723..d809aa5d 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="enim", + post_id="quis", 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="enim", + post_id="quis", 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="enim", + post_id="quis", 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="enim", + post_id="quis", 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="enim", + post_id="quis", 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="enim", + post_id="quis", 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="enim", + post_id="quis", 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="enim", + post_id="quis", 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="enim", + post_id="quis", 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="enim", + post_id="quis", 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="enim", + post_id="quis", 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="enim", + post_id="quis", 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="enim", + post_id="quis", 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="enim", + post_id="quis", 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="enim", + post_id="quis", 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="enim", + post_id="quis", 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="enim", + post_id="quis", 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="enim", + post_id="quis", 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="enim", + post_id="quis", 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="enim", + post_id="quis", 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 7549791e..aa735c97 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 9c80483e..fc7b1635 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 c9e5095c..9637e284 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="reiciendis", + path_story_id="saepe", 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="reiciendis", + path_story_id="saepe", 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="reiciendis", + path_story_id="saepe", 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="reiciendis", + path_story_id="saepe", 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="reiciendis", + story_id="saepe", 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="reiciendis", + story_id="saepe", 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="reiciendis", + story_id="saepe", 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="reiciendis", + story_id="saepe", 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="reiciendis", + path_story_id="saepe", 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="reiciendis", + path_story_id="saepe", 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="reiciendis", + path_story_id="saepe", 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="reiciendis", + path_story_id="saepe", 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="reiciendis", + story_id="saepe", 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="reiciendis", + story_id="saepe", 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="reiciendis", + story_id="saepe", 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="reiciendis", + story_id="saepe", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 5e2fdaf0..28f9196e 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( - "neque", + "in", ) 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( - "neque", + "in", ) 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( - "neque", + "in", ) 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( - "neque", + "in", ) 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( - "neque", + "in", ) 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( - "neque", + "in", ) 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 8af95677..c4ddf679 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="veniam", - auth_type="raw_data", - cookies="similique", + auth_id="saepe", + auth_type="email_password", + cookies="quo", custom_proxy={ "host": "proxy.example.com", - "password": "tJgR777<:=}", + "password": "|ERoQ6&{BX>acrc# None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="veniam", - auth_type="raw_data", - cookies="similique", + auth_id="saepe", + auth_type="email_password", + cookies="quo", custom_proxy={ "host": "proxy.example.com", - "password": "tJgR777<:=}", + "password": "|ERoQ6&{BX>acrc# 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_queue.py b/tests/api_resources/test_queue.py index 70085d5a..ed4d6f6f 100644 --- a/tests/api_resources/test_queue.py +++ b/tests/api_resources/test_queue.py @@ -41,7 +41,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: publish_date_start="2025-01-01", timezone="Europe/Prague", limit=20, - type=["chat"], + type=["post"], ) assert_matches_type(QueueListResponse, queue, path=["response"]) @@ -220,7 +220,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) publish_date_start="2025-01-01", timezone="Europe/Prague", limit=20, - type=["chat"], + type=["post"], ) assert_matches_type(QueueListResponse, queue, path=["response"]) diff --git a/tests/api_resources/test_shared_trial_links.py b/tests/api_resources/test_shared_trial_links.py index 1cce8225..3b03cb92 100644 --- a/tests/api_resources/test_shared_trial_links.py +++ b/tests/api_resources/test_shared_trial_links.py @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) @@ -141,7 +141,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, - pagination=1, + pagination=0, synchronous=False, ) assert_matches_type(SharedTrialLinkListResponse, shared_trial_link, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 0e72c304..62344947 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": ["zyckorazykqzmhp"]}, + filter={"tags": ["hqmoevvvhvcxcpieoxusxgky"]}, limit=50, name="Instagram", offset=0, @@ -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="reprehenderit", + smart_link_id="eum", ) 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="reprehenderit", + smart_link_id="eum", 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="reprehenderit", + smart_link_id="eum", ) 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="reprehenderit", + smart_link_id="eum", ) 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="eos", + smart_link_id="quia", ) 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="eos", + smart_link_id="quia", 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="eos", + smart_link_id="quia", ) 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="eos", + smart_link_id="quia", ) 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="numquam", + smart_link_id="totam", ) 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="numquam", + smart_link_id="totam", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -346,7 +346,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="numquam", + smart_link_id="totam", ) assert response.is_closed is True @@ -358,7 +358,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="numquam", + smart_link_id="totam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -380,7 +380,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="facilis", + smart_link_id="enim", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -388,7 +388,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="facilis", + smart_link_id="enim", limit=50, min_spend=1, offset=0, @@ -399,7 +399,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="facilis", + smart_link_id="enim", ) assert response.is_closed is True @@ -411,7 +411,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="facilis", + smart_link_id="enim", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -433,7 +433,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="sunt", + smart_link_id="beatae", ) assert smart_link is None @@ -441,7 +441,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="sunt", + smart_link_id="beatae", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -452,7 +452,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="sunt", + smart_link_id="beatae", ) assert response.is_closed is True @@ -464,7 +464,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="sunt", + smart_link_id="beatae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -486,7 +486,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="incidunt", + smart_link_id="nisi", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -494,7 +494,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="incidunt", + smart_link_id="nisi", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -504,7 +504,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="incidunt", + smart_link_id="nisi", ) assert response.is_closed is True @@ -516,7 +516,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="incidunt", + smart_link_id="nisi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -644,7 +644,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": ["zyckorazykqzmhp"]}, + filter={"tags": ["hqmoevvvhvcxcpieoxusxgky"]}, limit=50, name="Instagram", offset=0, @@ -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="reprehenderit", + smart_link_id="eum", ) 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="reprehenderit", + smart_link_id="eum", 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="reprehenderit", + smart_link_id="eum", ) 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="reprehenderit", + smart_link_id="eum", ) 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="eos", + smart_link_id="quia", ) 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="eos", + smart_link_id="quia", 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="eos", + smart_link_id="quia", ) 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="eos", + smart_link_id="quia", ) 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="numquam", + smart_link_id="totam", ) 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="numquam", + smart_link_id="totam", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -859,7 +859,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="numquam", + smart_link_id="totam", ) assert response.is_closed is True @@ -871,7 +871,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="numquam", + smart_link_id="totam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -893,7 +893,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="facilis", + smart_link_id="enim", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -901,7 +901,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="facilis", + smart_link_id="enim", limit=50, min_spend=1, offset=0, @@ -912,7 +912,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="facilis", + smart_link_id="enim", ) assert response.is_closed is True @@ -924,7 +924,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="facilis", + smart_link_id="enim", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -946,7 +946,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="sunt", + smart_link_id="beatae", ) assert smart_link is None @@ -954,7 +954,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="sunt", + smart_link_id="beatae", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -965,7 +965,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="sunt", + smart_link_id="beatae", ) assert response.is_closed is True @@ -977,7 +977,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="sunt", + smart_link_id="beatae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -999,7 +999,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="incidunt", + smart_link_id="nisi", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1007,7 +1007,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="incidunt", + smart_link_id="nisi", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1017,7 +1017,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="incidunt", + smart_link_id="nisi", ) assert response.is_closed is True @@ -1029,7 +1029,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="incidunt", + smart_link_id="nisi", ) 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 bcc33a39..6054e9d6 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": "uuvgytadbqohslscf", - "tags": ["kpplkccmcknfujztase"], + "search": "etpxkefmygguhwtxlclwp", + "tags": ["mskbijtxogqcuqlxz"], }, 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": "rac", - "tags": ["p"], + "search": "zzpcveugjmw", + "tags": ["yjegxgarvpgvqppuoeqik"], }, 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": "dwmyugpjlvochsqhpuh", - "tags": ["eshegajbbu"], + "search": "nfjcbmlmeumt", + "tags": ["bmbydwjli"], }, 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": "sgjpxvqss", - "tags": ["blunzvbjmnhaam"], + "include_smart_links": False, + "search": "lifift", + "tags": ["gsmh"], }, 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": "uuvgytadbqohslscf", - "tags": ["kpplkccmcknfujztase"], + "search": "etpxkefmygguhwtxlclwp", + "tags": ["mskbijtxogqcuqlxz"], }, 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": "rac", - "tags": ["p"], + "search": "zzpcveugjmw", + "tags": ["yjegxgarvpgvqppuoeqik"], }, 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": "dwmyugpjlvochsqhpuh", - "tags": ["eshegajbbu"], + "search": "nfjcbmlmeumt", + "tags": ["bmbydwjli"], }, 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": "sgjpxvqss", - "tags": ["blunzvbjmnhaam"], + "include_smart_links": False, + "search": "lifift", + "tags": ["gsmh"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 61ad3399..10068e73 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="vel", + 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="vel", + 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="vel", + 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="vel", + tracking_link_id="quidem", account="", ) @@ -196,7 +196,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="vel", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -205,7 +205,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="vel", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) @@ -218,7 +218,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="vel", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -234,7 +234,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="vel", + tracking_link_id="quidem", account="", ) @@ -248,7 +248,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="quis", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -257,7 +257,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="quis", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -269,7 +269,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="quis", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) @@ -282,7 +282,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="quis", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -298,7 +298,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="quis", + tracking_link_id="quasi", account="", ) @@ -312,7 +312,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="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -321,7 +321,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="ut", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -332,7 +332,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="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -345,7 +345,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="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -361,7 +361,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="ut", account="", ) @@ -563,7 +563,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="vel", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -572,7 +572,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="vel", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) @@ -585,7 +585,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="vel", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -601,7 +601,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="vel", + tracking_link_id="quidem", account="", ) @@ -674,7 +674,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="vel", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -683,7 +683,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="vel", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) @@ -696,7 +696,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="vel", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -712,7 +712,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="vel", + tracking_link_id="quidem", account="", ) @@ -726,7 +726,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="quis", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -735,7 +735,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="quis", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -747,7 +747,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="quis", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) @@ -760,7 +760,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="quis", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -776,7 +776,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="quis", + tracking_link_id="quasi", account="", ) @@ -790,7 +790,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="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -799,7 +799,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="ut", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -810,7 +810,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="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -823,7 +823,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="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -839,7 +839,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="ut", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 89ce1ad3..b29b3257 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="veniam", 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="veniam", 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="veniam", 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="veniam", account="", ) @@ -205,7 +205,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="veniam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -214,7 +214,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="veniam", account="acct_XXXXXXXXXXXXXXX", ) @@ -227,7 +227,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="veniam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -243,7 +243,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="veniam", account="", ) @@ -321,7 +321,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="quaerat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -332,7 +332,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="quaerat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -347,7 +347,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="quaerat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -365,7 +365,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="quaerat", account="", limit=10, offset=0, @@ -383,7 +383,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="natus", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -392,7 +392,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="natus", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -404,7 +404,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="natus", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) @@ -417,7 +417,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="natus", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -433,7 +433,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="natus", + trial_link_id="deleniti", account="", ) @@ -447,7 +447,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="saepe", + trial_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -456,7 +456,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="saepe", + trial_link_id="quis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -467,7 +467,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="saepe", + trial_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) @@ -480,7 +480,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="saepe", + trial_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -496,7 +496,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="saepe", + trial_link_id="quis", account="", ) @@ -583,7 +583,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="veniam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -592,7 +592,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="veniam", account="acct_XXXXXXXXXXXXXXX", ) @@ -605,7 +605,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="veniam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -621,7 +621,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="veniam", account="", ) @@ -692,7 +692,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="veniam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -701,7 +701,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="veniam", account="acct_XXXXXXXXXXXXXXX", ) @@ -714,7 +714,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="veniam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -730,7 +730,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="veniam", account="", ) @@ -808,7 +808,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="quaerat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -819,7 +819,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="quaerat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -834,7 +834,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="quaerat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -852,7 +852,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="quaerat", account="", limit=10, offset=0, @@ -870,7 +870,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="natus", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -879,7 +879,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="natus", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -891,7 +891,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="natus", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) @@ -904,7 +904,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="natus", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -920,7 +920,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="natus", + trial_link_id="deleniti", account="", ) @@ -934,7 +934,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="saepe", + trial_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -943,7 +943,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="saepe", + trial_link_id="quis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -954,7 +954,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="saepe", + trial_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) @@ -967,7 +967,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="saepe", + trial_link_id="quis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -983,7 +983,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="saepe", + trial_link_id="quis", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 59394c07..c957caa1 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="i", + name="llscmhd", ) 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="i", + name="llscmhd", ) 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="i", + name="llscmhd", ) 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="i", + name="llscmhd", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -204,6 +204,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, + view="queue", ) assert_matches_type(UserListListResponse, user_list, path=["response"]) @@ -304,7 +305,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="i", + name="llscmhd", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +314,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="i", + name="llscmhd", ) assert response.is_closed is True @@ -326,7 +327,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="i", + name="llscmhd", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +343,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="i", + name="llscmhd", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -480,6 +481,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, + view="queue", ) assert_matches_type(UserListListResponse, user_list, path=["response"]) From 8800b95e2142d376d196533fba652ee1dfcf55e4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 11:14:39 +0000 Subject: [PATCH 249/249] release: 0.2.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 257 ++++++++++++++++++++++++++++++++++ pyproject.toml | 2 +- src/onlyfansapi/_version.py | 2 +- 4 files changed, 260 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index cda9cbdf..10f30916 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 e9d2a81d..c3a89683 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,262 @@ # Changelog +## 0.2.0 (2026-08-26) + +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 ([7473071](https://github.com/onlyfansapi/onlyfansapi-python/commit/74730714f173cf850e0eb7975f03eec04f9dc8cc)) +* **api:** api update ([6ce56b0](https://github.com/onlyfansapi/onlyfansapi-python/commit/6ce56b042902c60d0265a3b28c5100c27f51d566)) +* **api:** api update ([f0ae816](https://github.com/onlyfansapi/onlyfansapi-python/commit/f0ae8161addd075897099da7a4f6952cd9f7c538)) +* **api:** api update ([b8ee283](https://github.com/onlyfansapi/onlyfansapi-python/commit/b8ee283efe94a9bc2338d29b93fd1c0efda4166e)) +* **api:** api update ([78fc5ee](https://github.com/onlyfansapi/onlyfansapi-python/commit/78fc5ee8b96e4b6f879459f02af92a0328bf6ffa)) +* **api:** api update ([253811c](https://github.com/onlyfansapi/onlyfansapi-python/commit/253811ccddb3642133030b0398247f7e153830a0)) +* **api:** api update ([a8ad518](https://github.com/onlyfansapi/onlyfansapi-python/commit/a8ad51825b5fb756c8bdf68944ae66da6f4c3eb0)) +* **api:** api update ([89c4de4](https://github.com/onlyfansapi/onlyfansapi-python/commit/89c4de4ba7fb9a789dfb8a0e01cbe61b16c8701d)) +* **api:** api update ([d0e5322](https://github.com/onlyfansapi/onlyfansapi-python/commit/d0e53221eecfb493a4607194bf28a81f9b372a43)) +* **api:** api update ([0cc4697](https://github.com/onlyfansapi/onlyfansapi-python/commit/0cc46970e4bb4a1e947737b47d177ce67ef99579)) +* **api:** api update ([c7bed45](https://github.com/onlyfansapi/onlyfansapi-python/commit/c7bed4511bd2fa1c394cd1076fbd1430e34477c6)) +* **api:** api update ([d41110b](https://github.com/onlyfansapi/onlyfansapi-python/commit/d41110bfe79b27ab9b14acc56479dd3e1828c3fb)) +* **api:** api update ([930eecf](https://github.com/onlyfansapi/onlyfansapi-python/commit/930eecf179c3c1ec246f7308901ebb44ad4529d4)) +* **api:** api update ([5eaf7b8](https://github.com/onlyfansapi/onlyfansapi-python/commit/5eaf7b862cd58198b4d370c588e1b4e06517dcbb)) +* **api:** api update ([ed392bf](https://github.com/onlyfansapi/onlyfansapi-python/commit/ed392bf29df7ce14f69760ea55338a61aaf1b8a7)) +* **api:** api update ([8d7342b](https://github.com/onlyfansapi/onlyfansapi-python/commit/8d7342b6d4076c2087a926f7f79b776036826b85)) +* **api:** api update ([96bef37](https://github.com/onlyfansapi/onlyfansapi-python/commit/96bef37d1dafec25f6edaa283b070041a567ab46)) +* **api:** api update ([b073e8f](https://github.com/onlyfansapi/onlyfansapi-python/commit/b073e8f89f72d1960c9250a5b4b898401ba68216)) +* **api:** api update ([e222ff8](https://github.com/onlyfansapi/onlyfansapi-python/commit/e222ff85f12c5818c112fa577d63d7199fc30277)) +* **api:** api update ([6df6e2a](https://github.com/onlyfansapi/onlyfansapi-python/commit/6df6e2af35b416e3dfdee775b65ebbaff3d6a9fc)) +* **api:** api update ([a2ac1bd](https://github.com/onlyfansapi/onlyfansapi-python/commit/a2ac1bd2100e6fe643ae2db04a789c250ba00d65)) +* **api:** api update ([4bbfdd1](https://github.com/onlyfansapi/onlyfansapi-python/commit/4bbfdd189f41fe370f35ec1b9e428a3b1e5699fd)) +* **api:** api update ([2ad0d5f](https://github.com/onlyfansapi/onlyfansapi-python/commit/2ad0d5fc46416573dc8cf8836744636c8586120c)) +* **api:** api update ([04e8626](https://github.com/onlyfansapi/onlyfansapi-python/commit/04e862686e19e33646a6e096dea76e21a5cd6f27)) +* **api:** api update ([db2c99c](https://github.com/onlyfansapi/onlyfansapi-python/commit/db2c99c027f12690ef751eeed5c1b8fe2ae7e23c)) +* **api:** api update ([a0e30d7](https://github.com/onlyfansapi/onlyfansapi-python/commit/a0e30d74e9c7245d836c3cdb9d53c7e666ec5442)) +* **api:** api update ([1a8acd1](https://github.com/onlyfansapi/onlyfansapi-python/commit/1a8acd18cce3fe2d56e8c8da5d24bca8741703fa)) +* **api:** api update ([5f775d7](https://github.com/onlyfansapi/onlyfansapi-python/commit/5f775d77cbc18ce51badea04ef40f442f76da7e7)) +* **api:** api update ([28864ee](https://github.com/onlyfansapi/onlyfansapi-python/commit/28864eea9911a6c0ce9d011cc97f14cab53416ac)) +* **api:** api update ([3ed6a88](https://github.com/onlyfansapi/onlyfansapi-python/commit/3ed6a88a772874e34820aed36250aa8c92a2094c)) +* **api:** api update ([6109204](https://github.com/onlyfansapi/onlyfansapi-python/commit/61092043eacd145962a8b12c14cee3ffbff585b4)) +* **api:** api update ([cfcce74](https://github.com/onlyfansapi/onlyfansapi-python/commit/cfcce7497265a62f22a13e68b3371132b17eab76)) +* **api:** api update ([ec9c9b7](https://github.com/onlyfansapi/onlyfansapi-python/commit/ec9c9b704bf4f657c5a7bd84a4d5a4e5cdd47595)) +* **api:** api update ([727a00c](https://github.com/onlyfansapi/onlyfansapi-python/commit/727a00cc6b7f36c1bcf10a7647b4d3aa93cce93b)) +* **api:** api update ([9889722](https://github.com/onlyfansapi/onlyfansapi-python/commit/9889722219f443635f4a43ecfd85c3c00e9828ef)) +* **api:** api update ([e6ea88d](https://github.com/onlyfansapi/onlyfansapi-python/commit/e6ea88d737ec6b39d7d6a44a1cab409fc28acb7f)) +* **api:** api update ([023b1fc](https://github.com/onlyfansapi/onlyfansapi-python/commit/023b1fc3c73a5831955df00bece191c9e6d0c9a6)) +* **api:** api update ([fa0b6cb](https://github.com/onlyfansapi/onlyfansapi-python/commit/fa0b6cbfbdfc703734db97b2696d672e5e9623ca)) +* **api:** api update ([5827381](https://github.com/onlyfansapi/onlyfansapi-python/commit/582738189c9ac1a15291974eadcdab3cf142097c)) +* **api:** api update ([32c6f88](https://github.com/onlyfansapi/onlyfansapi-python/commit/32c6f88e69572a26f95de0a553786bff41dc6dc2)) +* **api:** api update ([95218c9](https://github.com/onlyfansapi/onlyfansapi-python/commit/95218c90954a7f89c429153e2e39a74edae409ab)) +* **api:** api update ([ed4c419](https://github.com/onlyfansapi/onlyfansapi-python/commit/ed4c419b5d56cddcc27679ff2158f58d3e827cb4)) +* **api:** api update ([9193673](https://github.com/onlyfansapi/onlyfansapi-python/commit/9193673f40a967a7c979465fd0b691a4b1e59bc8)) +* **api:** api update ([58a4812](https://github.com/onlyfansapi/onlyfansapi-python/commit/58a4812b204afbd08b301063b4f34613cacc836f)) +* **api:** api update ([3d3c32a](https://github.com/onlyfansapi/onlyfansapi-python/commit/3d3c32a37b1f8326e4ffff6ccd0c105de24bad18)) +* **api:** api update ([5fea6cc](https://github.com/onlyfansapi/onlyfansapi-python/commit/5fea6cca3d9a706df74b61e9e734d35382def2e4)) +* **api:** api update ([5a1cd93](https://github.com/onlyfansapi/onlyfansapi-python/commit/5a1cd93679d57d6f7931de339b21bfaaa5fd144e)) +* **api:** api update ([60d3eac](https://github.com/onlyfansapi/onlyfansapi-python/commit/60d3eac8991bd7cec36ecb3f99f7984e6d333212)) +* **api:** api update ([9b58972](https://github.com/onlyfansapi/onlyfansapi-python/commit/9b58972a7e11f356300d950591b739f3db725b0c)) +* **api:** api update ([3d4e82a](https://github.com/onlyfansapi/onlyfansapi-python/commit/3d4e82a74cd17580af41d4692c5eb252c4901be4)) +* **api:** api update ([ee28e92](https://github.com/onlyfansapi/onlyfansapi-python/commit/ee28e926834d57e16d1de4ed6c95a533d5672c02)) +* **api:** api update ([bc13cfa](https://github.com/onlyfansapi/onlyfansapi-python/commit/bc13cfa62a0ba7eab9a1bddc4d3cae039ba7b520)) +* **api:** api update ([91252ee](https://github.com/onlyfansapi/onlyfansapi-python/commit/91252eef3de9b5add88105c123ba34e59790164d)) +* **api:** api update ([4ecc6fe](https://github.com/onlyfansapi/onlyfansapi-python/commit/4ecc6fea51ce942e0b3c87b06f7000b26020fdfc)) +* **api:** api update ([8137610](https://github.com/onlyfansapi/onlyfansapi-python/commit/81376103c50a835a8aa6e5b4430c594f87168b86)) +* **api:** api update ([81f42ff](https://github.com/onlyfansapi/onlyfansapi-python/commit/81f42ffb06fa8bffcec38c37e281f0fce5767563)) +* **api:** api update ([98d06fa](https://github.com/onlyfansapi/onlyfansapi-python/commit/98d06fae448d4f214bd3ebfe44df6c62825c4655)) +* **api:** api update ([8017401](https://github.com/onlyfansapi/onlyfansapi-python/commit/80174010ca5107a6b01499c7bcd9267f9a750793)) +* **api:** api update ([2f12252](https://github.com/onlyfansapi/onlyfansapi-python/commit/2f122524efdf42653d50d895ff8921c37aaedcf7)) +* **api:** api update ([59e47be](https://github.com/onlyfansapi/onlyfansapi-python/commit/59e47be2ce117f2eab9ee823ac8de52a1396eb8e)) +* **api:** api update ([c4b4cbc](https://github.com/onlyfansapi/onlyfansapi-python/commit/c4b4cbc1ebdaaa58f29fc66e6adb94d9bcfbca33)) +* **api:** api update ([a3f3602](https://github.com/onlyfansapi/onlyfansapi-python/commit/a3f36027879b1fedba7b20d6a5a6b13582792ab0)) +* **api:** api update ([3dbd253](https://github.com/onlyfansapi/onlyfansapi-python/commit/3dbd253b28d5fb6e8adb7022b28bc787d1eb73dd)) +* **api:** api update ([39faabe](https://github.com/onlyfansapi/onlyfansapi-python/commit/39faabeffb6af7053738be1dad15eea1df0f20e2)) +* **api:** api update ([8bd5d84](https://github.com/onlyfansapi/onlyfansapi-python/commit/8bd5d84832181057ef296a044ae4903b7a5017fb)) +* **api:** api update ([3697190](https://github.com/onlyfansapi/onlyfansapi-python/commit/3697190051b6031f79d0e309402dbba8d7261eff)) +* **api:** api update ([f0d6930](https://github.com/onlyfansapi/onlyfansapi-python/commit/f0d6930cdb58e913f6bf366d4b0efc320178eceb)) +* **api:** api update ([1f4ac02](https://github.com/onlyfansapi/onlyfansapi-python/commit/1f4ac02a5623e3f65252680e171e052a951ce441)) +* **api:** api update ([1c39ee2](https://github.com/onlyfansapi/onlyfansapi-python/commit/1c39ee2c56a02ab2c917032244427b5d5c90969d)) +* **api:** api update ([977d8f3](https://github.com/onlyfansapi/onlyfansapi-python/commit/977d8f37d552e87d6566fe75c6b15695242891d3)) +* **api:** api update ([727b77d](https://github.com/onlyfansapi/onlyfansapi-python/commit/727b77d68de20f5ae4ef2a86336e56858fd2b561)) +* **api:** api update ([2028874](https://github.com/onlyfansapi/onlyfansapi-python/commit/20288744b129ce287fd92c3ce3d37f8a3cf8b887)) +* **api:** api update ([cb6a8a3](https://github.com/onlyfansapi/onlyfansapi-python/commit/cb6a8a3b99a7803e71fe81c4775d7bc08c75fe8d)) +* **api:** api update ([a2e9fba](https://github.com/onlyfansapi/onlyfansapi-python/commit/a2e9fba0d16cfb60cdbc7e98f94adc6dc7f20597)) +* **api:** api update ([b67d110](https://github.com/onlyfansapi/onlyfansapi-python/commit/b67d110c34f72e85c8d46044f8b7881a2b0f68ed)) +* **api:** api update ([7a37525](https://github.com/onlyfansapi/onlyfansapi-python/commit/7a375259bfb4e8c7ddd50f4ae8438a2ce25c84cc)) +* **api:** api update ([de02374](https://github.com/onlyfansapi/onlyfansapi-python/commit/de023746aee85ea5bacb3dfb45ee8a22de126653)) +* **api:** api update ([80626d6](https://github.com/onlyfansapi/onlyfansapi-python/commit/80626d6f45a33b16ffee77cd7ebb2115d7197597)) +* **api:** api update ([3b05be2](https://github.com/onlyfansapi/onlyfansapi-python/commit/3b05be2dac74b6886d1447195c16d57a17b1fd23)) +* **api:** api update ([b30430b](https://github.com/onlyfansapi/onlyfansapi-python/commit/b30430bb4db869895bbda74477161206770ef8a2)) +* **api:** api update ([6ce0c66](https://github.com/onlyfansapi/onlyfansapi-python/commit/6ce0c667ef53ccc999e37393debb98a164e9f5a5)) +* **api:** api update ([4f519c6](https://github.com/onlyfansapi/onlyfansapi-python/commit/4f519c6af12b155ab55bc8908e36d76cee693974)) +* **api:** api update ([b68745a](https://github.com/onlyfansapi/onlyfansapi-python/commit/b68745a107dd77c04aa3668a318774b80a840cb3)) +* **api:** api update ([4c4cfa1](https://github.com/onlyfansapi/onlyfansapi-python/commit/4c4cfa16785df1fbc4cb3728406f97a98b7c8161)) +* **api:** api update ([2465884](https://github.com/onlyfansapi/onlyfansapi-python/commit/2465884b3bc9bc3474e496fc13e3585c2c42a7f6)) +* **api:** api update ([bbcf21d](https://github.com/onlyfansapi/onlyfansapi-python/commit/bbcf21dddce7793a49c619dfb4d0dbcddee3d932)) +* **api:** api update ([02527aa](https://github.com/onlyfansapi/onlyfansapi-python/commit/02527aa87aeb05514a9965075390b64cb66c09fb)) +* **api:** api update ([71db779](https://github.com/onlyfansapi/onlyfansapi-python/commit/71db779cabb357927c8f79cb8f0fcd9692b30ae0)) +* **api:** api update ([4edd93f](https://github.com/onlyfansapi/onlyfansapi-python/commit/4edd93fc9ed9cb388ee23920b6b5f570085bc44d)) +* **api:** api update ([4c4fbee](https://github.com/onlyfansapi/onlyfansapi-python/commit/4c4fbee0a34e3947c61c0b7eb6ba81fb71ea7dd8)) +* **api:** api update ([5f83d8e](https://github.com/onlyfansapi/onlyfansapi-python/commit/5f83d8e1d7a63140fa2f334ce8787cc296b3b8c8)) +* **api:** api update ([ff35699](https://github.com/onlyfansapi/onlyfansapi-python/commit/ff35699b05b1968f622c39e5acd873bb3bc7448f)) +* **api:** api update ([53307f5](https://github.com/onlyfansapi/onlyfansapi-python/commit/53307f5b33c42961dbf9f7789352398b1aad35d0)) +* **api:** api update ([1b7e3b7](https://github.com/onlyfansapi/onlyfansapi-python/commit/1b7e3b7d85306ebb0c36b33dc219486c290a07a0)) +* **api:** api update ([870ce5c](https://github.com/onlyfansapi/onlyfansapi-python/commit/870ce5c5344eac82f50ab138e3cf660d5dbcde99)) +* **api:** api update ([4c8f998](https://github.com/onlyfansapi/onlyfansapi-python/commit/4c8f9989a83e200bfda79edba3b644e7bc776734)) +* **api:** api update ([bf85410](https://github.com/onlyfansapi/onlyfansapi-python/commit/bf8541014f378eb7783b4d548dec868ac023fb4b)) +* **api:** api update ([bc4ad9c](https://github.com/onlyfansapi/onlyfansapi-python/commit/bc4ad9cda2cddd4b44f3a6ec598cd9843ff5422e)) +* **api:** api update ([6d845ea](https://github.com/onlyfansapi/onlyfansapi-python/commit/6d845eace2c48224721825fb92f286f41608a531)) +* **api:** api update ([d2ff421](https://github.com/onlyfansapi/onlyfansapi-python/commit/d2ff421e1e4741943cb6dfb61ee8bc68e5273ce7)) +* **api:** api update ([1e34cdf](https://github.com/onlyfansapi/onlyfansapi-python/commit/1e34cdfb2c77dcf8e7bfe3429b624ba6564c12c2)) +* **api:** api update ([02ae244](https://github.com/onlyfansapi/onlyfansapi-python/commit/02ae244cb2aaf005d9244be1cb2410935f626c56)) +* **api:** api update ([179a592](https://github.com/onlyfansapi/onlyfansapi-python/commit/179a5923e7580bf0483d05abccd2ab731a09bc01)) +* **api:** api update ([c7f90dd](https://github.com/onlyfansapi/onlyfansapi-python/commit/c7f90dd1b7064ad48334a1c97791bac616228a25)) +* **api:** api update ([293346c](https://github.com/onlyfansapi/onlyfansapi-python/commit/293346ce4cc45bc6c893ce146907aecd9d45083b)) +* **api:** api update ([9a82aec](https://github.com/onlyfansapi/onlyfansapi-python/commit/9a82aec51c4f60f11ea2d3db069898301c22e48d)) +* **api:** api update ([0742c6b](https://github.com/onlyfansapi/onlyfansapi-python/commit/0742c6b01b8ee727616da3c71232bdb71dc28a7d)) +* **api:** api update ([f557b21](https://github.com/onlyfansapi/onlyfansapi-python/commit/f557b2178e60a8d96edbabe78099094198240c1c)) +* **api:** api update ([c29e6e2](https://github.com/onlyfansapi/onlyfansapi-python/commit/c29e6e299fcae1882ba3a1982ad8996a0e29aa24)) +* **api:** api update ([64e0325](https://github.com/onlyfansapi/onlyfansapi-python/commit/64e03259d17d1f27f44ae4ab2d8ee3cba744677b)) +* **api:** api update ([d69001b](https://github.com/onlyfansapi/onlyfansapi-python/commit/d69001b11519fca2f88a08610e4c11f462b10690)) +* **api:** api update ([f3f6a7d](https://github.com/onlyfansapi/onlyfansapi-python/commit/f3f6a7de15830eabbd9ad57d5edd600a444872cb)) +* **api:** api update ([2e11f3f](https://github.com/onlyfansapi/onlyfansapi-python/commit/2e11f3feabcda807f76fedc5ac8ad70db68ab4d0)) +* **api:** api update ([7d8523a](https://github.com/onlyfansapi/onlyfansapi-python/commit/7d8523acbc7171c2bf2af963f457f242d86e5119)) +* **api:** api update ([3101371](https://github.com/onlyfansapi/onlyfansapi-python/commit/310137122207eeb85389095d4d26dc2555333c2e)) +* **api:** api update ([7c99e2a](https://github.com/onlyfansapi/onlyfansapi-python/commit/7c99e2a1cc79d09a7d53d4c68237af06e4e4d1ab)) +* **api:** api update ([c11f180](https://github.com/onlyfansapi/onlyfansapi-python/commit/c11f180fe2c833e9ad40434312cfe47447be8dfb)) +* **api:** api update ([4830edd](https://github.com/onlyfansapi/onlyfansapi-python/commit/4830eddc35ed953f5730edf979b5c0db75ccb082)) +* **api:** api update ([3ef2bad](https://github.com/onlyfansapi/onlyfansapi-python/commit/3ef2bad1be2bb4fcef4f65dde2d5704384a821c3)) +* **api:** api update ([c4b4d34](https://github.com/onlyfansapi/onlyfansapi-python/commit/c4b4d347ddc13bf7ef358f1953a145aef07c6785)) +* **api:** api update ([6fd0c37](https://github.com/onlyfansapi/onlyfansapi-python/commit/6fd0c3711c712c47f78cae2359ee20eca694e26f)) +* **api:** api update ([84ef257](https://github.com/onlyfansapi/onlyfansapi-python/commit/84ef257f42d7c15262dc63d5869e9b48b8f1d62b)) +* **api:** api update ([a822c22](https://github.com/onlyfansapi/onlyfansapi-python/commit/a822c221e7d433bf7f36f2f608ec6ee2f4212fff)) +* **api:** api update ([96068ce](https://github.com/onlyfansapi/onlyfansapi-python/commit/96068ce6fe8c0fa94b475877815cc8c1670a48b3)) +* **api:** api update ([14e5452](https://github.com/onlyfansapi/onlyfansapi-python/commit/14e54524baf40026eae7cad18828f9e9a9246522)) +* **api:** api update ([9ff85c9](https://github.com/onlyfansapi/onlyfansapi-python/commit/9ff85c92011773ac85fd43a9c8fed24f1d09ed69)) +* **api:** api update ([690697f](https://github.com/onlyfansapi/onlyfansapi-python/commit/690697fed189cd6acc18c9bf40164729e13d5344)) +* **api:** api update ([d4ea3a3](https://github.com/onlyfansapi/onlyfansapi-python/commit/d4ea3a356bab292a092a599f4a4fd7394ae149e1)) +* **api:** api update ([ece2e64](https://github.com/onlyfansapi/onlyfansapi-python/commit/ece2e64dec3f9356b351d1862a1f22871a528970)) +* **api:** api update ([0e5181b](https://github.com/onlyfansapi/onlyfansapi-python/commit/0e5181b69361214e8a78e5ca7c3f915b2ea57aec)) +* **api:** api update ([a2f1e64](https://github.com/onlyfansapi/onlyfansapi-python/commit/a2f1e64f365be407a6b3b5267e293f808fa684e1)) +* **api:** api update ([3093ab5](https://github.com/onlyfansapi/onlyfansapi-python/commit/3093ab5168081988522eaae6afc8aab54e525b0c)) +* **api:** api update ([7d8cf8d](https://github.com/onlyfansapi/onlyfansapi-python/commit/7d8cf8d441a41fd773f832e787da2a17fe97bb5d)) +* **api:** api update ([f07fda7](https://github.com/onlyfansapi/onlyfansapi-python/commit/f07fda75461b72f717dbea6aecb141f63153afd6)) +* **api:** api update ([65fd101](https://github.com/onlyfansapi/onlyfansapi-python/commit/65fd1014fca65692c9c0d1a9960fafea61a0d876)) +* **api:** api update ([1a4584e](https://github.com/onlyfansapi/onlyfansapi-python/commit/1a4584e4ac241ff185911411b0b56fa2eb73b62c)) +* **api:** api update ([6b0bbf8](https://github.com/onlyfansapi/onlyfansapi-python/commit/6b0bbf8ccd12982f2ff8e53014db7e24dfb2bf83)) +* **api:** api update ([6f86464](https://github.com/onlyfansapi/onlyfansapi-python/commit/6f8646432b9297b31885ea2912f1325ba86e5949)) +* **api:** api update ([d99d328](https://github.com/onlyfansapi/onlyfansapi-python/commit/d99d328ea9231b173ce3694207f1acb04331322c)) +* **api:** api update ([1a1f70d](https://github.com/onlyfansapi/onlyfansapi-python/commit/1a1f70df2843def16fe176ac59863f41b3864467)) +* **api:** api update ([6733605](https://github.com/onlyfansapi/onlyfansapi-python/commit/673360549e2dba4c0558234ee9b172304530f3d8)) +* **api:** api update ([34b0116](https://github.com/onlyfansapi/onlyfansapi-python/commit/34b01164051b22ec5c95c03104ecf086cf5c38a9)) +* **api:** api update ([2623e4f](https://github.com/onlyfansapi/onlyfansapi-python/commit/2623e4ff6f4beb7e4601c4d5bfd3c445be5b53d8)) +* **api:** api update ([5ecfe50](https://github.com/onlyfansapi/onlyfansapi-python/commit/5ecfe507bb879f29f5f7d3ef84294d7495a77c27)) +* **api:** api update ([e04b31f](https://github.com/onlyfansapi/onlyfansapi-python/commit/e04b31fbb676188666fea058aec58892b665e560)) +* **api:** api update ([ff80138](https://github.com/onlyfansapi/onlyfansapi-python/commit/ff8013848469ba5059d0ae9f43164ea3de6f17ec)) +* **api:** api update ([86e264e](https://github.com/onlyfansapi/onlyfansapi-python/commit/86e264e4f4596e989c1227b0f8717a562ccb5c8a)) +* **api:** api update ([7dd3175](https://github.com/onlyfansapi/onlyfansapi-python/commit/7dd3175dea435e9d03ba94cd548b45588cdadc12)) +* **api:** api update ([2eede93](https://github.com/onlyfansapi/onlyfansapi-python/commit/2eede932d7795151755cef1373ef723b594b51ec)) +* **api:** api update ([d7f273e](https://github.com/onlyfansapi/onlyfansapi-python/commit/d7f273e31c9f47d142a18b0a2a9a72b520277a41)) +* **api:** api update ([61824c2](https://github.com/onlyfansapi/onlyfansapi-python/commit/61824c2c6a658abc8a5b256f26153c852fdf07ca)) +* **api:** api update ([c065f5e](https://github.com/onlyfansapi/onlyfansapi-python/commit/c065f5e87e1c8a34984dabc5b36fc8b5d89dc04e)) +* **api:** api update ([e6371a9](https://github.com/onlyfansapi/onlyfansapi-python/commit/e6371a97aef6d5b5724bee5ff93856d5444f39cf)) +* **api:** api update ([fcbc734](https://github.com/onlyfansapi/onlyfansapi-python/commit/fcbc734d81a4fe09530f934f619c65bbbbc21a8c)) +* **api:** api update ([27d82bd](https://github.com/onlyfansapi/onlyfansapi-python/commit/27d82bd7196e95abb0d4dae7b7d83880e9758e2e)) +* **api:** api update ([8e6951a](https://github.com/onlyfansapi/onlyfansapi-python/commit/8e6951a2d77aa5c1e7bf04346006b23aac571f12)) +* **api:** api update ([2a9d43d](https://github.com/onlyfansapi/onlyfansapi-python/commit/2a9d43da2583fc5787269d8419544ba0ed3256f6)) +* **api:** api update ([219a4ad](https://github.com/onlyfansapi/onlyfansapi-python/commit/219a4ad76a013f4409e78c39bf98ff178063b0e5)) +* **api:** api update ([b4de79a](https://github.com/onlyfansapi/onlyfansapi-python/commit/b4de79adfe74b16d971c2ac5c0483c6ea2823b17)) +* **api:** api update ([6dac13e](https://github.com/onlyfansapi/onlyfansapi-python/commit/6dac13ef7bfe10bdf41a445e2bbf733574b6ce49)) +* **api:** api update ([d37311c](https://github.com/onlyfansapi/onlyfansapi-python/commit/d37311c2c3241b721cfb6c4bb23768871ddb37d3)) +* **api:** api update ([ad185f2](https://github.com/onlyfansapi/onlyfansapi-python/commit/ad185f2dba151f99f4305a991d59c732bfed3567)) +* **api:** api update ([fb91a8a](https://github.com/onlyfansapi/onlyfansapi-python/commit/fb91a8a2ae01b12b8e23d04019f14cf589d2b6d6)) +* **api:** api update ([34b2ef5](https://github.com/onlyfansapi/onlyfansapi-python/commit/34b2ef520908d102c015ca22ae14cd962971803a)) +* **api:** api update ([bc6eecc](https://github.com/onlyfansapi/onlyfansapi-python/commit/bc6eecce257a653fb292faa08083275940e2988d)) +* **api:** api update ([8c1fc5b](https://github.com/onlyfansapi/onlyfansapi-python/commit/8c1fc5bf584345d8f7322a364f372bafb9a61105)) +* **api:** api update ([b3e9ad4](https://github.com/onlyfansapi/onlyfansapi-python/commit/b3e9ad4baf8a196ac8709aebd2544c35d7c4cb9f)) +* **api:** api update ([6206d4e](https://github.com/onlyfansapi/onlyfansapi-python/commit/6206d4ea6f90f4670efd1bbbc575198dc83fa378)) +* **api:** api update ([c4cb460](https://github.com/onlyfansapi/onlyfansapi-python/commit/c4cb46035be4dc92c35f839c4b0357c669990ee7)) +* **api:** api update ([5730eb7](https://github.com/onlyfansapi/onlyfansapi-python/commit/5730eb709799c6cb7602376ad4932b99d272fda8)) +* **api:** api update ([05a7a76](https://github.com/onlyfansapi/onlyfansapi-python/commit/05a7a761f83da67c48b5adb881fb7355fe273d90)) +* **api:** api update ([a5bef62](https://github.com/onlyfansapi/onlyfansapi-python/commit/a5bef6249c6f41017cbdf93596d31b1d1d734d8d)) +* **api:** api update ([cd59ef9](https://github.com/onlyfansapi/onlyfansapi-python/commit/cd59ef9dca60b078e1ca0b3735af93d67e3d4151)) +* **api:** api update ([85a1343](https://github.com/onlyfansapi/onlyfansapi-python/commit/85a134346cdbe797c852dea9ea87cb8fb2b6b85f)) +* **api:** api update ([3b888d1](https://github.com/onlyfansapi/onlyfansapi-python/commit/3b888d1755cb600905e1a0517077bf0429b822c6)) +* **api:** api update ([c9bffa9](https://github.com/onlyfansapi/onlyfansapi-python/commit/c9bffa987a47eb406f6525aa2fb409e925d45c3b)) +* **api:** api update ([cd72d9b](https://github.com/onlyfansapi/onlyfansapi-python/commit/cd72d9b088e050776dd050a0aca1222404fd178c)) +* **api:** api update ([98cccb2](https://github.com/onlyfansapi/onlyfansapi-python/commit/98cccb29301a35d2fa083b533b772d834fe0326d)) +* **api:** api update ([5e54e4d](https://github.com/onlyfansapi/onlyfansapi-python/commit/5e54e4dcab360a81947e39d3a917851859db8235)) +* **api:** api update ([c0e6856](https://github.com/onlyfansapi/onlyfansapi-python/commit/c0e6856931fd11a311e8f23773d2d92f011239ff)) +* **api:** api update ([8094519](https://github.com/onlyfansapi/onlyfansapi-python/commit/8094519c54d9931fb860e6b8c7ae002d9ff1317c)) +* **api:** api update ([cc58005](https://github.com/onlyfansapi/onlyfansapi-python/commit/cc58005c7034682c16182a57dddd4810849773a1)) +* **api:** api update ([e79bbd9](https://github.com/onlyfansapi/onlyfansapi-python/commit/e79bbd972288c882a5cbafbf30a99f8b38d77ab6)) +* **api:** api update ([c3e0de4](https://github.com/onlyfansapi/onlyfansapi-python/commit/c3e0de4a6dd1170cd75d77838f07fb395005b452)) +* **api:** api update ([4a0e815](https://github.com/onlyfansapi/onlyfansapi-python/commit/4a0e815fe74f83e0fad633e6fc1033ec0afbcc2a)) +* **api:** api update ([22e3621](https://github.com/onlyfansapi/onlyfansapi-python/commit/22e362138fea30764aff89a049bc5ab8acd163d9)) +* **api:** api update ([b9bc8ef](https://github.com/onlyfansapi/onlyfansapi-python/commit/b9bc8ef90c9c5cfbd5b81add12e94e78786b46b0)) +* **api:** api update ([d19b34e](https://github.com/onlyfansapi/onlyfansapi-python/commit/d19b34eb66ef42f568b9d93e1bd3a75a2e2e841c)) +* **api:** api update ([39eabdf](https://github.com/onlyfansapi/onlyfansapi-python/commit/39eabdf3aa114aefab93cd6d62bb3c55e573d5f7)) +* **api:** api update ([661fcbb](https://github.com/onlyfansapi/onlyfansapi-python/commit/661fcbb83e78132732f94a2fa03ba0d946b7a924)) +* **api:** api update ([3045117](https://github.com/onlyfansapi/onlyfansapi-python/commit/304511738133992687cbe662a050ef7601886cb3)) +* **api:** api update ([8f04ca3](https://github.com/onlyfansapi/onlyfansapi-python/commit/8f04ca304dcd6a9c87a8e754147bf94f3f74e145)) +* **api:** api update ([0b39e31](https://github.com/onlyfansapi/onlyfansapi-python/commit/0b39e3184b3f54a930e11724881f5ca4b89b7405)) +* **api:** api update ([71220c9](https://github.com/onlyfansapi/onlyfansapi-python/commit/71220c909703a5f8da6eee5713682ebaf53df63e)) +* **api:** api update ([5bfca35](https://github.com/onlyfansapi/onlyfansapi-python/commit/5bfca356b7868b864ef49dc0aa4f77fe6ae73aa3)) +* **api:** api update ([1fed67f](https://github.com/onlyfansapi/onlyfansapi-python/commit/1fed67f63373d363e1bacb35db41929479c5d09f)) +* **api:** api update ([d42b221](https://github.com/onlyfansapi/onlyfansapi-python/commit/d42b2211fc03d932c9ca8e94ac562f42f706e4b9)) +* **api:** api update ([2d4e1d9](https://github.com/onlyfansapi/onlyfansapi-python/commit/2d4e1d9147ca5247b796c0100fb2bb05c4618f46)) +* **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)) +* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([f3bde0a](https://github.com/onlyfansapi/onlyfansapi-python/commit/f3bde0a8124ec521bbb26d670359d590a5b3c532)) + + +### Bug Fixes + +* **auth:** prioritize first auth header ([ab97425](https://github.com/onlyfansapi/onlyfansapi-python/commit/ab9742585886846cff053430684a5881ec1540bc)) +* **internal:** resolve build failures ([0b55736](https://github.com/onlyfansapi/onlyfansapi-python/commit/0b55736eca40e10bd1e7a690e686fd157f9cba47)) + ## 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 184c99e0..856f0210 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 790de9b3..a6edd998 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