Skip to content

Commit

Permalink
Merge pull request #378 from skion/sqlalchemy-warning
Browse files Browse the repository at this point in the history
Suppress SQLAlchemy deprecation warning
  • Loading branch information
lepture authored Mar 7, 2018
2 parents 95451eb + 62afbf1 commit 9fc62ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def setUp(self):
'OAUTH1_PROVIDER_ENFORCE_SSL': False,
'OAUTH1_PROVIDER_KEY_LENGTH': (3, 30),
'OAUTH1_PROVIDER_REALMS': ['email', 'address'],
'SQLALCHEMY_DATABASE_URI': 'sqlite:///%s' % self.db_file
'SQLALCHEMY_DATABASE_URI': 'sqlite:///%s' % self.db_file,
'SQLALCHEMY_TRACK_MODIFICATIONS': False
}
app.config.update(config)

Expand Down
3 changes: 2 additions & 1 deletion tests/test_oauth2/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ def create_app(self):
app.debug = True
app.secret_key = 'testing'
app.config.update({
'SQLALCHEMY_DATABASE_URI': 'sqlite://'
'SQLALCHEMY_DATABASE_URI': 'sqlite://',
'SQLALCHEMY_TRACK_MODIFICATIONS': False
})
return app

0 comments on commit 9fc62ad

Please sign in to comment.