Source: ormar Version: 0.23.1-1 Severity: serious X-Debbugs-Cc: [email protected]
Hi Edward, ormar autopkgtest are failing against the new fastapi. Greeting Alexandre https://qa.debian.org/excuses.php?package=fastapi https://ci.debian.net/packages/o/ormar/testing/amd64/70314253/ 88s =================================== FAILURES =================================== 88s ______________________________ test_all_endpoints ______________________________ 88s 88s @pytest.mark.asyncio 88s async def test_all_endpoints(): 88s transport = ASGITransport(app=app) 88s client = AsyncClient(transport=transport, base_url="http://testserver") 88s async with client as client, LifespanManager(app): 88s response = await client.get("/openapi.json") 88s assert response.status_code == 200, response.text 88s schema = response.json() 88s components = schema["components"]["schemas"] 88s raw_names_w_o_modules = [x.split("__")[-1] for x in components.keys()] 88s assert all(x in raw_names_w_o_modules for x in ["CA", "CB1", "CB2"]) 88s pk_onlys = [x for x in list(raw_names_w_o_modules) if x.startswith("PkOnly")] 88s > assert len(pk_onlys) == 2 88s E AssertionError: assert 4 == 2 88s E + where 4 = len(['PkOnlyCAgwfsws', 'PkOnlyCAvssfhv', 'PkOnlyCB1zqvdln', 'PkOnlyCB2dfmcyc']) 88s 88s tests/test_fastapi/test_docs_with_multiple_relations_to_one.py:70: AssertionError 88s =============================== warnings summary ===============================

