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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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/155] 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 87a58bc5ada86cf2f91aa4bd6e5558fd18d3029c 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:14:02 +0000 Subject: [PATCH 155/155] release: 0.2.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 163 ++++++++++++++++++++++++++++++++++ pyproject.toml | 2 +- src/onlyfansapi/_version.py | 2 +- 4 files changed, 166 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..7e9d00ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,168 @@ # Changelog +## 0.2.0 (2026-07-10) + +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 ([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)) + + +### Bug Fixes + +* **auth:** prioritize first auth header ([ab97425](https://github.com/onlyfansapi/onlyfansapi-python/commit/ab9742585886846cff053430684a5881ec1540bc)) + ## 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