Skip to content

Commit 9ed4c52

Browse files
chore(internal): codegen related update
1 parent e7b7278 commit 9ed4c52

20 files changed

+748
-2244
lines changed

tests/api_resources/channels/test_bulk.py

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
class TestBulk:
1919
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
2020

21-
@pytest.mark.skip(
22-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
23-
)
21+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
2422
@parametrize
2523
def test_method_update_message_status(self, client: Knock) -> None:
2624
bulk = client.channels.bulk.update_message_status(
@@ -29,9 +27,7 @@ def test_method_update_message_status(self, client: Knock) -> None:
2927
)
3028
assert_matches_type(BulkOperation, bulk, path=["response"])
3129

32-
@pytest.mark.skip(
33-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
34-
)
30+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
3531
@parametrize
3632
def test_method_update_message_status_with_all_params(self, client: Knock) -> None:
3733
bulk = client.channels.bulk.update_message_status(
@@ -50,9 +46,7 @@ def test_method_update_message_status_with_all_params(self, client: Knock) -> No
5046
)
5147
assert_matches_type(BulkOperation, bulk, path=["response"])
5248

53-
@pytest.mark.skip(
54-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
55-
)
49+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
5650
@parametrize
5751
def test_raw_response_update_message_status(self, client: Knock) -> None:
5852
response = client.channels.bulk.with_raw_response.update_message_status(
@@ -65,9 +59,7 @@ def test_raw_response_update_message_status(self, client: Knock) -> None:
6559
bulk = response.parse()
6660
assert_matches_type(BulkOperation, bulk, path=["response"])
6761

68-
@pytest.mark.skip(
69-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
70-
)
62+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
7163
@parametrize
7264
def test_streaming_response_update_message_status(self, client: Knock) -> None:
7365
with client.channels.bulk.with_streaming_response.update_message_status(
@@ -82,9 +74,7 @@ def test_streaming_response_update_message_status(self, client: Knock) -> None:
8274

8375
assert cast(Any, response.is_closed) is True
8476

85-
@pytest.mark.skip(
86-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
87-
)
77+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
8878
@parametrize
8979
def test_path_params_update_message_status(self, client: Knock) -> None:
9080
with pytest.raises(ValueError, match=r"Expected a non-empty value for `channel_id` but received ''"):
@@ -99,9 +89,7 @@ class TestAsyncBulk:
9989
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
10090
)
10191

102-
@pytest.mark.skip(
103-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
104-
)
92+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
10593
@parametrize
10694
async def test_method_update_message_status(self, async_client: AsyncKnock) -> None:
10795
bulk = await async_client.channels.bulk.update_message_status(
@@ -110,9 +98,7 @@ async def test_method_update_message_status(self, async_client: AsyncKnock) -> N
11098
)
11199
assert_matches_type(BulkOperation, bulk, path=["response"])
112100

113-
@pytest.mark.skip(
114-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
115-
)
101+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
116102
@parametrize
117103
async def test_method_update_message_status_with_all_params(self, async_client: AsyncKnock) -> None:
118104
bulk = await async_client.channels.bulk.update_message_status(
@@ -131,9 +117,7 @@ async def test_method_update_message_status_with_all_params(self, async_client:
131117
)
132118
assert_matches_type(BulkOperation, bulk, path=["response"])
133119

134-
@pytest.mark.skip(
135-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
136-
)
120+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
137121
@parametrize
138122
async def test_raw_response_update_message_status(self, async_client: AsyncKnock) -> None:
139123
response = await async_client.channels.bulk.with_raw_response.update_message_status(
@@ -146,9 +130,7 @@ async def test_raw_response_update_message_status(self, async_client: AsyncKnock
146130
bulk = await response.parse()
147131
assert_matches_type(BulkOperation, bulk, path=["response"])
148132

149-
@pytest.mark.skip(
150-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
151-
)
133+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
152134
@parametrize
153135
async def test_streaming_response_update_message_status(self, async_client: AsyncKnock) -> None:
154136
async with async_client.channels.bulk.with_streaming_response.update_message_status(
@@ -163,9 +145,7 @@ async def test_streaming_response_update_message_status(self, async_client: Asyn
163145

164146
assert cast(Any, response.is_closed) is True
165147

166-
@pytest.mark.skip(
167-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
168-
)
148+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
169149
@parametrize
170150
async def test_path_params_update_message_status(self, async_client: AsyncKnock) -> None:
171151
with pytest.raises(ValueError, match=r"Expected a non-empty value for `channel_id` but received ''"):

tests/api_resources/integrations/test_census.py

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
class TestCensus:
1818
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
1919

20-
@pytest.mark.skip(
21-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
22-
)
20+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
2321
@parametrize
2422
def test_method_custom_destination(self, client: Knock) -> None:
2523
census = client.integrations.census.custom_destination(
@@ -29,9 +27,7 @@ def test_method_custom_destination(self, client: Knock) -> None:
2927
)
3028
assert_matches_type(CensusCustomDestinationResponse, census, path=["response"])
3129

32-
@pytest.mark.skip(
33-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
34-
)
30+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
3531
@parametrize
3632
def test_method_custom_destination_with_all_params(self, client: Knock) -> None:
3733
census = client.integrations.census.custom_destination(
@@ -42,9 +38,7 @@ def test_method_custom_destination_with_all_params(self, client: Knock) -> None:
4238
)
4339
assert_matches_type(CensusCustomDestinationResponse, census, path=["response"])
4440

45-
@pytest.mark.skip(
46-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
47-
)
41+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
4842
@parametrize
4943
def test_raw_response_custom_destination(self, client: Knock) -> None:
5044
response = client.integrations.census.with_raw_response.custom_destination(
@@ -58,9 +52,7 @@ def test_raw_response_custom_destination(self, client: Knock) -> None:
5852
census = response.parse()
5953
assert_matches_type(CensusCustomDestinationResponse, census, path=["response"])
6054

61-
@pytest.mark.skip(
62-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
63-
)
55+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
6456
@parametrize
6557
def test_streaming_response_custom_destination(self, client: Knock) -> None:
6658
with client.integrations.census.with_streaming_response.custom_destination(
@@ -82,9 +74,7 @@ class TestAsyncCensus:
8274
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
8375
)
8476

85-
@pytest.mark.skip(
86-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
87-
)
77+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
8878
@parametrize
8979
async def test_method_custom_destination(self, async_client: AsyncKnock) -> None:
9080
census = await async_client.integrations.census.custom_destination(
@@ -94,9 +84,7 @@ async def test_method_custom_destination(self, async_client: AsyncKnock) -> None
9484
)
9585
assert_matches_type(CensusCustomDestinationResponse, census, path=["response"])
9686

97-
@pytest.mark.skip(
98-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
99-
)
87+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
10088
@parametrize
10189
async def test_method_custom_destination_with_all_params(self, async_client: AsyncKnock) -> None:
10290
census = await async_client.integrations.census.custom_destination(
@@ -107,9 +95,7 @@ async def test_method_custom_destination_with_all_params(self, async_client: Asy
10795
)
10896
assert_matches_type(CensusCustomDestinationResponse, census, path=["response"])
10997

110-
@pytest.mark.skip(
111-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
112-
)
98+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
11399
@parametrize
114100
async def test_raw_response_custom_destination(self, async_client: AsyncKnock) -> None:
115101
response = await async_client.integrations.census.with_raw_response.custom_destination(
@@ -123,9 +109,7 @@ async def test_raw_response_custom_destination(self, async_client: AsyncKnock) -
123109
census = await response.parse()
124110
assert_matches_type(CensusCustomDestinationResponse, census, path=["response"])
125111

126-
@pytest.mark.skip(
127-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
128-
)
112+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
129113
@parametrize
130114
async def test_streaming_response_custom_destination(self, async_client: AsyncKnock) -> None:
131115
async with async_client.integrations.census.with_streaming_response.custom_destination(

tests/api_resources/integrations/test_hightouch.py

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
class TestHightouch:
1818
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
1919

20-
@pytest.mark.skip(
21-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
22-
)
20+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
2321
@parametrize
2422
def test_method_embedded_destination(self, client: Knock) -> None:
2523
hightouch = client.integrations.hightouch.embedded_destination(
@@ -29,9 +27,7 @@ def test_method_embedded_destination(self, client: Knock) -> None:
2927
)
3028
assert_matches_type(HightouchEmbeddedDestinationResponse, hightouch, path=["response"])
3129

32-
@pytest.mark.skip(
33-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
34-
)
30+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
3531
@parametrize
3632
def test_method_embedded_destination_with_all_params(self, client: Knock) -> None:
3733
hightouch = client.integrations.hightouch.embedded_destination(
@@ -42,9 +38,7 @@ def test_method_embedded_destination_with_all_params(self, client: Knock) -> Non
4238
)
4339
assert_matches_type(HightouchEmbeddedDestinationResponse, hightouch, path=["response"])
4440

45-
@pytest.mark.skip(
46-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
47-
)
41+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
4842
@parametrize
4943
def test_raw_response_embedded_destination(self, client: Knock) -> None:
5044
response = client.integrations.hightouch.with_raw_response.embedded_destination(
@@ -58,9 +52,7 @@ def test_raw_response_embedded_destination(self, client: Knock) -> None:
5852
hightouch = response.parse()
5953
assert_matches_type(HightouchEmbeddedDestinationResponse, hightouch, path=["response"])
6054

61-
@pytest.mark.skip(
62-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
63-
)
55+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
6456
@parametrize
6557
def test_streaming_response_embedded_destination(self, client: Knock) -> None:
6658
with client.integrations.hightouch.with_streaming_response.embedded_destination(
@@ -82,9 +74,7 @@ class TestAsyncHightouch:
8274
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
8375
)
8476

85-
@pytest.mark.skip(
86-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
87-
)
77+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
8878
@parametrize
8979
async def test_method_embedded_destination(self, async_client: AsyncKnock) -> None:
9080
hightouch = await async_client.integrations.hightouch.embedded_destination(
@@ -94,9 +84,7 @@ async def test_method_embedded_destination(self, async_client: AsyncKnock) -> No
9484
)
9585
assert_matches_type(HightouchEmbeddedDestinationResponse, hightouch, path=["response"])
9686

97-
@pytest.mark.skip(
98-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
99-
)
87+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
10088
@parametrize
10189
async def test_method_embedded_destination_with_all_params(self, async_client: AsyncKnock) -> None:
10290
hightouch = await async_client.integrations.hightouch.embedded_destination(
@@ -107,9 +95,7 @@ async def test_method_embedded_destination_with_all_params(self, async_client: A
10795
)
10896
assert_matches_type(HightouchEmbeddedDestinationResponse, hightouch, path=["response"])
10997

110-
@pytest.mark.skip(
111-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
112-
)
98+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
11399
@parametrize
114100
async def test_raw_response_embedded_destination(self, async_client: AsyncKnock) -> None:
115101
response = await async_client.integrations.hightouch.with_raw_response.embedded_destination(
@@ -123,9 +109,7 @@ async def test_raw_response_embedded_destination(self, async_client: AsyncKnock)
123109
hightouch = await response.parse()
124110
assert_matches_type(HightouchEmbeddedDestinationResponse, hightouch, path=["response"])
125111

126-
@pytest.mark.skip(
127-
reason="currently no good way to test endpoints defining callbacks, Prism mock server will fail trying to reach the provided callback url"
128-
)
112+
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
129113
@parametrize
130114
async def test_streaming_response_embedded_destination(self, async_client: AsyncKnock) -> None:
131115
async with async_client.integrations.hightouch.with_streaming_response.embedded_destination(

0 commit comments

Comments
 (0)