pre-commit-ci-lite[bot]
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
1 deletions
-
tests/test_generate_unique_id_function.py
|
|
|
@ -1702,7 +1702,9 @@ def test_warn_duplicate_operation_id(): |
|
|
|
def test_no_duplicate_operation_id_for_multi_method_route(): |
|
|
|
app = FastAPI() |
|
|
|
router = APIRouter() |
|
|
|
router.add_api_route("/items/", lambda: [], methods=["POST", "DELETE"], name="items") |
|
|
|
router.add_api_route( |
|
|
|
"/items/", lambda: [], methods=["POST", "DELETE"], name="items" |
|
|
|
) |
|
|
|
app.include_router(router) |
|
|
|
|
|
|
|
client = TestClient(app) |
|
|
|
|