File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -805,10 +805,13 @@ def init_app(self, app):
805
805
of an application not initialized that way or connections will
806
806
leak.
807
807
"""
808
- if app .config .get ('SQLALCHEMY_DATABASE_URI' ) is None :
809
- warnings .warn (UserWarning ('SQLALCHEMY_DATABASE_URI not set. Defaulting to sqlite.' ))
808
+ if 'SQLALCHEMY_DATABASE_URI' not in app .config :
809
+ warnings .warn (
810
+ 'SQLALCHEMY_DATABASE_URI not set. Defaulting to '
811
+ '"sqlite:///:memory:".'
812
+ )
810
813
811
- app .config .setdefault ('SQLALCHEMY_DATABASE_URI' , 'sqlite://' )
814
+ app .config .setdefault ('SQLALCHEMY_DATABASE_URI' , 'sqlite:///:memory: ' )
812
815
app .config .setdefault ('SQLALCHEMY_BINDS' , None )
813
816
app .config .setdefault ('SQLALCHEMY_NATIVE_UNICODE' , None )
814
817
app .config .setdefault ('SQLALCHEMY_ECHO' , False )
You can’t perform that action at this time.
0 commit comments