forked from pool/python-fastapi
Accepting request 1055981 from home:bnavigator:branches:devel:languages:python
- Remove flit from build requirements: The real used backend is hatchling - Clean up specfile * remove duplicate copyright header * remove catchall in files section - Drop python-fastapi-disable-broken-tests.patch - Prune the test suite when run in lettered staging projects: python-mocket pulls this into Ring1. Let's make it as painless as possible. OBS-URL: https://build.opensuse.org/request/show/1055981 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=20
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
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"
|
Reference in New Issue
Block a user