Skip to content

Commit 7d4f6fb

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): api update (#40)
1 parent 0e888dd commit 7d4f6fb

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
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: 69
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-32af43da943808884c287c71d5f8102df27b1bab84f86b8753ceb21517787c0d.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-4d166de341d22528d6d116bb49704008e9511df1de7d5132e95b1a034a2ce95b.yml

tests/api_resources/integration/test_excel_csv.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ class TestExcelCsv:
2020
@parametrize
2121
def test_method_create(self, client: Asktable) -> None:
2222
excel_csv = client.integration.excel_csv.create(
23-
file_url="file_url",
23+
file_url="https://example.com",
2424
)
2525
assert_matches_type(DataSource, excel_csv, path=["response"])
2626

2727
@parametrize
2828
def test_raw_response_create(self, client: Asktable) -> None:
2929
response = client.integration.excel_csv.with_raw_response.create(
30-
file_url="file_url",
30+
file_url="https://example.com",
3131
)
3232

3333
assert response.is_closed is True
@@ -38,7 +38,7 @@ def test_raw_response_create(self, client: Asktable) -> None:
3838
@parametrize
3939
def test_streaming_response_create(self, client: Asktable) -> None:
4040
with client.integration.excel_csv.with_streaming_response.create(
41-
file_url="file_url",
41+
file_url="https://example.com",
4242
) as response:
4343
assert not response.is_closed
4444
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -55,14 +55,14 @@ class TestAsyncExcelCsv:
5555
@parametrize
5656
async def test_method_create(self, async_client: AsyncAsktable) -> None:
5757
excel_csv = await async_client.integration.excel_csv.create(
58-
file_url="file_url",
58+
file_url="https://example.com",
5959
)
6060
assert_matches_type(DataSource, excel_csv, path=["response"])
6161

6262
@parametrize
6363
async def test_raw_response_create(self, async_client: AsyncAsktable) -> None:
6464
response = await async_client.integration.excel_csv.with_raw_response.create(
65-
file_url="file_url",
65+
file_url="https://example.com",
6666
)
6767

6868
assert response.is_closed is True
@@ -73,7 +73,7 @@ async def test_raw_response_create(self, async_client: AsyncAsktable) -> None:
7373
@parametrize
7474
async def test_streaming_response_create(self, async_client: AsyncAsktable) -> None:
7575
async with async_client.integration.excel_csv.with_streaming_response.create(
76-
file_url="file_url",
76+
file_url="https://example.com",
7777
) as response:
7878
assert not response.is_closed
7979
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

tests/api_resources/test_integration.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ class TestIntegration:
2020
@parametrize
2121
def test_method_excel_csv_ask(self, client: Asktable) -> None:
2222
integration = client.integration.excel_csv_ask(
23-
file_url="file_url",
23+
file_url="https://example.com",
2424
question="question",
2525
)
2626
assert_matches_type(AnswerDataSourceOut, integration, path=["response"])
2727

2828
@parametrize
2929
def test_method_excel_csv_ask_with_all_params(self, client: Asktable) -> None:
3030
integration = client.integration.excel_csv_ask(
31-
file_url="file_url",
31+
file_url="https://example.com",
3232
question="question",
3333
with_json=True,
3434
)
@@ -37,7 +37,7 @@ def test_method_excel_csv_ask_with_all_params(self, client: Asktable) -> None:
3737
@parametrize
3838
def test_raw_response_excel_csv_ask(self, client: Asktable) -> None:
3939
response = client.integration.with_raw_response.excel_csv_ask(
40-
file_url="file_url",
40+
file_url="https://example.com",
4141
question="question",
4242
)
4343

@@ -49,7 +49,7 @@ def test_raw_response_excel_csv_ask(self, client: Asktable) -> None:
4949
@parametrize
5050
def test_streaming_response_excel_csv_ask(self, client: Asktable) -> None:
5151
with client.integration.with_streaming_response.excel_csv_ask(
52-
file_url="file_url",
52+
file_url="https://example.com",
5353
question="question",
5454
) as response:
5555
assert not response.is_closed
@@ -67,15 +67,15 @@ class TestAsyncIntegration:
6767
@parametrize
6868
async def test_method_excel_csv_ask(self, async_client: AsyncAsktable) -> None:
6969
integration = await async_client.integration.excel_csv_ask(
70-
file_url="file_url",
70+
file_url="https://example.com",
7171
question="question",
7272
)
7373
assert_matches_type(AnswerDataSourceOut, integration, path=["response"])
7474

7575
@parametrize
7676
async def test_method_excel_csv_ask_with_all_params(self, async_client: AsyncAsktable) -> None:
7777
integration = await async_client.integration.excel_csv_ask(
78-
file_url="file_url",
78+
file_url="https://example.com",
7979
question="question",
8080
with_json=True,
8181
)
@@ -84,7 +84,7 @@ async def test_method_excel_csv_ask_with_all_params(self, async_client: AsyncAsk
8484
@parametrize
8585
async def test_raw_response_excel_csv_ask(self, async_client: AsyncAsktable) -> None:
8686
response = await async_client.integration.with_raw_response.excel_csv_ask(
87-
file_url="file_url",
87+
file_url="https://example.com",
8888
question="question",
8989
)
9090

@@ -96,7 +96,7 @@ async def test_raw_response_excel_csv_ask(self, async_client: AsyncAsktable) ->
9696
@parametrize
9797
async def test_streaming_response_excel_csv_ask(self, async_client: AsyncAsktable) -> None:
9898
async with async_client.integration.with_streaming_response.excel_csv_ask(
99-
file_url="file_url",
99+
file_url="https://example.com",
100100
question="question",
101101
) as response:
102102
assert not response.is_closed

0 commit comments

Comments
 (0)