Skip to content

Commit d8e87aa

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): api update (#58)
1 parent a4d4a4c commit d8e87aa

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 82
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-9cb2534e1d18be02424ad6c8b5843957658c9cf1a42ced4ba6fc177c9843df50.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-89d98c96d6f0441614ec82ee050604faf290f145703bbc2538ad22697ff5a473.yml

tests/api_resources/single_turn/test_q2a.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ class TestQ2a:
2222
def test_method_create(self, client: Asktable) -> None:
2323
q2a = client.single_turn.q2a.create(
2424
datasource_id="datasource_id",
25-
question="question",
25+
question="xxx",
2626
)
2727
assert_matches_type(Q2aResponse, q2a, path=["response"])
2828

2929
@parametrize
3030
def test_method_create_with_all_params(self, client: Asktable) -> None:
3131
q2a = client.single_turn.q2a.create(
3232
datasource_id="datasource_id",
33-
question="question",
33+
question="xxx",
3434
max_rows=0,
3535
role_id="role_id",
3636
role_variables={},
@@ -42,7 +42,7 @@ def test_method_create_with_all_params(self, client: Asktable) -> None:
4242
def test_raw_response_create(self, client: Asktable) -> None:
4343
response = client.single_turn.q2a.with_raw_response.create(
4444
datasource_id="datasource_id",
45-
question="question",
45+
question="xxx",
4646
)
4747

4848
assert response.is_closed is True
@@ -54,7 +54,7 @@ def test_raw_response_create(self, client: Asktable) -> None:
5454
def test_streaming_response_create(self, client: Asktable) -> None:
5555
with client.single_turn.q2a.with_streaming_response.create(
5656
datasource_id="datasource_id",
57-
question="question",
57+
question="xxx",
5858
) as response:
5959
assert not response.is_closed
6060
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -106,15 +106,15 @@ class TestAsyncQ2a:
106106
async def test_method_create(self, async_client: AsyncAsktable) -> None:
107107
q2a = await async_client.single_turn.q2a.create(
108108
datasource_id="datasource_id",
109-
question="question",
109+
question="xxx",
110110
)
111111
assert_matches_type(Q2aResponse, q2a, path=["response"])
112112

113113
@parametrize
114114
async def test_method_create_with_all_params(self, async_client: AsyncAsktable) -> None:
115115
q2a = await async_client.single_turn.q2a.create(
116116
datasource_id="datasource_id",
117-
question="question",
117+
question="xxx",
118118
max_rows=0,
119119
role_id="role_id",
120120
role_variables={},
@@ -126,7 +126,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncAsktable)
126126
async def test_raw_response_create(self, async_client: AsyncAsktable) -> None:
127127
response = await async_client.single_turn.q2a.with_raw_response.create(
128128
datasource_id="datasource_id",
129-
question="question",
129+
question="xxx",
130130
)
131131

132132
assert response.is_closed is True
@@ -138,7 +138,7 @@ async def test_raw_response_create(self, async_client: AsyncAsktable) -> None:
138138
async def test_streaming_response_create(self, async_client: AsyncAsktable) -> None:
139139
async with async_client.single_turn.q2a.with_streaming_response.create(
140140
datasource_id="datasource_id",
141-
question="question",
141+
question="xxx",
142142
) as response:
143143
assert not response.is_closed
144144
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

tests/api_resources/single_turn/test_q2s.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ class TestQ2s:
2222
def test_method_create(self, client: Asktable) -> None:
2323
q2 = client.single_turn.q2s.create(
2424
datasource_id="datasource_id",
25-
question="question",
25+
question="xxx",
2626
)
2727
assert_matches_type(Q2sResponse, q2, path=["response"])
2828

2929
@parametrize
3030
def test_method_create_with_all_params(self, client: Asktable) -> None:
3131
q2 = client.single_turn.q2s.create(
3232
datasource_id="datasource_id",
33-
question="question",
33+
question="xxx",
3434
role_id="role_id",
3535
role_variables={},
3636
)
@@ -40,7 +40,7 @@ def test_method_create_with_all_params(self, client: Asktable) -> None:
4040
def test_raw_response_create(self, client: Asktable) -> None:
4141
response = client.single_turn.q2s.with_raw_response.create(
4242
datasource_id="datasource_id",
43-
question="question",
43+
question="xxx",
4444
)
4545

4646
assert response.is_closed is True
@@ -52,7 +52,7 @@ def test_raw_response_create(self, client: Asktable) -> None:
5252
def test_streaming_response_create(self, client: Asktable) -> None:
5353
with client.single_turn.q2s.with_streaming_response.create(
5454
datasource_id="datasource_id",
55-
question="question",
55+
question="xxx",
5656
) as response:
5757
assert not response.is_closed
5858
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -104,15 +104,15 @@ class TestAsyncQ2s:
104104
async def test_method_create(self, async_client: AsyncAsktable) -> None:
105105
q2 = await async_client.single_turn.q2s.create(
106106
datasource_id="datasource_id",
107-
question="question",
107+
question="xxx",
108108
)
109109
assert_matches_type(Q2sResponse, q2, path=["response"])
110110

111111
@parametrize
112112
async def test_method_create_with_all_params(self, async_client: AsyncAsktable) -> None:
113113
q2 = await async_client.single_turn.q2s.create(
114114
datasource_id="datasource_id",
115-
question="question",
115+
question="xxx",
116116
role_id="role_id",
117117
role_variables={},
118118
)
@@ -122,7 +122,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncAsktable)
122122
async def test_raw_response_create(self, async_client: AsyncAsktable) -> None:
123123
response = await async_client.single_turn.q2s.with_raw_response.create(
124124
datasource_id="datasource_id",
125-
question="question",
125+
question="xxx",
126126
)
127127

128128
assert response.is_closed is True
@@ -134,7 +134,7 @@ async def test_raw_response_create(self, async_client: AsyncAsktable) -> None:
134134
async def test_streaming_response_create(self, async_client: AsyncAsktable) -> None:
135135
async with async_client.single_turn.q2s.with_streaming_response.create(
136136
datasource_id="datasource_id",
137-
question="question",
137+
question="xxx",
138138
) as response:
139139
assert not response.is_closed
140140
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

0 commit comments

Comments
 (0)