18
18
class TestBulk :
19
19
parametrize = pytest .mark .parametrize ("client" , [False , True ], indirect = True , ids = ["loose" , "strict" ])
20
20
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" )
24
22
@parametrize
25
23
def test_method_update_message_status (self , client : Knock ) -> None :
26
24
bulk = client .channels .bulk .update_message_status (
@@ -29,9 +27,7 @@ def test_method_update_message_status(self, client: Knock) -> None:
29
27
)
30
28
assert_matches_type (BulkOperation , bulk , path = ["response" ])
31
29
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" )
35
31
@parametrize
36
32
def test_method_update_message_status_with_all_params (self , client : Knock ) -> None :
37
33
bulk = client .channels .bulk .update_message_status (
@@ -50,9 +46,7 @@ def test_method_update_message_status_with_all_params(self, client: Knock) -> No
50
46
)
51
47
assert_matches_type (BulkOperation , bulk , path = ["response" ])
52
48
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" )
56
50
@parametrize
57
51
def test_raw_response_update_message_status (self , client : Knock ) -> None :
58
52
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:
65
59
bulk = response .parse ()
66
60
assert_matches_type (BulkOperation , bulk , path = ["response" ])
67
61
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" )
71
63
@parametrize
72
64
def test_streaming_response_update_message_status (self , client : Knock ) -> None :
73
65
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:
82
74
83
75
assert cast (Any , response .is_closed ) is True
84
76
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" )
88
78
@parametrize
89
79
def test_path_params_update_message_status (self , client : Knock ) -> None :
90
80
with pytest .raises (ValueError , match = r"Expected a non-empty value for `channel_id` but received ''" ):
@@ -99,9 +89,7 @@ class TestAsyncBulk:
99
89
"async_client" , [False , True , {"http_client" : "aiohttp" }], indirect = True , ids = ["loose" , "strict" , "aiohttp" ]
100
90
)
101
91
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" )
105
93
@parametrize
106
94
async def test_method_update_message_status (self , async_client : AsyncKnock ) -> None :
107
95
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
110
98
)
111
99
assert_matches_type (BulkOperation , bulk , path = ["response" ])
112
100
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" )
116
102
@parametrize
117
103
async def test_method_update_message_status_with_all_params (self , async_client : AsyncKnock ) -> None :
118
104
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:
131
117
)
132
118
assert_matches_type (BulkOperation , bulk , path = ["response" ])
133
119
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" )
137
121
@parametrize
138
122
async def test_raw_response_update_message_status (self , async_client : AsyncKnock ) -> None :
139
123
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
146
130
bulk = await response .parse ()
147
131
assert_matches_type (BulkOperation , bulk , path = ["response" ])
148
132
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" )
152
134
@parametrize
153
135
async def test_streaming_response_update_message_status (self , async_client : AsyncKnock ) -> None :
154
136
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
163
145
164
146
assert cast (Any , response .is_closed ) is True
165
147
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" )
169
149
@parametrize
170
150
async def test_path_params_update_message_status (self , async_client : AsyncKnock ) -> None :
171
151
with pytest .raises (ValueError , match = r"Expected a non-empty value for `channel_id` but received ''" ):
0 commit comments