Skip to content

Commit c26a48b

Browse files
chore(internal): codegen related update
1 parent 33d4398 commit c26a48b

File tree

5 files changed

+44
-44
lines changed

5 files changed

+44
-44
lines changed

tests/api_resources/test_chat.py

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

20-
@pytest.mark.skip()
20+
@pytest.mark.skip(reason="Prism tests are disabled")
2121
@parametrize
2222
def test_method_create_completion(self, client: RelaxaiTest) -> None:
2323
chat = client.chat.create_completion(
@@ -31,7 +31,7 @@ def test_method_create_completion(self, client: RelaxaiTest) -> None:
3131
)
3232
assert_matches_type(ChatCreateCompletionResponse, chat, path=["response"])
3333

34-
@pytest.mark.skip()
34+
@pytest.mark.skip(reason="Prism tests are disabled")
3535
@parametrize
3636
def test_method_create_completion_with_all_params(self, client: RelaxaiTest) -> None:
3737
chat = client.chat.create_completion(
@@ -128,7 +128,7 @@ def test_method_create_completion_with_all_params(self, client: RelaxaiTest) ->
128128
)
129129
assert_matches_type(ChatCreateCompletionResponse, chat, path=["response"])
130130

131-
@pytest.mark.skip()
131+
@pytest.mark.skip(reason="Prism tests are disabled")
132132
@parametrize
133133
def test_raw_response_create_completion(self, client: RelaxaiTest) -> None:
134134
response = client.chat.with_raw_response.create_completion(
@@ -146,7 +146,7 @@ def test_raw_response_create_completion(self, client: RelaxaiTest) -> None:
146146
chat = response.parse()
147147
assert_matches_type(ChatCreateCompletionResponse, chat, path=["response"])
148148

149-
@pytest.mark.skip()
149+
@pytest.mark.skip(reason="Prism tests are disabled")
150150
@parametrize
151151
def test_streaming_response_create_completion(self, client: RelaxaiTest) -> None:
152152
with client.chat.with_streaming_response.create_completion(
@@ -172,7 +172,7 @@ class TestAsyncChat:
172172
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
173173
)
174174

175-
@pytest.mark.skip()
175+
@pytest.mark.skip(reason="Prism tests are disabled")
176176
@parametrize
177177
async def test_method_create_completion(self, async_client: AsyncRelaxaiTest) -> None:
178178
chat = await async_client.chat.create_completion(
@@ -186,7 +186,7 @@ async def test_method_create_completion(self, async_client: AsyncRelaxaiTest) ->
186186
)
187187
assert_matches_type(ChatCreateCompletionResponse, chat, path=["response"])
188188

189-
@pytest.mark.skip()
189+
@pytest.mark.skip(reason="Prism tests are disabled")
190190
@parametrize
191191
async def test_method_create_completion_with_all_params(self, async_client: AsyncRelaxaiTest) -> None:
192192
chat = await async_client.chat.create_completion(
@@ -283,7 +283,7 @@ async def test_method_create_completion_with_all_params(self, async_client: Asyn
283283
)
284284
assert_matches_type(ChatCreateCompletionResponse, chat, path=["response"])
285285

286-
@pytest.mark.skip()
286+
@pytest.mark.skip(reason="Prism tests are disabled")
287287
@parametrize
288288
async def test_raw_response_create_completion(self, async_client: AsyncRelaxaiTest) -> None:
289289
response = await async_client.chat.with_raw_response.create_completion(
@@ -301,7 +301,7 @@ async def test_raw_response_create_completion(self, async_client: AsyncRelaxaiTe
301301
chat = await response.parse()
302302
assert_matches_type(ChatCreateCompletionResponse, chat, path=["response"])
303303

304-
@pytest.mark.skip()
304+
@pytest.mark.skip(reason="Prism tests are disabled")
305305
@parametrize
306306
async def test_streaming_response_create_completion(self, async_client: AsyncRelaxaiTest) -> None:
307307
async with async_client.chat.with_streaming_response.create_completion(

tests/api_resources/test_completions.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
class TestCompletions:
2020
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
2121

22-
@pytest.mark.skip()
22+
@pytest.mark.skip(reason="Prism tests are disabled")
2323
@parametrize
2424
def test_method_create(self, client: RelaxaiTest) -> None:
2525
with pytest.warns(DeprecationWarning):
@@ -29,7 +29,7 @@ def test_method_create(self, client: RelaxaiTest) -> None:
2929

3030
assert_matches_type(CompletionCreateResponse, completion, path=["response"])
3131

32-
@pytest.mark.skip()
32+
@pytest.mark.skip(reason="Prism tests are disabled")
3333
@parametrize
3434
def test_method_create_with_all_params(self, client: RelaxaiTest) -> None:
3535
with pytest.warns(DeprecationWarning):
@@ -58,7 +58,7 @@ def test_method_create_with_all_params(self, client: RelaxaiTest) -> None:
5858

5959
assert_matches_type(CompletionCreateResponse, completion, path=["response"])
6060

61-
@pytest.mark.skip()
61+
@pytest.mark.skip(reason="Prism tests are disabled")
6262
@parametrize
6363
def test_raw_response_create(self, client: RelaxaiTest) -> None:
6464
with pytest.warns(DeprecationWarning):
@@ -71,7 +71,7 @@ def test_raw_response_create(self, client: RelaxaiTest) -> None:
7171
completion = response.parse()
7272
assert_matches_type(CompletionCreateResponse, completion, path=["response"])
7373

74-
@pytest.mark.skip()
74+
@pytest.mark.skip(reason="Prism tests are disabled")
7575
@parametrize
7676
def test_streaming_response_create(self, client: RelaxaiTest) -> None:
7777
with pytest.warns(DeprecationWarning):
@@ -92,7 +92,7 @@ class TestAsyncCompletions:
9292
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
9393
)
9494

95-
@pytest.mark.skip()
95+
@pytest.mark.skip(reason="Prism tests are disabled")
9696
@parametrize
9797
async def test_method_create(self, async_client: AsyncRelaxaiTest) -> None:
9898
with pytest.warns(DeprecationWarning):
@@ -102,7 +102,7 @@ async def test_method_create(self, async_client: AsyncRelaxaiTest) -> None:
102102

103103
assert_matches_type(CompletionCreateResponse, completion, path=["response"])
104104

105-
@pytest.mark.skip()
105+
@pytest.mark.skip(reason="Prism tests are disabled")
106106
@parametrize
107107
async def test_method_create_with_all_params(self, async_client: AsyncRelaxaiTest) -> None:
108108
with pytest.warns(DeprecationWarning):
@@ -131,7 +131,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncRelaxaiTes
131131

132132
assert_matches_type(CompletionCreateResponse, completion, path=["response"])
133133

134-
@pytest.mark.skip()
134+
@pytest.mark.skip(reason="Prism tests are disabled")
135135
@parametrize
136136
async def test_raw_response_create(self, async_client: AsyncRelaxaiTest) -> None:
137137
with pytest.warns(DeprecationWarning):
@@ -144,7 +144,7 @@ async def test_raw_response_create(self, async_client: AsyncRelaxaiTest) -> None
144144
completion = await response.parse()
145145
assert_matches_type(CompletionCreateResponse, completion, path=["response"])
146146

147-
@pytest.mark.skip()
147+
@pytest.mark.skip(reason="Prism tests are disabled")
148148
@parametrize
149149
async def test_streaming_response_create(self, async_client: AsyncRelaxaiTest) -> None:
150150
with pytest.warns(DeprecationWarning):

tests/api_resources/test_embeddings.py

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

20-
@pytest.mark.skip()
20+
@pytest.mark.skip(reason="Prism tests are disabled")
2121
@parametrize
2222
def test_method_create(self, client: RelaxaiTest) -> None:
2323
embedding = client.embeddings.create(
@@ -26,7 +26,7 @@ def test_method_create(self, client: RelaxaiTest) -> None:
2626
)
2727
assert_matches_type(EmbeddingCreateResponse, embedding, path=["response"])
2828

29-
@pytest.mark.skip()
29+
@pytest.mark.skip(reason="Prism tests are disabled")
3030
@parametrize
3131
def test_method_create_with_all_params(self, client: RelaxaiTest) -> None:
3232
embedding = client.embeddings.create(
@@ -38,7 +38,7 @@ def test_method_create_with_all_params(self, client: RelaxaiTest) -> None:
3838
)
3939
assert_matches_type(EmbeddingCreateResponse, embedding, path=["response"])
4040

41-
@pytest.mark.skip()
41+
@pytest.mark.skip(reason="Prism tests are disabled")
4242
@parametrize
4343
def test_raw_response_create(self, client: RelaxaiTest) -> None:
4444
response = client.embeddings.with_raw_response.create(
@@ -51,7 +51,7 @@ def test_raw_response_create(self, client: RelaxaiTest) -> None:
5151
embedding = response.parse()
5252
assert_matches_type(EmbeddingCreateResponse, embedding, path=["response"])
5353

54-
@pytest.mark.skip()
54+
@pytest.mark.skip(reason="Prism tests are disabled")
5555
@parametrize
5656
def test_streaming_response_create(self, client: RelaxaiTest) -> None:
5757
with client.embeddings.with_streaming_response.create(
@@ -72,7 +72,7 @@ class TestAsyncEmbeddings:
7272
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
7373
)
7474

75-
@pytest.mark.skip()
75+
@pytest.mark.skip(reason="Prism tests are disabled")
7676
@parametrize
7777
async def test_method_create(self, async_client: AsyncRelaxaiTest) -> None:
7878
embedding = await async_client.embeddings.create(
@@ -81,7 +81,7 @@ async def test_method_create(self, async_client: AsyncRelaxaiTest) -> None:
8181
)
8282
assert_matches_type(EmbeddingCreateResponse, embedding, path=["response"])
8383

84-
@pytest.mark.skip()
84+
@pytest.mark.skip(reason="Prism tests are disabled")
8585
@parametrize
8686
async def test_method_create_with_all_params(self, async_client: AsyncRelaxaiTest) -> None:
8787
embedding = await async_client.embeddings.create(
@@ -93,7 +93,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncRelaxaiTes
9393
)
9494
assert_matches_type(EmbeddingCreateResponse, embedding, path=["response"])
9595

96-
@pytest.mark.skip()
96+
@pytest.mark.skip(reason="Prism tests are disabled")
9797
@parametrize
9898
async def test_raw_response_create(self, async_client: AsyncRelaxaiTest) -> None:
9999
response = await async_client.embeddings.with_raw_response.create(
@@ -106,7 +106,7 @@ async def test_raw_response_create(self, async_client: AsyncRelaxaiTest) -> None
106106
embedding = await response.parse()
107107
assert_matches_type(EmbeddingCreateResponse, embedding, path=["response"])
108108

109-
@pytest.mark.skip()
109+
@pytest.mark.skip(reason="Prism tests are disabled")
110110
@parametrize
111111
async def test_streaming_response_create(self, async_client: AsyncRelaxaiTest) -> None:
112112
async with async_client.embeddings.with_streaming_response.create(

tests/api_resources/test_health.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
class TestHealth:
1717
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
1818

19-
@pytest.mark.skip()
19+
@pytest.mark.skip(reason="Prism tests are disabled")
2020
@parametrize
2121
def test_method_check(self, client: RelaxaiTest) -> None:
2222
health = client.health.check()
2323
assert_matches_type(str, health, path=["response"])
2424

25-
@pytest.mark.skip()
25+
@pytest.mark.skip(reason="Prism tests are disabled")
2626
@parametrize
2727
def test_raw_response_check(self, client: RelaxaiTest) -> None:
2828
response = client.health.with_raw_response.check()
@@ -32,7 +32,7 @@ def test_raw_response_check(self, client: RelaxaiTest) -> None:
3232
health = response.parse()
3333
assert_matches_type(str, health, path=["response"])
3434

35-
@pytest.mark.skip()
35+
@pytest.mark.skip(reason="Prism tests are disabled")
3636
@parametrize
3737
def test_streaming_response_check(self, client: RelaxaiTest) -> None:
3838
with client.health.with_streaming_response.check() as response:
@@ -50,13 +50,13 @@ class TestAsyncHealth:
5050
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
5151
)
5252

53-
@pytest.mark.skip()
53+
@pytest.mark.skip(reason="Prism tests are disabled")
5454
@parametrize
5555
async def test_method_check(self, async_client: AsyncRelaxaiTest) -> None:
5656
health = await async_client.health.check()
5757
assert_matches_type(str, health, path=["response"])
5858

59-
@pytest.mark.skip()
59+
@pytest.mark.skip(reason="Prism tests are disabled")
6060
@parametrize
6161
async def test_raw_response_check(self, async_client: AsyncRelaxaiTest) -> None:
6262
response = await async_client.health.with_raw_response.check()
@@ -66,7 +66,7 @@ async def test_raw_response_check(self, async_client: AsyncRelaxaiTest) -> None:
6666
health = await response.parse()
6767
assert_matches_type(str, health, path=["response"])
6868

69-
@pytest.mark.skip()
69+
@pytest.mark.skip(reason="Prism tests are disabled")
7070
@parametrize
7171
async def test_streaming_response_check(self, async_client: AsyncRelaxaiTest) -> None:
7272
async with async_client.health.with_streaming_response.check() as response:

tests/api_resources/test_models.py

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

20-
@pytest.mark.skip()
20+
@pytest.mark.skip(reason="Prism tests are disabled")
2121
@parametrize
2222
def test_method_retrieve(self, client: RelaxaiTest) -> None:
2323
model = client.models.retrieve(
2424
"model",
2525
)
2626
assert_matches_type(Model, model, path=["response"])
2727

28-
@pytest.mark.skip()
28+
@pytest.mark.skip(reason="Prism tests are disabled")
2929
@parametrize
3030
def test_raw_response_retrieve(self, client: RelaxaiTest) -> None:
3131
response = client.models.with_raw_response.retrieve(
@@ -37,7 +37,7 @@ def test_raw_response_retrieve(self, client: RelaxaiTest) -> None:
3737
model = response.parse()
3838
assert_matches_type(Model, model, path=["response"])
3939

40-
@pytest.mark.skip()
40+
@pytest.mark.skip(reason="Prism tests are disabled")
4141
@parametrize
4242
def test_streaming_response_retrieve(self, client: RelaxaiTest) -> None:
4343
with client.models.with_streaming_response.retrieve(
@@ -51,21 +51,21 @@ def test_streaming_response_retrieve(self, client: RelaxaiTest) -> None:
5151

5252
assert cast(Any, response.is_closed) is True
5353

54-
@pytest.mark.skip()
54+
@pytest.mark.skip(reason="Prism tests are disabled")
5555
@parametrize
5656
def test_path_params_retrieve(self, client: RelaxaiTest) -> None:
5757
with pytest.raises(ValueError, match=r"Expected a non-empty value for `model` but received ''"):
5858
client.models.with_raw_response.retrieve(
5959
"",
6060
)
6161

62-
@pytest.mark.skip()
62+
@pytest.mark.skip(reason="Prism tests are disabled")
6363
@parametrize
6464
def test_method_list(self, client: RelaxaiTest) -> None:
6565
model = client.models.list()
6666
assert_matches_type(ModelListResponse, model, path=["response"])
6767

68-
@pytest.mark.skip()
68+
@pytest.mark.skip(reason="Prism tests are disabled")
6969
@parametrize
7070
def test_raw_response_list(self, client: RelaxaiTest) -> None:
7171
response = client.models.with_raw_response.list()
@@ -75,7 +75,7 @@ def test_raw_response_list(self, client: RelaxaiTest) -> None:
7575
model = response.parse()
7676
assert_matches_type(ModelListResponse, model, path=["response"])
7777

78-
@pytest.mark.skip()
78+
@pytest.mark.skip(reason="Prism tests are disabled")
7979
@parametrize
8080
def test_streaming_response_list(self, client: RelaxaiTest) -> None:
8181
with client.models.with_streaming_response.list() as response:
@@ -93,15 +93,15 @@ class TestAsyncModels:
9393
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
9494
)
9595

96-
@pytest.mark.skip()
96+
@pytest.mark.skip(reason="Prism tests are disabled")
9797
@parametrize
9898
async def test_method_retrieve(self, async_client: AsyncRelaxaiTest) -> None:
9999
model = await async_client.models.retrieve(
100100
"model",
101101
)
102102
assert_matches_type(Model, model, path=["response"])
103103

104-
@pytest.mark.skip()
104+
@pytest.mark.skip(reason="Prism tests are disabled")
105105
@parametrize
106106
async def test_raw_response_retrieve(self, async_client: AsyncRelaxaiTest) -> None:
107107
response = await async_client.models.with_raw_response.retrieve(
@@ -113,7 +113,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncRelaxaiTest) -> No
113113
model = await response.parse()
114114
assert_matches_type(Model, model, path=["response"])
115115

116-
@pytest.mark.skip()
116+
@pytest.mark.skip(reason="Prism tests are disabled")
117117
@parametrize
118118
async def test_streaming_response_retrieve(self, async_client: AsyncRelaxaiTest) -> None:
119119
async with async_client.models.with_streaming_response.retrieve(
@@ -127,21 +127,21 @@ async def test_streaming_response_retrieve(self, async_client: AsyncRelaxaiTest)
127127

128128
assert cast(Any, response.is_closed) is True
129129

130-
@pytest.mark.skip()
130+
@pytest.mark.skip(reason="Prism tests are disabled")
131131
@parametrize
132132
async def test_path_params_retrieve(self, async_client: AsyncRelaxaiTest) -> None:
133133
with pytest.raises(ValueError, match=r"Expected a non-empty value for `model` but received ''"):
134134
await async_client.models.with_raw_response.retrieve(
135135
"",
136136
)
137137

138-
@pytest.mark.skip()
138+
@pytest.mark.skip(reason="Prism tests are disabled")
139139
@parametrize
140140
async def test_method_list(self, async_client: AsyncRelaxaiTest) -> None:
141141
model = await async_client.models.list()
142142
assert_matches_type(ModelListResponse, model, path=["response"])
143143

144-
@pytest.mark.skip()
144+
@pytest.mark.skip(reason="Prism tests are disabled")
145145
@parametrize
146146
async def test_raw_response_list(self, async_client: AsyncRelaxaiTest) -> None:
147147
response = await async_client.models.with_raw_response.list()
@@ -151,7 +151,7 @@ async def test_raw_response_list(self, async_client: AsyncRelaxaiTest) -> None:
151151
model = await response.parse()
152152
assert_matches_type(ModelListResponse, model, path=["response"])
153153

154-
@pytest.mark.skip()
154+
@pytest.mark.skip(reason="Prism tests are disabled")
155155
@parametrize
156156
async def test_streaming_response_list(self, async_client: AsyncRelaxaiTest) -> None:
157157
async with async_client.models.with_streaming_response.list() as response:

0 commit comments

Comments
 (0)