- Starlette newest version is already supported:
* Remove fastapi-support-startlette-0.21.0.patch
- Add patch to disable a broken test:
* Add python-fastapi-disable-broken-tests.patch
- Update to 0.88.0
* Upgrades
- arrow_up Bump Starlette to version 0.22.0 to fix bad encoding
for query parameters in new TestClient.
* Docs
- pencil2 Fix typo in docs for docs/en/docs/advanced/middleware.md.
* Translations
- globe_with_meridians Add Portuguese translation for
docs/pt/docs/deployment/docker.md.
- Update to 0.87.0
* Highlights of this release:
- Upgraded Starlette
+ Now the TestClient is based on HTTPX instead of Requests.
+ There are some possible breaking changes in the TestClient
usage, but @Kludex built bump-testclient to help you
automatize migrating your tests. Make sure you are using Git
and that you can undo any unnecessary changes (false
positive changes, etc) before using bump-testclient.
- New WebSocketException (and docs), re-exported from Starlette.
- Upgraded and relaxed dependencies for package extras all
(including new Uvicorn version), when you install
"fastapi[all]".
- New docs about how to Help Maintain FastAPI.
* Features:
- arrow_up Upgrade and relax dependencies for extras "all".
- sparkles Re-export Starlette's WebSocketException and add it
OBS-URL: https://build.opensuse.org/request/show/1038740
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=18
22 lines
742 B
Diff
22 lines
742 B
Diff
Index: fastapi-0.88.0/tests/test_generate_unique_id_function.py
|
|
===================================================================
|
|
--- fastapi-0.88.0.orig/tests/test_generate_unique_id_function.py
|
|
+++ fastapi-0.88.0/tests/test_generate_unique_id_function.py
|
|
@@ -6,6 +6,8 @@ from fastapi.routing import APIRoute
|
|
from fastapi.testclient import TestClient
|
|
from pydantic import BaseModel
|
|
|
|
+import pytest
|
|
+
|
|
|
|
def custom_generate_unique_id(route: APIRoute):
|
|
return f"foo_{route.name}"
|
|
@@ -1604,6 +1606,7 @@ def test_callback_override_generate_uniq
|
|
}
|
|
|
|
|
|
+@pytest.mark.skip(reason="failing with current sqlalchemy version")
|
|
def test_warn_duplicate_operation_id():
|
|
def broken_operation_id(route: APIRoute):
|
|
return "foo"
|