@@ -23,8 +23,8 @@ class TestTransactional:
23
23
@parametrize
24
24
def test_method_send (self , client : Prelude ) -> None :
25
25
transactional = client .transactional .send (
26
- template_id = "template_01jd1xq0cffycayqtdkdbv4d61 " ,
27
- to = "+30123456789 " ,
26
+ template_id = "template_id " ,
27
+ to = "to " ,
28
28
)
29
29
assert_matches_type (TransactionalSendResponse , transactional , path = ["response" ])
30
30
@@ -34,14 +34,13 @@ def test_method_send(self, client: Prelude) -> None:
34
34
@parametrize
35
35
def test_method_send_with_all_params (self , client : Prelude ) -> None :
36
36
transactional = client .transactional .send (
37
- template_id = "template_01jd1xq0cffycayqtdkdbv4d61 " ,
38
- to = "+30123456789 " ,
37
+ template_id = "template_id " ,
38
+ to = "to " ,
39
39
callback_url = "callback_url" ,
40
40
correlation_id = "correlation_id" ,
41
41
expires_at = "expires_at" ,
42
42
from_ = "from" ,
43
- locale = "el-GR" ,
44
- variables = {"foo" : "bar" },
43
+ variables = {"foo" : "string" },
45
44
)
46
45
assert_matches_type (TransactionalSendResponse , transactional , path = ["response" ])
47
46
@@ -51,8 +50,8 @@ def test_method_send_with_all_params(self, client: Prelude) -> None:
51
50
@parametrize
52
51
def test_raw_response_send (self , client : Prelude ) -> None :
53
52
response = client .transactional .with_raw_response .send (
54
- template_id = "template_01jd1xq0cffycayqtdkdbv4d61 " ,
55
- to = "+30123456789 " ,
53
+ template_id = "template_id " ,
54
+ to = "to " ,
56
55
)
57
56
58
57
assert response .is_closed is True
@@ -66,8 +65,8 @@ def test_raw_response_send(self, client: Prelude) -> None:
66
65
@parametrize
67
66
def test_streaming_response_send (self , client : Prelude ) -> None :
68
67
with client .transactional .with_streaming_response .send (
69
- template_id = "template_01jd1xq0cffycayqtdkdbv4d61 " ,
70
- to = "+30123456789 " ,
68
+ template_id = "template_id " ,
69
+ to = "to " ,
71
70
) as response :
72
71
assert not response .is_closed
73
72
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -87,8 +86,8 @@ class TestAsyncTransactional:
87
86
@parametrize
88
87
async def test_method_send (self , async_client : AsyncPrelude ) -> None :
89
88
transactional = await async_client .transactional .send (
90
- template_id = "template_01jd1xq0cffycayqtdkdbv4d61 " ,
91
- to = "+30123456789 " ,
89
+ template_id = "template_id " ,
90
+ to = "to " ,
92
91
)
93
92
assert_matches_type (TransactionalSendResponse , transactional , path = ["response" ])
94
93
@@ -98,14 +97,13 @@ async def test_method_send(self, async_client: AsyncPrelude) -> None:
98
97
@parametrize
99
98
async def test_method_send_with_all_params (self , async_client : AsyncPrelude ) -> None :
100
99
transactional = await async_client .transactional .send (
101
- template_id = "template_01jd1xq0cffycayqtdkdbv4d61 " ,
102
- to = "+30123456789 " ,
100
+ template_id = "template_id " ,
101
+ to = "to " ,
103
102
callback_url = "callback_url" ,
104
103
correlation_id = "correlation_id" ,
105
104
expires_at = "expires_at" ,
106
105
from_ = "from" ,
107
- locale = "el-GR" ,
108
- variables = {"foo" : "bar" },
106
+ variables = {"foo" : "string" },
109
107
)
110
108
assert_matches_type (TransactionalSendResponse , transactional , path = ["response" ])
111
109
@@ -115,8 +113,8 @@ async def test_method_send_with_all_params(self, async_client: AsyncPrelude) ->
115
113
@parametrize
116
114
async def test_raw_response_send (self , async_client : AsyncPrelude ) -> None :
117
115
response = await async_client .transactional .with_raw_response .send (
118
- template_id = "template_01jd1xq0cffycayqtdkdbv4d61 " ,
119
- to = "+30123456789 " ,
116
+ template_id = "template_id " ,
117
+ to = "to " ,
120
118
)
121
119
122
120
assert response .is_closed is True
@@ -130,8 +128,8 @@ async def test_raw_response_send(self, async_client: AsyncPrelude) -> None:
130
128
@parametrize
131
129
async def test_streaming_response_send (self , async_client : AsyncPrelude ) -> None :
132
130
async with async_client .transactional .with_streaming_response .send (
133
- template_id = "template_01jd1xq0cffycayqtdkdbv4d61 " ,
134
- to = "+30123456789 " ,
131
+ template_id = "template_id " ,
132
+ to = "to " ,
135
133
) as response :
136
134
assert not response .is_closed
137
135
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
0 commit comments