-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathtest_summarize.py
More file actions
30 lines (25 loc) · 938 Bytes
/
test_summarize.py
File metadata and controls
30 lines (25 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from glean.api_client import Glean, models
import os
from tests.test_client import create_test_http_client
def test_summarize_summarize():
test_http_client = create_test_http_client("summarize")
with Glean(
server_url=os.getenv("TEST_SERVER_URL", "http://localhost:18080"),
client=test_http_client,
api_token=os.getenv("GLEAN_API_TOKEN", "value"),
) as glean:
assert glean is not None
res = glean.client.documents.summarize(
document_specs=[
{
"ugc_type": models.DocumentSpecUgcType1.SHORTCUTS,
"content_id": 602763,
},
{
"ugc_type": models.DocumentSpecUgcType1.SHORTCUTS,
"content_id": 602763,
},
]
)
assert res is not None