We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0dc7b9 commit b557ae4Copy full SHA for b557ae4
tests/unit/test_lifespan.py
@@ -53,3 +53,13 @@ async def test_new_lifespan_with_connect_args(sqlalchemy_url):
53
54
async with lifespan(app):
55
pass
56
+
57
58
+async def test_new_lifespan_fails_with_invalid_connect_args(sqlalchemy_url):
59
+ from fastsqla import new_lifespan
60
61
+ lifespan = new_lifespan(sqlalchemy_url, connect_args={"this is wrong": False})
62
63
+ with raises(TypeError):
64
+ async with lifespan(app):
65
+ pass
0 commit comments