mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-13 10:15:21 +00:00
chore(deps): redis 8, tiktoken 0.14, openapi3-parser 2, daytona 0.211, reportlab 5
Major bumps whose ceilings had to move. redis 8.1.0, tiktoken 0.14.0 and daytona 0.211.2 needed no code change (the Daytona client, filesystem and process signatures the sandbox calls are unchanged; redis 8 was checked against a live server through the app's own sync and async clients). reportlab 5.0.1 is test-only. openapi-parser 2.0.0 is a rewrite onto pydantic spec models: `paths` is now a dict keyed by URL rather than a list of objects carrying their own `url`, and a path item exposes one field per HTTP method instead of an `operations` list. `OpenAPI3Parser` reads both accordingly, iterating methods in the order the spec declares them, and its rendered output is byte-identical to before. The rewrite also drops prance, openapi-spec-validator and five more transitive packages. tokenizers stays at 0.22.2: transformers 5.8.1 caps it at <=0.23.0 and no such release exists, so it moves with the transformers cap or not at all.
This commit is contained in:
1 parent
7e00197678
commit
b3326b3c33
8 files changed
+197
-369
No files matched your search
@@ -26,13 +26,25 @@ def test_get_base_urls(urls, expected_base_urls):
|
||||
def test_get_info_from_paths():
|
||||
file_path = "tests/test_openapi3.yaml"
|
||||
data = parse(file_path)
|
||||
path = data.paths[1]
|
||||
path_item = data.paths["/pets/{petId}"]
|
||||
assert (
|
||||
OpenAPI3Parser().get_info_from_paths(path)
|
||||
OpenAPI3Parser().get_info_from_paths(path_item)
|
||||
== "\nget=Expected response to a valid request"
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
def test_get_operations_follows_spec_method_order():
|
||||
"""openapi-parser 2.x exposes one field per method instead of an
|
||||
``operations`` list; the rendered order stays the spec's."""
|
||||
data = parse("tests/test_openapi3.yaml")
|
||||
path_item = data.paths["/pets"]
|
||||
assert [method for method, _ in OpenAPI3Parser().get_operations(path_item)] == [
|
||||
"get",
|
||||
"post",
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
def test_parse_file():
|
||||
file_path = "tests/test_openapi3.yaml"
|
||||
|
||||
Reference in new issue
Block a user