1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 17:25:17 +03:00
aports/testing/py3-connexion/fix-test-import-name.patch
2023-11-05 13:34:06 +00:00

12 lines
532 B
Diff

diff --git a/tests/test_lifespan.py b/tests/test_lifespan.py
index 150ace8..0168029 100644
--- a/tests/test_lifespan.py
+++ b/tests/test_lifespan.py
@@ -33,6 +33,6 @@ async def test_lifespan():
if scope["type"] == "lifespan":
lifecycle_handler.handle()
- test_app = ConnexionMiddleware(check_lifecycle)
+ test_app = ConnexionMiddleware(check_lifecycle, import_name="connexion")
await test_app({"type": "lifespan"}, mock.AsyncMock(), mock.AsyncMock())
lifecycle_handler.handle.assert_called()